nitro_pay 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/nitro_pay/version.rb +1 -1
- data/spec/helpers.rb +1 -1
- data/spec/nitro_pay/transaction_spec.rb +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c494f9baa9334b80eabe61684c900a8e958ff52
|
|
4
|
+
data.tar.gz: 184577c69d7bd3d2079665ec42f9105e4ff577e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e84941899a12273b0be3a84d02abe68dfde5513d6127a902f489931e053c321633f9ba33087e5e648da1d908235f8792e9b83c6261bcd67679d16d7c3c132798
|
|
7
|
+
data.tar.gz: 2c94bbd295fd676bd99504a13d43d55a2d3f26772465c816a7d02f6d17757e267a54ff50c4ff5825fdb2bacf18009e4210d6b30ef9c640bc4f5320ac368ba39d
|
data/lib/nitro_pay/version.rb
CHANGED
data/spec/helpers.rb
CHANGED
|
@@ -5,7 +5,7 @@ module Helpers
|
|
|
5
5
|
end
|
|
6
6
|
|
|
7
7
|
def accessible?(url)
|
|
8
|
-
RestClient.proxy = NitroPay.proxy if NitroPay.proxy.index('your_login').nil?
|
|
8
|
+
RestClient.proxy = NitroPay.proxy if NitroPay.proxy && NitroPay.proxy.index('your_login').nil?
|
|
9
9
|
resp = RestClient.get url
|
|
10
10
|
RestClient.proxy = nil
|
|
11
11
|
resp.code == 200 ? true : false
|
|
@@ -111,7 +111,7 @@ describe NitroPay::Transaction do
|
|
|
111
111
|
brand: 'visa',
|
|
112
112
|
cvv: '123',
|
|
113
113
|
expiration_month: '05',
|
|
114
|
-
expiration_year:
|
|
114
|
+
expiration_year: (Date.today.year+2).to_s,
|
|
115
115
|
number: '4012001037141112',
|
|
116
116
|
holder: Faker::Name.name,
|
|
117
117
|
},
|
|
@@ -131,6 +131,10 @@ describe NitroPay::Transaction do
|
|
|
131
131
|
expect(@resp).to_not be_nil
|
|
132
132
|
end
|
|
133
133
|
|
|
134
|
+
it 'resp must not include error' do
|
|
135
|
+
expect(@resp).to_not include(:error)
|
|
136
|
+
end
|
|
137
|
+
|
|
134
138
|
it 'resp should contain the RequestID' do
|
|
135
139
|
request_id = @resp[:request_id]
|
|
136
140
|
expect(request_id).to_not be_nil
|
|
@@ -600,8 +604,8 @@ describe NitroPay::Transaction do
|
|
|
600
604
|
amount: Random.rand(99999).to_s,
|
|
601
605
|
redirect_link: @redirect_link,
|
|
602
606
|
brand: 'https://s3-sa-east-1.amazonaws.com/global-defaults/nitropay/alfred.png',
|
|
603
|
-
alert: 'Atenção
|
|
604
|
-
description: 'Seu Robô
|
|
607
|
+
alert: 'Atenção! Você está comprando créditos válidos somente para aquisição de itens do projeto AlfredRobots.',
|
|
608
|
+
description: '<strong>Projeto</strong>: Alfred Robots<br><strong>Tipo da Compra</strong>: Créditos para uso exclusivo neste projeto, após o lançamento do mesmo<br><strong>Descrição</strong>: Seu Robô doméstico de baixo custo, alta eficiência e mais prático.'
|
|
605
609
|
}
|
|
606
610
|
|
|
607
611
|
# Perform it page_checkout request
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nitro_pay
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ilton Garcia
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-03-
|
|
11
|
+
date: 2016-03-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|