bip44-ruby 0.1.7 → 0.1.8

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: 7bb2aed29f6d2ae0a67f88782cd4df9d0216f17bd3b465c7fad79bb8d25492f4
4
- data.tar.gz: 3be7bbfe1fa72bc2b52ad000cfeaf1e17c7d4cbcaddb436209cd4bfbfaa0895b
3
+ metadata.gz: 20b3e1faefcd3bf51939350851e69098e4fe964f1fb6d51e71adbba4777e673f
4
+ data.tar.gz: c15c68805151d94d2e4dbf8a08b6efeaefb5a39dce35ec1c49cd6a8f4698c840
5
5
  SHA512:
6
- metadata.gz: 4a9f4b60eeac5d83679c48da0f586592d83f352316d853f9fc7b2d0f3383c51b2c8a33331cc81425731b7e1eb05d03c830737e681e3edf9e05087d4b9299aa61
7
- data.tar.gz: 34e15bb20cef2ac81842c0e7b0d2033cbe9f17e4ffd916783e35a39909c9cf60ebed86cc61b669b0a92511ee3532006400db7f04de92841cac05588c2ae01da2
6
+ metadata.gz: 57781c898ba7c377bcd00b4a1fcec7e00ea259d96c6f7487ba8b5e6ef9039076f7a2323f0031ed03dd5bfb3f5620ed785cac04b0abc40b77beec3898b013a665
7
+ data.tar.gz: a079d39800a8677c4a6aea35aa69c1738e400098281c12ad737c117ba8e0d4c4fa6db9eec1e6245a2156a5f783d8bf333e6eda474934c889095760f248221ffa
data/README.md CHANGED
@@ -36,6 +36,18 @@ Bip44.get_currency("0x80000000")
36
36
  # => "btc"
37
37
  ```
38
38
 
39
+ ### Check currency
40
+
41
+ ```ruby
42
+ require "bip44"
43
+
44
+ Bip44.include_currency?("eth")
45
+ # => true
46
+
47
+ Bip44.include_currency?("fake_currency")
48
+ # => false
49
+ ```
50
+
39
51
  ## Development
40
52
 
41
53
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
data/lib/bip44.rb CHANGED
@@ -25,7 +25,7 @@ module Bip44
25
25
  currency_info[:currency]
26
26
  end
27
27
 
28
- def include_bip44?(currency)
28
+ def include_currency?(currency)
29
29
  currency = currency.downcase
30
30
 
31
31
  CONSTANT.map { |c| c[:currency]}.include?(currency)
data/lib/bip44/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bip44
2
- VERSION = "0.1.7".freeze
2
+ VERSION = "0.1.8".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bip44-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nic