cashrb 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ cashrb v1.0.3
2
+ =============
3
+ - change to "require 'cashrb'" to avoid clash with 'cash' gem
4
+
1
5
  cashrb v1.0.2
2
6
  =============
3
7
  - fix error with scope for ruby 1.8.7
data/README.md CHANGED
@@ -6,7 +6,7 @@ Dead simple gem to work with Money/Currency without the hassle of Floats.
6
6
  Usage
7
7
  -----
8
8
 
9
- require 'cash'
9
+ require 'cashrb'
10
10
 
11
11
  # Works with cents to avoid Floating point errors
12
12
  n = Cash.new(100)
@@ -15,8 +15,8 @@ Usage
15
15
  n.to_f #=> 1.0
16
16
 
17
17
  # Define currency as you see fit.
18
- a = Cash.new(100, :usd)
19
- b = Cash.new(100, :eur)
18
+ a = Cash.new(100, currency: :usd)
19
+ b = Cash.new(100, currency: :eur)
20
20
  a + b #=> Error! Cash::IncompatibleCurrency
21
21
 
22
22
  # Default is 100 cents in a dollar. Is your currency different, then just
data/cashrb.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cashrb"
3
- s.version = "1.0.2"
3
+ s.version = "1.0.3"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.authors = ["Shane Emmons"]
6
6
  s.email = ["semmons99@gmail.com"]
data/lib/cashrb.rb ADDED
@@ -0,0 +1 @@
1
+ require 'cashrb/cash'
data/test/test_cash.rb CHANGED
@@ -1,7 +1,6 @@
1
- require 'rubygems'
2
1
  require 'minitest/autorun'
3
2
  require 'bigdecimal'
4
- require 'cash'
3
+ require 'cashrb/cash'
5
4
 
6
5
  class TestCash < MiniTest::Unit::TestCase
7
6
 
metadata CHANGED
@@ -1,40 +1,27 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: cashrb
3
- version: !ruby/object:Gem::Version
4
- hash: 19
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.3
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 2
10
- version: 1.0.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Shane Emmons
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-02-23 00:00:00 -08:00
12
+ date: 2011-03-31 00:00:00.000000000 -04:00
19
13
  default_executable:
20
14
  dependencies: []
21
-
22
15
  description: Dead simple gem to work with Money/Currency without the hassle of Floats
23
- email:
16
+ email:
24
17
  - semmons99@gmail.com
25
18
  executables: []
26
-
27
19
  extensions: []
28
-
29
20
  extra_rdoc_files: []
30
-
31
- files:
32
- - lib/cash.rbc
33
- - lib/cash.rb
34
- - lib/cash/cash.rbc
35
- - lib/cash/cash.rb
21
+ files:
22
+ - lib/cashrb/cash.rb
23
+ - lib/cashrb.rb
36
24
  - test/test_cash.rb
37
- - test/test_cash.rbc
38
25
  - CHANGELOG.md
39
26
  - LICENSE
40
27
  - README.md
@@ -44,40 +31,27 @@ files:
44
31
  has_rdoc: true
45
32
  homepage: http://github.com/semmons99/cashrb
46
33
  licenses: []
47
-
48
34
  post_install_message:
49
35
  rdoc_options: []
50
-
51
- require_paths:
36
+ require_paths:
52
37
  - lib
53
- required_ruby_version: !ruby/object:Gem::Requirement
38
+ required_ruby_version: !ruby/object:Gem::Requirement
54
39
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 57
59
- segments:
60
- - 1
61
- - 8
62
- - 7
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
63
43
  version: 1.8.7
64
- required_rubygems_version: !ruby/object:Gem::Requirement
44
+ required_rubygems_version: !ruby/object:Gem::Requirement
65
45
  none: false
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- hash: 23
70
- segments:
71
- - 1
72
- - 3
73
- - 6
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
74
49
  version: 1.3.6
75
- requirements:
50
+ requirements:
76
51
  - minitest
77
52
  rubyforge_project:
78
- rubygems_version: 1.5.2
53
+ rubygems_version: 1.6.2
79
54
  signing_key:
80
55
  specification_version: 3
81
56
  summary: Dead simple gem to work with Money/Currency without the hassle of Floats
82
57
  test_files: []
83
-