culqi 1.2.0 → 1.2.1

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: a7da72ef030b6d1a125d384de0cd21d087a5e0db
4
- data.tar.gz: d3490aab392c0640c1b4304c1fd3f8889a5572d9
3
+ metadata.gz: 2fd9aaa4530a70f9a38cdc73d68848e3da661ebc
4
+ data.tar.gz: c15d2580b0a6f44d5852608e5786ad313706d689
5
5
  SHA512:
6
- metadata.gz: bf2b9cfc9a732a77c6fecf9f4ee35482bc8e43605644ef9047614c88035b759700472467d3c504fb00415e3e35535b10a0bba1f60ea4b792f10d75948a3193b3
7
- data.tar.gz: 82aadd6677bd1b0d6abaa1cc62bc52e67134016f942da047e478dc756d895d0bed40bc8cb98784202fbddf8cf15252f8d4a9c78916fb96a0ba7c1310ec08b1f2
6
+ metadata.gz: 00f4cdb6d3c1c8df216eb5040f6ad7e29a4f4f2619946c87f8eafaab07bca9860ca6d0ea31fde706fa2647843e395d7ad7a0f1c79c9e19c00c7ffbcbbc2214a0
7
+ data.tar.gz: c2eb9a0b88d13e7f3e2b8e60e73869ab60404bdb5e911111cc9ce73b21bbe786dc262be8d2a4e8761b2a06628d7e8b4f182f46df29fa5840388b7db22f2740d9
data/lib/culqi/sale.rb CHANGED
@@ -2,8 +2,7 @@ module Culqi
2
2
  class Sale
3
3
  DEFAULTS = {
4
4
  moneda: 'PEN',
5
- cod_pais: 'PE',
6
- codigo_comercio: ENV['CULQI_CODIGO_COMERCIO']
5
+ cod_pais: 'PE'
7
6
  }
8
7
 
9
8
  attr_accessor :codigo_comercio,
@@ -26,7 +25,7 @@ module Culqi
26
25
 
27
26
  def payload
28
27
  {
29
- codigo_comercio: (codigo_comercio || DEFAULTS[:codigo_comercio]),
28
+ codigo_comercio: ENV['CULQI_CODIGO_COMERCIO'],
30
29
  numero_pedido: numero_pedido,
31
30
  moneda: (moneda || DEFAULTS[:moneda]),
32
31
  monto: monto,
data/lib/culqi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Culqi
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: culqi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Augusto Samame