mongoid_money_field 3.2.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +0 -0
- data/.gitignore +18 -0
- data/.rspec +0 -0
- data/.travis.yml +8 -11
- data/Gemfile +3 -12
- data/Gemfile.lock +43 -38
- data/{MIT-LICENSE.txt → LICENSE.txt} +3 -1
- data/README.rdoc +15 -2
- data/Rakefile +4 -39
- data/gemfiles/{mongoid3.gemfile → money4-mongoid3.gemfile} +1 -1
- data/gemfiles/money4-mongoid31.gemfile +12 -0
- data/gemfiles/{mongoid2.gemfile → money50-mongoid3.gemfile} +10 -10
- data/gemfiles/money50-mongoid31.gemfile +12 -0
- data/gemfiles/money51-mongoid3.gemfile +11 -0
- data/gemfiles/money51-mongoid31.gemfile +12 -0
- data/lib/mongoid_money_field.rb +118 -76
- data/lib/mongoid_money_field/field.rb +48 -0
- data/lib/mongoid_money_field/simple_form/money_input.rb +1 -1
- data/lib/mongoid_money_field/version.rb +3 -0
- data/mongoid_money_field.gemspec +26 -83
- data/spec/model_spec.rb +8 -0
- data/spec/money3_compat_spec.rb +123 -0
- data/spec/money3_spec.rb +342 -0
- data/spec/money_spec.rb +60 -46
- data/spec/ruby_money_spec.rb +62 -0
- data/spec/spec_helper.rb +15 -16
- data/spec/support/dummy_not_a_number.rb +0 -0
- data/spec/support/dummy_positive_number.rb +0 -0
- data/spec/support/money3.rb +30 -0
- data/spec/support/mongoid.yml +8 -0
- data/spec/support/priceable.rb +5 -0
- metadata +90 -37
- data/VERSION +0 -1
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_money_field
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
-
|
8
|
+
- Gleb Tv
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-03-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mongoid
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 3.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 3.0.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: money
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,29 +44,29 @@ dependencies:
|
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
47
|
+
name: rake
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ! '>='
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: '0'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
none: false
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: '0'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
63
|
+
name: bundler
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
67
67
|
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 1.3.4
|
70
70
|
type: :development
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -74,31 +74,31 @@ dependencies:
|
|
74
74
|
requirements:
|
75
75
|
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
77
|
+
version: 1.3.4
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
79
|
+
name: rspec
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
81
81
|
none: false
|
82
82
|
requirements:
|
83
|
-
- -
|
83
|
+
- - ~>
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
85
|
+
version: 2.13.0
|
86
86
|
type: :development
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
91
|
-
- -
|
91
|
+
- - ~>
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
93
|
+
version: 2.13.0
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
95
|
+
name: rdoc
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
97
97
|
none: false
|
98
98
|
requirements:
|
99
99
|
- - ~>
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
101
|
+
version: 4.0.1
|
102
102
|
type: :development
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -106,23 +106,23 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
109
|
+
version: 4.0.1
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: simplecov
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
113
113
|
none: false
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ~>
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
117
|
+
version: 0.7.1
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
none: false
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ~>
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: 0.
|
125
|
+
version: 0.7.1
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: database_cleaner
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,7 +130,23 @@ dependencies:
|
|
130
130
|
requirements:
|
131
131
|
- - ~>
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version: 0.9.
|
133
|
+
version: 0.9.1
|
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: 0.9.1
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: mongoid-rspec
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ~>
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: 1.7.0
|
134
150
|
type: :development
|
135
151
|
prerelease: false
|
136
152
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -138,30 +154,40 @@ dependencies:
|
|
138
154
|
requirements:
|
139
155
|
- - ~>
|
140
156
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
157
|
+
version: 1.7.0
|
142
158
|
description: Use RubyMoney with mongoid
|
143
|
-
email:
|
159
|
+
email:
|
160
|
+
- glebtv@gmail.com
|
144
161
|
executables: []
|
145
162
|
extensions: []
|
146
|
-
extra_rdoc_files:
|
147
|
-
- README.rdoc
|
163
|
+
extra_rdoc_files: []
|
148
164
|
files:
|
149
165
|
- .document
|
166
|
+
- .gitignore
|
150
167
|
- .rspec
|
151
168
|
- .rvmrc
|
152
169
|
- .travis.yml
|
153
170
|
- Gemfile
|
154
171
|
- Gemfile.lock
|
155
|
-
-
|
172
|
+
- LICENSE.txt
|
156
173
|
- README.rdoc
|
157
174
|
- Rakefile
|
158
|
-
-
|
159
|
-
- gemfiles/
|
160
|
-
- gemfiles/mongoid3.gemfile
|
175
|
+
- gemfiles/money4-mongoid3.gemfile
|
176
|
+
- gemfiles/money4-mongoid31.gemfile
|
177
|
+
- gemfiles/money50-mongoid3.gemfile
|
178
|
+
- gemfiles/money50-mongoid31.gemfile
|
179
|
+
- gemfiles/money51-mongoid3.gemfile
|
180
|
+
- gemfiles/money51-mongoid31.gemfile
|
161
181
|
- lib/mongoid_money_field.rb
|
182
|
+
- lib/mongoid_money_field/field.rb
|
162
183
|
- lib/mongoid_money_field/simple_form/money_input.rb
|
184
|
+
- lib/mongoid_money_field/version.rb
|
163
185
|
- mongoid_money_field.gemspec
|
186
|
+
- spec/model_spec.rb
|
187
|
+
- spec/money3_compat_spec.rb
|
188
|
+
- spec/money3_spec.rb
|
164
189
|
- spec/money_spec.rb
|
190
|
+
- spec/ruby_money_spec.rb
|
165
191
|
- spec/spec_helper.rb
|
166
192
|
- spec/support/dummy_embedded.rb
|
167
193
|
- spec/support/dummy_money.rb
|
@@ -175,6 +201,9 @@ files:
|
|
175
201
|
- spec/support/dummy_positive_number.rb
|
176
202
|
- spec/support/dummy_prices.rb
|
177
203
|
- spec/support/dummy_with_default_currency.rb
|
204
|
+
- spec/support/money3.rb
|
205
|
+
- spec/support/mongoid.yml
|
206
|
+
- spec/support/priceable.rb
|
178
207
|
homepage: http://github.com/glebtv/mongoid_money_field
|
179
208
|
licenses:
|
180
209
|
- MIT
|
@@ -190,17 +219,41 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
190
219
|
version: '0'
|
191
220
|
segments:
|
192
221
|
- 0
|
193
|
-
hash:
|
222
|
+
hash: 1725271247358064119
|
194
223
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
224
|
none: false
|
196
225
|
requirements:
|
197
226
|
- - ! '>='
|
198
227
|
- !ruby/object:Gem::Version
|
199
228
|
version: '0'
|
229
|
+
segments:
|
230
|
+
- 0
|
231
|
+
hash: 1725271247358064119
|
200
232
|
requirements: []
|
201
233
|
rubyforge_project:
|
202
|
-
rubygems_version: 1.8.
|
234
|
+
rubygems_version: 1.8.25
|
203
235
|
signing_key:
|
204
236
|
specification_version: 3
|
205
237
|
summary: Use RubyMoney with mongoid
|
206
|
-
test_files:
|
238
|
+
test_files:
|
239
|
+
- spec/model_spec.rb
|
240
|
+
- spec/money3_compat_spec.rb
|
241
|
+
- spec/money3_spec.rb
|
242
|
+
- spec/money_spec.rb
|
243
|
+
- spec/ruby_money_spec.rb
|
244
|
+
- spec/spec_helper.rb
|
245
|
+
- spec/support/dummy_embedded.rb
|
246
|
+
- spec/support/dummy_money.rb
|
247
|
+
- spec/support/dummy_money_required.rb
|
248
|
+
- spec/support/dummy_money_with_default.rb
|
249
|
+
- spec/support/dummy_money_with_default_with_currency.rb
|
250
|
+
- spec/support/dummy_money_with_fixed_currency.rb
|
251
|
+
- spec/support/dummy_money_without_default.rb
|
252
|
+
- spec/support/dummy_not_a_number.rb
|
253
|
+
- spec/support/dummy_override_default_currency.rb
|
254
|
+
- spec/support/dummy_positive_number.rb
|
255
|
+
- spec/support/dummy_prices.rb
|
256
|
+
- spec/support/dummy_with_default_currency.rb
|
257
|
+
- spec/support/money3.rb
|
258
|
+
- spec/support/mongoid.yml
|
259
|
+
- spec/support/priceable.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
3.2.1
|