blueprints 0.8.2 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -1
- data/Gemfile +2 -0
- data/Gemfile.lock +82 -18
- data/LICENSE +1 -1
- data/README.rdoc +38 -8
- data/Rakefile +11 -35
- data/blueprints.gemspec +29 -123
- data/features/support/env.rb +7 -10
- data/lib/blueprints.rb +68 -12
- data/lib/blueprints/blueprint.rb +39 -19
- data/lib/blueprints/buildable.rb +92 -74
- data/lib/blueprints/configuration.rb +18 -4
- data/lib/blueprints/context.rb +148 -5
- data/lib/blueprints/database_cleaner_fix.rb +9 -0
- data/lib/blueprints/dependency.rb +32 -21
- data/lib/blueprints/eval_context.rb +51 -0
- data/lib/blueprints/extensions.rb +115 -0
- data/lib/blueprints/extensions/rspec.rb +3 -1
- data/lib/blueprints/helper.rb +52 -20
- data/lib/blueprints/namespace.rb +31 -12
- data/lib/blueprints/root_namespace.rb +24 -25
- data/lib/blueprints/version.rb +3 -0
- data/spec/{active_record/blueprint.rb → blueprint.rb} +14 -17
- data/spec/{active_record/blueprints_spec.rb → blueprints_spec.rb} +40 -59
- data/spec/spec_helper.rb +34 -0
- data/spec/support/active_record/database.yml.example +7 -0
- data/spec/support/active_record/initializer.rb +15 -0
- data/spec/{active_record/fixtures → support/active_record}/schema.rb +0 -0
- data/spec/support/dm-core/initializer.rb +31 -0
- data/spec/support/mongo_mapper/database.yml.example +2 -0
- data/spec/support/mongo_mapper/initializer.rb +20 -0
- data/spec/support/mongoid/database.yml.example +2 -0
- data/spec/support/mongoid/initializer.rb +23 -0
- data/spec/support/none/initializer.rb +63 -0
- data/spec/unit/active_record_spec.rb +1 -6
- data/spec/unit/blueprint_spec.rb +91 -20
- data/spec/unit/blueprints_spec.rb +44 -0
- data/spec/unit/buildable_spec.rb +37 -6
- data/spec/unit/configuration_spec.rb +11 -0
- data/spec/unit/context_spec.rb +100 -0
- data/spec/unit/dependency_spec.rb +24 -19
- data/spec/unit/eval_context_spec.rb +56 -0
- data/spec/unit/fixtures.rb +61 -0
- data/spec/unit/namespace_spec.rb +59 -11
- data/spec/unit/spec_helper.rb +8 -16
- data/test/blueprints_test.rb +40 -59
- data/test/test_helper.rb +6 -16
- data/test_all.sh +45 -0
- metadata +178 -61
- data/VERSION +0 -1
- data/lib/blueprints/core_ext.rb +0 -69
- data/lib/blueprints/file_context.rb +0 -37
- data/spec/active_record/fixtures/database.yml.example +0 -8
- data/spec/active_record/fixtures/fruit.rb +0 -3
- data/spec/active_record/fixtures/tree.rb +0 -4
- data/spec/active_record/spec_helper.rb +0 -37
- data/spec/no_db/blueprint.rb +0 -9
- data/spec/no_db/blueprints_spec.rb +0 -45
- data/spec/no_db/fixtures/fruit.rb +0 -15
- data/spec/no_db/spec_helper.rb +0 -14
- data/spec/test_all.sh +0 -39
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,34 +1,90 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
blueprints (0.8.
|
4
|
+
blueprints (0.8.2)
|
5
5
|
activesupport (>= 2.3.0)
|
6
6
|
database_cleaner (~> 0.5.0)
|
7
7
|
|
8
8
|
GEM
|
9
|
+
remote: http://rubygems.org/
|
9
10
|
specs:
|
10
|
-
|
11
|
-
activesupport (=
|
12
|
-
|
11
|
+
activemodel (3.0.3)
|
12
|
+
activesupport (= 3.0.3)
|
13
|
+
builder (~> 2.1.2)
|
14
|
+
i18n (~> 0.4)
|
15
|
+
activerecord (3.0.3)
|
16
|
+
activemodel (= 3.0.3)
|
17
|
+
activesupport (= 3.0.3)
|
18
|
+
arel (~> 2.0.2)
|
19
|
+
tzinfo (~> 0.3.23)
|
20
|
+
activesupport (3.0.3)
|
21
|
+
addressable (2.2.2)
|
22
|
+
arel (2.0.6)
|
23
|
+
bson (1.1.4)
|
24
|
+
bson_ext (1.1.4)
|
13
25
|
builder (2.1.2)
|
14
|
-
cucumber (0.
|
15
|
-
builder (
|
16
|
-
diff-lcs (
|
17
|
-
gherkin (
|
18
|
-
|
19
|
-
term-ansicolor (
|
26
|
+
cucumber (0.9.4)
|
27
|
+
builder (~> 2.1.2)
|
28
|
+
diff-lcs (~> 1.1.2)
|
29
|
+
gherkin (~> 2.2.9)
|
30
|
+
json (~> 1.4.6)
|
31
|
+
term-ansicolor (~> 1.0.5)
|
32
|
+
data_objects (0.10.2)
|
33
|
+
addressable (~> 2.1)
|
20
34
|
database_cleaner (0.5.2)
|
21
35
|
diff-lcs (1.1.2)
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
36
|
+
dm-core (1.0.2)
|
37
|
+
addressable (~> 2.2)
|
38
|
+
extlib (~> 0.9.15)
|
39
|
+
dm-do-adapter (1.0.2)
|
40
|
+
data_objects (~> 0.10.2)
|
41
|
+
dm-core (~> 1.0.2)
|
42
|
+
dm-migrations (1.0.2)
|
43
|
+
dm-core (~> 1.0.2)
|
44
|
+
dm-mysql-adapter (1.0.2)
|
45
|
+
dm-do-adapter (~> 1.0.2)
|
46
|
+
do_mysql (~> 0.10.2)
|
47
|
+
dm-transactions (1.0.2)
|
48
|
+
dm-core (~> 1.0.2)
|
49
|
+
do_mysql (0.10.2)
|
50
|
+
data_objects (= 0.10.2)
|
51
|
+
extlib (0.9.15)
|
52
|
+
gherkin (2.2.9)
|
53
|
+
json (~> 1.4.6)
|
54
|
+
term-ansicolor (~> 1.0.5)
|
55
|
+
i18n (0.5.0)
|
56
|
+
jnunemaker-validatable (1.8.4)
|
57
|
+
activesupport (>= 2.3.4)
|
58
|
+
json (1.4.6)
|
59
|
+
mocha (0.9.10)
|
26
60
|
rake
|
61
|
+
mongo (1.1.4)
|
62
|
+
bson (>= 1.1.1)
|
63
|
+
mongo_mapper (0.8.6)
|
64
|
+
activesupport (>= 2.3.4)
|
65
|
+
jnunemaker-validatable (~> 1.8.4)
|
66
|
+
plucky (~> 0.3.6)
|
67
|
+
mongoid (2.0.0.beta.20)
|
68
|
+
activemodel (~> 3.0)
|
69
|
+
mongo (~> 1.1)
|
70
|
+
tzinfo (~> 0.3.22)
|
71
|
+
will_paginate (~> 3.0.pre)
|
72
|
+
mysql2 (0.2.6)
|
73
|
+
plucky (0.3.6)
|
74
|
+
mongo (~> 1.1)
|
27
75
|
rake (0.8.7)
|
28
|
-
rspec (
|
29
|
-
|
76
|
+
rspec (2.2.0)
|
77
|
+
rspec-core (~> 2.2)
|
78
|
+
rspec-expectations (~> 2.2)
|
79
|
+
rspec-mocks (~> 2.2)
|
80
|
+
rspec-core (2.2.1)
|
81
|
+
rspec-expectations (2.2.0)
|
82
|
+
diff-lcs (~> 1.1.2)
|
83
|
+
rspec-mocks (2.2.0)
|
84
|
+
shoulda (2.11.3)
|
30
85
|
term-ansicolor (1.0.5)
|
31
|
-
|
86
|
+
tzinfo (0.3.23)
|
87
|
+
will_paginate (3.0.pre2)
|
32
88
|
|
33
89
|
PLATFORMS
|
34
90
|
ruby
|
@@ -37,8 +93,16 @@ DEPENDENCIES
|
|
37
93
|
activerecord (>= 2.3.0)
|
38
94
|
activesupport (>= 2.3.0)
|
39
95
|
blueprints!
|
96
|
+
bson_ext (>= 1.1.4)
|
97
|
+
bundler (>= 1.0.0)
|
40
98
|
cucumber (>= 0.7.0)
|
41
99
|
database_cleaner (~> 0.5.0)
|
100
|
+
dm-migrations (>= 1.0.0)
|
101
|
+
dm-mysql-adapter (>= 1.0.0)
|
102
|
+
dm-transactions (>= 1.0.0)
|
42
103
|
mocha (>= 0.9.8)
|
43
|
-
|
104
|
+
mongo_mapper (>= 0.8.0)
|
105
|
+
mongoid (>= 2.0.0.beta)
|
106
|
+
mysql2
|
107
|
+
rspec (~> 2.2.0)
|
44
108
|
shoulda (>= 2.10.0)
|
data/LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -4,11 +4,11 @@ Awesome replacement for factories and fixtures that focuses on being DRY and mak
|
|
4
4
|
|
5
5
|
== Setup
|
6
6
|
|
7
|
-
The easiest way to install this gem for Ruby on Rails is just add this line to
|
7
|
+
The easiest way to install this gem for Ruby on Rails is just add this line to your Gemfile:
|
8
8
|
|
9
|
-
|
9
|
+
gem 'blueprints'
|
10
10
|
|
11
|
-
If you're not using
|
11
|
+
If you're not using bundler, then you can install it through command line
|
12
12
|
|
13
13
|
sudo gem install blueprints
|
14
14
|
|
@@ -24,7 +24,6 @@ These options can be set on blueprint configuration object:
|
|
24
24
|
* root - custom framework root if automatic detection fails for some reason (eg. not rails/merb project)
|
25
25
|
* filename - custom patterns of files that contain your blueprints (in case one of automatic ones doesn't fit your needs)
|
26
26
|
* prebuild - list of blueprints that should be preloaded (available in all tests, never reloaded so they're much faster)
|
27
|
-
* orm - allows to set ORM (currently can be :active_record or nil). Defaults to :active_record.
|
28
27
|
* transactions - set this to false if you don't want to use transactions. This will severely slow the tests but sometimes transactions can't be used.
|
29
28
|
|
30
29
|
Sample usage:
|
@@ -39,7 +38,7 @@ Sample usage:
|
|
39
38
|
Blueprints file is the file that contains all definitions of blueprints. This can either be single file or whole folder
|
40
39
|
if you have many blueprints.
|
41
40
|
|
42
|
-
By default blueprints are searched in these files in this particular order in application root (which is either
|
41
|
+
By default blueprints are searched in these files in this particular order in application root (which is either Rails.root if it's defined or current folder by default):
|
43
42
|
* blueprint.rb
|
44
43
|
* blueprint/*.rb
|
45
44
|
* spec/blueprint.rb
|
@@ -142,11 +141,42 @@ You can also read more about advanced usages in http://wiki.github.com/sinsiliux
|
|
142
141
|
Blueprints by default is transactional, meaning that before every test transaction is started and after every test that transaction is dropped
|
143
142
|
which resets database to the state before the test. This state is empty database + any scenarios that you specify in enable_blueprints.
|
144
143
|
|
144
|
+
Sometimes using transactions is not possible (eg. using MongoDB or in cucumber scenarios). In that case you can turn off transactions when
|
145
|
+
enabling Blueprints. Be aware though that disabling transactions on relational databases is quite a major performance loss.
|
146
|
+
|
147
|
+
== ORM support
|
148
|
+
|
149
|
+
Blueprints is not tied to any ORM, however it does use Database Cleaner gem which currently supports Active Record, Data Mapper, Mongo Mapper, Mongoid and Couch Potato.
|
150
|
+
|
151
|
+
=== Active Record
|
152
|
+
|
153
|
+
Blueprints support Active Record >= 2.3 (yes that includes 3.0). Lower versions are not supported due to lack of nested transactions,
|
154
|
+
however they should probably work without transactions. Class and instance 'blueprint' method is added to all models.
|
155
|
+
|
156
|
+
=== Mongoid
|
157
|
+
|
158
|
+
Blueprints was tested with Mongoid 2.0 only. It does support lower versions, but 'blueprint' method might not be available prior 2.0.
|
159
|
+
|
160
|
+
=== Mongo Mapper
|
161
|
+
|
162
|
+
Tested with Mongo Mapper 0.8.4, but should work with all prior versions too. Class and instance 'blueprint' method is added to all models.
|
163
|
+
|
164
|
+
=== Data Mapper
|
165
|
+
|
166
|
+
Is not fully supported (does not work with transactions). Maybe some Data Mapper guru can help me with that? Class and instance 'blueprint' method is added to all models.
|
167
|
+
|
168
|
+
=== Other ORMs and not ORMs
|
169
|
+
|
170
|
+
If you're using some other ORM (except Couch Potato) you will need to manually clean database before all tests. If you want to have blueprint method in your
|
171
|
+
models you should take a look at Blueprints::Extensions modules (I will gladly help adding support to other ORMs).
|
172
|
+
|
173
|
+
== Links
|
174
|
+
|
175
|
+
* Official google group: http://groups.google.com/group/ruby-blueprints
|
176
|
+
* Homepage: http://github.com/sinsiliux/blueprints
|
177
|
+
|
145
178
|
== TODO
|
146
179
|
|
147
|
-
* Add preloading blueprints for whole block of tests.
|
148
|
-
* Fix rake tasks
|
149
|
-
* Add merb support
|
150
180
|
* Add support for other test frameworks
|
151
181
|
|
152
182
|
== Credits
|
data/Rakefile
CHANGED
@@ -1,27 +1,6 @@
|
|
1
|
-
require
|
2
|
-
|
3
|
-
|
4
|
-
Jeweler::Tasks.new do |gemspec|
|
5
|
-
gemspec.name = "blueprints"
|
6
|
-
gemspec.summary = "Another replacement for factories and fixtures"
|
7
|
-
gemspec.description = "Another replacement for factories and fixtures. The library that lazy typists will love"
|
8
|
-
gemspec.email = "sinsiliux@gmail.com"
|
9
|
-
gemspec.homepage = "http://github.com/sinsiliux/blueprints"
|
10
|
-
gemspec.authors = ["Andrius Chamentauskas"]
|
11
|
-
gemspec.bindir = 'bin'
|
12
|
-
gemspec.executables = ['blueprintify']
|
13
|
-
gemspec.add_dependency 'activesupport', '>=2.3.0'
|
14
|
-
gemspec.add_dependency 'database_cleaner', '~>0.5.0'
|
15
|
-
gemspec.add_development_dependency 'rspec', '>=1.3.0'
|
16
|
-
gemspec.add_development_dependency 'activerecord', '>=2.3.0'
|
17
|
-
gemspec.add_development_dependency 'mocha', '>=0.9.8'
|
18
|
-
gemspec.add_development_dependency 'shoulda', '>=2.10.0'
|
19
|
-
gemspec.add_development_dependency 'cucumber', '>=0.7.0'
|
20
|
-
end
|
21
|
-
Jeweler::GemcutterTasks.new
|
22
|
-
rescue LoadError
|
23
|
-
puts "Jeweler not available. Install it with: sudo gem install jeweler"
|
24
|
-
end
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
Bundler::GemHelper.install_tasks
|
25
4
|
|
26
5
|
require 'rake/rdoctask'
|
27
6
|
Rake::RDocTask.new do |rd|
|
@@ -35,34 +14,31 @@ namespace :db do
|
|
35
14
|
require 'rubygems'
|
36
15
|
require 'active_record'
|
37
16
|
|
38
|
-
|
39
|
-
|
40
|
-
ActiveRecord::Base.logger = Logger.new("debug.log")
|
41
|
-
|
42
|
-
databases = YAML::load(IO.read("spec/active_record/fixtures/database.yml"))
|
43
|
-
db_info = databases[ENV["DB"] || "test"]
|
44
|
-
ActiveRecord::Base.establish_connection(db_info)
|
17
|
+
Root = Pathname.new(__FILE__).dirname
|
18
|
+
require Root.join("spec/support/active_record/initializer")
|
45
19
|
|
46
|
-
load("spec/active_record/
|
20
|
+
load("spec/support/active_record/schema.rb")
|
47
21
|
end
|
48
22
|
end
|
49
23
|
|
50
24
|
desc "Convert rspec specs to test/unit tests"
|
51
25
|
task :rspec_to_test do
|
52
26
|
Dir.chdir File.dirname(__FILE__)
|
53
|
-
data = IO.read('spec/
|
27
|
+
data = IO.read('spec/blueprints_spec.rb')
|
54
28
|
|
55
29
|
data.gsub!("require File.dirname(__FILE__) + '/spec_helper'", "require File.dirname(__FILE__) + '/test_helper'")
|
56
30
|
data.gsub!("describe Blueprints do", 'class BlueprintsTest < ActiveSupport::TestCase')
|
57
31
|
|
58
32
|
# lambda {
|
59
|
-
#
|
33
|
+
# demolish :just_orange
|
60
34
|
# }.should raise_error(ArgumentError)
|
61
35
|
data.gsub!(/(\s+)lambda \{\n(.*)\n(\s+)\}.should raise_error\((.*)\)/, "\\1assert_raise(\\4) do\n\\2\n\\3end")
|
62
36
|
# should =~ => assert_similar
|
63
37
|
data.gsub!(/^(\s+)(.*)\.should\s*=~\s*(.*)/, '\1assert_similar(\2, \3)')
|
64
|
-
# A.should_not include(B) =>
|
38
|
+
# A.should_not include(B) => assert(!A.include?(B))
|
65
39
|
data.gsub!(/^(\s+)(.*)\.should_not\s*include\((.*)\)/, '\1assert(!\2.include?(\3))')
|
40
|
+
# A.should include(B) => assert(A.include?(B))
|
41
|
+
data.gsub!(/^(\s+)(.*)\.should\s*include\((.*)\)/, '\1assert(\2.include?(\3))')
|
66
42
|
|
67
43
|
# .should_not => assert(!())
|
68
44
|
data.gsub!(/^(\s+)(.*)\.should_not(.*)/, '\1assert(!(\2\3))')
|
data/blueprints.gemspec
CHANGED
@@ -1,134 +1,40 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
require File.dirname(__FILE__) + '/lib/blueprints/version'
|
5
3
|
|
6
4
|
Gem::Specification.new do |s|
|
7
5
|
s.name = %q{blueprints}
|
8
|
-
s.version =
|
6
|
+
s.version = Blueprints::VERSION
|
7
|
+
s.platform = Gem::Platform::RUBY
|
8
|
+
|
9
|
+
s.required_rubygems_version = ">= 1.3.6"
|
10
|
+
s.rubyforge_project = "blueprints"
|
9
11
|
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
12
|
s.authors = ["Andrius Chamentauskas"]
|
12
|
-
s.date = %q{2010-09-23}
|
13
|
-
s.default_executable = %q{blueprintify}
|
14
|
-
s.description = %q{Another replacement for factories and fixtures. The library that lazy typists will love}
|
15
13
|
s.email = %q{sinsiliux@gmail.com}
|
16
|
-
s.
|
17
|
-
s.
|
18
|
-
|
19
|
-
|
20
|
-
]
|
21
|
-
s.files = [
|
22
|
-
".gitignore",
|
23
|
-
"Gemfile",
|
24
|
-
"Gemfile.lock",
|
25
|
-
"LICENSE",
|
26
|
-
"README.rdoc",
|
27
|
-
"Rakefile",
|
28
|
-
"VERSION",
|
29
|
-
"bin/blueprintify",
|
30
|
-
"blueprints.gemspec",
|
31
|
-
"features/blueprints.feature",
|
32
|
-
"features/step_definitions/blueprints_steps.rb",
|
33
|
-
"features/support/env.rb",
|
34
|
-
"init.rb",
|
35
|
-
"install.rb",
|
36
|
-
"lib/blueprints.rb",
|
37
|
-
"lib/blueprints/blueprint.rb",
|
38
|
-
"lib/blueprints/buildable.rb",
|
39
|
-
"lib/blueprints/configuration.rb",
|
40
|
-
"lib/blueprints/context.rb",
|
41
|
-
"lib/blueprints/convertable.rb",
|
42
|
-
"lib/blueprints/convertable/fixtures.rb",
|
43
|
-
"lib/blueprints/core_ext.rb",
|
44
|
-
"lib/blueprints/dependency.rb",
|
45
|
-
"lib/blueprints/errors.rb",
|
46
|
-
"lib/blueprints/extensions/cucumber.rb",
|
47
|
-
"lib/blueprints/extensions/rspec.rb",
|
48
|
-
"lib/blueprints/extensions/test_unit.rb",
|
49
|
-
"lib/blueprints/file_context.rb",
|
50
|
-
"lib/blueprints/helper.rb",
|
51
|
-
"lib/blueprints/namespace.rb",
|
52
|
-
"lib/blueprints/root_namespace.rb",
|
53
|
-
"spec/active_record/blueprint.rb",
|
54
|
-
"spec/active_record/blueprints_spec.rb",
|
55
|
-
"spec/active_record/fixtures/database.yml.example",
|
56
|
-
"spec/active_record/fixtures/fruit.rb",
|
57
|
-
"spec/active_record/fixtures/schema.rb",
|
58
|
-
"spec/active_record/fixtures/tree.rb",
|
59
|
-
"spec/active_record/spec_helper.rb",
|
60
|
-
"spec/no_db/blueprint.rb",
|
61
|
-
"spec/no_db/blueprints_spec.rb",
|
62
|
-
"spec/no_db/fixtures/fruit.rb",
|
63
|
-
"spec/no_db/spec_helper.rb",
|
64
|
-
"spec/test_all.sh",
|
65
|
-
"spec/unit/active_record_spec.rb",
|
66
|
-
"spec/unit/blueprint_spec.rb",
|
67
|
-
"spec/unit/buildable_spec.rb",
|
68
|
-
"spec/unit/configuration_spec.rb",
|
69
|
-
"spec/unit/dependency_spec.rb",
|
70
|
-
"spec/unit/namespace_spec.rb",
|
71
|
-
"spec/unit/spec_helper.rb",
|
72
|
-
"test/blueprints_test.rb",
|
73
|
-
"test/test_helper.rb",
|
74
|
-
"uninstall.rb"
|
75
|
-
]
|
76
|
-
s.homepage = %q{http://github.com/sinsiliux/blueprints}
|
77
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
78
|
-
s.require_paths = ["lib"]
|
79
|
-
s.rubygems_version = %q{1.3.7}
|
80
|
-
s.summary = %q{Another replacement for factories and fixtures}
|
81
|
-
s.test_files = [
|
82
|
-
"spec/no_db/fixtures/fruit.rb",
|
83
|
-
"spec/no_db/spec_helper.rb",
|
84
|
-
"spec/no_db/blueprints_spec.rb",
|
85
|
-
"spec/no_db/blueprint.rb",
|
86
|
-
"spec/unit/active_record_spec.rb",
|
87
|
-
"spec/unit/blueprint_spec.rb",
|
88
|
-
"spec/unit/spec_helper.rb",
|
89
|
-
"spec/unit/configuration_spec.rb",
|
90
|
-
"spec/unit/namespace_spec.rb",
|
91
|
-
"spec/unit/buildable_spec.rb",
|
92
|
-
"spec/unit/dependency_spec.rb",
|
93
|
-
"spec/active_record/fixtures/fruit.rb",
|
94
|
-
"spec/active_record/fixtures/tree.rb",
|
95
|
-
"spec/active_record/fixtures/schema.rb",
|
96
|
-
"spec/active_record/spec_helper.rb",
|
97
|
-
"spec/active_record/blueprints_spec.rb",
|
98
|
-
"spec/active_record/blueprint.rb",
|
99
|
-
"test/test_helper.rb",
|
100
|
-
"test/blueprints_test.rb"
|
101
|
-
]
|
14
|
+
s.default_executable = %q{blueprintify}
|
15
|
+
s.homepage = %q{http://sinsiliux.github.com/blueprints}
|
16
|
+
s.summary = %q{Awesome replacement for factories and fixtures}
|
17
|
+
s.description = %q{Awesome replacement for factories and fixtures that focuses on being DRY and making developers type as little as possible.}
|
102
18
|
|
103
|
-
|
104
|
-
|
105
|
-
|
19
|
+
s.executables = ["blueprintify"]
|
20
|
+
s.extra_rdoc_files = ["LICENSE", "README.rdoc"]
|
21
|
+
s.files = `git ls-files`.split("\n")
|
22
|
+
s.require_path = "lib"
|
106
23
|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
s.add_dependency(%q<cucumber>, [">= 0.7.0"])
|
123
|
-
end
|
124
|
-
else
|
125
|
-
s.add_dependency(%q<activesupport>, [">= 2.3.0"])
|
126
|
-
s.add_dependency(%q<database_cleaner>, ["~> 0.5.0"])
|
127
|
-
s.add_dependency(%q<rspec>, [">= 1.3.0"])
|
128
|
-
s.add_dependency(%q<activerecord>, [">= 2.3.0"])
|
129
|
-
s.add_dependency(%q<mocha>, [">= 0.9.8"])
|
130
|
-
s.add_dependency(%q<shoulda>, [">= 2.10.0"])
|
131
|
-
s.add_dependency(%q<cucumber>, [">= 0.7.0"])
|
132
|
-
end
|
24
|
+
s.add_runtime_dependency(%q<activesupport>, [">= 2.3.0"])
|
25
|
+
s.add_runtime_dependency(%q<database_cleaner>, ["~> 0.5.0"])
|
26
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.2.0"])
|
27
|
+
s.add_development_dependency(%q<mysql2>)
|
28
|
+
s.add_development_dependency(%q<activerecord>, [">= 2.3.0"])
|
29
|
+
s.add_development_dependency(%q<bson_ext>, [">= 1.1.4"])
|
30
|
+
s.add_development_dependency(%q<mongoid>, [">= 2.0.0.beta"])
|
31
|
+
s.add_development_dependency(%q<mongo_mapper>, [">= 0.8.0"])
|
32
|
+
s.add_development_dependency(%q<dm-migrations>, [">= 1.0.0"])
|
33
|
+
s.add_development_dependency(%q<dm-transactions>, [">= 1.0.0"])
|
34
|
+
s.add_development_dependency(%q<dm-mysql-adapter>, [">= 1.0.0"])
|
35
|
+
s.add_development_dependency(%q<mocha>, [">= 0.9.8"])
|
36
|
+
s.add_development_dependency(%q<shoulda>, [">= 2.10.0"])
|
37
|
+
s.add_development_dependency(%q<cucumber>, [">= 0.7.0"])
|
38
|
+
s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
|
133
39
|
end
|
134
40
|
|