crypto-unit 0.3.3 → 0.3.4

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
- SHA1:
3
- metadata.gz: 38facfcdff2213e9be4dc206c784e965ae84391b
4
- data.tar.gz: 0243bf436a4369e17dbdd6c3e3b9910861d60767
2
+ SHA256:
3
+ metadata.gz: 9c063d7eb60a4972ae234ba8c0eae55d9114608b10c0dbb5f44e1ffee9ff5aac
4
+ data.tar.gz: 6d4997c4f1f5b06bf1e0f814ab2ba93b6f77e5a0f5e958864cfb327004937edf
5
5
  SHA512:
6
- metadata.gz: e47cab25664081ffef7f7eff5b5ca384378d7638d3446bfd5c2dfcc62e933efdee04c57595807643023665b98523ff9f7d1d3b3212cca04f30240f6a698c21df
7
- data.tar.gz: d3920c1fbb86ff63bc88d01b939a4a50593ce78014bf7c26bd293b120bd698398582b718c7341d0be2d840e888dbd77eceb769fe7de8393a398bb5849603d433
6
+ metadata.gz: 07a066d5adc2d182ac9216d2b357738b09dff6c53a3a59a01f36acea1f041edba4e614fed17cfb8202824e08f3e8cde06d2a86487bdbcfb048cb00cf4d703051
7
+ data.tar.gz: d869dabeff57ac3c39195916d1364c30c0b4b3fc8d3c46fa77ca1f6400e242e31d7569af892767a0d46eb82f11834fac6ca85efcb3e51960142e828248ea31e3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rspec' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rspec-core", "rspec")
@@ -2,18 +2,19 @@
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.3 ruby lib
5
+ # stub: crypto-unit 0.3.4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "crypto-unit".freeze
9
- s.version = "0.3.3"
9
+ s.version = "0.3.4"
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-09-01"
14
+ s.date = "2019-08-05"
15
15
  s.description = "Converts various BTC and LTC denominations".freeze
16
16
  s.email = "roman.snitko@gmail.com".freeze
17
+ s.executables = ["rspec".freeze]
17
18
  s.extra_rdoc_files = [
18
19
  "LICENSE.txt",
19
20
  "README.md"
@@ -27,6 +28,7 @@ Gem::Specification.new do |s|
27
28
  "README.md",
28
29
  "Rakefile",
29
30
  "VERSION",
31
+ "bin/rspec",
30
32
  "crypto-unit.gemspec",
31
33
  "lib/crypto-unit.rb",
32
34
  "lib/crypto_unit_base.rb",
@@ -36,7 +38,7 @@ Gem::Specification.new do |s|
36
38
  ]
37
39
  s.homepage = "http://github.com/mgpnd/crypto-unit".freeze
38
40
  s.licenses = ["MIT".freeze]
39
- s.rubygems_version = "2.6.13".freeze
41
+ s.rubygems_version = "3.0.3".freeze
40
42
  s.summary = "Converts various BTC and LTC denominations".freeze
41
43
 
42
44
  if s.respond_to? :specification_version then
@@ -138,7 +138,7 @@ class CryptoUnit
138
138
  end
139
139
 
140
140
  def convert_to_primary(n)
141
- n = BigDecimal.new(n.to_s)
141
+ n = BigDecimal(n.to_s)
142
142
 
143
143
  decimal_part_length = n.to_s("F").split(".")[1]
144
144
  decimal_part_length = if decimal_part_length
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.3
4
+ version: 0.3.4
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-09-01 00:00:00.000000000 Z
11
+ date: 2019-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -54,7 +54,8 @@ dependencies:
54
54
  version: '0'
55
55
  description: Converts various BTC and LTC denominations
56
56
  email: roman.snitko@gmail.com
57
- executables: []
57
+ executables:
58
+ - rspec
58
59
  extensions: []
59
60
  extra_rdoc_files:
60
61
  - LICENSE.txt
@@ -68,6 +69,7 @@ files:
68
69
  - README.md
69
70
  - Rakefile
70
71
  - VERSION
72
+ - bin/rspec
71
73
  - crypto-unit.gemspec
72
74
  - lib/crypto-unit.rb
73
75
  - lib/crypto_unit_base.rb
@@ -93,8 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
95
  - !ruby/object:Gem::Version
94
96
  version: '0'
95
97
  requirements: []
96
- rubyforge_project:
97
- rubygems_version: 2.6.13
98
+ rubygems_version: 3.0.3
98
99
  signing_key:
99
100
  specification_version: 4
100
101
  summary: Converts various BTC and LTC denominations