tapbot 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 +1 -1
- data/lib/tapbot/client/transactions.rb +2 -2
- data/lib/tapbot/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2fd6d32374af8772ba8233ac1013cb1880d82ca0
|
|
4
|
+
data.tar.gz: cd0d5372f0b767691ed2e661eb1a3ddc89b74fe0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a7fcc3091f08897742776fb2cd4c4e126cbd15d344b8b30da1c29a097f458710056a87cb7fcc67562d608bc986dd820171d1c594a06d3f1b3b707ed42de3a1b
|
|
7
|
+
data.tar.gz: 1def3d47224b2a79bd483c2d522b59730e643a9359f6e4545a7950214ca124ec798aa138ed67501e4323cd052081a8d4c92eaf2a43eb97a3ccd4fa9fbba6c372
|
data/README.md
CHANGED
|
@@ -122,7 +122,7 @@ exchange.date
|
|
|
122
122
|
```ruby
|
|
123
123
|
exchange = client.create_exchange(amount, "btc-address") # TAP amount to exchange to BTC and your Wallet address
|
|
124
124
|
```
|
|
125
|
-
If everithing is ok it should return
|
|
125
|
+
If everithing is ok it should return an Exchange object
|
|
126
126
|
```ruby
|
|
127
127
|
exchange.exchange_id
|
|
128
128
|
exchange.btc_address
|
|
@@ -16,8 +16,8 @@ module Tapbot
|
|
|
16
16
|
response
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
def create_transaction(to, amount, comments="")
|
|
20
|
-
response = self.class.post("/transactions", { :body => {:transaction => { to: to, amount: amount, comments: comments }}.to_json, headers: auth_headers("/transactions", { :transaction => { to: to, amount: amount, comments: comments }}.to_json)})
|
|
19
|
+
def create_transaction(to, amount, comments="", earn=false, app_id="")
|
|
20
|
+
response = self.class.post("/transactions", { :body => {:transaction => { to: to, amount: amount, comments: comments, earn: earn, app_id: app_id }}.to_json, headers: auth_headers("/transactions", { :transaction => { to: to, amount: amount, comments: comments, earn: earn, app_id: app_id }}.to_json)})
|
|
21
21
|
raise Tapbot::Error, response["errors"][0] unless response.success?
|
|
22
22
|
response
|
|
23
23
|
end
|
data/lib/tapbot/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tapbot
|
|
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
|
- David Ramirez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-12-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
144
144
|
version: '0'
|
|
145
145
|
requirements: []
|
|
146
146
|
rubyforge_project:
|
|
147
|
-
rubygems_version: 2.
|
|
147
|
+
rubygems_version: 2.5.0
|
|
148
148
|
signing_key:
|
|
149
149
|
specification_version: 4
|
|
150
150
|
summary: Tapbot api gem
|