coins_paid_api 1.0.2 → 1.0.3

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: 2a0b6ed78179c8805c332b5823c0fbda35a2c36b9def556f05bb663f159842db
4
- data.tar.gz: 36a5b14dbd8c20d5a930fd02c93214bc615827c30cc976ddbda06d0bd0c36d2a
3
+ metadata.gz: 62cd90114215368e128d6e06d4047d859bfe83ae4d919904c33ce114864deffe
4
+ data.tar.gz: e3b9b821e9c0b082d58cb475b7806b4e4065df0d27f051f0a795af27718a6c7a
5
5
  SHA512:
6
- metadata.gz: ae117f6f36b65a733bfd5831115411785c0e02d1575e2bf7c3dab25c25cd757775cb830f6eab4f223f6d98729a34dd629fec4c656f16be99db337c9f23dec650
7
- data.tar.gz: e4c47af403f4baef929df96749581dad1fb5a03a97210de0b4a51255346e7d6e96c66092af7e267f155991bd421102b52f9131a194be4a39006735637a565473
6
+ metadata.gz: 73267b211f9944de80b673e8387a83320378b691a6af9b17803fad1aa8a15a87e59c9caea8732d4d1b23440165f57094c085b3ada36ea46fb01f1572c46eef21
7
+ data.tar.gz: 00abd832c2f0e895b88473aa0e4d422c232d52d74821bdeaea2e940c8bcc6fd05d3909ff2d3624185de044242c8c1546b6c8d64fe1d56c04e42c5c14381733f1
data/Gemfile CHANGED
@@ -7,5 +7,5 @@ group :development, :test do
7
7
  end
8
8
 
9
9
  group :test do
10
- gem 'simplecov', require: false
10
+ gem 'simplecov', '0.13', require: false
11
11
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'coins_paid_api'
3
3
  s.authors = ['Artem Biserov(artembiserov)', 'Oleg Ivanov(morhekil)']
4
- s.version = '1.0.2'
4
+ s.version = '1.0.3'
5
5
  s.files = `git ls-files`.split("\n")
6
6
  s.summary = 'Coins Paid Integration'
7
7
  s.license = 'MIT'
@@ -18,6 +18,7 @@ module CoinsPaid
18
18
 
19
19
  attribute? :transactions, Types::Array do
20
20
  attribute :transaction_type, Types::String
21
+ attribute :type, Types::String
21
22
  attribute :id, Types::Integer
22
23
  end
23
24
 
@@ -39,8 +39,8 @@ describe CoinsPaid::API, '.callback' do
39
39
  currency: 'BTC'
40
40
  },
41
41
  transactions: [
42
- { transaction_type: 'blockchain', id: 714576 },
43
- { transaction_type: 'exchange', id: 714577 },
42
+ { transaction_type: 'blockchain', type: 'deposit', id: 714576 },
43
+ { transaction_type: 'exchange', type: 'exchange', id: 714577 }
44
44
  ],
45
45
  currency_sent: { amount: '0.01000000' },
46
46
  currency_received: {
@@ -66,8 +66,8 @@ describe CoinsPaid::API, '.callback' do
66
66
  currency: 'BTC'
67
67
  },
68
68
  transactions: [
69
- { transaction_type: 'blockchain', id: 714576 },
70
- { transaction_type: 'exchange', id: 714577 },
69
+ { transaction_type: 'blockchain', type: 'deposit', id: 714576 },
70
+ { transaction_type: 'exchange', type: 'exchange', id: 714577 }
71
71
  ]
72
72
  }
73
73
  end
@@ -88,8 +88,8 @@ describe CoinsPaid::API, '.callback' do
88
88
  currency: 'EUR'
89
89
  },
90
90
  transactions: [
91
- { transaction_type: 'exchange', id: 1 },
92
- { transaction_type: 'blockchain', id: 1 },
91
+ { transaction_type: 'exchange', type: 'exchange', id: 1 },
92
+ { transaction_type: 'blockchain', type: 'withdrawal', id: 1 }
93
93
  ],
94
94
  currency_sent: { amount: '381' },
95
95
  currency_received: {
@@ -114,8 +114,8 @@ describe CoinsPaid::API, '.callback' do
114
114
  currency: 'EUR'
115
115
  },
116
116
  transactions: [
117
- { transaction_type: 'exchange', id: 714576 },
118
- { transaction_type: 'blockchain', id: 714577 },
117
+ { transaction_type: 'exchange', type: 'exchange', id: 714576 },
118
+ { transaction_type: 'blockchain', type: 'withdrawal', id: 714577 }
119
119
  ]
120
120
  }
121
121
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coins_paid_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Biserov(artembiserov)