mongoid_money_field 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/README.rdoc +9 -1
- data/VERSION +1 -1
- data/mongoid_money_field.gemspec +4 -4
- metadata +6 -6
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/README.rdoc
CHANGED
@@ -11,6 +11,14 @@ A simple gem that creates a Money datatype using RubyMoney for Mongoid.
|
|
11
11
|
|
12
12
|
Inspired by https://gist.github.com/840500
|
13
13
|
|
14
|
+
== Updating
|
15
|
+
|
16
|
+
v2.0 breaks compatibility as it does not give 0 cents default anymore. Use
|
17
|
+
|
18
|
+
money_field_with_options :price, default: 0
|
19
|
+
|
20
|
+
instead
|
21
|
+
|
14
22
|
== Installation
|
15
23
|
|
16
24
|
Include the gem in your Gemfile
|
@@ -25,7 +33,7 @@ Include the gem in your Gemfile
|
|
25
33
|
|
26
34
|
field :description
|
27
35
|
|
28
|
-
money_field :price
|
36
|
+
money_field :price, :old_price
|
29
37
|
|
30
38
|
# to disallow changing currency (and to not store it in database)
|
31
39
|
money_field_with_options :price2, fixed_currency: 'GBP'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.1
|
data/mongoid_money_field.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "mongoid_money_field"
|
8
|
-
s.version = "2.0.
|
8
|
+
s.version = "2.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["glebtv"]
|
@@ -47,7 +47,7 @@ Gem::Specification.new do |s|
|
|
47
47
|
s.specification_version = 3
|
48
48
|
|
49
49
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
50
|
-
s.add_runtime_dependency(%q<mongoid>, ["
|
50
|
+
s.add_runtime_dependency(%q<mongoid>, [">= 2.4.0"])
|
51
51
|
s.add_runtime_dependency(%q<money>, [">= 0"])
|
52
52
|
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
53
53
|
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
@@ -56,7 +56,7 @@ Gem::Specification.new do |s|
|
|
56
56
|
s.add_development_dependency(%q<simplecov>, [">= 0.4.0"])
|
57
57
|
s.add_development_dependency(%q<database_cleaner>, ["~> 0.8.0"])
|
58
58
|
else
|
59
|
-
s.add_dependency(%q<mongoid>, ["
|
59
|
+
s.add_dependency(%q<mongoid>, [">= 2.4.0"])
|
60
60
|
s.add_dependency(%q<money>, [">= 0"])
|
61
61
|
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
62
62
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
@@ -66,7 +66,7 @@ Gem::Specification.new do |s|
|
|
66
66
|
s.add_dependency(%q<database_cleaner>, ["~> 0.8.0"])
|
67
67
|
end
|
68
68
|
else
|
69
|
-
s.add_dependency(%q<mongoid>, ["
|
69
|
+
s.add_dependency(%q<mongoid>, [">= 2.4.0"])
|
70
70
|
s.add_dependency(%q<money>, [">= 0"])
|
71
71
|
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
72
72
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_money_field
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -16,17 +16,17 @@ dependencies:
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 2.4.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 2.4.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: money
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,7 +181,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
181
181
|
version: '0'
|
182
182
|
segments:
|
183
183
|
- 0
|
184
|
-
hash:
|
184
|
+
hash: 1059857057601386620
|
185
185
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
186
|
none: false
|
187
187
|
requirements:
|