big_decimal_price 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{big_decimal_price}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Campbell"]
12
- s.date = %q{2011-01-18}
12
+ s.date = %q{2011-01-31}
13
13
  s.description = %q{In Rails, you can store prices as a decimal with precision 8 and scale 2. This gem ensures that your templates print them like prices.}
14
14
  s.email = %q{paul@rslw.com}
15
15
  s.extra_rdoc_files = [
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  s.homepage = %q{http://github.com/paulca/big_decimal_price}
32
32
  s.licenses = ["MIT"]
33
33
  s.require_paths = ["lib"]
34
- s.rubygems_version = %q{1.3.7}
34
+ s.rubygems_version = %q{1.4.2}
35
35
  s.summary = %q{BigDecimal.new('10.9').to_s #=> '10.90'}
36
36
  s.test_files = [
37
37
  "spec/big_decimal_spec.rb",
@@ -39,7 +39,6 @@ Gem::Specification.new do |s|
39
39
  ]
40
40
 
41
41
  if s.respond_to? :specification_version then
42
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
43
42
  s.specification_version = 3
44
43
 
45
44
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -10,6 +10,6 @@ class BigDecimal
10
10
  alias_method :to_s, :to_s_with_format
11
11
 
12
12
  def in_cents
13
- self * 100
13
+ (self * 100).to_i
14
14
  end
15
15
  end
@@ -12,5 +12,6 @@ describe BigDecimal do
12
12
  describe "#in_cents" do
13
13
  subject { BigDecimal.new('9.99') }
14
14
  its(:in_cents){ should == 999 }
15
+ its(:in_cents){ should be_a_kind_of(Integer) }
15
16
  end
16
17
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: big_decimal_price
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease: false
4
+ hash: 31
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paul Campbell
@@ -15,13 +15,13 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-18 00:00:00 +00:00
18
+ date: 2011-01-31 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- type: :development
23
22
  prerelease: false
24
23
  name: rspec
24
+ type: :development
25
25
  version_requirements: &id001 !ruby/object:Gem::Requirement
26
26
  none: false
27
27
  requirements:
@@ -35,9 +35,9 @@ dependencies:
35
35
  version: 2.3.0
36
36
  requirement: *id001
37
37
  - !ruby/object:Gem::Dependency
38
- type: :development
39
38
  prerelease: false
40
39
  name: bundler
40
+ type: :development
41
41
  version_requirements: &id002 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
@@ -51,9 +51,9 @@ dependencies:
51
51
  version: 1.0.0
52
52
  requirement: *id002
53
53
  - !ruby/object:Gem::Dependency
54
- type: :development
55
54
  prerelease: false
56
55
  name: jeweler
56
+ type: :development
57
57
  version_requirements: &id003 !ruby/object:Gem::Requirement
58
58
  none: false
59
59
  requirements:
@@ -67,9 +67,9 @@ dependencies:
67
67
  version: 1.5.2
68
68
  requirement: *id003
69
69
  - !ruby/object:Gem::Dependency
70
- type: :development
71
70
  prerelease: false
72
71
  name: rcov
72
+ type: :development
73
73
  version_requirements: &id004 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  requirements: []
133
133
 
134
134
  rubyforge_project:
135
- rubygems_version: 1.3.7
135
+ rubygems_version: 1.4.2
136
136
  signing_key:
137
137
  specification_version: 3
138
138
  summary: "BigDecimal.new('10.9').to_s #=> '10.90'"