blocktrail 0.1.0 → 0.1.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 +4 -4
- data/README.md +2 -0
- data/examples/simple_data_api_usage.rb +7 -0
- data/lib/blocktrail/client.rb +1 -1
- data/lib/blocktrail/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 062f9418266bb358ba7f063ced14752a269ef9a6
|
|
4
|
+
data.tar.gz: 7b2d1288241f340a5349536c05616b58fd053ebe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c3a0b9a92041cb26a8ad8545f22f2c3e70d7fcc76973c7188f98816a6fe77d7e4f3a3f63049d01d5374715ec16d3ca783356257f80e2b5ed9431dec7982d73da
|
|
7
|
+
data.tar.gz: 09264284127666883b3c19588c8dd433ea3f0ecd2cba43d93a8aa5131b93cdff9be8b1b0d1fc2764e6a6cbc6a77cc7b17ec9bab1a0f550334d7c6847519a0a07
|
data/README.md
CHANGED
|
@@ -2,6 +2,8 @@ BlockTrail Ruby SDK
|
|
|
2
2
|
=====================
|
|
3
3
|
This is the BlockTrail Ruby SDK. This SDK contains methods for easily interacting with the BlockTrail API.
|
|
4
4
|
|
|
5
|
+
[](https://badge.fury.io/rb/blocktrail)
|
|
6
|
+
|
|
5
7
|
IMPORTANT! FLOATS ARE EVIL!!
|
|
6
8
|
----------------------------
|
|
7
9
|
As is best practice with financial data, The API returns all values as an integer, the Bitcoin value in Satoshi's.
|
data/lib/blocktrail/client.rb
CHANGED
|
@@ -7,7 +7,7 @@ module Blocktrail
|
|
|
7
7
|
class Client
|
|
8
8
|
attr_accessor :api_key, :api_secret, :api_version, :testnet, :debug
|
|
9
9
|
|
|
10
|
-
def initialize(api_key, api_secret, api_version = 'v1', testnet =
|
|
10
|
+
def initialize(api_key, api_secret, api_version = 'v1', testnet = false, debug = false)
|
|
11
11
|
@api_key = api_key
|
|
12
12
|
@api_secret = api_secret
|
|
13
13
|
@api_version = api_version
|
data/lib/blocktrail/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: blocktrail
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yuri Skurikhin
|
|
@@ -82,6 +82,7 @@ files:
|
|
|
82
82
|
- bin/console
|
|
83
83
|
- bin/setup
|
|
84
84
|
- blocktrail.gemspec
|
|
85
|
+
- examples/simple_data_api_usage.rb
|
|
85
86
|
- lib/blocktrail.rb
|
|
86
87
|
- lib/blocktrail/client.rb
|
|
87
88
|
- lib/blocktrail/exceptions.rb
|