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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1665ac27a3c3aef155e7a2ff5a5519e161f40a81
4
- data.tar.gz: 09c9b9b32338f15c5ef44cf83dc92344b2e157b6
3
+ metadata.gz: ccf51fac9eb975048451b6effbd961e455083105
4
+ data.tar.gz: d9a04aa2c6e2128b18cd6061db162cc24b93fa0c
5
5
  SHA512:
6
- metadata.gz: cb24c4eaebfe480b3149608d18623feae8a708778281aab0e0b1c8cbb0797e3325dbf121cc1d64a50698b5a2378bb73826d2ec39e86c04feed8005d4f13fe2f7
7
- data.tar.gz: 83e16dc65e63d9b339f46333e2065184b9f7085ef72664a9a738a276d0303c5a26042fdc7e1569eacbcab6aed9ca366acbdfdf343bd0c9053edb4c432d163b07
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
- * __Slack room__: Send email to support requesting access to the slack room for this client
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, redirect_uri: redirect_uri)
26
- signed = payment.sign(@wallet.multiwallet, network: network.to_sym)
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)
@@ -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, redirect_uri: nil)
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
@@ -1,3 +1,3 @@
1
1
  module Round
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
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.1
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-06-12 00:00:00.000000000 Z
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