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
201910ae
Commit
201910ae
authored
May 10, 2010
by
Marcos Piccinini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
works with rails 3
parent
ffceca9b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
19 deletions
+33
-19
Rakefile
Rakefile
+12
-12
VERSION
VERSION
+1
-1
annotate.rb
lib/annotate.rb
+2
-0
railtie.rb
lib/annotate/railtie.rb
+11
-0
nofxx-annotate.gemspec
nofxx-annotate.gemspec
+7
-6
No files found.
Rakefile
View file @
201910ae
...
...
@@ -4,7 +4,7 @@ require 'rake'
begin
require
'jeweler'
Jeweler
::
Tasks
.
new
do
|
gem
|
gem
.
name
=
"annotate"
gem
.
name
=
"
nofxx-
annotate"
gem
.
summary
=
"Annotates Rails Models, routes, and others"
gem
.
email
=
"x@nofxx.com"
gem
.
homepage
=
"http://github.com/nofxx/annotate"
...
...
@@ -16,20 +16,20 @@ rescue LoadError
puts
"Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require
'spec/rake/spectask'
Spec
::
Rake
::
SpecTask
.
new
(
:spec
)
do
|
spec
|
spec
.
libs
<<
'lib'
<<
'spec'
spec
.
spec_files
=
FileList
[
'spec/**/*_spec.rb'
]
end
#
require 'spec/rake/spectask'
#
Spec::Rake::SpecTask.new(:spec) do |spec|
#
spec.libs << 'lib' << 'spec'
#
spec.spec_files = FileList['spec/**/*_spec.rb']
#
end
Spec
::
Rake
::
SpecTask
.
new
(
:rcov
)
do
|
spec
|
spec
.
libs
<<
'lib'
<<
'spec'
spec
.
pattern
=
'spec/**/*_spec.rb'
spec
.
rcov
=
true
end
#
Spec::Rake::SpecTask.new(:rcov) do |spec|
#
spec.libs << 'lib' << 'spec'
#
spec.pattern = 'spec/**/*_spec.rb'
#
spec.rcov = true
#
end
task
:default
=>
:spec
#
task :default => :spec
require
'rake/rdoctask'
Rake
::
RDocTask
.
new
do
|
rdoc
|
...
...
VERSION
View file @
201910ae
2.3.2
3.0.0
lib/annotate.rb
View file @
201910ae
...
...
@@ -2,6 +2,8 @@ $:.unshift(File.dirname(__FILE__)) unless
$:
.
include?
(
File
.
dirname
(
__FILE__
))
||
$:
.
include?
(
File
.
expand_path
(
File
.
dirname
(
__FILE__
)))
module
Annotate
require
'my_plugin/railtie'
if
defined?
(
Rails
)
def
self
.
load_tasks
if
File
.
exists?
(
'Rakefile'
)
load
'Rakefile'
...
...
lib/annotate/railtie.rb
0 → 100644
View file @
201910ae
require
'annotate'
require
'rails'
module
Annotate
class
Railtie
<
Rails
::
Railtie
railtie_name
:annotate
rake_tasks
do
load
"tasks/annotate_models.rake"
end
end
end
annotate.gemspec
→
nofxx-
annotate.gemspec
View file @
201910ae
# Generated by jeweler
# DO NOT EDIT THIS FILE
# Instead, edit Jeweler::Tasks in Rakefile, and run
`rake gemspec`
# DO NOT EDIT THIS FILE
DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run
the gemspec command
# -*- encoding: utf-8 -*-
Gem
::
Specification
.
new
do
|
s
|
s
.
name
=
%q{annotate}
s
.
version
=
"
2.3.2
"
s
.
name
=
%q{
nofxx-
annotate}
s
.
version
=
"
3.0.0
"
s
.
required_rubygems_version
=
Gem
::
Requirement
.
new
(
">= 0"
)
if
s
.
respond_to?
:required_rubygems_version
=
s
.
authors
=
[
"Cuong Tran"
,
"Marcos Piccinini"
]
s
.
date
=
%q{20
09-08-21
}
s
.
date
=
%q{20
10-05-09
}
s
.
default_executable
=
%q{annotate}
s
.
email
=
%q{x@nofxx.com}
s
.
executables
=
[
"annotate"
]
...
...
@@ -38,7 +38,7 @@ Gem::Specification.new do |s|
s
.
homepage
=
%q{http://github.com/nofxx/annotate}
s
.
rdoc_options
=
[
"--charset=UTF-8"
]
s
.
require_paths
=
[
"lib"
]
s
.
rubygems_version
=
%q{1.3.
5
}
s
.
rubygems_version
=
%q{1.3.
6
}
s
.
summary
=
%q{Annotates Rails Models, routes, and others}
s
.
test_files
=
[
"spec/annotate/annotate_models_spec.rb"
,
...
...
@@ -57,3 +57,4 @@ Gem::Specification.new do |s|
else
end
end
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