crypto-unit 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44be33d0f9a4b7bb535419719c790b0780327cde
4
- data.tar.gz: bcb256c4393e58355f19f383567c8fdfdff66df5
3
+ metadata.gz: 38facfcdff2213e9be4dc206c784e965ae84391b
4
+ data.tar.gz: 0243bf436a4369e17dbdd6c3e3b9910861d60767
5
5
  SHA512:
6
- metadata.gz: 9b7b58b89f860f5ba0ed54935151eddb3ee086909ea4acec2c29d1681cb761dd8a08237d71a3ceb8eb27852767ae2d18f8e391bff2b1c173caf41ebd42ae3f2e
7
- data.tar.gz: 43864b3a960cc88d8295f820b81da34df0bdd0ccb73992046f42509c4d79862d9d234f5c8a2d7169ad021ae2ffd6b069b372cf164fe4b98ba4a4295013d8f610
6
+ metadata.gz: e47cab25664081ffef7f7eff5b5ca384378d7638d3446bfd5c2dfcc62e933efdee04c57595807643023665b98523ff9f7d1d3b3212cca04f30240f6a698c21df
7
+ data.tar.gz: d3920c1fbb86ff63bc88d01b939a4a50593ce78014bf7c26bd293b120bd698398582b718c7341d0be2d840e888dbd77eceb769fe7de8393a398bb5849603d433
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
data/crypto-unit.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: crypto-unit 0.3.2 ruby lib
5
+ # stub: crypto-unit 0.3.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "crypto-unit".freeze
9
- s.version = "0.3.2"
9
+ s.version = "0.3.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Roman Snitko".freeze]
14
- s.date = "2017-08-31"
14
+ s.date = "2017-09-01"
15
15
  s.description = "Converts various BTC and LTC denominations".freeze
16
16
  s.email = "roman.snitko@gmail.com".freeze
17
17
  s.extra_rdoc_files = [
@@ -130,6 +130,8 @@ class CryptoUnit
130
130
  result = format_zero ? '0' : '0.0'
131
131
  elsif result =~ /\A\./
132
132
  result = "0#{result}"
133
+ elsif result =~ /\.\Z/
134
+ result = format_zero ? result[0..-2] : "#{result}0"
133
135
  end
134
136
  sign == -1 ? "-#{result}" : result
135
137
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crypto-unit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Snitko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-31 00:00:00.000000000 Z
11
+ date: 2017-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler