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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e15f05fc034d20ae22e1ed3ffd827b314305634
4
- data.tar.gz: 45ad5b318a1965aac0b081b43c6ec0832d72e619
3
+ metadata.gz: 2fd6d32374af8772ba8233ac1013cb1880d82ca0
4
+ data.tar.gz: cd0d5372f0b767691ed2e661eb1a3ddc89b74fe0
5
5
  SHA512:
6
- metadata.gz: 00875333f29d1006f55e47cbea9ea324b0dd9f9e127bcc6ae6e4969a3ef05f87f36125dbcc1da16efa04531e241c2596183e06880a1319f37e9df7957389da58
7
- data.tar.gz: 38df0f610521e77a084f28685704a92250baf2f1e02298d634bf3b949414eb84dff1ef907f577e2910a283fb424ace9e03762a5577fbad01efb11f8d05aacfc5
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 a Exchange object
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
@@ -1,3 +1,3 @@
1
1
  module Tapbot
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-10-30 00:00:00.000000000 Z
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.4.8
147
+ rubygems_version: 2.5.0
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: Tapbot api gem