maicoin 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/.gitignore +1 -1
- data/README.md +1 -0
- data/example-oauth.rb +1 -0
- data/lib/maicoin/client.rb +5 -0
- data/lib/maicoin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e798a19df2694546404f26fef9a0b50dbf25bd98
|
4
|
+
data.tar.gz: ba58eb9dc967417b9b4ad3e88eb9a9fc09d8081a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4ab257d33d727a8585ff62aff2c811c88151ae861d78c0e33739385d3df8ee597c5e72fd180c59ea1d41fbfd2814ad7a915e63b9382143efccb2f20ac303a5e
|
7
|
+
data.tar.gz: 4f6a091055bc07910127d50e38d00aa75232f318bae95752d85772ad71ad88149e90f8c59ca31dc25341430aa4fbe462ac9939d96cfd83875359be28f6496e43
|
data/.gitignore
CHANGED
data/README.md
CHANGED
data/example-oauth.rb
CHANGED
@@ -38,4 +38,5 @@ puts trans
|
|
38
38
|
puts client.cancel_request_btc(trans['transaction']['id'])
|
39
39
|
puts client.send_transaction('yute@maicoin.com', 0.001, 'btc', pin)
|
40
40
|
puts client.send_transaction('1FTv5Ymfq1uT9N9ZrmYRgpKw69U6grnm64', 0.0011, 'btc', pin)
|
41
|
+
puts client.approve_requested_transaction('539e92b8520f0e9d2a9cadfbec28c1a7aeecb44f5f31a36b', pin)
|
41
42
|
|
data/lib/maicoin/client.rb
CHANGED
@@ -136,6 +136,11 @@ module MaiCoin
|
|
136
136
|
delete "/transactions/#{txid}"
|
137
137
|
end
|
138
138
|
|
139
|
+
def approve_requested_transaction(txid, account_pin, options={})
|
140
|
+
options.merge!({account_pin: account_pin})
|
141
|
+
put "/transactions/#{txid}/approve", options
|
142
|
+
end
|
143
|
+
|
139
144
|
### Checkouts
|
140
145
|
def create_checkout(options = {})
|
141
146
|
post '/checkouts', options
|
data/lib/maicoin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maicoin
|
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
|
- MaiCoin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|