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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e73c584f0de2d9f87d47d34b21d7b172ac0de20
4
- data.tar.gz: 7960133d5b375727a74520d64539d5be8b7d5904
3
+ metadata.gz: 062f9418266bb358ba7f063ced14752a269ef9a6
4
+ data.tar.gz: 7b2d1288241f340a5349536c05616b58fd053ebe
5
5
  SHA512:
6
- metadata.gz: 4cd5f9c2f62c3fad9c2bff579884e99b0090775d41fe8e9626b741f5a322391d81176d1f4046a1acc6a264c757dcc3bfc5d34cc62031e8bd7c298082c0a3f41e
7
- data.tar.gz: 599388a820d983676f0967de4bd7e78d1f1f83ada69edfdd85e8628ce1e6f66e41fcdb811339030893d24b5dd035884cc583337987cdf3ade904e689c8845abf
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
+ [![Gem Version](https://badge.fury.io/rb/blocktrail@2x.png)](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.
@@ -0,0 +1,7 @@
1
+ require 'blocktrail'
2
+
3
+ client = Blocktrail::Client.new('YOUR_API_KEY_HERE', 'YOUR_API_SECRET_HERE')
4
+
5
+ address = client.address('1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp')
6
+ client.price
7
+ client.address_transactions('1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp')['data']
@@ -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 = true, debug = true)
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
@@ -1,3 +1,3 @@
1
1
  module Blocktrail
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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.0
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