cryptocoin_payable 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +17 -0
- data/README.md +7 -3
- data/cryptocoin_payable.gemspec +2 -2
- data/lib/cryptocoin_payable/commands/payment_processor.rb +1 -1
- data/lib/cryptocoin_payable/version.rb +1 -1
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3867dfc765979dddbc44fcf5a30053f471617a7
|
4
|
+
data.tar.gz: cba3d5294ca03e57c77b33244347c15f17120ad2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc4d8b23700581add301880b52ccda3a8b82fd09d779b86d40b28921bdeaf5db2952f9148a80d0d7c5b883aebe6c8532b2fe0715672c0f166e64c3972e1e3b4e
|
7
|
+
data.tar.gz: 84c47803e89ee7f761fce0b33cdf0080a7f0d575064c31b4246eb7e2e08df6e63a5d52a17a39fc510704e8997df13c4c27666366d59fcc736e930d2bf0902973
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,12 +1,15 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/cryptocoin_payable.svg)](https://badge.fury.io/rb/cryptocoin_payable)
|
2
|
+
|
1
3
|
# Cryptocoin Payable
|
2
4
|
|
3
5
|
Forked from [Bitcoin Payable](https://github.com/Sailias/bitcoin_payable)
|
4
6
|
|
5
|
-
A rails gem that enables any model to have
|
7
|
+
A rails gem that enables any model to have cryptocurrency payments.
|
6
8
|
The polymorphic table coin_payments creates payments with unique addresses based on a BIP32 deterministic seed using https://github.com/GemHQ/money-tree and uses external APIs to check for payments:
|
7
9
|
|
8
10
|
- https://etherscan.io
|
9
11
|
- https://blockexplorer.com
|
12
|
+
- https://www.blockcypher.com
|
10
13
|
|
11
14
|
Supported coins are:
|
12
15
|
|
@@ -27,13 +30,14 @@ No private keys needed, No bitcoind blockchain indexing on new servers, just add
|
|
27
30
|
|
28
31
|
**Donations appreciated**
|
29
32
|
|
30
|
-
`142WJW4Zzc9iV7uFdbei8Unpe8WcLhUgmE`
|
33
|
+
- `142WJW4Zzc9iV7uFdbei8Unpe8WcLhUgmE` (Jon Salis)
|
34
|
+
- `14xXZ6SFjwYZHATiywBE2durFknLePYqHS` (Maros Hluska)
|
31
35
|
|
32
36
|
## Installation
|
33
37
|
|
34
38
|
Add this line to your application's Gemfile:
|
35
39
|
|
36
|
-
gem 'cryptocoin_payable'
|
40
|
+
gem 'cryptocoin_payable'
|
37
41
|
|
38
42
|
And then execute:
|
39
43
|
|
data/cryptocoin_payable.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'cryptocoin_payable/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'cryptocoin_payable'
|
8
8
|
spec.version = CryptocoinPayable::VERSION
|
9
|
-
spec.authors = ['Jonathan Salis']
|
10
|
-
spec.email = ['jsalis@bitcoinsultants.ca']
|
9
|
+
spec.authors = ['Jonathan Salis', 'Maros Hluska']
|
10
|
+
spec.email = ['jsalis@bitcoinsultants.ca', 'mhluska@gmail.com']
|
11
11
|
spec.description = 'Cryptocurrency payment processor'
|
12
12
|
spec.summary = 'Cryptocurrency payment processor'
|
13
13
|
spec.homepage = ''
|
@@ -10,7 +10,7 @@ module CryptocoinPayable
|
|
10
10
|
transactions.each do |tx|
|
11
11
|
tx.symbolize_keys!
|
12
12
|
|
13
|
-
transaction = payment.transactions.find_by_transaction_hash(tx[:
|
13
|
+
transaction = payment.transactions.find_by_transaction_hash(tx[:tx_hash])
|
14
14
|
if transaction
|
15
15
|
transaction.update(confirmations: tx[:confirmations])
|
16
16
|
else
|
metadata
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cryptocoin_payable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Salis
|
8
|
+
- Maros Hluska
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
@@ -223,6 +224,7 @@ dependencies:
|
|
223
224
|
description: Cryptocurrency payment processor
|
224
225
|
email:
|
225
226
|
- jsalis@bitcoinsultants.ca
|
227
|
+
- mhluska@gmail.com
|
226
228
|
executables:
|
227
229
|
- console
|
228
230
|
- setup
|
@@ -232,6 +234,7 @@ files:
|
|
232
234
|
- ".gitignore"
|
233
235
|
- ".rspec"
|
234
236
|
- ".rubocop.yml"
|
237
|
+
- ".travis.yml"
|
235
238
|
- Gemfile
|
236
239
|
- LICENSE.txt
|
237
240
|
- README.md
|