keoken 0.2.2 → 0.2.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: 6e040de8b579d5b532fca1decf9638a909f18d5e3b4716eb03f5a3d4e6942132
4
- data.tar.gz: 68e9cd981688494f71c7915c7fafd7a5c754cacf5537c8a18500f9f5d584648a
3
+ metadata.gz: 126953e505658d655f2706a2f85270ec734d212cba97a8921f869aa0050c1c21
4
+ data.tar.gz: a0b31846576458be9c49a9d970e9c48a2ff2568fc522a185611208047eda8f65
5
5
  SHA512:
6
- metadata.gz: 61094af95fb3965059549ee90a90c3c867009a2f3efd2303a753289775c3dc28b066f712b15b2fb13e84e53a96257e54ef281f60266f9fc0bfd9c0ebc1a868ea
7
- data.tar.gz: 4cfcc9d22946949c6e720ceff9fc85879cc5cda32d201bbd6ae639476a272349b93982d0f56322ba455a93d159d43f74eaf710c49a4ba8396d2d04c690336b18
6
+ metadata.gz: 495003394351a1fbcc233c3de963f4921ba9812342875166fe1d3328674d9191c7ad3b572d06f2974e841ade36732b7b8a8785b14745feda1aa979473e699504
7
+ data.tar.gz: 9a3c6d71308d18d979c22cd0c99098f4a1c6ca9e5b7eeae0bc2c8f3ff0235b90a64bd6edf5d037007d7375dad7297a1b86572eda0ca851126d23cb877c40c7e8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- keoken (0.2.1)
4
+ keoken (0.2.2)
5
5
  bitcoin-ruby (~> 0.0.18)
6
6
 
7
7
  GEM
@@ -79,7 +79,7 @@ module Keoken
79
79
  private
80
80
 
81
81
  def root_node_url
82
- file = YAML.load_file('lib/keoken/bitprim/config.yaml')
82
+ file = YAML.load_file(check_for_path)
83
83
  if ENV['KEOKEN_NODE'] == 'PRODUCTION'
84
84
  file['Bitprim']['node']['mainnet']['url']
85
85
  else
@@ -88,13 +88,19 @@ module Keoken
88
88
  end
89
89
 
90
90
  def root_keoken_url
91
- file = YAML.load_file('lib/keoken/bitprim/config.yaml')
91
+ file = YAML.load_file(check_for_path)
92
92
  if ENV['KEOKEN_NODE'] == 'PRODUCTION'
93
93
  file['Bitprim']['keoken']['mainnet']['url']
94
94
  else
95
95
  file['Bitprim']['keoken']['testnet']['url']
96
96
  end
97
97
  end
98
+
99
+ def check_for_path
100
+ path = 'config/keoken.yaml'
101
+ return path if File.file?(path)
102
+ "#{Gem.loaded_specs['keoken'].full_gem_path}/lib/keoken/bitprim/config.yaml"
103
+ end
98
104
  end
99
105
  end
100
106
  end
@@ -1,3 +1,3 @@
1
1
  module Keoken
2
- VERSION = '0.2.2'.freeze
2
+ VERSION = '0.2.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keoken
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bitex