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
63467863
Commit
63467863
authored
Dec 26, 2008
by
Marcos Augusto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle errors when not in a rails folder
parent
84a9b0eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
annotate.gemspec
annotate.gemspec
+2
-2
annotate
bin/annotate
+5
-1
annotate.rb
lib/annotate.rb
+7
-4
No files found.
annotate.gemspec
View file @
63467863
...
...
@@ -2,11 +2,11 @@
Gem
::
Specification
.
new
do
|
s
|
s
.
name
=
%q{annotate}
s
.
version
=
"2.2.
2
"
s
.
version
=
"2.2.
3
"
s
.
required_rubygems_version
=
Gem
::
Requirement
.
new
(
">= 0"
)
if
s
.
respond_to?
:required_rubygems_version
=
s
.
authors
=
[
"Marcos Piccinini"
]
s
.
date
=
%q{2008-12-2
5
}
s
.
date
=
%q{2008-12-2
6
}
s
.
default_executable
=
%q{annotate}
s
.
description
=
%q{Annotates Rails Models and Routes}
s
.
email
=
[
"x@nofxx.com"
]
...
...
bin/annotate
View file @
63467863
...
...
@@ -13,4 +13,8 @@ OptionParser.new do |opts|
opts
.
on
(
'-v'
,
'--version'
)
{
puts
"Annotate v
#{
Annotate
::
VERSION
}
"
;
exit
}
end
.
parse!
Rake
::
Task
[
task
].
invoke
begin
Rake
::
Task
[
task
].
invoke
rescue
NameError
=>
e
puts
"Can`t find Rake. Are we in a Rails folder?"
end
lib/annotate.rb
View file @
63467863
...
...
@@ -2,10 +2,13 @@ $:.unshift(File.dirname(__FILE__)) unless
$:
.
include?
(
File
.
dirname
(
__FILE__
))
||
$:
.
include?
(
File
.
expand_path
(
File
.
dirname
(
__FILE__
)))
module
Annotate
VERSION
=
'2.2.
2
'
VERSION
=
'2.2.
3
'
end
load
'Rakefile'
Dir
[
File
.
join
(
File
.
dirname
(
__FILE__
),
'tasks'
,
'**/*.rake'
)].
each
{
|
rake
|
load
rake
}
begin
load
'Rakefile'
Dir
[
File
.
join
(
File
.
dirname
(
__FILE__
),
'tasks'
,
'**/*.rake'
)].
each
{
|
rake
|
load
rake
}
rescue
LoadError
=>
e
nil
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