Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
annotate
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
annotate
Commits
0fd27ddc
Commit
0fd27ddc
authored
Dec 25, 2008
by
Marcos Augusto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up hoe stuff
parent
f44de353
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
95 deletions
+1
-95
Manifest.txt
Manifest.txt
+0
-6
annotate.gemspec
annotate.gemspec
+1
-1
hoe.rb
config/hoe.rb
+0
-70
requirements.rb
config/requirements.rb
+0
-18
debug.log
log/debug.log
+0
-0
No files found.
Manifest.txt
View file @
0fd27ddc
...
@@ -5,8 +5,6 @@ README.rdoc
...
@@ -5,8 +5,6 @@ README.rdoc
Rakefile
Rakefile
annotate.gemspec
annotate.gemspec
bin/annotate
bin/annotate
config/hoe.rb
config/requirements.rb
lib/annotate.rb
lib/annotate.rb
lib/annotate_models/annotate_models.rb
lib/annotate_models/annotate_models.rb
lib/annotate_routes/annotate_routes.rb
lib/annotate_routes/annotate_routes.rb
...
@@ -27,8 +25,6 @@ README.rdoc
...
@@ -27,8 +25,6 @@ README.rdoc
Rakefile
Rakefile
annotate.gemspec
annotate.gemspec
bin/annotate
bin/annotate
config/hoe.rb
config/requirements.rb
lib/annotate.rb
lib/annotate.rb
lib/annotate_models/annotate_models.rb
lib/annotate_models/annotate_models.rb
lib/annotate_routes/annotate_routes.rb
lib/annotate_routes/annotate_routes.rb
...
@@ -49,8 +45,6 @@ README.rdoc
...
@@ -49,8 +45,6 @@ README.rdoc
Rakefile
Rakefile
annotate.gemspec
annotate.gemspec
bin/annotate
bin/annotate
config/hoe.rb
config/requirements.rb
lib/annotate.rb
lib/annotate.rb
lib/annotate_models/annotate_models.rb
lib/annotate_models/annotate_models.rb
lib/annotate_routes/annotate_routes.rb
lib/annotate_routes/annotate_routes.rb
...
...
annotate.gemspec
View file @
0fd27ddc
...
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
...
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
s
.
email
=
[
"x@nofxx.com"
]
s
.
email
=
[
"x@nofxx.com"
]
s
.
executables
=
[
"annotate"
]
s
.
executables
=
[
"annotate"
]
s
.
extra_rdoc_files
=
[
"History.txt"
,
"License.txt"
,
"Manifest.txt"
,
"README.rdoc"
]
s
.
extra_rdoc_files
=
[
"History.txt"
,
"License.txt"
,
"Manifest.txt"
,
"README.rdoc"
]
s
.
files
=
[
"History.txt"
,
"License.txt"
,
"Manifest.txt"
,
"README.rdoc"
,
"Rakefile"
,
"annotate.gemspec"
,
"bin/annotate"
,
"
config/hoe.rb"
,
"config/requirements.rb"
,
"
lib/annotate.rb"
,
"lib/annotate_models/annotate_models.rb"
,
"lib/annotate_routes/annotate_routes.rb"
,
"lib/tasks/annotate_models.rake"
,
"lib/tasks/annotate_routes.rake"
,
"script/console"
,
"script/destroy"
,
"script/generate"
,
"setup.rb"
,
"spec/annotate_spec.rb"
,
"spec/spec.opts"
,
"spec/spec_helper.rb"
,
"tasks/rspec.rake"
]
s
.
files
=
[
"History.txt"
,
"License.txt"
,
"Manifest.txt"
,
"README.rdoc"
,
"Rakefile"
,
"annotate.gemspec"
,
"bin/annotate"
,
"lib/annotate.rb"
,
"lib/annotate_models/annotate_models.rb"
,
"lib/annotate_routes/annotate_routes.rb"
,
"lib/tasks/annotate_models.rake"
,
"lib/tasks/annotate_routes.rake"
,
"script/console"
,
"script/destroy"
,
"script/generate"
,
"setup.rb"
,
"spec/annotate_spec.rb"
,
"spec/spec.opts"
,
"spec/spec_helper.rb"
,
"tasks/rspec.rake"
]
s
.
has_rdoc
=
true
s
.
has_rdoc
=
true
s
.
homepage
=
%q{http://github.com/nofxx/annotate}
s
.
homepage
=
%q{http://github.com/nofxx/annotate}
s
.
rdoc_options
=
[
"--main"
,
"README.rdoc"
]
s
.
rdoc_options
=
[
"--main"
,
"README.rdoc"
]
...
...
config/hoe.rb
deleted
100644 → 0
View file @
f44de353
require
'annotate_models/version'
AUTHOR
=
'Dave Thomas'
# can also be an array of Authors
EMAIL
=
"ctran@pragmaquest.com"
DESCRIPTION
=
"Add a comment summarizing the current schema to the top of each ActiveRecord model source file"
GEM_NAME
=
'annotate-models'
# what ppl will type to install your gem
RUBYFORGE_PROJECT
=
'annotate-models'
# The unix name for your project
HOMEPATH
=
"http://
#{
RUBYFORGE_PROJECT
}
.rubyforge.org"
DOWNLOAD_PATH
=
"http://rubyforge.org/projects/
#{
RUBYFORGE_PROJECT
}
"
@config_file
=
"~/.rubyforge/user-config.yml"
@config
=
nil
RUBYFORGE_USERNAME
=
"unknown"
def
rubyforge_username
unless
@config
begin
@config
=
YAML
.
load
(
File
.
read
(
File
.
expand_path
(
@config_file
)))
rescue
puts
<<-
EOS
ERROR: No rubyforge config file found:
#{
@config_file
}
Run 'rubyforge setup' to prepare your env for access to Rubyforge
- See http://newgem.rubyforge.org/rubyforge.html for more details
EOS
exit
end
end
RUBYFORGE_USERNAME
.
replace
@config
[
"username"
]
end
REV
=
nil
# UNCOMMENT IF REQUIRED:
# REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
VERS
=
AnnotateModels
::
VERSION
::
STRING
+
(
REV
?
".
#{
REV
}
"
:
""
)
RDOC_OPTS
=
[
'--quiet'
,
'--title'
,
'annotate_models documentation'
,
"--opname"
,
"index.html"
,
"--line-numbers"
,
"--main"
,
"README"
,
"--inline-source"
]
class
Hoe
def
extra_deps
@extra_deps
.
reject!
{
|
x
|
Array
(
x
).
first
==
'hoe'
}
@extra_deps
end
end
# Generate all the Rake tasks
# Run 'rake -T' to see list of generated tasks (from gem root directory)
hoe
=
Hoe
.
new
(
GEM_NAME
,
VERS
)
do
|
p
|
p
.
developer
(
AUTHOR
,
EMAIL
)
p
.
description
=
DESCRIPTION
p
.
summary
=
DESCRIPTION
p
.
url
=
HOMEPATH
p
.
rubyforge_name
=
RUBYFORGE_PROJECT
if
RUBYFORGE_PROJECT
p
.
test_globs
=
[
"test/**/test_*.rb"
]
p
.
clean_globs
|=
[
'**/.*.sw?'
,
'*.gem'
,
'.config'
,
'**/.DS_Store'
]
#An array of file patterns to delete on clean.
# == Optional
p
.
changes
=
p
.
paragraphs_of
(
"History.txt"
,
0
..
1
).
join
(
"
\n\n
"
)
p
.
extra_deps
=
[]
# An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
p
.
spec_extras
=
{}
# A hash of extra values to set in the gemspec.
end
CHANGES
=
hoe
.
paragraphs_of
(
'History.txt'
,
0
..
1
).
join
(
"
\\
n
\\
n"
)
PATH
=
(
RUBYFORGE_PROJECT
==
GEM_NAME
)
?
RUBYFORGE_PROJECT
:
"
#{
RUBYFORGE_PROJECT
}
/
#{
GEM_NAME
}
"
hoe
.
remote_rdoc_dir
=
File
.
join
(
PATH
.
gsub
(
/^
#{
RUBYFORGE_PROJECT
}
\/?/
,
''
),
'rdoc'
)
hoe
.
rsync_args
=
'-av --delete --ignore-errors'
\ No newline at end of file
config/requirements.rb
deleted
100644 → 0
View file @
f44de353
require
'fileutils'
include
FileUtils
require
'rubygems'
%w[rake hoe newgem rubigen]
.
each
do
|
req_gem
|
begin
require
req_gem
rescue
LoadError
puts
"This Rakefile requires the '
#{
req_gem
}
' RubyGem."
puts
"Installation: gem install
#{
req_gem
}
-y"
exit
end
end
$:
.
unshift
(
File
.
join
(
File
.
dirname
(
__FILE__
),
%w[.. lib]
))
require
'annotate_models'
\ No newline at end of file
log/debug.log
deleted
100644 → 0
View file @
f44de353
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment