dm-money 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Gemfile +1 -1
  2. data/Rakefile +1 -1
  3. data/VERSION +1 -1
  4. data/lib/dm-money.rb +3 -3
  5. metadata +28 -15
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ disable_rubygems
5
5
  disable_system_gems
6
6
 
7
7
  gem 'big_money', '~> 1.1'
8
- gem 'dm-core', '>= 0.10'
8
+ gem 'dm-core', '~> 1.0'
9
9
 
10
10
  only :development do
11
11
  gem 'jeweler'
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ begin
15
15
  gem.authors = ['Shane Hanna']
16
16
  gem.executables = [] # Only ever bundled development executables in bin/*
17
17
  gem.add_dependency 'big_money', '~> 1.1'
18
- gem.add_dependency 'dm-core', '>= 0.10'
18
+ gem.add_dependency 'dm-core', '~> 1.0'
19
19
  end
20
20
  Jeweler::GemcutterTasks.new
21
21
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.2.0
@@ -47,7 +47,7 @@ module DataMapper
47
47
  end
48
48
 
49
49
  # TODO: Golf.
50
- property = Property.new(self, name, BigDecimal, options)
50
+ property = DataMapper::Property::Decimal.new(self, name, options)
51
51
  name = property.name.to_s
52
52
  instance_variable_name = property.instance_variable_name
53
53
  name_amount = "#{name}_amount"
@@ -55,11 +55,11 @@ module DataMapper
55
55
 
56
56
  options_amount = options.only(:required, :precision, :scale).merge(:accessor => :private)
57
57
  options_amount.merge!(:default => default.amount) if default
58
- self.property name_amount.to_sym, BigDecimal, options_amount
58
+ self.property name_amount.to_sym, DataMapper::Property::Decimal, options_amount
59
59
 
60
60
  options_currency = options.only(:required).merge(:accessor => :private, :length => 3)
61
61
  options_currency.merge!(:default => default.currency.to_s) if default
62
- self.property name_currency.to_sym, String, options_currency
62
+ self.property name_currency.to_sym, DataMapper::Property::String, options_currency
63
63
 
64
64
  # TODO: Access amount, currency via readers or properties?
65
65
  # TODO: Validations or error message attempting to set with something other than BigMoney?
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-money
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 0
9
+ version: 0.2.0
5
10
  platform: ruby
6
11
  authors:
7
12
  - Shane Hanna
@@ -9,29 +14,35 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-05-27 00:00:00 +10:00
17
+ date: 2010-07-26 00:00:00 +10:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: big_money
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ~>
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 1
29
+ - 1
23
30
  version: "1.1"
24
- version:
31
+ type: :runtime
32
+ version_requirements: *id001
25
33
  - !ruby/object:Gem::Dependency
26
34
  name: dm-core
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
30
37
  requirements:
31
- - - ">="
38
+ - - ~>
32
39
  - !ruby/object:Gem::Version
33
- version: "0.10"
34
- version:
40
+ segments:
41
+ - 1
42
+ - 0
43
+ version: "1.0"
44
+ type: :runtime
45
+ version_requirements: *id002
35
46
  description:
36
47
  email:
37
48
  - shane.hanna@gmail.com
@@ -65,18 +76,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
76
  requirements:
66
77
  - - ">="
67
78
  - !ruby/object:Gem::Version
79
+ segments:
80
+ - 0
68
81
  version: "0"
69
- version:
70
82
  required_rubygems_version: !ruby/object:Gem::Requirement
71
83
  requirements:
72
84
  - - ">="
73
85
  - !ruby/object:Gem::Version
86
+ segments:
87
+ - 0
74
88
  version: "0"
75
- version:
76
89
  requirements: []
77
90
 
78
91
  rubyforge_project:
79
- rubygems_version: 1.3.5
92
+ rubygems_version: 1.3.6
80
93
  signing_key:
81
94
  specification_version: 3
82
95
  summary: BigMoney backed DataMapper money plugin.