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
32e328be
Commit
32e328be
authored
Dec 08, 2010
by
qichunren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix path load bug, and make rake workable.
parent
9c68c8c9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
18 deletions
+21
-18
README.rdoc
README.rdoc
+1
-1
Rakefile
Rakefile
+12
-12
annotate.gemspec
annotate.gemspec
+7
-5
annotate.rb
lib/annotate.rb
+1
-0
No files found.
README.rdoc
View file @
32e328be
...
...
@@ -46,7 +46,7 @@ From github:
git clone git://github.com/ctran/annotate_models.git annotate
cd annotate
rake
gem
rake
build
sudo gem install pkg/annotate-*.gem
== USAGE
...
...
Rakefile
View file @
32e328be
require
'rubygems'
require
'rake'
require
'
lib/annotate'
require
File
.
dirname
(
__FILE__
)
+
'/
lib/annotate'
# want other tests/tasks run by default? Add them to the list
task
:default
=>
[
:spec
]
...
...
@@ -30,17 +30,17 @@ 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
Spec
::
Rake
::
SpecTask
.
new
(
:rcov
)
do
|
spec
|
spec
.
libs
<<
'lib'
<<
'spec'
spec
.
pattern
=
'spec/**/*_spec.rb'
spec
.
rcov
=
true
end
# require 'rspec
'
#
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
require
'rake/rdoctask'
Rake
::
RDocTask
.
new
do
|
rdoc
|
...
...
annotate.gemspec
View file @
32e328be
# 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
|
...
...
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s
.
required_rubygems_version
=
Gem
::
Requirement
.
new
(
">= 0"
)
if
s
.
respond_to?
:required_rubygems_version
=
s
.
authors
=
[
"Cuong Tran"
,
"Alex Chaffee"
,
"Marcos Piccinini"
]
s
.
date
=
%q{20
09-10-23
}
s
.
date
=
%q{20
10-12-08
}
s
.
default_executable
=
%q{annotate}
s
.
description
=
%q{Annotates Rails Models, routes, fixtures, and others based on the database schema.}
s
.
email
=
[
"alex@stinky.com"
,
"ctran@pragmaquest.com"
,
"x@nofxx.com"
]
...
...
@@ -37,7 +37,8 @@ Gem::Specification.new do |s|
s
.
homepage
=
%q{http://github.com/ctran/annotate}
s
.
rdoc_options
=
[
"--charset=UTF-8"
]
s
.
require_paths
=
[
"lib"
]
s
.
rubygems_version
=
%q{1.3.5}
s
.
rubyforge_project
=
%q{annotate}
s
.
rubygems_version
=
%q{1.3.7}
s
.
summary
=
%q{Annotates Rails Models, routes, fixtures, and others based on the database schema.}
s
.
test_files
=
[
"spec/annotate/annotate_models_spec.rb"
,
...
...
@@ -50,9 +51,10 @@ Gem::Specification.new do |s|
current_version
=
Gem
::
Specification
::
CURRENT_SPECIFICATION_VERSION
s
.
specification_version
=
3
if
Gem
::
Version
.
new
(
Gem
::
RubyGemsVersion
)
>=
Gem
::
Version
.
new
(
'1.2.0'
)
then
if
Gem
::
Version
.
new
(
Gem
::
VERSION
)
>=
Gem
::
Version
.
new
(
'1.2.0'
)
then
else
end
else
end
end
lib/annotate.rb
View file @
32e328be
require
"yaml"
$:
.
unshift
(
File
.
dirname
(
__FILE__
))
unless
$:
.
include?
(
File
.
dirname
(
__FILE__
))
||
$:
.
include?
(
File
.
expand_path
(
File
.
dirname
(
__FILE__
)))
...
...
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