cash 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/cash.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "cash"
7
- gem.version = '0.2.0'
7
+ gem.version = '0.2.1'
8
8
  gem.authors = ["Norbert Wojtowicz"]
9
9
  gem.email = ["wojtowicz.norbert@gmail.com"]
10
10
  gem.description = "Money model backed by BigDecimal"
data/lib/cash.rb CHANGED
@@ -47,8 +47,8 @@ class Cash
47
47
 
48
48
  def to_h
49
49
  {
50
- amount: amount_string,
51
- currency: currency.code
50
+ :amount => amount_string,
51
+ :currency => currency.code
52
52
  }
53
53
  end
54
54
 
@@ -114,8 +114,8 @@ describe Cash do
114
114
  describe '#to_h' do
115
115
  it 'returns serialized hash' do
116
116
  Cash.new('100.3', :eur).to_h.should == {
117
- amount: '100.30',
118
- currency: 'EUR'
117
+ :amount => '100.30',
118
+ :currency => 'EUR'
119
119
  }
120
120
  end
121
121
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -79,7 +79,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
79
79
  version: '0'
80
80
  segments:
81
81
  - 0
82
- hash: -1365261179025828843
82
+ hash: 1293552855378689819
83
83
  required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  segments:
90
90
  - 0
91
- hash: -1365261179025828843
91
+ hash: 1293552855378689819
92
92
  requirements: []
93
93
  rubyforge_project:
94
94
  rubygems_version: 1.8.23