bip44-ruby 0.1.2 → 0.1.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
  SHA256:
3
- metadata.gz: 98837701e9077d10a7dc17f71628bfd40aa898d6f6eb022ee7f93a244b5c553f
4
- data.tar.gz: 2b29f14ab9ddec4f04166ba498e2555f6fe4922d9f87203cee7e152467e0c0d9
3
+ metadata.gz: 9923f69769161865d2a2a8ba95bf8d5aaf4288a22b23ce2dcc6b2f0fb6fccd24
4
+ data.tar.gz: 8a2ccd3a184da4ac27e8129b1983b477ed00796e03bc3bccad9f511d9e305e88
5
5
  SHA512:
6
- metadata.gz: 735b7cc4de742ae0d73e880f036ca9eaee524892a069aa240f5696f4ce326447aaddf5941e8992af47e74f88b8a47464d5a33ff00016ab2737c17a718118e110
7
- data.tar.gz: a72da4df4cddbc7b91bc4fdbbd44da49e0915a4d620d2c08b7176d4ab24036dc10d78a0756a04d85f4b3dfca012c5596417a46bd786263b3ee7accf61cc20f31
6
+ metadata.gz: fb0a254f692eeaeff047ac52dc912ed7c7628eaeaee7daa77022844dfe7abb51f4e67108339953ae7b36e8b261280e7ace93c8d2f8b42b593331633261c0a626
7
+ data.tar.gz: 49132da7fa9f71f231f95c0cd179fe38f458079b074a65741458be597e736dd425ed2211180bf8dd3455572edbdc2aab013495b7235d640eab303b0ba89d2931
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+ *.gem
@@ -14,5 +14,15 @@ module Bip44
14
14
 
15
15
  currency_info[:constant]
16
16
  end
17
+
18
+ def get_currency(hexa)
19
+ currency = currency.downcase
20
+
21
+ currency_info = CONSTANT.find { |c| c[:constant] == hexa }
22
+
23
+ raise Error, "Can not found currency from #{hexa}" if currency_info.nil?
24
+
25
+ currency_info[:currency]
26
+ end
17
27
  end
18
28
  end
@@ -1,3 +1,3 @@
1
1
  module Bip44
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bip44-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-30 00:00:00.000000000 Z
11
+ date: 2020-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -68,8 +68,6 @@ files:
68
68
  - Rakefile
69
69
  - bin/console
70
70
  - bin/setup
71
- - bip44-ruby-0.1.0.gem
72
- - bip44-ruby-0.1.1.gem
73
71
  - bip44.gemspec
74
72
  - lib/bip44.rb
75
73
  - lib/bip44/constants.rb
Binary file
Binary file