round 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.md +2 -3
- data/lib/round/account.rb +4 -2
- data/lib/round/transaction.rb +4 -4
- data/lib/round/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccf51fac9eb975048451b6effbd961e455083105
|
4
|
+
data.tar.gz: d9a04aa2c6e2128b18cd6061db162cc24b93fa0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6fcd157b043bf84763b7a48993d2f0c0085742cd0898c3a1ef6e89d23d49aa0f597ae0158b62324f5522f4477f5e69e5d0b2ec1760bb2a108a95970c7ba3d6b
|
7
|
+
data.tar.gz: 40b3a3eaf0a819435cad5a874847c8af5574745e4860af05b402ce542e7c92745f3ec54d9027cd1b118a98508b0ba0df0e59ab2fa3916e866ca30cee368085ff
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -12,10 +12,9 @@ The round client is designed to interact with Gem's API to make building blockch
|
|
12
12
|
|
13
13
|
## Support information
|
14
14
|
* __Support email__: [support@gem.co](mailto:support@gem.co)
|
15
|
-
* __Support IRC chat__: `#gemhq` on `irc.freenode.net`
|
16
15
|
* __Issues__: Use github issues
|
17
|
-
*
|
18
|
-
* __Detailed API Docs__: http://guide.gem.co
|
16
|
+
* __Support Slack room__: [![](https://chat.gem.co/badge.svg)](https://chat.gem.co)
|
17
|
+
* __Detailed API Docs__: [Gem API Docs](http://guide.gem.co)
|
19
18
|
|
20
19
|
## Installing round-rb:
|
21
20
|
### Prerequisites:
|
data/lib/round/account.rb
CHANGED
@@ -22,8 +22,10 @@ module Round
|
|
22
22
|
def pay(payees, confirmations, redirect_uri = nil, mfa_token: nil)
|
23
23
|
raise 'You must unlock the wallet before attempting a transaction' unless @wallet.multiwallet
|
24
24
|
|
25
|
-
payment = self.transactions.create(payees, confirmations
|
26
|
-
signed = payment.sign(@wallet.multiwallet,
|
25
|
+
payment = self.transactions.create(payees, confirmations)
|
26
|
+
signed = payment.sign(@wallet.multiwallet,
|
27
|
+
redirect_uri: redirect_uri,
|
28
|
+
network: network.to_sym)
|
27
29
|
if wallet.application
|
28
30
|
mfa_token = mfa_token || @wallet.application.get_mfa
|
29
31
|
signed.approve(mfa_token)
|
data/lib/round/transaction.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Round
|
2
2
|
class Transaction < Round::Base
|
3
3
|
|
4
|
-
def sign(wallet, network:)
|
4
|
+
def sign(wallet, redirect_uri: nil, network:)
|
5
5
|
raise 'transaction is already signed' unless @resource['status'] == 'unsigned'
|
6
6
|
raise 'a wallet is required to sign a transaction' unless wallet
|
7
7
|
network = :testnet3 if network == :bitcoin_testnet
|
@@ -13,7 +13,8 @@ module Round
|
|
13
13
|
signatures: {
|
14
14
|
transaction_hash: transaction.hex_hash,
|
15
15
|
inputs: wallet.signatures(transaction)
|
16
|
-
}
|
16
|
+
},
|
17
|
+
redirect_uri: redirect_uri
|
17
18
|
)
|
18
19
|
self
|
19
20
|
end
|
@@ -39,13 +40,12 @@ module Round
|
|
39
40
|
Round::Transaction
|
40
41
|
end
|
41
42
|
|
42
|
-
def create(payees, confirmations = 6
|
43
|
+
def create(payees, confirmations = 6)
|
43
44
|
raise 'Must have list of payees' unless payees
|
44
45
|
|
45
46
|
payment_resource = @resource.create(
|
46
47
|
utxo_confirmations: confirmations,
|
47
48
|
payees: payees,
|
48
|
-
redirect_uri: redirect_uri
|
49
49
|
)
|
50
50
|
|
51
51
|
Round::Transaction.new(resource: payment_resource, client: @client)
|
data/lib/round/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: round
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew King
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
tdc4VS7IlSRxlZ3dBOgiigy9GXpJ+7F831AqjxL39EPwdr7RguTNz+pi//RKaT/U
|
32
32
|
IlpVB+Xfk0vQdP7iYfjGxDzUf0FACMjsR95waJmadKW1Iy6STw2hwPhYIQz1Hu1A
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-
|
34
|
+
date: 2015-07-20 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: patchboard
|
metadata.gz.sig
CHANGED
Binary file
|