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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae6c23652ae277cf0cefc52422d1d14ef030a12b
4
- data.tar.gz: 03cc2002e25a59751d9c088271bbafae7ebb5d5c
3
+ metadata.gz: e798a19df2694546404f26fef9a0b50dbf25bd98
4
+ data.tar.gz: ba58eb9dc967417b9b4ad3e88eb9a9fc09d8081a
5
5
  SHA512:
6
- metadata.gz: 2f8beb5dbf37fc948c8d2eacc4d3a83cdba1cecf15bbd7b2f2f4a5cbba533f1c8848f2c1896cb68f777900f3eb3afeef5796fdc585203ce51db00b9fac20fdcf
7
- data.tar.gz: cdcdea9836f9c44ae963abcbb13169c5c8ea804c56dce5dc9ccb6aced2e13992550f0dc5edcc3b5c52e40f17451b79302c5183a0b422e28d00cb433b5406276e
6
+ metadata.gz: a4ab257d33d727a8585ff62aff2c811c88151ae861d78c0e33739385d3df8ee597c5e72fd180c59ea1d41fbfd2814ad7a915e63b9382143efccb2f20ac303a5e
7
+ data.tar.gz: 4f6a091055bc07910127d50e38d00aa75232f318bae95752d85772ad71ad88149e90f8c59ca31dc25341430aa4fbe462ac9939d96cfd83875359be28f6496e43
data/.gitignore CHANGED
@@ -47,4 +47,4 @@ Gemfile*
47
47
  Rakefile
48
48
  .ruby-version
49
49
  .editorconfig
50
-
50
+ *.gem
data/README.md CHANGED
@@ -1 +1,2 @@
1
+ [![Gem Version](https://badge.fury.io/rb/maicoin.svg)](http://badge.fury.io/rb/maicoin)
1
2
  # maicoin-ruby
@@ -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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module MaiCoin
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: maicoin
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
  - MaiCoin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-05 00:00:00.000000000 Z
11
+ date: 2015-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler