nofxx-annotate 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml ADDED
@@ -0,0 +1,4 @@
1
+ ---
2
+ :major: 2
3
+ :minor: 3
4
+ :patch: 1
data/annotate.gemspec ADDED
@@ -0,0 +1,56 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{annotate}
5
+ s.version = "2.3.1"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Cuong Tran", "Marcos Piccinini"]
9
+ s.date = %q{2009-07-02}
10
+ s.default_executable = %q{annotate}
11
+ s.email = %q{x@nofxx.com}
12
+ s.executables = ["annotate"]
13
+ s.extra_rdoc_files = [
14
+ "README.rdoc"
15
+ ]
16
+ s.files = [
17
+ ".gitignore",
18
+ "History.txt",
19
+ "README.rdoc",
20
+ "Rakefile",
21
+ "VERSION.yml",
22
+ "annotate.gemspec",
23
+ "bin/annotate",
24
+ "lib/annotate.rb",
25
+ "lib/annotate/annotate_models.rb",
26
+ "lib/annotate/annotate_routes.rb",
27
+ "lib/tasks/annotate_models.rake",
28
+ "lib/tasks/annotate_routes.rake",
29
+ "spec/annotate/annotate_models_spec.rb",
30
+ "spec/annotate/annotate_routes_spec.rb",
31
+ "spec/annotate_spec.rb",
32
+ "spec/spec.opts",
33
+ "spec/spec_helper.rb"
34
+ ]
35
+ s.homepage = %q{http://github.com/nofxx/annotate}
36
+ s.rdoc_options = ["--charset=UTF-8"]
37
+ s.require_paths = ["lib"]
38
+ s.rubygems_version = %q{1.3.4}
39
+ s.summary = %q{Annotates Rails Models, routes, and others}
40
+ s.test_files = [
41
+ "spec/annotate/annotate_models_spec.rb",
42
+ "spec/annotate/annotate_routes_spec.rb",
43
+ "spec/spec_helper.rb",
44
+ "spec/annotate_spec.rb"
45
+ ]
46
+
47
+ if s.respond_to? :specification_version then
48
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
49
+ s.specification_version = 3
50
+
51
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
52
+ else
53
+ end
54
+ else
55
+ end
56
+ end
@@ -10,6 +10,8 @@ module AnnotateModels
10
10
  SPEC_MODEL_DIR = File.join("spec", "models")
11
11
  # Object Daddy http://github.com/flogic/object_daddy/tree/master
12
12
  EXEMPLARS_DIR = File.join("spec", "exemplars")
13
+ # Machinist http://github.com/notahat/machinist
14
+ BLUEPRINT = File.join("spec", "blueprint")
13
15
 
14
16
  def model_dir
15
17
  @model_dir || "app/models"
@@ -114,7 +116,7 @@ module AnnotateModels
114
116
  old_content.sub!(/^# #{COMPAT_PREFIX}.*?\n(#.*\n)*\n/, '')
115
117
 
116
118
  # Write it back
117
- new_content = options[:position].to_sym == :before ? (info_block + old_content) : (old_content + "\n" + info_block)
119
+ new_content = options[:position] == 'before' ? (info_block + old_content) : (old_content + "\n" + info_block)
118
120
 
119
121
  File.open(file_name, "wb") { |f| f.puts new_content }
120
122
  true
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.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cuong Tran
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-06-11 00:00:00 -07:00
13
+ date: 2009-07-02 00:00:00 -07:00
14
14
  default_executable: annotate
15
15
  dependencies: []
16
16
 
@@ -27,6 +27,8 @@ files:
27
27
  - History.txt
28
28
  - README.rdoc
29
29
  - Rakefile
30
+ - VERSION.yml
31
+ - annotate.gemspec
30
32
  - bin/annotate
31
33
  - lib/annotate.rb
32
34
  - lib/annotate/annotate_models.rb