generator-spec 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{generator-spec}
8
- s.version = "0.7.0"
8
+ s.version = "0.7.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristian Mandrup"]
12
- s.date = %q{2010-11-28}
12
+ s.date = %q{2010-12-17}
13
13
  s.description = %q{RSpec 2 library to facilitate creating generator specs}
14
14
  s.email = %q{kmandrup@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -39,14 +39,14 @@ Gem::Specification.new do |s|
39
39
  "lib/generator-spec/rspec/matchers/generate_artifact_file.rb",
40
40
  "lib/generator-spec/rspec/matchers/generate_artifact_files.rb",
41
41
  "lib/generator-spec/rspec/matchers/generate_artifacts.rb",
42
- "lib/generators/controller/controller_generator.rb",
43
- "lib/generators/helper/helper_generator.rb",
44
- "lib/generators/migration/migration_generator.rb",
45
- "lib/generators/migration/templates/create_users.erb",
46
- "lib/generators/model/model_generator.rb",
47
- "lib/generators/observer/observer_generator.rb",
48
- "lib/generators/view/view_generator.rb",
49
42
  "rails_generator.log",
43
+ "spec/generator_spec/fixtures/generators/controller/controller_generator.rb",
44
+ "spec/generator_spec/fixtures/generators/helper/helper_generator.rb",
45
+ "spec/generator_spec/fixtures/generators/migration/migration_generator.rb",
46
+ "spec/generator_spec/fixtures/generators/migration/templates/create_users.erb",
47
+ "spec/generator_spec/fixtures/generators/model/model_generator.rb",
48
+ "spec/generator_spec/fixtures/generators/observer/observer_generator.rb",
49
+ "spec/generator_spec/fixtures/generators/view/view_generator.rb",
50
50
  "spec/generator_spec/generators/controller_gen_spec.rb",
51
51
  "spec/generator_spec/generators/helper_gen_spec.rb",
52
52
  "spec/generator_spec/generators/migration_gen_spec.rb",
@@ -70,6 +70,12 @@ Gem::Specification.new do |s|
70
70
  s.rubygems_version = %q{1.3.7}
71
71
  s.summary = %q{RSpec 2 library add-on for testing generators}
72
72
  s.test_files = [
73
+ "spec/generator_spec/fixtures/generators/controller/controller_generator.rb",
74
+ "spec/generator_spec/fixtures/generators/helper/helper_generator.rb",
75
+ "spec/generator_spec/fixtures/generators/migration/migration_generator.rb",
76
+ "spec/generator_spec/fixtures/generators/model/model_generator.rb",
77
+ "spec/generator_spec/fixtures/generators/observer/observer_generator.rb",
78
+ "spec/generator_spec/fixtures/generators/view/view_generator.rb",
73
79
  "spec/generator_spec/generators/controller_gen_spec.rb",
74
80
  "spec/generator_spec/generators/helper_gen_spec.rb",
75
81
  "spec/generator_spec/generators/migration_gen_spec.rb",
@@ -22,7 +22,7 @@ alias :require_generator :require_generators
22
22
  module RSpec::Generator
23
23
  module Require
24
24
  class << self
25
- attr_accessor :lib
25
+ attr_accessor :lib, :root_dir
26
26
 
27
27
  def debug?
28
28
  RSpec::Generator.debug?
@@ -60,7 +60,9 @@ module RSpec::Generator
60
60
  end
61
61
 
62
62
  def require_file_name name, name_space=nil
63
- File.join('generators', name.to_s, "#{name_space}", "#{name_space || name}_generator")
63
+ root = root_dir || ''
64
+ file = File.join('generators', name.to_s, "#{name_space}", "#{name_space || name}_generator")
65
+ File.join(root, file)
64
66
  end
65
67
  end
66
68
  end
@@ -1,4 +1,7 @@
1
- require 'spec_helper'
1
+ require 'spec_helper'
2
+
3
+ RSpec::Generator::Require.root_dir = 'generator_spec/fixtures'
4
+
2
5
  require_generator :controller
3
6
 
4
7
  describe 'helper_generator' do
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 0
9
- version: 0.7.0
8
+ - 1
9
+ version: 0.7.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kristian Mandrup
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-28 00:00:00 +01:00
17
+ date: 2010-12-17 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -214,14 +214,14 @@ files:
214
214
  - lib/generator-spec/rspec/matchers/generate_artifact_file.rb
215
215
  - lib/generator-spec/rspec/matchers/generate_artifact_files.rb
216
216
  - lib/generator-spec/rspec/matchers/generate_artifacts.rb
217
- - lib/generators/controller/controller_generator.rb
218
- - lib/generators/helper/helper_generator.rb
219
- - lib/generators/migration/migration_generator.rb
220
- - lib/generators/migration/templates/create_users.erb
221
- - lib/generators/model/model_generator.rb
222
- - lib/generators/observer/observer_generator.rb
223
- - lib/generators/view/view_generator.rb
224
217
  - rails_generator.log
218
+ - spec/generator_spec/fixtures/generators/controller/controller_generator.rb
219
+ - spec/generator_spec/fixtures/generators/helper/helper_generator.rb
220
+ - spec/generator_spec/fixtures/generators/migration/migration_generator.rb
221
+ - spec/generator_spec/fixtures/generators/migration/templates/create_users.erb
222
+ - spec/generator_spec/fixtures/generators/model/model_generator.rb
223
+ - spec/generator_spec/fixtures/generators/observer/observer_generator.rb
224
+ - spec/generator_spec/fixtures/generators/view/view_generator.rb
225
225
  - spec/generator_spec/generators/controller_gen_spec.rb
226
226
  - spec/generator_spec/generators/helper_gen_spec.rb
227
227
  - spec/generator_spec/generators/migration_gen_spec.rb
@@ -272,6 +272,12 @@ signing_key:
272
272
  specification_version: 3
273
273
  summary: RSpec 2 library add-on for testing generators
274
274
  test_files:
275
+ - spec/generator_spec/fixtures/generators/controller/controller_generator.rb
276
+ - spec/generator_spec/fixtures/generators/helper/helper_generator.rb
277
+ - spec/generator_spec/fixtures/generators/migration/migration_generator.rb
278
+ - spec/generator_spec/fixtures/generators/model/model_generator.rb
279
+ - spec/generator_spec/fixtures/generators/observer/observer_generator.rb
280
+ - spec/generator_spec/fixtures/generators/view/view_generator.rb
275
281
  - spec/generator_spec/generators/controller_gen_spec.rb
276
282
  - spec/generator_spec/generators/helper_gen_spec.rb
277
283
  - spec/generator_spec/generators/migration_gen_spec.rb