nofxx-annotate 2.2.2 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/annotate.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{annotate}
5
- s.version = "2.2.2"
5
+ s.version = "2.2.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Marcos Piccinini"]
9
- s.date = %q{2008-12-25}
9
+ s.date = %q{2008-12-26}
10
10
  s.default_executable = %q{annotate}
11
11
  s.description = %q{Annotates Rails Models and Routes}
12
12
  s.email = ["x@nofxx.com"]
data/bin/annotate CHANGED
@@ -13,4 +13,8 @@ OptionParser.new do |opts|
13
13
  opts.on('-v', '--version') { puts "Annotate v#{Annotate::VERSION}"; exit }
14
14
  end.parse!
15
15
 
16
- Rake::Task[task].invoke
16
+ begin
17
+ Rake::Task[task].invoke
18
+ rescue NameError => e
19
+ puts "Can`t find Rake. Are we in a Rails folder?"
20
+ end
data/lib/annotate.rb CHANGED
@@ -2,10 +2,13 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module Annotate
5
- VERSION = '2.2.2'
5
+ VERSION = '2.2.3'
6
6
  end
7
7
 
8
-
9
- load 'Rakefile'
10
- Dir[File.join(File.dirname(__FILE__), 'tasks', '**/*.rake')].each { |rake| load rake }
8
+ begin
9
+ load 'Rakefile'
10
+ Dir[File.join(File.dirname(__FILE__), 'tasks', '**/*.rake')].each { |rake| load rake }
11
+ rescue LoadError => e
12
+ nil
13
+ end
11
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nofxx-annotate
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcos Piccinini
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-25 00:00:00 -08:00
12
+ date: 2008-12-26 00:00:00 -08:00
13
13
  default_executable: annotate
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency