percent_of 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e36c9db90a000b1f8019efbc8ce1bdbc902846e2
4
- data.tar.gz: 9cdd17e45fc0137cc9c008a40ef30b362dcb1603
3
+ metadata.gz: 0e996c5d160d1b25d9dee6c76015f89247c7d126
4
+ data.tar.gz: 5816ac51e83c168e984df98309676e9fc35fc6ba
5
5
  SHA512:
6
- metadata.gz: bf86fcc9229ea541c21645ed8597313834f997a8b2bb3e0e90f7bf44638da68e36486793883f13944ac01d04d0390279ea7d82fc146fbf41fe7d2d6ff368972d
7
- data.tar.gz: ce2c95ba4fe8b919056e34d582f6f42426c3be5ae720c981f8950832b666a4e0bf72b41ec551708fcf67a2546f7934a4947a86f29fd012955c20a3e2e31b9d6a
6
+ metadata.gz: 832ed8accde0bbce1ee4a11f34e5775cee3a919e12c8256951cb21e84c862ad4a6e4116091cebe16e9f417930e827160f9dd86452d3a3f950e9667c8202477cf
7
+ data.tar.gz: 000274dfbf1c883d53bcc0fe3597eb6c5767e6c4a66f63669aa6fd104ad089ceb1305b3cc209c1814dc86d305d3f9c7a5e5588516840c650d704ad7a06e830a4
@@ -1,3 +1,7 @@
1
+ ## v0.0.3 - May 15, 2014
2
+
3
+ * Fix typo when raising error.
4
+
1
5
  ## v0.0.2 - May 15, 2014
2
6
 
3
7
  * Update descriptions.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- percent_of (0.0.2)
4
+ percent_of (0.0.3)
5
5
  bundler (~> 1.3)
6
6
 
7
7
  GEM
@@ -1,6 +1,6 @@
1
1
  module PercentOf
2
2
  def percent_of(total)
3
- raise RuntimeError, 'total cand be 0' if total.to_f == 0.0
3
+ raise RuntimeError, "total can't be 0" if total.to_f == 0.0
4
4
  sprintf '%.2f%', self / total.to_f * 100
5
5
  end
6
6
  end
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "percent_of"
6
- spec.version = "0.0.2"
6
+ spec.version = "0.0.3"
7
7
  spec.authors = ["Catalin Ilinca"]
8
8
  spec.email = ["c@talin.ro"]
9
9
  spec.description = %q{It returns the percent of a number from another number.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: percent_of
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Catalin Ilinca