blueprints 0.9.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. data/.gitignore +1 -0
  2. data/Gemfile +14 -1
  3. data/README.rdoc +3 -173
  4. data/Rakefile +32 -15
  5. data/blueprints.gemspec +2 -16
  6. data/lib/blueprints.rb +17 -10
  7. data/lib/blueprints/blueprint.rb +85 -41
  8. data/lib/blueprints/blueprint_name_proxy.rb +34 -0
  9. data/lib/blueprints/buildable.rb +53 -26
  10. data/lib/blueprints/context.rb +8 -0
  11. data/lib/blueprints/extensions.rb +22 -4
  12. data/lib/blueprints/extensions/rspec.rb +28 -14
  13. data/lib/blueprints/helper.rb +17 -9
  14. data/lib/blueprints/namespace.rb +20 -14
  15. data/lib/blueprints/railtie.rb +3 -0
  16. data/lib/blueprints/root_namespace.rb +16 -23
  17. data/lib/blueprints/version.rb +1 -1
  18. data/lib/generators/blueprints/model/model_generator.rb +29 -0
  19. data/spec/blueprints_spec.rb +18 -1
  20. data/spec/support/active_record/initializer.rb +9 -5
  21. data/spec/support/none/initializer.rb +4 -0
  22. data/spec/unit/active_record_spec.rb +58 -4
  23. data/spec/unit/blueprint_name_proxy_spec.rb +31 -0
  24. data/spec/unit/blueprint_spec.rb +160 -22
  25. data/spec/unit/blueprints_spec.rb +4 -4
  26. data/spec/unit/context_spec.rb +8 -1
  27. data/spec/unit/dependency_spec.rb +1 -5
  28. data/spec/unit/fixtures.rb +69 -47
  29. data/spec/unit/namespace_spec.rb +23 -5
  30. data/spec/unit/root_namespace_spec.rb +9 -0
  31. data/spec/unit/spec_helper.rb +3 -4
  32. data/test/blueprints_test.rb +18 -1
  33. data/test/test_helper.rb +1 -0
  34. data/test_all.sh +6 -33
  35. metadata +43 -276
  36. data/Gemfile.lock +0 -108
  37. data/lib/blueprints/database_cleaner_fix.rb +0 -9
  38. data/lib/blueprints/eval_context.rb +0 -51
  39. data/spec/unit/eval_context_spec.rb +0 -56
@@ -46,6 +46,7 @@ describe Blueprints::Context do
46
46
  Blueprints::Context.current.dependencies.should == [:within_dep]
47
47
  end
48
48
  Blueprints::Context.current.should == context
49
+ Blueprints::Context.send(:class_variable_get, :@@chain).pop
49
50
  end
50
51
  end
51
52
 
@@ -84,7 +85,7 @@ describe Blueprints::Context do
84
85
  bp = nil
85
86
  namespace = subject.namespace(:namespace) { bp = self.blueprint :blueprint }
86
87
  bp.namespace.should == namespace
87
- namespace.children.should == {:blueprint => bp}
88
+ namespace.children.should == [bp]
88
89
  end
89
90
 
90
91
  it "should allow creating blueprint with inferred name" do
@@ -96,5 +97,11 @@ describe Blueprints::Context do
96
97
  dep = context.d(:bp, :option => 'val')
97
98
  dep.should be_instance_of(Blueprints::Dependency)
98
99
  end
100
+
101
+ it "should allow finding blueprint you define" do
102
+ blueprint = subject.blueprint :blueprint
103
+ subject.find(:blueprint).should == blueprint
104
+ subject[:blueprint].should == blueprint
105
+ end
99
106
  end
100
107
  end
@@ -6,12 +6,8 @@ describe Blueprints::Dependency do
6
6
  options_blueprint
7
7
  end
8
8
 
9
- let :stage do
10
- Blueprints::Namespace.root.eval_context
11
- end
12
-
13
9
  def value(dep)
14
- stage.instance_eval(context, {}, &dep)
10
+ stage.instance_eval(&dep)
15
11
  end
16
12
 
17
13
  it "should allow getting instance variable value" do
@@ -1,61 +1,83 @@
1
- def file
2
- __FILE__
3
- end
1
+ require 'mocha'
2
+ module Fixtures
3
+ include Mocha::API
4
4
 
5
- def mock1
6
- @mock ||= Mocha::Mockery.instance.unnamed_mock
7
- end
5
+ def file
6
+ __FILE__
7
+ end
8
8
 
9
- def mock2
10
- @mock2 ||= Mocha::Mockery.instance.unnamed_mock
11
- end
9
+ def mock1
10
+ @mock ||= mock('mock1')
11
+ end
12
12
 
13
- def stage
14
- @stage ||= Blueprints::EvalContext.new
15
- end
13
+ def mock2
14
+ @mock2 ||= mock('mock2')
15
+ end
16
16
 
17
- def context
18
- @context ||= Blueprints::Context.new(:file => file, :namespace => Blueprints::Namespace.root)
19
- end
17
+ def mock_default
18
+ @mock2 ||= mock('default')
19
+ end
20
20
 
21
- def context2
22
- @context2 ||= Blueprints::Context.new(:parent => context, :namespace => namespace)
23
- end
21
+ def stage
22
+ @stage ||= Object.new.tap { |o| o.extend Blueprints::Helper }
23
+ end
24
24
 
25
- def context_with_attrs_and_deps
26
- @context_with_attrs_and_deps ||= Blueprints::Context.new(:attributes => {:attr1 => 1, :attr2 => 2}, :dependencies => [:dep1, :dep2], :file => file, :namespace => namespace)
27
- end
25
+ def context
26
+ @context ||= Blueprints::Context.new(:file => file, :namespace => Blueprints::Namespace.root)
27
+ end
28
28
 
29
- def blueprint(&block)
30
- result = mock1
31
- block ||= proc { result }
32
- @blueprint ||= context.blueprint(:blueprint, &block)
33
- end
29
+ def context2
30
+ @context2 ||= Blueprints::Context.new(:parent => context, :namespace => namespace)
31
+ end
34
32
 
35
- def blueprint2(&block)
36
- result = mock1
37
- block ||= proc { result }
38
- @blueprint2 ||= context.blueprint(:blueprint2, &block)
39
- end
33
+ def context_with_attrs_and_deps
34
+ @context_with_attrs_and_deps ||= Blueprints::Context.new(:attributes => {:attr1 => 1, :attr2 => 2}, :dependencies => [:dep1, :dep2], :file => file, :namespace => namespace)
35
+ end
40
36
 
41
- def options_blueprint
42
- result, value = mock1, mock2
43
- @options_blueprint ||= Blueprints::Blueprint.new(:options_blueprint, context) do
44
- @value = value
45
- options.present? ? options : result
37
+ def blueprint(&block)
38
+ result = mock1
39
+ block ||= proc { result }
40
+ @blueprint ||= context.blueprint(:blueprint, &block)
46
41
  end
47
- end
48
42
 
49
- def namespace
50
- @namespace ||= context.namespace(:namespace)
51
- end
43
+ def blueprint2(&block)
44
+ result = mock1
45
+ block ||= proc { result }
46
+ @blueprint2 ||= context.blueprint(:blueprint2, &block)
47
+ end
52
48
 
53
- def namespace_blueprint
54
- result = mock1
55
- @namespace_blueprint ||= context2.blueprint(:blueprint) { result }
56
- end
49
+ def blueprint3(&block)
50
+ @blueprint3 ||= context.blueprint(:blueprint3, &block)
51
+ end
52
+
53
+ def options_blueprint
54
+ result, value = mock1, mock2
55
+ @options_blueprint ||= Blueprints::Blueprint.new(:options_blueprint, context) do
56
+ @value = value
57
+ options.present? ? options : result
58
+ end
59
+ end
60
+
61
+ def namespace
62
+ @namespace ||= context.namespace(:namespace)
63
+ end
64
+
65
+ def namespace_default_blueprint
66
+ result = mock_default
67
+ @namespace_default_blueprint ||= context2.blueprint(:default) { result }
68
+ end
69
+
70
+ def namespace_blueprint
71
+ result = mock1
72
+ @namespace_blueprint ||= context2.blueprint(:blueprint) { result }
73
+ end
74
+
75
+ def namespace_blueprint2
76
+ result = mock2
77
+ @namespace_blueprint2 ||= context2.blueprint(:blueprint2) { result }
78
+ end
57
79
 
58
- def namespace_blueprint2
59
- result = mock2
60
- @namespace_blueprint2 ||= context2.blueprint(:blueprint2) { result }
80
+ def namespace_regexp_blueprint(name = /^regexp_(.*)/)
81
+ @namespace_regexp_blueprint ||= context2.blueprint(name) { options }
82
+ end
61
83
  end
@@ -9,10 +9,16 @@ describe Blueprints::Namespace do
9
9
 
10
10
  it "should warn when adding children overwrites existing one" do
11
11
  namespace_blueprint
12
- Blueprints.expects(:warn).with("Overwriting existing blueprint", blueprint)
12
+ $stderr.expects(:puts).with("**WARNING** Overwriting existing blueprint: 'blueprint'")
13
+ $stderr.expects(:puts).with(regexp_matches(/namespace_spec\.rb:14/))
13
14
  namespace.add_child(blueprint)
14
15
  end
15
16
 
17
+ it "should return children" do
18
+ namespace_blueprint
19
+ namespace.children.should == [namespace_blueprint]
20
+ end
21
+
16
22
  it "should allow recursive finding of children" do
17
23
  namespace_blueprint
18
24
  Blueprints::Namespace.root['namespace.blueprint'].should == namespace_blueprint
@@ -24,6 +30,12 @@ describe Blueprints::Namespace do
24
30
  Blueprints::Namespace.root['namespace.blueprint2']
25
31
  }.to raise_error(Blueprints::BlueprintNotFoundError)
26
32
  end
33
+
34
+ it "should find children with regexp names" do
35
+ namespace_regexp_blueprint
36
+ namespace['regexp_bp'].instance_variable_get(:@buildable).should == namespace_regexp_blueprint
37
+ namespace.instance_variable_get(:@children).should have_key(:regexp_bp)
38
+ end
27
39
  end
28
40
 
29
41
  describe "children context" do
@@ -50,10 +62,16 @@ describe Blueprints::Namespace do
50
62
  result.should =~ [mock1, mock2]
51
63
  end
52
64
 
53
- it "should pass build once and eval context params" do
54
- namespace_blueprint.expects(:build).with(instance_of(Blueprints::EvalContext), false, :option => 'value')
55
- namespace_blueprint2.expects(:build).with(instance_of(Blueprints::EvalContext), false, :option => 'value')
56
- namespace.build(stage, false, :option => 'value')
65
+ it "should pass options and eval context params" do
66
+ namespace_blueprint.expects(:build).with(stage, :option => 'value')
67
+ namespace_blueprint2.expects(:build).with(stage, :option => 'value')
68
+ namespace.build(stage, :option => 'value')
69
+ end
70
+
71
+ it "should build default blueprint if one exists" do
72
+ namespace_default_blueprint.expects(:build)
73
+ namespace_blueprint.expects(:build).never
74
+ namespace.build(stage)
57
75
  end
58
76
  end
59
77
 
@@ -0,0 +1,9 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe Blueprints::RootNamespace do
4
+ it "should allow building blueprints with regexp name" do
5
+ namespace_regexp_blueprint
6
+ Blueprints::Namespace.root.build(['namespace.regexp_blueprint'], stage)
7
+ stage.instance_variable_get(:@namespace_regexp_blueprint).should == {:arg0 => "blueprint"}
8
+ end
9
+ end
@@ -2,15 +2,14 @@ Root = Pathname.new(__FILE__).dirname.join('..', '..')
2
2
  $: << Root.join('lib').to_s
3
3
 
4
4
  require 'rspec'
5
+ require 'active_record'
6
+ require File.dirname(__FILE__) + '/../support/active_record/initializer'
5
7
  require 'blueprints'
6
8
  require File.dirname(__FILE__) + '/fixtures'
7
9
 
8
10
  RSpec.configure do |config|
9
11
  config.mock_with :mocha
10
-
11
- config.before do
12
- Blueprints::Namespace.root.eval_context = Blueprints::EvalContext.new
13
- end
12
+ config.include Fixtures
14
13
 
15
14
  config.after do
16
15
  Blueprints::Namespace.root.instance_variable_get(:@children).clear
@@ -1,4 +1,8 @@
1
- require File.dirname(__FILE__) + '/test_helper'
1
+ if RUBY_VERSION.start_with?('1.9')
2
+ require_relative 'test_helper'
3
+ else
4
+ require File.dirname(__FILE__) + '/test_helper'
5
+ end
2
6
 
3
7
  class BlueprintsTest < ActiveSupport::TestCase
4
8
  should "return result of built scenario when calling build" do
@@ -70,6 +74,7 @@ class BlueprintsTest < ActiveSupport::TestCase
70
74
  context "build per describe" do
71
75
  unless File.dirname(__FILE__) =~ /test$/
72
76
  build_blueprint :apple
77
+ build :acorn => {:tree => d(:pine)}
73
78
 
74
79
  should "have cherry" do
75
80
  assert(!(@apple.nil?))
@@ -78,6 +83,10 @@ class BlueprintsTest < ActiveSupport::TestCase
78
83
  should "have correct cherry species" do
79
84
  assert(@apple.species == 'apple')
80
85
  end
86
+
87
+ should "set tree to pine" do
88
+ assert(@acorn.tree == @pine)
89
+ end
81
90
  end
82
91
  end
83
92
 
@@ -371,4 +380,12 @@ class BlueprintsTest < ActiveSupport::TestCase
371
380
  should "allow inferring blueprint name" do
372
381
  assert(build(:infered).name == 'infered')
373
382
  end
383
+
384
+ should "allow building with :new strategy" do
385
+ build_with(:new, :oak)
386
+ assert(@oak.instance_of?(Tree))
387
+ assert(@oak.new_record?)
388
+ assert(@oak.name == 'Oak')
389
+ assert(@oak.size == 'large')
390
+ end
374
391
  end
data/test/test_helper.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'rubygems'
2
+ require 'pathname'
2
3
  require 'logger'
3
4
  require 'active_record'
4
5
  require 'test/unit'
data/test_all.sh CHANGED
@@ -8,38 +8,11 @@ function e {
8
8
 
9
9
  [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
10
10
 
11
- e "Normal spec"
12
- rspec -c spec/blueprints_spec.rb
13
- rspec -c spec/unit/*_spec.rb
11
+ e "Ruby 1.8.7"
12
+ rvm 1.8.7 rake
14
13
 
15
- e "With no db"
16
- ORM=none rspec -c spec/blueprints_spec.rb
14
+ e "Ruby 1.9.2"
15
+ rvm 1.9.2 rake
17
16
 
18
- e "With mongoid"
19
- ORM=mongoid rspec -c spec/blueprints_spec.rb
20
-
21
- e "With mongo_mapper"
22
- ORM=mongo_mapper rspec -c spec/blueprints_spec.rb
23
-
24
- e "With Test::Unit"
25
- rake rspec_to_test
26
- ruby test/blueprints_test.rb
27
-
28
- e "With Cucumber"
29
- cucumber features/blueprints.feature -f progress
30
-
31
- e "With Rails 2 and RSpec 1.3.0"
32
- rvm 1.8.7@rails2
33
- ORM="active_record.2.3.0" spec "_1.3.1_" -c spec/blueprints_spec.rb
34
-
35
- e "With ruby 1.9.2"
36
- rvm 1.9.2
37
- rspec -c spec/blueprints_spec.rb
38
- rspec -c spec/unit/*_spec.rb
39
-
40
- e "With rubinius"
41
- rvm rbx
42
- rspec -c spec/blueprints_spec.rb
43
- rspec -c spec/unit/*_spec.rb
44
-
45
- rvm system
17
+ e "Rubinius"
18
+ rvm rbx rake
metadata CHANGED
@@ -1,275 +1,50 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: blueprints
3
- version: !ruby/object:Gem::Version
4
- hash: 59
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 9
9
- - 0
10
- version: 0.9.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Andrius Chamentauskas
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-01-14 00:00:00 +02:00
19
- default_executable: blueprintify
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2011-11-07 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: activesupport
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &19036960 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 2
32
- - 3
33
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
34
21
  version: 2.3.0
35
22
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: database_cleaner
39
23
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *19036960
25
+ - !ruby/object:Gem::Dependency
26
+ name: database_cleaner
27
+ requirement: &19034320 !ruby/object:Gem::Requirement
41
28
  none: false
42
- requirements:
29
+ requirements:
43
30
  - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 11
46
- segments:
47
- - 0
48
- - 5
49
- - 0
50
- version: 0.5.0
31
+ - !ruby/object:Gem::Version
32
+ version: 0.6.1
51
33
  type: :runtime
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: rspec
55
- prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- hash: 7
62
- segments:
63
- - 2
64
- - 2
65
- - 0
66
- version: 2.2.0
67
- type: :development
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: mysql2
71
- prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- hash: 3
78
- segments:
79
- - 0
80
- version: "0"
81
- type: :development
82
- version_requirements: *id004
83
- - !ruby/object:Gem::Dependency
84
- name: activerecord
85
- prerelease: false
86
- requirement: &id005 !ruby/object:Gem::Requirement
87
- none: false
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- hash: 3
92
- segments:
93
- - 2
94
- - 3
95
- - 0
96
- version: 2.3.0
97
- type: :development
98
- version_requirements: *id005
99
- - !ruby/object:Gem::Dependency
100
- name: bson_ext
101
- prerelease: false
102
- requirement: &id006 !ruby/object:Gem::Requirement
103
- none: false
104
- requirements:
105
- - - ">="
106
- - !ruby/object:Gem::Version
107
- hash: 27
108
- segments:
109
- - 1
110
- - 1
111
- - 4
112
- version: 1.1.4
113
- type: :development
114
- version_requirements: *id006
115
- - !ruby/object:Gem::Dependency
116
- name: mongoid
117
- prerelease: false
118
- requirement: &id007 !ruby/object:Gem::Requirement
119
- none: false
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- hash: 31098209
124
- segments:
125
- - 2
126
- - 0
127
- - 0
128
- - beta
129
- version: 2.0.0.beta
130
- type: :development
131
- version_requirements: *id007
132
- - !ruby/object:Gem::Dependency
133
- name: mongo_mapper
134
34
  prerelease: false
135
- requirement: &id008 !ruby/object:Gem::Requirement
136
- none: false
137
- requirements:
138
- - - ">="
139
- - !ruby/object:Gem::Version
140
- hash: 63
141
- segments:
142
- - 0
143
- - 8
144
- - 0
145
- version: 0.8.0
146
- type: :development
147
- version_requirements: *id008
148
- - !ruby/object:Gem::Dependency
149
- name: dm-migrations
150
- prerelease: false
151
- requirement: &id009 !ruby/object:Gem::Requirement
152
- none: false
153
- requirements:
154
- - - ">="
155
- - !ruby/object:Gem::Version
156
- hash: 23
157
- segments:
158
- - 1
159
- - 0
160
- - 0
161
- version: 1.0.0
162
- type: :development
163
- version_requirements: *id009
164
- - !ruby/object:Gem::Dependency
165
- name: dm-transactions
166
- prerelease: false
167
- requirement: &id010 !ruby/object:Gem::Requirement
168
- none: false
169
- requirements:
170
- - - ">="
171
- - !ruby/object:Gem::Version
172
- hash: 23
173
- segments:
174
- - 1
175
- - 0
176
- - 0
177
- version: 1.0.0
178
- type: :development
179
- version_requirements: *id010
180
- - !ruby/object:Gem::Dependency
181
- name: dm-mysql-adapter
182
- prerelease: false
183
- requirement: &id011 !ruby/object:Gem::Requirement
184
- none: false
185
- requirements:
186
- - - ">="
187
- - !ruby/object:Gem::Version
188
- hash: 23
189
- segments:
190
- - 1
191
- - 0
192
- - 0
193
- version: 1.0.0
194
- type: :development
195
- version_requirements: *id011
196
- - !ruby/object:Gem::Dependency
197
- name: mocha
198
- prerelease: false
199
- requirement: &id012 !ruby/object:Gem::Requirement
200
- none: false
201
- requirements:
202
- - - ">="
203
- - !ruby/object:Gem::Version
204
- hash: 43
205
- segments:
206
- - 0
207
- - 9
208
- - 8
209
- version: 0.9.8
210
- type: :development
211
- version_requirements: *id012
212
- - !ruby/object:Gem::Dependency
213
- name: shoulda
214
- prerelease: false
215
- requirement: &id013 !ruby/object:Gem::Requirement
216
- none: false
217
- requirements:
218
- - - ">="
219
- - !ruby/object:Gem::Version
220
- hash: 39
221
- segments:
222
- - 2
223
- - 10
224
- - 0
225
- version: 2.10.0
226
- type: :development
227
- version_requirements: *id013
228
- - !ruby/object:Gem::Dependency
229
- name: cucumber
230
- prerelease: false
231
- requirement: &id014 !ruby/object:Gem::Requirement
232
- none: false
233
- requirements:
234
- - - ">="
235
- - !ruby/object:Gem::Version
236
- hash: 3
237
- segments:
238
- - 0
239
- - 7
240
- - 0
241
- version: 0.7.0
242
- type: :development
243
- version_requirements: *id014
244
- - !ruby/object:Gem::Dependency
245
- name: bundler
246
- prerelease: false
247
- requirement: &id015 !ruby/object:Gem::Requirement
248
- none: false
249
- requirements:
250
- - - ">="
251
- - !ruby/object:Gem::Version
252
- hash: 23
253
- segments:
254
- - 1
255
- - 0
256
- - 0
257
- version: 1.0.0
258
- type: :development
259
- version_requirements: *id015
260
- description: Awesome replacement for factories and fixtures that focuses on being DRY and making developers type as little as possible.
35
+ version_requirements: *19034320
36
+ description: Awesome replacement for factories and fixtures that focuses on being
37
+ DRY and making developers type as little as possible.
261
38
  email: sinsiliux@gmail.com
262
- executables:
39
+ executables:
263
40
  - blueprintify
264
41
  extensions: []
265
-
266
- extra_rdoc_files:
42
+ extra_rdoc_files:
267
43
  - LICENSE
268
44
  - README.rdoc
269
- files:
45
+ files:
270
46
  - .gitignore
271
47
  - Gemfile
272
- - Gemfile.lock
273
48
  - LICENSE
274
49
  - README.rdoc
275
50
  - Rakefile
@@ -282,23 +57,24 @@ files:
282
57
  - install.rb
283
58
  - lib/blueprints.rb
284
59
  - lib/blueprints/blueprint.rb
60
+ - lib/blueprints/blueprint_name_proxy.rb
285
61
  - lib/blueprints/buildable.rb
286
62
  - lib/blueprints/configuration.rb
287
63
  - lib/blueprints/context.rb
288
64
  - lib/blueprints/convertable.rb
289
65
  - lib/blueprints/convertable/fixtures.rb
290
- - lib/blueprints/database_cleaner_fix.rb
291
66
  - lib/blueprints/dependency.rb
292
67
  - lib/blueprints/errors.rb
293
- - lib/blueprints/eval_context.rb
294
68
  - lib/blueprints/extensions.rb
295
69
  - lib/blueprints/extensions/cucumber.rb
296
70
  - lib/blueprints/extensions/rspec.rb
297
71
  - lib/blueprints/extensions/test_unit.rb
298
72
  - lib/blueprints/helper.rb
299
73
  - lib/blueprints/namespace.rb
74
+ - lib/blueprints/railtie.rb
300
75
  - lib/blueprints/root_namespace.rb
301
76
  - lib/blueprints/version.rb
77
+ - lib/generators/blueprints/model/model_generator.rb
302
78
  - spec/blueprint.rb
303
79
  - spec/blueprints_spec.rb
304
80
  - spec/spec_helper.rb
@@ -312,55 +88,46 @@ files:
312
88
  - spec/support/mongoid/initializer.rb
313
89
  - spec/support/none/initializer.rb
314
90
  - spec/unit/active_record_spec.rb
91
+ - spec/unit/blueprint_name_proxy_spec.rb
315
92
  - spec/unit/blueprint_spec.rb
316
93
  - spec/unit/blueprints_spec.rb
317
94
  - spec/unit/buildable_spec.rb
318
95
  - spec/unit/configuration_spec.rb
319
96
  - spec/unit/context_spec.rb
320
97
  - spec/unit/dependency_spec.rb
321
- - spec/unit/eval_context_spec.rb
322
98
  - spec/unit/fixtures.rb
323
99
  - spec/unit/namespace_spec.rb
100
+ - spec/unit/root_namespace_spec.rb
324
101
  - spec/unit/spec_helper.rb
325
102
  - test/blueprints_test.rb
326
103
  - test/test_helper.rb
327
104
  - test_all.sh
328
105
  - uninstall.rb
329
- has_rdoc: true
330
106
  homepage: http://sinsiliux.github.com/blueprints
331
107
  licenses: []
332
-
333
108
  post_install_message:
334
109
  rdoc_options: []
335
-
336
- require_paths:
110
+ require_paths:
337
111
  - lib
338
- required_ruby_version: !ruby/object:Gem::Requirement
112
+ required_ruby_version: !ruby/object:Gem::Requirement
339
113
  none: false
340
- requirements:
341
- - - ">="
342
- - !ruby/object:Gem::Version
343
- hash: 3
344
- segments:
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ segments:
345
119
  - 0
346
- version: "0"
347
- required_rubygems_version: !ruby/object:Gem::Requirement
120
+ hash: 1254164282344174203
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
348
122
  none: false
349
- requirements:
350
- - - ">="
351
- - !ruby/object:Gem::Version
352
- hash: 23
353
- segments:
354
- - 1
355
- - 3
356
- - 6
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
357
126
  version: 1.3.6
358
127
  requirements: []
359
-
360
128
  rubyforge_project: blueprints
361
- rubygems_version: 1.3.7
129
+ rubygems_version: 1.8.6
362
130
  signing_key:
363
131
  specification_version: 3
364
132
  summary: Awesome replacement for factories and fixtures
365
133
  test_files: []
366
-