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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77f963c8478e8be1c91f4120954b3602262a06da
4
- data.tar.gz: b55a4fa43bac405b7088fac7ae9754e2fdb97cfd
3
+ metadata.gz: 2c494f9baa9334b80eabe61684c900a8e958ff52
4
+ data.tar.gz: 184577c69d7bd3d2079665ec42f9105e4ff577e9
5
5
  SHA512:
6
- metadata.gz: a1eb5f5fa34e0fec7f107137f48ac8c784c8e794a7fe872f459a99ce6338ecf1ae67898e0ddb155b0d7410fa130c1b8776cfa22986545f286b813e65084cb1c6
7
- data.tar.gz: 0f639803d3c1c941afd6a8046fe37bef400c127ebb6caa53406a4b8d3ad73ad6ab4d459dd8f91870be492a184442e43aeaf13aaa3fe68313ecd573d7005e7a6e
6
+ metadata.gz: e84941899a12273b0be3a84d02abe68dfde5513d6127a902f489931e053c321633f9ba33087e5e648da1d908235f8792e9b83c6261bcd67679d16d7c3c132798
7
+ data.tar.gz: 2c94bbd295fd676bd99504a13d43d55a2d3f26772465c816a7d02f6d17757e267a54ff50c4ff5825fdb2bacf18009e4210d6b30ef9c640bc4f5320ac368ba39d
@@ -1,6 +1,6 @@
1
1
  module NitroPay
2
2
  MAJOR = 1
3
3
  MINOR = 0
4
- PATCH = 1
4
+ PATCH = 2
5
5
  VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}"
6
6
  end
@@ -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: '2018',
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. Você está comprando Créditos para serem usados quando este produto for lançado.',
604
- description: 'Seu Robô Doméstico de baixo custo, alta eficiência e mais prático.'
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.1
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-08 00:00:00.000000000 Z
11
+ date: 2016-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler