doge_coin 1.0.0 → 1.0.1

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
  SHA1:
3
- metadata.gz: c28613f8e9edbd78ed662031adc808c65547fab4
4
- data.tar.gz: 0a9ef6c80bbd1b8c4b07392636f56e790332f4f6
3
+ metadata.gz: 4fa0944c60fe64fb4e7d023b0045c193cd3589b0
4
+ data.tar.gz: 2d5f84eb18f011bc07da619726bf5f999a1caf62
5
5
  SHA512:
6
- metadata.gz: cdc44cb0301c6bf590b12c36e919ce94a8152b1e841eee77d5136da855097c0671b9469527143ce6ca4078191c81ea94b857160918a5901eada7eea4a6a34b79
7
- data.tar.gz: 61a13dfe81867c77583fd15c40e7b3b9bf2003b4aaace5dc767a6bf4cd573ead712ec37df38f762078730242bbbb2fc153423bc468b5aee89f3df8bbb429d024
6
+ metadata.gz: 93f3e05dbcc1162221a0fa57a20576129c50bb3ffab0f07efb633750090f05eb33b56cd74ed14fedda5a5b1dd691a355487140d90cff5790074720aaa9507d11
7
+ data.tar.gz: 57e9f58b29a1bcb72eeae024e8a1736c9b1682e56674f1c1e2c3da5e01f51c7a605820cf9fccf4d413fb7f2709063499969f2d906cd464bc839051c7de768114
@@ -1,4 +1,5 @@
1
1
  require 'doge_coin/errors'
2
+ require 'json'
2
3
  require 'faraday'
3
4
 
4
5
  module DogeCoin
@@ -21,7 +22,7 @@ module DogeCoin
21
22
 
22
23
  # Returns the amount transactions of the last blocks as an Array object
23
24
  def transactions
24
- ::JSON.parse(call_blockchain_api("transactions"))
25
+ JSON.parse(call_blockchain_api("transactions"))
25
26
  end
26
27
 
27
28
  # Returns the address balance (received - sent)
@@ -42,7 +43,7 @@ module DogeCoin
42
43
  # See http://dogechain.info/chain/Dogecoin/q/nethash
43
44
  def nethash interval = 500, start = 0, stop = false
44
45
  suffixe = stop ? "/#{stop}" : ''
45
- ::JSON.parse(call_blockchain_api("nethash/#{interval}/#{start}#{suffixe}?format=json"))
46
+ JSON.parse(call_blockchain_api("nethash/#{interval}/#{start}#{suffixe}?format=json"))
46
47
  end
47
48
 
48
49
  # Returns the total sent
@@ -1,3 +1,3 @@
1
1
  module DogeCoin
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doge_coin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitri Jorge