coins_paid_rails 1.0.1 → 1.1.1

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
  SHA256:
3
- metadata.gz: 559da2a5e24b692b3613ae04c21cd4913c47f1c33a5efef3041dd952ec6fbc74
4
- data.tar.gz: dab836ba338115fc7743a63b809dc7df79a7726d5f4768afd412b62febd9a17b
3
+ metadata.gz: accffa021325022ed6042edf69cb52cb0802efa27dcd010ef0231f56450d18f0
4
+ data.tar.gz: f4af0fa8eb061e4a5d9761d5f7c98e1f7a08c970c1fa84413c2ffaae1284ee11
5
5
  SHA512:
6
- metadata.gz: 7efb02acfda989dfb88f6ca9a00d8a71ffb3eea42cc0b278d336c1089d4f7b298aed7d686500e70b5c50d77011da7a8bcfcf35b64bc05845ba8246be7865d0c4
7
- data.tar.gz: baf280471c3fe14e0322e7469ee4f0a260c64773c3f224c634d0f7e2da5bf5632d731e4c9b4b9d9e5976fbaabb2af3b420f99732d614346be82d4613699ef8aa
6
+ metadata.gz: 7c5a79288917f9447a1e87d0d929630079ee4fa8d0c43f9193a4f81742c02bde4d610a75580f822d19c50ef0c0da8bd1299a51ff386d9166cf4f4b7a1cbc0085
7
+ data.tar.gz: 0120a87cb1537bdea850921f5a0dfdfaa7ac3bc57b1484b6d35428a3b8959519c5311629baee6ffd324524ff3966a175d681093b41c678b5d118918bfebe8286
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'coins_paid_rails'
3
3
  s.authors = ['Artem Biserov(artembiserov)', 'Oleg Ivanov(morhekil)']
4
- s.version = '1.0.1'
4
+ s.version = '1.1.1'
5
5
  s.files = `git ls-files`.split("\n")
6
6
  s.summary = 'CoinsPaid Rails Integration'
7
7
  s.license = 'MIT'
@@ -12,4 +12,3 @@ Gem::Specification.new do |s|
12
12
  s.add_runtime_dependency 'dry-struct', '~> 1.0'
13
13
  s.add_development_dependency 'rspec-rails', '~> 3.0'
14
14
  end
15
-
@@ -12,10 +12,14 @@ module CoinsPaid
12
12
 
13
13
  DEFAULT_CONVERT_TO = ENV['COINS_PAID_CURRENCY']
14
14
 
15
- CRYPTO_CURRENCIES = {
15
+ ADDRESS_PREFIXES = {
16
16
  'BTC' => 'bitcoin',
17
+ 'BCH' => 'bitcoincash',
17
18
  'ETH' => 'ethereum',
18
- 'LTC' => 'litecoin'
19
+ 'EURTE' => 'ethereum',
20
+ 'LTC' => 'litecoin',
21
+ 'USDT' => 'bitcoin',
22
+ 'USDTE' => 'ethereum'
19
23
  }.freeze
20
24
 
21
25
  def address(foreign_id, currency:)
@@ -30,7 +30,7 @@ module CoinsPaid
30
30
  private
31
31
 
32
32
  def token_type
33
- CRYPTO_CURRENCIES.fetch(currency)
33
+ ADDRESS_PREFIXES.fetch(currency)
34
34
  end
35
35
 
36
36
  def encode(string)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coins_paid_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Biserov(artembiserov)
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-11-20 00:00:00.000000000 Z
12
+ date: 2020-10-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: coins_paid_api