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 CHANGED
@@ -1,6 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'mongoid', '~> 3.0.6'
3
+ gem 'mongoid', '>= 2.4.0'
4
4
  gem 'money'
5
5
 
6
6
  group :development do
data/Gemfile.lock CHANGED
@@ -54,7 +54,7 @@ DEPENDENCIES
54
54
  database_cleaner (~> 0.8.0)
55
55
  jeweler (~> 1.8.3)
56
56
  money
57
- mongoid (~> 3.0.6)
57
+ mongoid (>= 2.4.0)
58
58
  rdoc (~> 3.12)
59
59
  rspec (~> 2.8.0)
60
60
  simplecov (>= 0.4.0)
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.0
1
+ 2.0.1
@@ -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.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>, ["~> 3.0.6"])
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>, ["~> 3.0.6"])
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>, ["~> 3.0.6"])
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.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: 3.0.6
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: 3.0.6
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: 3316255525970155767
184
+ hash: 1059857057601386620
185
185
  required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  none: false
187
187
  requirements: