cryptocoin_fanboi 0.8.1 → 0.8.2

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
  SHA256:
3
- metadata.gz: 9b0a089e97181c6298d1ec7f49c8451131e42bf3e2bb3ffd167e8b9927816007
4
- data.tar.gz: 232c3b6ef7051400b6730849952b24578ba1fcf14d2b5904ddae5f67e70d9993
3
+ metadata.gz: 3400a8bf63d6a0c2a0e674a9069fbec9491e80a35fa2cfb34a824b3ed1131c16
4
+ data.tar.gz: '0774791ece51f01337d21a450f8d3fcd429c79ae83e6deb8de29895178fc80bb'
5
5
  SHA512:
6
- metadata.gz: 77aebee28ecf4304c597d8db3833d3bab6891d469f2d85fd995198543c5d00164ac3d043a58c576cb9c38b19231cf3b01cf414be77c82060ae99bf84ee549791
7
- data.tar.gz: 4a2ffc7e8a62612e1f03c124a00bd67789316ff8caf8ea13bbafdb3b38a6e10e5491bd80d2e7f0e159a88f78856708ba4b7cebc5d27e0f07aa6b1ccfcd91f05f
6
+ metadata.gz: c7fe5b7b48d7549f1d49ac12957e219eecbcfd796d5b2dd56eb5e595baee22564f7ff037802504ca83e07bd7059a234ea3577896d7ba0b3908eb3a2b6fd40d67
7
+ data.tar.gz: '04285d10aade28ac593a0758031622023c22032f6b8b83382071555b81373b24aa389d36264727ea8c9928eaf3271fded1a087cf6fa9779d9889096b31c98da3'
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -497,8 +497,8 @@ class CryptocoinFanboi
497
497
 
498
498
  def fetch_coinlist(limit: nil)
499
499
 
500
- body = CoinmarketcapLite.new(apikey: @cmc_apikey).coins.body
501
- @all_coins = JSON.parse(body)['data']\
500
+ body = CoinmarketcapLite.new(apikey: @cmc_apikey).coins
501
+ @all_coins = body['data']\
502
502
  .map {|x| OpenStruct.new x}
503
503
 
504
504
  if @watch.any? then
@@ -589,10 +589,14 @@ end
589
589
 
590
590
  class CryptocoinFanboiPlus < CryptocoinFanboi
591
591
 
592
- def initialize(reg_domain, watch: [], ignore: [], colored: true, debug: false,
592
+ def initialize(regx, watch: [], ignore: [], colored: true, debug: false,
593
593
  filepath: '.')
594
594
 
595
- reg = RemoteDwsRegistry.new domain: reg_domain
595
+ reg = if regx.is_a? String then
596
+ RemoteDwsRegistry.new domain: regx
597
+ else
598
+ regx
599
+ end
596
600
 
597
601
  exchangerate_key = JustExchangeRatesPlus.fetch_app_id(reg)
598
602
  puts 'exchangerate_key:' + exchangerate_key.inspect if debug
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptocoin_fanboi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  8apOj5Vc5mSZcvmZkImt0L0+RfWgzVjyK6LWXmWC0fkURO1c8pu+DEn2QI5HEKpD
36
36
  zda3SGyo8CEr8HOwCV4H0aAY
37
37
  -----END CERTIFICATE-----
38
- date: 2021-05-04 00:00:00.000000000 Z
38
+ date: 2021-05-05 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: colored
metadata.gz.sig CHANGED
Binary file