remarkable_mongoid 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -1,4 +1,6 @@
1
1
  # remarkable_mongoid
2
+ NOTE: This gem is based upon the 2.0 beta of Mongoid and the 4.0 alpha of Remarkable
3
+
2
4
  RSpec Matchers for Mongoid
3
5
 
4
6
  ## Matchers
@@ -14,9 +16,13 @@ Associations
14
16
 
15
17
  Validations
16
18
 
17
- * validates_uniqueness_of
19
+ * validate_uniqueness_of
18
20
  * All ActiveModel validations from [Remarkable::ActiveModel](http://github.com/remarkable/remarkable/tree/master/remarkable_activemodel)
19
21
 
22
+ ## Installation
23
+
24
+ gem install remarkable_mongoid
25
+
20
26
  ## Usage
21
27
 
22
28
  require 'remarkable/mongoid'
@@ -33,9 +33,9 @@ module Remarkable::Mongoid
33
33
  end
34
34
 
35
35
  def matches?(subject)
36
- @subject = subject
37
- a = @subject.associations.select { |k,v| v.association == association_type }
38
- a.detect { |k| k.first == attr } != nil
36
+ @subject = subject
37
+ associations = @subject.associations.select { |k,v| v.association == association_type }
38
+ associations.detect { |k| k.first == attr } != nil
39
39
  end
40
40
 
41
41
  def description
@@ -40,7 +40,6 @@ module Remarkable::Mongoid
40
40
  "\nUniqueness validation failure\nExpected: '#{attr}' to be unique"
41
41
  end
42
42
 
43
-
44
43
  end
45
44
  end
46
45
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remarkable_mongoid
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 19
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 1
8
- - 3
9
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
10
11
  platform: ruby
11
12
  authors:
12
13
  - Brian Cardarella
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-07-10 00:00:00 -04:00
18
+ date: 2010-07-25 00:00:00 -04:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: remarkable_activemodel
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: -1710980496
27
30
  segments:
28
31
  - 4
29
32
  - 0
@@ -32,6 +35,101 @@ dependencies:
32
35
  version: 4.0.0.alpha2
33
36
  type: :runtime
34
37
  version_requirements: *id001
38
+ - !ruby/object:Gem::Dependency
39
+ name: ruby-debug
40
+ prerelease: false
41
+ requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ hash: 3
47
+ segments:
48
+ - 0
49
+ version: "0"
50
+ type: :development
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: bson_ext
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
63
+ version: "0"
64
+ type: :development
65
+ version_requirements: *id003
66
+ - !ruby/object:Gem::Dependency
67
+ name: activesupport
68
+ prerelease: false
69
+ requirement: &id004 !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - "="
73
+ - !ruby/object:Gem::Version
74
+ hash: -1848230024
75
+ segments:
76
+ - 3
77
+ - 0
78
+ - 0
79
+ - beta4
80
+ version: 3.0.0.beta4
81
+ type: :development
82
+ version_requirements: *id004
83
+ - !ruby/object:Gem::Dependency
84
+ name: mongoid
85
+ prerelease: false
86
+ requirement: &id005 !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - "="
90
+ - !ruby/object:Gem::Version
91
+ hash: -1967355489
92
+ segments:
93
+ - 2
94
+ - 0
95
+ - 0
96
+ - beta11
97
+ version: 2.0.0.beta11
98
+ type: :development
99
+ version_requirements: *id005
100
+ - !ruby/object:Gem::Dependency
101
+ name: rspec
102
+ prerelease: false
103
+ requirement: &id006 !ruby/object:Gem::Requirement
104
+ none: false
105
+ requirements:
106
+ - - "="
107
+ - !ruby/object:Gem::Version
108
+ hash: 62196417
109
+ segments:
110
+ - 2
111
+ - 0
112
+ - 0
113
+ - beta
114
+ - 17
115
+ version: 2.0.0.beta.17
116
+ type: :development
117
+ version_requirements: *id006
118
+ - !ruby/object:Gem::Dependency
119
+ name: bourne
120
+ prerelease: false
121
+ requirement: &id007 !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - "="
125
+ - !ruby/object:Gem::Version
126
+ hash: 15
127
+ segments:
128
+ - 1
129
+ - 0
130
+ version: "1.0"
131
+ type: :development
132
+ version_requirements: *id007
35
133
  description: RSpec Matchers for Mongoid
36
134
  email: bcardarella@gmail.com
37
135
  executables: []
@@ -57,23 +155,27 @@ rdoc_options:
57
155
  require_paths:
58
156
  - lib
59
157
  required_ruby_version: !ruby/object:Gem::Requirement
158
+ none: false
60
159
  requirements:
61
160
  - - ">="
62
161
  - !ruby/object:Gem::Version
162
+ hash: 3
63
163
  segments:
64
164
  - 0
65
165
  version: "0"
66
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
+ none: false
67
168
  requirements:
68
169
  - - ">="
69
170
  - !ruby/object:Gem::Version
171
+ hash: 3
70
172
  segments:
71
173
  - 0
72
174
  version: "0"
73
175
  requirements: []
74
176
 
75
177
  rubyforge_project:
76
- rubygems_version: 1.3.6
178
+ rubygems_version: 1.3.7
77
179
  signing_key:
78
180
  specification_version: 3
79
181
  summary: RSpec Matchers for Mongoid