mongoid_rateable 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,7 +1,5 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gemspec
4
-
5
3
  gem "mongoid", ">= 3.0"
6
4
 
7
5
  group :development do
data/Gemfile.lock CHANGED
@@ -1,10 +1,3 @@
1
- PATH
2
- remote: .
3
- specs:
4
- mongoid_rateable (0.2.1)
5
- mongoid (>= 3.0)
6
- mongoid_rateable
7
-
8
1
  GEM
9
2
  remote: http://rubygems.org/
10
3
  specs:
@@ -57,7 +50,6 @@ DEPENDENCIES
57
50
  database_cleaner
58
51
  jeweler (~> 1.6.2)
59
52
  mongoid (>= 3.0)
60
- mongoid_rateable!
61
53
  rdoc
62
54
  rspec (>= 2.0.0)
63
55
  simplecov (>= 0.4.0)
data/README.rdoc CHANGED
@@ -86,6 +86,10 @@ And you can get the average rating without weights (It calculates realtime, so i
86
86
 
87
87
  @post.unweighted_rating # rates without weights / rate_count
88
88
 
89
+ And you can get the previous rating and delta:
90
+
91
+ @post.previous_rating
92
+ @post.rating_delta # rating - previous_rating
89
93
 
90
94
  == Scopes
91
95
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -3,9 +3,11 @@ module Mongoid
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
6
- field :rates, :type => Integer, :default => 0
7
- field :rating, :type => Float, :default => nil
8
- field :weighted_rate_count, :type => Integer, :default => 0
6
+ field :rates, type: Integer, default: 0
7
+ field :rating, type: Float, default: nil
8
+ field :rating_previous, type: Float, default: nil
9
+ field :rating_delta, type: Float, default: 0.0
10
+ field :weighted_rate_count, type: Integer, default: 0
9
11
 
10
12
  embeds_many :rating_marks, :as => :rateable
11
13
 
@@ -55,6 +57,14 @@ module Mongoid
55
57
  read_attribute(:rating)
56
58
  end
57
59
 
60
+ def previous_rating
61
+ read_attribute(:rating_previous)
62
+ end
63
+
64
+ def rating_delta
65
+ read_attribute(:rating_delta)
66
+ end
67
+
58
68
  def unweighted_rating
59
69
  return nil if self.rating_marks.empty?
60
70
  total_sum = self.rating_marks.map(&:mark).sum
@@ -91,8 +101,11 @@ module Mongoid
91
101
 
92
102
  def update_rating
93
103
  check_weighted_rate_count
104
+ write_attribute(:rating_previous, self.rating)
94
105
  rt = (self.rates.to_f / self.weighted_rate_count.to_f) unless self.rating_marks.blank?
95
106
  write_attribute(:rating, rt)
107
+ delta = (self.rating && self.previous_rating) ? rating-previous_rating : 0.0
108
+ write_attribute(:rating_delta, delta)
96
109
  end
97
110
 
98
111
  def check_weighted_rate_count
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "mongoid_rateable"
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Peter Savichev (proton)"]
12
- s.date = "2012-09-09"
12
+ s.date = "2012-09-11"
13
13
  s.description = "Provides fields and methods for the rating manipulation on Mongoid documents."
14
14
  s.email = "psavichev@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -48,39 +48,7 @@ Gem::Specification.new do |s|
48
48
  s.specification_version = 3
49
49
 
50
50
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
- s.add_runtime_dependency(%q<mongoid_rateable>, [">= 0"])
52
51
  s.add_runtime_dependency(%q<mongoid>, [">= 3.0"])
53
- s.add_development_dependency(%q<database_cleaner>, [">= 0"])
54
- s.add_development_dependency(%q<bundler>, [">= 0"])
55
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
56
- s.add_development_dependency(%q<simplecov>, [">= 0.4.0"])
57
- s.add_development_dependency(%q<rdoc>, [">= 0"])
58
- s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
59
- s.add_development_dependency(%q<database_cleaner>, [">= 0"])
60
- s.add_development_dependency(%q<bundler>, [">= 0"])
61
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
62
- s.add_development_dependency(%q<simplecov>, [">= 0.4.0"])
63
- s.add_development_dependency(%q<rdoc>, [">= 0"])
64
- s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
65
- s.add_development_dependency(%q<database_cleaner>, [">= 0"])
66
- s.add_development_dependency(%q<bundler>, [">= 0"])
67
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
68
- s.add_development_dependency(%q<simplecov>, [">= 0.4.0"])
69
- s.add_development_dependency(%q<rdoc>, [">= 0"])
70
- s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
71
- s.add_development_dependency(%q<database_cleaner>, [">= 0"])
72
- s.add_development_dependency(%q<bundler>, [">= 0"])
73
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
74
- s.add_development_dependency(%q<simplecov>, [">= 0.4.0"])
75
- s.add_development_dependency(%q<rdoc>, [">= 0"])
76
- s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
77
- s.add_development_dependency(%q<database_cleaner>, [">= 0"])
78
- s.add_development_dependency(%q<bundler>, [">= 0"])
79
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
80
- s.add_development_dependency(%q<simplecov>, [">= 0.4.0"])
81
- s.add_development_dependency(%q<rdoc>, [">= 0"])
82
- s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
83
- s.add_development_dependency(%q<database_cleaner>, [">= 0"])
84
52
  s.add_development_dependency(%q<bundler>, [">= 0"])
85
53
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
86
54
  s.add_development_dependency(%q<simplecov>, [">= 0.4.0"])
@@ -88,39 +56,7 @@ Gem::Specification.new do |s|
88
56
  s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
89
57
  s.add_development_dependency(%q<database_cleaner>, [">= 0"])
90
58
  else
91
- s.add_dependency(%q<mongoid_rateable>, [">= 0"])
92
59
  s.add_dependency(%q<mongoid>, [">= 3.0"])
93
- s.add_dependency(%q<database_cleaner>, [">= 0"])
94
- s.add_dependency(%q<bundler>, [">= 0"])
95
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
96
- s.add_dependency(%q<simplecov>, [">= 0.4.0"])
97
- s.add_dependency(%q<rdoc>, [">= 0"])
98
- s.add_dependency(%q<rspec>, [">= 2.0.0"])
99
- s.add_dependency(%q<database_cleaner>, [">= 0"])
100
- s.add_dependency(%q<bundler>, [">= 0"])
101
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
102
- s.add_dependency(%q<simplecov>, [">= 0.4.0"])
103
- s.add_dependency(%q<rdoc>, [">= 0"])
104
- s.add_dependency(%q<rspec>, [">= 2.0.0"])
105
- s.add_dependency(%q<database_cleaner>, [">= 0"])
106
- s.add_dependency(%q<bundler>, [">= 0"])
107
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
108
- s.add_dependency(%q<simplecov>, [">= 0.4.0"])
109
- s.add_dependency(%q<rdoc>, [">= 0"])
110
- s.add_dependency(%q<rspec>, [">= 2.0.0"])
111
- s.add_dependency(%q<database_cleaner>, [">= 0"])
112
- s.add_dependency(%q<bundler>, [">= 0"])
113
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
114
- s.add_dependency(%q<simplecov>, [">= 0.4.0"])
115
- s.add_dependency(%q<rdoc>, [">= 0"])
116
- s.add_dependency(%q<rspec>, [">= 2.0.0"])
117
- s.add_dependency(%q<database_cleaner>, [">= 0"])
118
- s.add_dependency(%q<bundler>, [">= 0"])
119
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
120
- s.add_dependency(%q<simplecov>, [">= 0.4.0"])
121
- s.add_dependency(%q<rdoc>, [">= 0"])
122
- s.add_dependency(%q<rspec>, [">= 2.0.0"])
123
- s.add_dependency(%q<database_cleaner>, [">= 0"])
124
60
  s.add_dependency(%q<bundler>, [">= 0"])
125
61
  s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
126
62
  s.add_dependency(%q<simplecov>, [">= 0.4.0"])
@@ -129,39 +65,7 @@ Gem::Specification.new do |s|
129
65
  s.add_dependency(%q<database_cleaner>, [">= 0"])
130
66
  end
131
67
  else
132
- s.add_dependency(%q<mongoid_rateable>, [">= 0"])
133
68
  s.add_dependency(%q<mongoid>, [">= 3.0"])
134
- s.add_dependency(%q<database_cleaner>, [">= 0"])
135
- s.add_dependency(%q<bundler>, [">= 0"])
136
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
137
- s.add_dependency(%q<simplecov>, [">= 0.4.0"])
138
- s.add_dependency(%q<rdoc>, [">= 0"])
139
- s.add_dependency(%q<rspec>, [">= 2.0.0"])
140
- s.add_dependency(%q<database_cleaner>, [">= 0"])
141
- s.add_dependency(%q<bundler>, [">= 0"])
142
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
143
- s.add_dependency(%q<simplecov>, [">= 0.4.0"])
144
- s.add_dependency(%q<rdoc>, [">= 0"])
145
- s.add_dependency(%q<rspec>, [">= 2.0.0"])
146
- s.add_dependency(%q<database_cleaner>, [">= 0"])
147
- s.add_dependency(%q<bundler>, [">= 0"])
148
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
149
- s.add_dependency(%q<simplecov>, [">= 0.4.0"])
150
- s.add_dependency(%q<rdoc>, [">= 0"])
151
- s.add_dependency(%q<rspec>, [">= 2.0.0"])
152
- s.add_dependency(%q<database_cleaner>, [">= 0"])
153
- s.add_dependency(%q<bundler>, [">= 0"])
154
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
155
- s.add_dependency(%q<simplecov>, [">= 0.4.0"])
156
- s.add_dependency(%q<rdoc>, [">= 0"])
157
- s.add_dependency(%q<rspec>, [">= 2.0.0"])
158
- s.add_dependency(%q<database_cleaner>, [">= 0"])
159
- s.add_dependency(%q<bundler>, [">= 0"])
160
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
161
- s.add_dependency(%q<simplecov>, [">= 0.4.0"])
162
- s.add_dependency(%q<rdoc>, [">= 0"])
163
- s.add_dependency(%q<rspec>, [">= 2.0.0"])
164
- s.add_dependency(%q<database_cleaner>, [">= 0"])
165
69
  s.add_dependency(%q<bundler>, [">= 0"])
166
70
  s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
167
71
  s.add_dependency(%q<simplecov>, [">= 0.4.0"])
@@ -24,6 +24,8 @@ describe Post do
24
24
  it { should respond_to :rate_count }
25
25
  it { should respond_to :rates }
26
26
  it { should respond_to :rating }
27
+ it { should respond_to :previous_rating }
28
+ it { should respond_to :rating_delta }
27
29
  it { should respond_to :unweighted_rating }
28
30
  it { should respond_to :rating_marks }
29
31
 
@@ -122,7 +124,7 @@ describe Post do
122
124
  describe "#rating" do
123
125
  it "should calculate the average rate" do
124
126
  @post.rate 4, @sally
125
- @post.rating.should eql 2.5
127
+ @post.rating.should eq 2.5
126
128
  end
127
129
 
128
130
  it "should calculate the average rate if the result is zero" do
@@ -131,13 +133,38 @@ describe Post do
131
133
  end
132
134
  end
133
135
 
136
+ describe "#previous_rating" do
137
+ it "should store previous value of the average rate" do
138
+ @post.rate 4, @sally
139
+ @post.previous_rating.should eq 1.0
140
+ end
141
+
142
+ it "should store previous value of the average rate after two changes" do
143
+ @post.rate -1, @sally
144
+ @post.rate 4, @sally
145
+ @post.previous_rating.should eq 0.0
146
+ end
147
+ end
148
+
149
+ describe "#rating_delta" do
150
+ it "should calculate delta of previous and new ratings" do
151
+ @post.rate 4, @sally
152
+ @post.rating_delta.should eq 1.5
153
+ end
154
+
155
+ it "should calculate delta of previous and new ratings" do
156
+ @post.rate -1, @sally
157
+ @post.rating_delta.should eq -1.0
158
+ end
159
+ end
160
+
134
161
  describe "#unweighted_rating" do
135
- it "should calculate the average rate" do
162
+ it "should calculate the unweighted average rate" do
136
163
  @post.rate 4, @sally
137
- @post.unweighted_rating.should eql 2.5
164
+ @post.unweighted_rating.should eq 2.5
138
165
  end
139
166
 
140
- it "should calculate the average rate if the result is zero" do
167
+ it "should calculate the unweighted average rate if the result is zero" do
141
168
  @post.rate -1, @sally
142
169
  @post.unweighted_rating.should eq 0.0
143
170
  end
@@ -153,6 +180,14 @@ describe Post do
153
180
  specify { @post.rating.should be_nil }
154
181
  end
155
182
 
183
+ describe "#previous_rating" do
184
+ specify { @post.previous_rating.should be_nil }
185
+ end
186
+
187
+ describe "#rating_delta" do
188
+ specify { @post.rating_delta.should eq 0.0 }
189
+ end
190
+
156
191
  describe "#unweighted_rating" do
157
192
  specify { @post.unweighted_rating.should be_nil }
158
193
  end
@@ -204,6 +239,14 @@ describe Post do
204
239
  specify { @finded_post.rating.should eq -1.0 }
205
240
  end
206
241
 
242
+ describe "#previous_rating" do
243
+ specify { @finded_post.previous_rating.should eq 8.0 }
244
+ end
245
+
246
+ describe "#rating_delta" do
247
+ specify { @post.rating_delta.should eq -9.0 }
248
+ end
249
+
207
250
  describe "#unweighted_rating" do
208
251
  specify { @finded_post.unweighted_rating.should eq -1.0 }
209
252
  end
@@ -246,6 +289,14 @@ describe Post do
246
289
  @finded_post.rating.should eq 2.0
247
290
  end
248
291
 
292
+ it "should have #previous_rating equal 8.0" do
293
+ @finded_post.previous_rating.should eq 8.0
294
+ end
295
+
296
+ it "should have #rating_delta equal -6.0" do
297
+ @finded_post.rating_delta.should eq -6.0
298
+ end
299
+
249
300
  it "should have #unweighted_rating equal 2.0" do
250
301
  @finded_post.unweighted_rating.should eq -1.0
251
302
  end
@@ -286,6 +337,14 @@ describe Post do
286
337
  @finded_post.rating.should eq -10.0
287
338
  end
288
339
 
340
+ it "should have #previous_rating equal 2.0" do
341
+ @finded_post.previous_rating.should eq 2.0
342
+ end
343
+
344
+ it "should have #rating_delta equal -12.0" do
345
+ @finded_post.rating_delta.should eq -12.0
346
+ end
347
+
289
348
  it "should have #unweighted_rating equal -10.0" do
290
349
  @finded_post.unweighted_rating.should eq -10.0
291
350
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_rateable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-09 00:00:00.000000000 Z
12
+ date: 2012-09-11 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: mongoid_rateable
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
14
  - !ruby/object:Gem::Dependency
31
15
  name: mongoid
32
16
  requirement: !ruby/object:Gem::Requirement
@@ -43,502 +27,6 @@ dependencies:
43
27
  - - ! '>='
44
28
  - !ruby/object:Gem::Version
45
29
  version: '3.0'
46
- - !ruby/object:Gem::Dependency
47
- name: database_cleaner
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: bundler
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- - !ruby/object:Gem::Dependency
79
- name: jeweler
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ~>
84
- - !ruby/object:Gem::Version
85
- version: 1.6.2
86
- type: :development
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ~>
92
- - !ruby/object:Gem::Version
93
- version: 1.6.2
94
- - !ruby/object:Gem::Dependency
95
- name: simplecov
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: 0.4.0
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: 0.4.0
110
- - !ruby/object:Gem::Dependency
111
- name: rdoc
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
127
- name: rspec
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ! '>='
132
- - !ruby/object:Gem::Version
133
- version: 2.0.0
134
- type: :development
135
- prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
141
- version: 2.0.0
142
- - !ruby/object:Gem::Dependency
143
- name: database_cleaner
144
- requirement: !ruby/object:Gem::Requirement
145
- none: false
146
- requirements:
147
- - - ! '>='
148
- - !ruby/object:Gem::Version
149
- version: '0'
150
- type: :development
151
- prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ! '>='
156
- - !ruby/object:Gem::Version
157
- version: '0'
158
- - !ruby/object:Gem::Dependency
159
- name: bundler
160
- requirement: !ruby/object:Gem::Requirement
161
- none: false
162
- requirements:
163
- - - ! '>='
164
- - !ruby/object:Gem::Version
165
- version: '0'
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
- requirements:
171
- - - ! '>='
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- - !ruby/object:Gem::Dependency
175
- name: jeweler
176
- requirement: !ruby/object:Gem::Requirement
177
- none: false
178
- requirements:
179
- - - ~>
180
- - !ruby/object:Gem::Version
181
- version: 1.6.2
182
- type: :development
183
- prerelease: false
184
- version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
- requirements:
187
- - - ~>
188
- - !ruby/object:Gem::Version
189
- version: 1.6.2
190
- - !ruby/object:Gem::Dependency
191
- name: simplecov
192
- requirement: !ruby/object:Gem::Requirement
193
- none: false
194
- requirements:
195
- - - ! '>='
196
- - !ruby/object:Gem::Version
197
- version: 0.4.0
198
- type: :development
199
- prerelease: false
200
- version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
- requirements:
203
- - - ! '>='
204
- - !ruby/object:Gem::Version
205
- version: 0.4.0
206
- - !ruby/object:Gem::Dependency
207
- name: rdoc
208
- requirement: !ruby/object:Gem::Requirement
209
- none: false
210
- requirements:
211
- - - ! '>='
212
- - !ruby/object:Gem::Version
213
- version: '0'
214
- type: :development
215
- prerelease: false
216
- version_requirements: !ruby/object:Gem::Requirement
217
- none: false
218
- requirements:
219
- - - ! '>='
220
- - !ruby/object:Gem::Version
221
- version: '0'
222
- - !ruby/object:Gem::Dependency
223
- name: rspec
224
- requirement: !ruby/object:Gem::Requirement
225
- none: false
226
- requirements:
227
- - - ! '>='
228
- - !ruby/object:Gem::Version
229
- version: 2.0.0
230
- type: :development
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- none: false
234
- requirements:
235
- - - ! '>='
236
- - !ruby/object:Gem::Version
237
- version: 2.0.0
238
- - !ruby/object:Gem::Dependency
239
- name: database_cleaner
240
- requirement: !ruby/object:Gem::Requirement
241
- none: false
242
- requirements:
243
- - - ! '>='
244
- - !ruby/object:Gem::Version
245
- version: '0'
246
- type: :development
247
- prerelease: false
248
- version_requirements: !ruby/object:Gem::Requirement
249
- none: false
250
- requirements:
251
- - - ! '>='
252
- - !ruby/object:Gem::Version
253
- version: '0'
254
- - !ruby/object:Gem::Dependency
255
- name: bundler
256
- requirement: !ruby/object:Gem::Requirement
257
- none: false
258
- requirements:
259
- - - ! '>='
260
- - !ruby/object:Gem::Version
261
- version: '0'
262
- type: :development
263
- prerelease: false
264
- version_requirements: !ruby/object:Gem::Requirement
265
- none: false
266
- requirements:
267
- - - ! '>='
268
- - !ruby/object:Gem::Version
269
- version: '0'
270
- - !ruby/object:Gem::Dependency
271
- name: jeweler
272
- requirement: !ruby/object:Gem::Requirement
273
- none: false
274
- requirements:
275
- - - ~>
276
- - !ruby/object:Gem::Version
277
- version: 1.6.2
278
- type: :development
279
- prerelease: false
280
- version_requirements: !ruby/object:Gem::Requirement
281
- none: false
282
- requirements:
283
- - - ~>
284
- - !ruby/object:Gem::Version
285
- version: 1.6.2
286
- - !ruby/object:Gem::Dependency
287
- name: simplecov
288
- requirement: !ruby/object:Gem::Requirement
289
- none: false
290
- requirements:
291
- - - ! '>='
292
- - !ruby/object:Gem::Version
293
- version: 0.4.0
294
- type: :development
295
- prerelease: false
296
- version_requirements: !ruby/object:Gem::Requirement
297
- none: false
298
- requirements:
299
- - - ! '>='
300
- - !ruby/object:Gem::Version
301
- version: 0.4.0
302
- - !ruby/object:Gem::Dependency
303
- name: rdoc
304
- requirement: !ruby/object:Gem::Requirement
305
- none: false
306
- requirements:
307
- - - ! '>='
308
- - !ruby/object:Gem::Version
309
- version: '0'
310
- type: :development
311
- prerelease: false
312
- version_requirements: !ruby/object:Gem::Requirement
313
- none: false
314
- requirements:
315
- - - ! '>='
316
- - !ruby/object:Gem::Version
317
- version: '0'
318
- - !ruby/object:Gem::Dependency
319
- name: rspec
320
- requirement: !ruby/object:Gem::Requirement
321
- none: false
322
- requirements:
323
- - - ! '>='
324
- - !ruby/object:Gem::Version
325
- version: 2.0.0
326
- type: :development
327
- prerelease: false
328
- version_requirements: !ruby/object:Gem::Requirement
329
- none: false
330
- requirements:
331
- - - ! '>='
332
- - !ruby/object:Gem::Version
333
- version: 2.0.0
334
- - !ruby/object:Gem::Dependency
335
- name: database_cleaner
336
- requirement: !ruby/object:Gem::Requirement
337
- none: false
338
- requirements:
339
- - - ! '>='
340
- - !ruby/object:Gem::Version
341
- version: '0'
342
- type: :development
343
- prerelease: false
344
- version_requirements: !ruby/object:Gem::Requirement
345
- none: false
346
- requirements:
347
- - - ! '>='
348
- - !ruby/object:Gem::Version
349
- version: '0'
350
- - !ruby/object:Gem::Dependency
351
- name: bundler
352
- requirement: !ruby/object:Gem::Requirement
353
- none: false
354
- requirements:
355
- - - ! '>='
356
- - !ruby/object:Gem::Version
357
- version: '0'
358
- type: :development
359
- prerelease: false
360
- version_requirements: !ruby/object:Gem::Requirement
361
- none: false
362
- requirements:
363
- - - ! '>='
364
- - !ruby/object:Gem::Version
365
- version: '0'
366
- - !ruby/object:Gem::Dependency
367
- name: jeweler
368
- requirement: !ruby/object:Gem::Requirement
369
- none: false
370
- requirements:
371
- - - ~>
372
- - !ruby/object:Gem::Version
373
- version: 1.6.2
374
- type: :development
375
- prerelease: false
376
- version_requirements: !ruby/object:Gem::Requirement
377
- none: false
378
- requirements:
379
- - - ~>
380
- - !ruby/object:Gem::Version
381
- version: 1.6.2
382
- - !ruby/object:Gem::Dependency
383
- name: simplecov
384
- requirement: !ruby/object:Gem::Requirement
385
- none: false
386
- requirements:
387
- - - ! '>='
388
- - !ruby/object:Gem::Version
389
- version: 0.4.0
390
- type: :development
391
- prerelease: false
392
- version_requirements: !ruby/object:Gem::Requirement
393
- none: false
394
- requirements:
395
- - - ! '>='
396
- - !ruby/object:Gem::Version
397
- version: 0.4.0
398
- - !ruby/object:Gem::Dependency
399
- name: rdoc
400
- requirement: !ruby/object:Gem::Requirement
401
- none: false
402
- requirements:
403
- - - ! '>='
404
- - !ruby/object:Gem::Version
405
- version: '0'
406
- type: :development
407
- prerelease: false
408
- version_requirements: !ruby/object:Gem::Requirement
409
- none: false
410
- requirements:
411
- - - ! '>='
412
- - !ruby/object:Gem::Version
413
- version: '0'
414
- - !ruby/object:Gem::Dependency
415
- name: rspec
416
- requirement: !ruby/object:Gem::Requirement
417
- none: false
418
- requirements:
419
- - - ! '>='
420
- - !ruby/object:Gem::Version
421
- version: 2.0.0
422
- type: :development
423
- prerelease: false
424
- version_requirements: !ruby/object:Gem::Requirement
425
- none: false
426
- requirements:
427
- - - ! '>='
428
- - !ruby/object:Gem::Version
429
- version: 2.0.0
430
- - !ruby/object:Gem::Dependency
431
- name: database_cleaner
432
- requirement: !ruby/object:Gem::Requirement
433
- none: false
434
- requirements:
435
- - - ! '>='
436
- - !ruby/object:Gem::Version
437
- version: '0'
438
- type: :development
439
- prerelease: false
440
- version_requirements: !ruby/object:Gem::Requirement
441
- none: false
442
- requirements:
443
- - - ! '>='
444
- - !ruby/object:Gem::Version
445
- version: '0'
446
- - !ruby/object:Gem::Dependency
447
- name: bundler
448
- requirement: !ruby/object:Gem::Requirement
449
- none: false
450
- requirements:
451
- - - ! '>='
452
- - !ruby/object:Gem::Version
453
- version: '0'
454
- type: :development
455
- prerelease: false
456
- version_requirements: !ruby/object:Gem::Requirement
457
- none: false
458
- requirements:
459
- - - ! '>='
460
- - !ruby/object:Gem::Version
461
- version: '0'
462
- - !ruby/object:Gem::Dependency
463
- name: jeweler
464
- requirement: !ruby/object:Gem::Requirement
465
- none: false
466
- requirements:
467
- - - ~>
468
- - !ruby/object:Gem::Version
469
- version: 1.6.2
470
- type: :development
471
- prerelease: false
472
- version_requirements: !ruby/object:Gem::Requirement
473
- none: false
474
- requirements:
475
- - - ~>
476
- - !ruby/object:Gem::Version
477
- version: 1.6.2
478
- - !ruby/object:Gem::Dependency
479
- name: simplecov
480
- requirement: !ruby/object:Gem::Requirement
481
- none: false
482
- requirements:
483
- - - ! '>='
484
- - !ruby/object:Gem::Version
485
- version: 0.4.0
486
- type: :development
487
- prerelease: false
488
- version_requirements: !ruby/object:Gem::Requirement
489
- none: false
490
- requirements:
491
- - - ! '>='
492
- - !ruby/object:Gem::Version
493
- version: 0.4.0
494
- - !ruby/object:Gem::Dependency
495
- name: rdoc
496
- requirement: !ruby/object:Gem::Requirement
497
- none: false
498
- requirements:
499
- - - ! '>='
500
- - !ruby/object:Gem::Version
501
- version: '0'
502
- type: :development
503
- prerelease: false
504
- version_requirements: !ruby/object:Gem::Requirement
505
- none: false
506
- requirements:
507
- - - ! '>='
508
- - !ruby/object:Gem::Version
509
- version: '0'
510
- - !ruby/object:Gem::Dependency
511
- name: rspec
512
- requirement: !ruby/object:Gem::Requirement
513
- none: false
514
- requirements:
515
- - - ! '>='
516
- - !ruby/object:Gem::Version
517
- version: 2.0.0
518
- type: :development
519
- prerelease: false
520
- version_requirements: !ruby/object:Gem::Requirement
521
- none: false
522
- requirements:
523
- - - ! '>='
524
- - !ruby/object:Gem::Version
525
- version: 2.0.0
526
- - !ruby/object:Gem::Dependency
527
- name: database_cleaner
528
- requirement: !ruby/object:Gem::Requirement
529
- none: false
530
- requirements:
531
- - - ! '>='
532
- - !ruby/object:Gem::Version
533
- version: '0'
534
- type: :development
535
- prerelease: false
536
- version_requirements: !ruby/object:Gem::Requirement
537
- none: false
538
- requirements:
539
- - - ! '>='
540
- - !ruby/object:Gem::Version
541
- version: '0'
542
30
  - !ruby/object:Gem::Dependency
543
31
  name: bundler
544
32
  requirement: !ruby/object:Gem::Requirement
@@ -678,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
678
166
  version: '0'
679
167
  segments:
680
168
  - 0
681
- hash: 906699105
169
+ hash: -443413809
682
170
  required_rubygems_version: !ruby/object:Gem::Requirement
683
171
  none: false
684
172
  requirements: