dm-rspec 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +6 -0
- data/Gemfile +4 -5
- data/Gemfile.lock +52 -45
- data/README.markdown +10 -2
- data/VERSION +1 -1
- data/lib/dm/matchers/belong_to.rb +3 -3
- data/lib/dm/matchers/have_many_and_belong_to.rb +2 -2
- data/lib/dm/matchers/have_many_through.rb +3 -2
- data/lib/dm/matchers/have_one.rb +3 -3
- data/lib/dm/matchers/have_property.rb +2 -1
- data/lib/dm/matchers/validate_format_of.rb +2 -1
- data/lib/dm/matchers/validate_presence_of.rb +3 -1
- data/lib/dm/matchers/validate_uniqueness_of.rb +3 -1
- data/spec/dm/matchers/belong_to_spec.rb +7 -0
- data/spec/dm/matchers/have_many_and_belong_to_spec.rb +6 -0
- data/spec/dm/matchers/have_many_through_spec.rb +6 -0
- data/spec/dm/matchers/have_one_spec.rb +6 -0
- data/spec/dm/matchers/have_property_spec.rb +6 -0
- data/spec/dm/matchers/validate_format_of_spec.rb +6 -0
- data/spec/dm/matchers/validate_presence_of_spec.rb +12 -20
- data/spec/dm/matchers/validate_uniquness_of_spec.rb +7 -0
- data/spec/spec_helper.rb +11 -0
- metadata +119 -191
data/CHANGELOG.markdown
CHANGED
data/Gemfile
CHANGED
@@ -8,11 +8,10 @@ gem 'dm-validations'
|
|
8
8
|
# Add dependencies to develop your gem here.
|
9
9
|
# Include everything needed to run rake, tests, features, etc.
|
10
10
|
group :development do
|
11
|
-
gem "rspec"
|
12
|
-
gem "bundler"
|
13
|
-
gem "jeweler"
|
14
|
-
gem "
|
15
|
-
gem "reek", "~> 1.2.8"
|
11
|
+
gem "rspec"
|
12
|
+
gem "bundler"
|
13
|
+
gem "jeweler"
|
14
|
+
gem "reek"
|
16
15
|
gem 'guard-rspec', :require => false
|
17
16
|
gem 'libnotify' if RUBY_PLATFORM =~ /linux/
|
18
17
|
gem 'ruby-debug19' if RUBY_VERSION =~ /^1\.9/
|
data/Gemfile.lock
CHANGED
@@ -2,79 +2,86 @@ GEM
|
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
4
|
addressable (2.2.6)
|
5
|
+
archive-tar-minitar (0.5.2)
|
5
6
|
columnize (0.3.6)
|
6
|
-
data_objects (0.10.
|
7
|
+
data_objects (0.10.7)
|
7
8
|
addressable (~> 2.1)
|
8
9
|
diff-lcs (1.1.3)
|
9
|
-
dm-core (1.
|
10
|
-
addressable (~> 2.2.
|
11
|
-
dm-do-adapter (1.
|
12
|
-
data_objects (~> 0.10.
|
13
|
-
dm-core (~> 1.
|
14
|
-
dm-migrations (1.
|
15
|
-
dm-core (~> 1.
|
16
|
-
dm-sqlite-adapter (1.
|
17
|
-
dm-do-adapter (~> 1.
|
18
|
-
do_sqlite3 (~> 0.10.
|
19
|
-
dm-validations (1.
|
20
|
-
dm-core (~> 1.
|
21
|
-
do_sqlite3 (0.10.
|
22
|
-
data_objects (= 0.10.
|
23
|
-
ffi (1.0.
|
10
|
+
dm-core (1.2.0)
|
11
|
+
addressable (~> 2.2.6)
|
12
|
+
dm-do-adapter (1.2.0)
|
13
|
+
data_objects (~> 0.10.6)
|
14
|
+
dm-core (~> 1.2.0)
|
15
|
+
dm-migrations (1.2.0)
|
16
|
+
dm-core (~> 1.2.0)
|
17
|
+
dm-sqlite-adapter (1.2.0)
|
18
|
+
dm-do-adapter (~> 1.2.0)
|
19
|
+
do_sqlite3 (~> 0.10.6)
|
20
|
+
dm-validations (1.2.0)
|
21
|
+
dm-core (~> 1.2.0)
|
22
|
+
do_sqlite3 (0.10.7)
|
23
|
+
data_objects (= 0.10.7)
|
24
|
+
ffi (1.0.11)
|
24
25
|
git (1.2.5)
|
25
|
-
guard (0.
|
26
|
+
guard (1.0.0)
|
27
|
+
ffi (>= 0.5.0)
|
26
28
|
thor (~> 0.14.6)
|
27
|
-
guard-rspec (0.
|
28
|
-
guard (>= 0.
|
29
|
-
jeweler (1.
|
29
|
+
guard-rspec (0.6.0)
|
30
|
+
guard (>= 0.10.0)
|
31
|
+
jeweler (1.8.3)
|
30
32
|
bundler (~> 1.0)
|
31
33
|
git (>= 1.2.5)
|
32
34
|
rake
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
35
|
+
rdoc
|
36
|
+
json (1.6.5)
|
37
|
+
libnotify (0.7.2)
|
38
|
+
linecache19 (0.5.12)
|
39
|
+
ruby_core_source (>= 0.1.4)
|
37
40
|
rake (0.9.2.2)
|
38
|
-
|
39
|
-
|
41
|
+
rdoc (3.12)
|
42
|
+
json (~> 1.4)
|
40
43
|
reek (1.2.8)
|
41
44
|
ruby2ruby (~> 1.2)
|
42
45
|
ruby_parser (~> 2.0)
|
43
46
|
sexp_processor (~> 3.0)
|
44
|
-
rspec (2.
|
45
|
-
rspec-core (~> 2.
|
46
|
-
rspec-expectations (~> 2.
|
47
|
-
rspec-mocks (~> 2.
|
48
|
-
rspec-core (2.
|
49
|
-
rspec-expectations (2.
|
47
|
+
rspec (2.8.0)
|
48
|
+
rspec-core (~> 2.8.0)
|
49
|
+
rspec-expectations (~> 2.8.0)
|
50
|
+
rspec-mocks (~> 2.8.0)
|
51
|
+
rspec-core (2.8.0)
|
52
|
+
rspec-expectations (2.8.0)
|
50
53
|
diff-lcs (~> 1.1.2)
|
51
|
-
rspec-mocks (2.
|
52
|
-
ruby-debug (0.
|
53
|
-
columnize (>= 0.1)
|
54
|
-
|
55
|
-
|
56
|
-
|
54
|
+
rspec-mocks (2.8.0)
|
55
|
+
ruby-debug-base19 (0.11.25)
|
56
|
+
columnize (>= 0.3.1)
|
57
|
+
linecache19 (>= 0.5.11)
|
58
|
+
ruby_core_source (>= 0.1.4)
|
59
|
+
ruby-debug19 (0.11.6)
|
60
|
+
columnize (>= 0.3.1)
|
61
|
+
linecache19 (>= 0.5.11)
|
62
|
+
ruby-debug-base19 (>= 0.11.19)
|
57
63
|
ruby2ruby (1.3.1)
|
58
64
|
ruby_parser (~> 2.0)
|
59
65
|
sexp_processor (~> 3.0)
|
66
|
+
ruby_core_source (0.1.5)
|
67
|
+
archive-tar-minitar (>= 0.5.2)
|
60
68
|
ruby_parser (2.3.1)
|
61
69
|
sexp_processor (~> 3.0)
|
62
|
-
sexp_processor (3.0.
|
70
|
+
sexp_processor (3.0.10)
|
63
71
|
thor (0.14.6)
|
64
72
|
|
65
73
|
PLATFORMS
|
66
74
|
ruby
|
67
75
|
|
68
76
|
DEPENDENCIES
|
69
|
-
bundler
|
77
|
+
bundler
|
70
78
|
dm-core
|
71
79
|
dm-migrations
|
72
80
|
dm-sqlite-adapter
|
73
81
|
dm-validations
|
74
82
|
guard-rspec
|
75
|
-
jeweler
|
83
|
+
jeweler
|
76
84
|
libnotify
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
ruby-debug
|
85
|
+
reek
|
86
|
+
rspec
|
87
|
+
ruby-debug19
|
data/README.markdown
CHANGED
@@ -65,9 +65,9 @@ You specs can contain the next:
|
|
65
65
|
specify {Book.should belong_to :author}
|
66
66
|
specify {Author.should have_many :books}
|
67
67
|
specify {Genre.should have_many_and_belong_to :books}
|
68
|
-
specify {
|
68
|
+
specify {Book.should have_many_and_belong_to :genres}
|
69
69
|
|
70
|
-
specify {
|
70
|
+
specify {Book.should validate_presence_of :name}
|
71
71
|
|
72
72
|
it 'has errors' do
|
73
73
|
book = Book.new(:name => 'fails on two validations')
|
@@ -75,6 +75,14 @@ You specs can contain the next:
|
|
75
75
|
book.should have(2).errors_on(:name)
|
76
76
|
end
|
77
77
|
|
78
|
+
They can look like below as well:
|
79
|
+
|
80
|
+
describe Book do
|
81
|
+
it { should have_property :name }
|
82
|
+
it { should belongs_to :author }
|
83
|
+
end
|
84
|
+
|
85
|
+
|
78
86
|
|
79
87
|
|
80
88
|
## TODO
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
@@ -7,12 +7,12 @@ module DataMapper
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def matches?(child)
|
10
|
-
|
11
|
-
relation =
|
10
|
+
child_class = child.is_a?(Class) ? child : child.class
|
11
|
+
relation = child_class.relationships[@parent.to_s]
|
12
12
|
|
13
13
|
relation and
|
14
14
|
relation.is_a?(DataMapper::Associations::ManyToOne::Relationship) and
|
15
|
-
relation.child_model ==
|
15
|
+
relation.child_model == child_class
|
16
16
|
end
|
17
17
|
|
18
18
|
def failure_message
|
@@ -7,8 +7,8 @@ module DataMapper
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def matches?(model)
|
10
|
-
|
11
|
-
relation =
|
10
|
+
model_class = model.is_a?(Class) ? model : model.class
|
11
|
+
relation = model_class.relationships[@name.to_s]
|
12
12
|
relation && relation.is_a?(DataMapper::Associations::ManyToMany::Relationship)
|
13
13
|
end
|
14
14
|
|
@@ -7,9 +7,10 @@ module DataMapper
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def matches?(parent)
|
10
|
-
|
10
|
+
parent_class = parent.is_a?(Class) ? parent : parent.class
|
11
|
+
relation = parent_class.relationships[@children.to_s]
|
11
12
|
|
12
|
-
relation.parent_model ==
|
13
|
+
relation.parent_model == parent_class and
|
13
14
|
relation.name == @children.to_sym and
|
14
15
|
relation.options[:through] == @broker.to_sym
|
15
16
|
end
|
data/lib/dm/matchers/have_one.rb
CHANGED
@@ -6,12 +6,12 @@ module DataMapper
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def matches?(parent)
|
9
|
-
|
10
|
-
relation =
|
9
|
+
parent_class = parent.is_a?(Class) ? parent : parent.class
|
10
|
+
relation = parent_class.relationships[@child.to_s]
|
11
11
|
|
12
12
|
relation and
|
13
13
|
relation.is_a?(DataMapper::Associations::OneToOne::Relationship) and
|
14
|
-
relation.parent_model ==
|
14
|
+
relation.parent_model == parent_class
|
15
15
|
end
|
16
16
|
|
17
17
|
def failure_message
|
@@ -13,7 +13,8 @@ module DataMapper
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def matches?(model)
|
16
|
-
|
16
|
+
model_class = model.is_a?(Class) ? model : model.class
|
17
|
+
validators = model_class.validators.contexts[:default]
|
17
18
|
format_of = validators.find do |validator|
|
18
19
|
validator.is_a? DataMapper::Validations::FormatValidator and validator.field_name == @property
|
19
20
|
end
|
@@ -8,7 +8,9 @@ module DataMapper
|
|
8
8
|
set_validation_subject "presence"
|
9
9
|
|
10
10
|
def matches?(model)
|
11
|
-
|
11
|
+
model_class = model.is_a?(Class) ? model : model.class
|
12
|
+
|
13
|
+
validators = model_class.validators.contexts[:default]
|
12
14
|
presence_of = validators.find do |validator|
|
13
15
|
validator.is_a? DataMapper::Validations::PresenceValidator and validator.field_name == @property
|
14
16
|
end
|
@@ -8,7 +8,9 @@ module DataMapper
|
|
8
8
|
set_validation_subject "uniqueness"
|
9
9
|
|
10
10
|
def matches?(model)
|
11
|
-
|
11
|
+
model_class = model.is_a?(Class) ? model : model.class
|
12
|
+
|
13
|
+
validators = model_class.validators.contexts[:default]
|
12
14
|
uniqueness_of = validators.find do |validator|
|
13
15
|
validator.is_a? DataMapper::Validations::UniquenessValidator and validator.field_name == @property
|
14
16
|
end
|
@@ -17,4 +17,11 @@ describe DataMapper::Matchers::BelongTo do
|
|
17
17
|
lambda { Book.should_not belong_to :author }.should fail_with "expected to not belong to author"
|
18
18
|
end
|
19
19
|
end
|
20
|
+
|
21
|
+
context 'instance of model' do
|
22
|
+
it "should pass" do
|
23
|
+
lambda{ Book.new.should belong_to :author}.should_pass
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
20
27
|
end
|
@@ -19,4 +19,10 @@ describe DataMapper::Matchers::HaveManyAndBelongTo do
|
|
19
19
|
should fail_with "expected to not have many and belong to books"
|
20
20
|
end
|
21
21
|
end
|
22
|
+
|
23
|
+
context 'instance of model' do
|
24
|
+
it "should pass" do
|
25
|
+
lambda{ Book.new.should have_many_and_belong_to :genres}.should_pass
|
26
|
+
end
|
27
|
+
end
|
22
28
|
end
|
@@ -18,4 +18,10 @@ describe DataMapper::Matchers::HaveManyThrough do
|
|
18
18
|
lambda { Book.should_not have_many(:tags).through(:taggings) }.should fail_with "expected to not have many tags through taggings"
|
19
19
|
end
|
20
20
|
end
|
21
|
+
|
22
|
+
context 'instance of model' do
|
23
|
+
it "should pass" do
|
24
|
+
lambda{ Book.new.should have_many(:tags).through(:taggings)}.should_pass
|
25
|
+
end
|
26
|
+
end
|
21
27
|
end
|
@@ -16,4 +16,10 @@ describe DataMapper::Matchers::HaveOne do
|
|
16
16
|
lambda { Book.should_not have_one :foreword}.should fail_with "expected not to have one foreword"
|
17
17
|
end
|
18
18
|
end
|
19
|
+
|
20
|
+
context 'instance of model' do
|
21
|
+
it 'should pass' do
|
22
|
+
lambda { Book.new.should have_one :foreword}.should_pass
|
23
|
+
end
|
24
|
+
end
|
19
25
|
end
|
@@ -17,4 +17,10 @@ describe DataMapper::Matchers::HaveProperty do
|
|
17
17
|
lambda {Book.should_not have_property :name}.should fail_with "expected to not have property name"
|
18
18
|
end
|
19
19
|
end
|
20
|
+
|
21
|
+
context 'instance of model' do
|
22
|
+
it "should pass" do
|
23
|
+
lambda{ Book.new.should have_property :name}.should_pass
|
24
|
+
end
|
25
|
+
end
|
20
26
|
end
|
@@ -2,35 +2,21 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
|
4
4
|
describe 'validate_presence_of' do
|
5
|
-
# Create class for the test
|
6
|
-
before(:all) do
|
7
|
-
@human = Class.new do
|
8
|
-
include DataMapper::Resource
|
9
|
-
property :first_name, String
|
10
|
-
property :last_name , String
|
11
|
-
property :age , Integer
|
12
|
-
|
13
|
-
validates_presence_of :first_name, :message => 'Where is the first name?'
|
14
|
-
validates_presence_of :last_name
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
|
19
5
|
context "without message" do
|
20
6
|
context '#should' do
|
21
7
|
it 'passes if validation exists' do
|
22
|
-
lambda{
|
8
|
+
lambda{ Person.should validate_presence_of :last_name}.should_pass
|
23
9
|
end
|
24
10
|
|
25
11
|
it 'fails if validation does not exist' do
|
26
|
-
lambda{
|
12
|
+
lambda{ Person.should validate_presence_of :age}.
|
27
13
|
should fail_with "expected to validate presence of age"
|
28
14
|
end
|
29
15
|
end
|
30
16
|
|
31
17
|
context '#should_not' do
|
32
18
|
it 'fails if validation exists' do
|
33
|
-
lambda{
|
19
|
+
lambda{ Person.should_not validate_presence_of :last_name}.
|
34
20
|
should fail_with "expected to not validate presence of last_name"
|
35
21
|
end
|
36
22
|
end
|
@@ -40,13 +26,13 @@ describe 'validate_presence_of' do
|
|
40
26
|
context 'with message' do
|
41
27
|
context '#should' do
|
42
28
|
it 'passes if messages are the same' do
|
43
|
-
lambda{
|
29
|
+
lambda{ Person.should validate_presence_of(:first_name).
|
44
30
|
with_message('Where is the first name?')
|
45
31
|
}.should_pass
|
46
32
|
end
|
47
33
|
|
48
34
|
it 'fails if messages are different' do
|
49
|
-
lambda{
|
35
|
+
lambda{ Person.should validate_presence_of(:first_name).
|
50
36
|
with_message('Different message')
|
51
37
|
}.should fail_with 'expected to validate presence of first_name with message "Different message"'
|
52
38
|
end
|
@@ -54,10 +40,16 @@ describe 'validate_presence_of' do
|
|
54
40
|
|
55
41
|
context '#should_not' do
|
56
42
|
it 'fails if validation message exists' do
|
57
|
-
lambda{
|
43
|
+
lambda{ Person.should_not validate_presence_of(:first_name).
|
58
44
|
with_message('Where is the first name?')
|
59
45
|
}.should fail_with 'expected to not validate presence of first_name with message "Where is the first name?"'
|
60
46
|
end
|
61
47
|
end
|
62
48
|
end
|
49
|
+
|
50
|
+
context 'instance of model' do
|
51
|
+
it "should pass" do
|
52
|
+
lambda{ Person.new.should validate_presence_of :last_name}.should_pass
|
53
|
+
end
|
54
|
+
end
|
63
55
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -91,6 +91,17 @@ class Tagging
|
|
91
91
|
belongs_to :book
|
92
92
|
end
|
93
93
|
|
94
|
+
# To test validates_presence_of
|
95
|
+
class Person
|
96
|
+
include DataMapper::Resource
|
97
|
+
property :id, Serial
|
98
|
+
property :first_name, String
|
99
|
+
property :last_name , String
|
100
|
+
property :age , Integer
|
101
|
+
validates_presence_of :first_name, :message => 'Where is the first name?'
|
102
|
+
validates_presence_of :last_name
|
103
|
+
end
|
104
|
+
|
94
105
|
class Foreword
|
95
106
|
include DataMapper::Resource
|
96
107
|
property :id, Serial
|
metadata
CHANGED
@@ -1,207 +1,144 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-rspec
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 2
|
10
|
-
version: 0.1.2
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Potapov Sergey
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
22
|
-
none: false
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
hash: 3
|
27
|
-
segments:
|
28
|
-
- 0
|
29
|
-
version: "0"
|
12
|
+
date: 2012-02-05 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
30
15
|
name: dm-core
|
31
|
-
|
32
|
-
type: :runtime
|
33
|
-
requirement: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &8067740 !ruby/object:Gem::Requirement
|
36
17
|
none: false
|
37
|
-
requirements:
|
38
|
-
- -
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
|
41
|
-
segments:
|
42
|
-
- 0
|
43
|
-
version: "0"
|
44
|
-
name: dm-validations
|
45
|
-
prerelease: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
46
22
|
type: :runtime
|
47
|
-
requirement: *id002
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
version_requirements: &id003 !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
|
-
requirements:
|
52
|
-
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
hash: 3
|
55
|
-
segments:
|
56
|
-
- 2
|
57
|
-
- 3
|
58
|
-
- 0
|
59
|
-
version: 2.3.0
|
60
|
-
name: rspec
|
61
23
|
prerelease: false
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
24
|
+
version_requirements: *8067740
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: dm-validations
|
27
|
+
requirement: &8067100 !ruby/object:Gem::Requirement
|
66
28
|
none: false
|
67
|
-
requirements:
|
68
|
-
- -
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
|
71
|
-
|
72
|
-
- 1
|
73
|
-
- 0
|
74
|
-
- 0
|
75
|
-
version: 1.0.0
|
76
|
-
name: bundler
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
77
34
|
prerelease: false
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
35
|
+
version_requirements: *8067100
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec
|
38
|
+
requirement: &8066340 !ruby/object:Gem::Requirement
|
82
39
|
none: false
|
83
|
-
requirements:
|
84
|
-
- -
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
|
87
|
-
segments:
|
88
|
-
- 1
|
89
|
-
- 6
|
90
|
-
- 4
|
91
|
-
version: 1.6.4
|
92
|
-
name: jeweler
|
93
|
-
prerelease: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
94
44
|
type: :development
|
95
|
-
requirement: *id005
|
96
|
-
- !ruby/object:Gem::Dependency
|
97
|
-
version_requirements: &id006 !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
|
-
requirements:
|
100
|
-
- - ">="
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
hash: 3
|
103
|
-
segments:
|
104
|
-
- 0
|
105
|
-
version: "0"
|
106
|
-
name: rcov
|
107
45
|
prerelease: false
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
46
|
+
version_requirements: *8066340
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: bundler
|
49
|
+
requirement: &8065520 !ruby/object:Gem::Requirement
|
112
50
|
none: false
|
113
|
-
requirements:
|
114
|
-
- -
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
|
117
|
-
segments:
|
118
|
-
- 1
|
119
|
-
- 2
|
120
|
-
- 8
|
121
|
-
version: 1.2.8
|
122
|
-
name: reek
|
123
|
-
prerelease: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
124
55
|
type: :development
|
125
|
-
requirement: *id007
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
version_requirements: &id008 !ruby/object:Gem::Requirement
|
128
|
-
none: false
|
129
|
-
requirements:
|
130
|
-
- - ">="
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
hash: 3
|
133
|
-
segments:
|
134
|
-
- 0
|
135
|
-
version: "0"
|
136
|
-
name: guard-rspec
|
137
56
|
prerelease: false
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
57
|
+
version_requirements: *8065520
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: jeweler
|
60
|
+
requirement: &8064600 !ruby/object:Gem::Requirement
|
142
61
|
none: false
|
143
|
-
requirements:
|
144
|
-
- -
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
|
147
|
-
segments:
|
148
|
-
- 0
|
149
|
-
version: "0"
|
150
|
-
name: libnotify
|
151
|
-
prerelease: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
152
66
|
type: :development
|
153
|
-
|
154
|
-
|
155
|
-
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *8064600
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: reek
|
71
|
+
requirement: &8063980 !ruby/object:Gem::Requirement
|
156
72
|
none: false
|
157
|
-
requirements:
|
158
|
-
- -
|
159
|
-
- !ruby/object:Gem::Version
|
160
|
-
|
161
|
-
|
162
|
-
- 0
|
163
|
-
version: "0"
|
164
|
-
name: ruby-debug
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
165
78
|
prerelease: false
|
79
|
+
version_requirements: *8063980
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: guard-rspec
|
82
|
+
requirement: &8062540 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
166
88
|
type: :development
|
167
|
-
|
168
|
-
|
169
|
-
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *8062540
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: libnotify
|
93
|
+
requirement: &8046460 !ruby/object:Gem::Requirement
|
170
94
|
none: false
|
171
|
-
requirements:
|
172
|
-
- -
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
|
175
|
-
|
176
|
-
- 0
|
177
|
-
version: "0"
|
178
|
-
name: dm-migrations
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
type: :development
|
179
100
|
prerelease: false
|
101
|
+
version_requirements: *8046460
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: ruby-debug19
|
104
|
+
requirement: &8045880 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
180
110
|
type: :development
|
181
|
-
|
182
|
-
|
183
|
-
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: *8045880
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: dm-migrations
|
115
|
+
requirement: &8044880 !ruby/object:Gem::Requirement
|
184
116
|
none: false
|
185
|
-
requirements:
|
186
|
-
- -
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
|
189
|
-
|
190
|
-
- 0
|
191
|
-
version: "0"
|
192
|
-
name: dm-sqlite-adapter
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
type: :development
|
193
122
|
prerelease: false
|
123
|
+
version_requirements: *8044880
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: dm-sqlite-adapter
|
126
|
+
requirement: &8043980 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
194
132
|
type: :development
|
195
|
-
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: *8043980
|
196
135
|
description: RSpec matchers for DataMapper
|
197
136
|
email: blake131313@gmail.com
|
198
137
|
executables: []
|
199
|
-
|
200
138
|
extensions: []
|
201
|
-
|
202
|
-
extra_rdoc_files:
|
139
|
+
extra_rdoc_files:
|
203
140
|
- README.markdown
|
204
|
-
files:
|
141
|
+
files:
|
205
142
|
- .document
|
206
143
|
- .rspec
|
207
144
|
- CHANGELOG.markdown
|
@@ -237,37 +174,28 @@ files:
|
|
237
174
|
- spec/dm/matchers/validate_uniquness_of_spec.rb
|
238
175
|
- spec/spec_helper.rb
|
239
176
|
homepage: http://github.com/greyblake/dm-rspec
|
240
|
-
licenses:
|
177
|
+
licenses:
|
241
178
|
- MIT
|
242
179
|
post_install_message:
|
243
180
|
rdoc_options: []
|
244
|
-
|
245
|
-
require_paths:
|
181
|
+
require_paths:
|
246
182
|
- lib
|
247
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
183
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
248
184
|
none: false
|
249
|
-
requirements:
|
250
|
-
- -
|
251
|
-
- !ruby/object:Gem::Version
|
252
|
-
|
253
|
-
|
254
|
-
- 0
|
255
|
-
version: "0"
|
256
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
185
|
+
requirements:
|
186
|
+
- - ! '>='
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: '0'
|
189
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
257
190
|
none: false
|
258
|
-
requirements:
|
259
|
-
- -
|
260
|
-
- !ruby/object:Gem::Version
|
261
|
-
|
262
|
-
segments:
|
263
|
-
- 0
|
264
|
-
version: "0"
|
191
|
+
requirements:
|
192
|
+
- - ! '>='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
265
195
|
requirements: []
|
266
|
-
|
267
196
|
rubyforge_project:
|
268
|
-
rubygems_version: 1.8.
|
197
|
+
rubygems_version: 1.8.15
|
269
198
|
signing_key:
|
270
199
|
specification_version: 3
|
271
200
|
summary: It's a set of matchers for DataMapper. Something similar to rspec-rails gem.
|
272
201
|
test_files: []
|
273
|
-
|