conekta 2.4.1 → 2.4.2

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
- SHA1:
3
- metadata.gz: 9c5e766c0ce9c0b0d1838fcf43c60e614da498b4
4
- data.tar.gz: 4836f3f5175fd4d0adbfc167a6386e3bd40388ee
2
+ SHA256:
3
+ metadata.gz: 0bc6e32370b0435e72cb70ee5cd415f41d4a0f0bea6188ba7f49cd802ae537ed
4
+ data.tar.gz: 16d7b7ed8f40ef09b7f3406bc2c8e37fda121faaef7894de0e789ccd61485ed9
5
5
  SHA512:
6
- metadata.gz: 6c6d83db9d53f64c2ef490d5e9d2b70667ccb5923497203d4347a3668a853148d781a8da175d0e2a0ac1d047101bc791b4f638998adb26a72bb91f261664c8d2
7
- data.tar.gz: 1260d058d7e630e4292be0daeaf888408329ae63bce925cc6d0250102242b26698908f90aaaab9e36749c3ee09b66e7a24ae03d0f0376b87173e27e190036e5e
6
+ metadata.gz: e4bc49bebc82e298e7e064d8912d340754e43ed1ccdfc72434ea1607318e3bd5974cceefc6adee633a92c8933439802f998c7e240d9d12ca4b0ba0410833e632
7
+ data.tar.gz: 941ce39a04b6d3e22d82c862d0718b0a3f7e1191bb53b776d43fe72fbfa6d9a9e26a2d1f22315e960080e856ba7949fdc4cd3febca8a9cb446239e2d70c4ef5c
@@ -1,3 +1,8 @@
1
+ ## [2.4.2](https://github.com/conekta/conekta-ruby/releases/tag/2.4.2) - 2020-01-22
2
+ ### Ruby 2.7 Cleanup
3
+ - Corrects warnings related to translate in Ruby 2.7
4
+ - Corrects a spec which had a hard coded `expires_at` field
5
+
1
6
  ## [2.4.0](https://github.com/conekta/conekta-ruby/releases/tag/2.4.0) - 2017-10-05
2
7
  ### Added oxxo recurrent support
3
8
  - Added new method create_offline_recurrent_reference.
data/README.md CHANGED
@@ -1,10 +1,12 @@
1
- ![README Cover Image](readme_cover.png)
2
1
  <div align="center">
3
2
 
4
- # Conekta Ruby v.2.4.0
3
+ ![banner](readme_files/banner.png)
4
+
5
+ # Conekta Ruby
6
+
7
+ ![ruby badge](readme_files/ruby-badge.png)
8
+ ![conekta badge](readme_files/conekta-badge.png)
5
9
 
6
- [![Made with Ruby](https://img.shields.io/badge/made%20with-ruby-red.svg?style=for-the-badge&colorA=ED4040&colorB=C12C2D&logo=ruby&logoColor=white)](https://www.ruby-lang.org)
7
- [![By Conekta](https://img.shields.io/badge/by-conekta-red.svg?style=for-the-badge&colorA=ee6130&colorB=00a4ac)](https://conekta.com)
8
10
  </div>
9
11
 
10
12
  This is a [Ruby](https://www.ruby-lang.org/) library that allows interaction with [Conekta's API](https://api.conekta.io).
@@ -116,7 +118,7 @@ Please visit the [official API reference](https://developers.conekta.com/api) fo
116
118
 
117
119
  Development and Testing
118
120
  -----------------------
119
- Feel free to play with our library and make pull requests if you find any bugs.
121
+ Feel free to play with our library and make pull requests if you find any bugs.
120
122
  You can run the test suite with [rspec](https://github.com/rspec/rspec-rails) from the library's root directory:
121
123
 
122
124
  ```shell
@@ -136,7 +138,7 @@ docker run -ti conekta/conekta-ruby /bin/bash --login
136
138
  ## How to contribute to the project
137
139
 
138
140
  1. Fork the repository
139
-
141
+
140
142
  2. Clone the repository
141
143
  ```
142
144
  git clone git@github.com:yourUserName/conekta-ruby.git
@@ -147,7 +149,7 @@ docker run -ti conekta/conekta-ruby /bin/bash --login
147
149
  git pull origin develop
148
150
  # You should choose the name of your branch
149
151
  git checkout -b <feature/my_branch>
150
- ```
152
+ ```
151
153
  4. Make necessary changes and commit those changes
152
154
  ```
153
155
  git add .
@@ -32,13 +32,14 @@ module Conekta
32
32
  NoConnectionError.new({
33
33
  "details" => [
34
34
  {
35
- "debug_message" => I18n.t(
35
+ "debug_message" => I18n.translate(
36
36
  'error.requestor.connection',
37
- { base: Conekta.api_base, locale: :en }
37
+ locale: :en,
38
+ base: Conekta.api_base
38
39
  ),
39
- "message" => I18n.t(
40
+ "message" => I18n.translate(
40
41
  'error.requestor.connection_purchaser',
41
- { locale: Conekta.locale.to_sym }
42
+ locale: Conekta.locale.to_sym
42
43
  ),
43
44
  "code" => "error.requestor.connection"
44
45
  }
@@ -47,11 +47,11 @@ module Conekta
47
47
  def raise_version_error(version)
48
48
  exception = Error.error_handler({
49
49
  "details" => [{
50
- "debug_message" => I18n.t(
50
+ "debug_message" => I18n.translate(
51
51
  'error.conflict.version.unspecified',
52
52
  { resource: self.class.class_name, locale: :en }
53
53
  ),
54
- "message" => I18n.t(
54
+ "message" => I18n.translate(
55
55
  'error.conflict.version.unspecified_purchaser',
56
56
  { locale: Conekta.locale.to_sym }
57
57
  ),
@@ -34,13 +34,14 @@ module Conekta
34
34
  if (id.nil? || id.to_s.empty?)
35
35
  exception = Error.error_handler({
36
36
  "details" => [{
37
- "debug_message" => I18n.t(
37
+ "debug_message" => I18n.translate(
38
38
  'error.resource.id',
39
- { resource: self.class.class_name, locale: :en }
39
+ locale: :en,
40
+ resource: self.class.class_name
40
41
  ),
41
- "message" => I18n.t(
42
+ "message" => I18n.translate(
42
43
  'error.resource.id_purchaser',
43
- { locale: Conekta.locale.to_sym }
44
+ locale: Conekta.locale.to_sym
44
45
  ),
45
46
  "param" => "id",
46
47
  "code" => "error.resource.id"
@@ -1,3 +1,3 @@
1
1
  module Conekta
2
- VERSION = '2.4.1'.freeze
2
+ VERSION = '2.4.2'.freeze
3
3
  end
Binary file
@@ -12,7 +12,7 @@ describe Conekta::Customer do
12
12
  {
13
13
  payment_sources: [{
14
14
  type: 'oxxo_recurrent',
15
- expires_at: 157_559_040_0
15
+ expires_at: (Time.now + 60 * 60 * 24 * 30).to_i
16
16
  }],
17
17
  email: 'test@gmail.com',
18
18
  name: 'Mario'
@@ -22,7 +22,7 @@ describe Conekta::Customer do
22
22
  let(:oxxo_source_params) do
23
23
  {
24
24
  type: 'oxxo_recurrent',
25
- expires_at: 157_559_040_0
25
+ expires_at: (Time.now + 60 * 60 * 24 * 30).to_i
26
26
  }
27
27
  end
28
28
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conekta
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Conekta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-13 00:00:00.000000000 Z
11
+ date: 2020-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -172,7 +172,9 @@ files:
172
172
  - lib/ssl_data/ca_bundle.crt
173
173
  - locales/en.yml
174
174
  - locales/es.yml
175
- - readme_cover.png
175
+ - readme_files/banner.png
176
+ - readme_files/conekta-badge.png
177
+ - readme_files/ruby-badge.png
176
178
  - spec/conekta/1.0.0/.DS_Store
177
179
  - spec/conekta/1.0.0/card_spec.rb
178
180
  - spec/conekta/1.0.0/charge_spec.rb
@@ -219,36 +221,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
221
  - !ruby/object:Gem::Version
220
222
  version: '0'
221
223
  requirements: []
222
- rubyforge_project:
223
- rubygems_version: 2.5.2.3
224
+ rubygems_version: 3.0.1
224
225
  signing_key:
225
226
  specification_version: 4
226
227
  summary: This library provides https://api.conekta.io operations
227
- test_files:
228
- - spec/conekta/1.0.0/.DS_Store
229
- - spec/conekta/1.0.0/card_spec.rb
230
- - spec/conekta/1.0.0/charge_spec.rb
231
- - spec/conekta/1.0.0/customer_spec.rb
232
- - spec/conekta/1.0.0/error_spec.rb
233
- - spec/conekta/1.0.0/event_spec.rb
234
- - spec/conekta/1.0.0/log_spec.rb
235
- - spec/conekta/1.0.0/payout_spec.rb
236
- - spec/conekta/1.0.0/plan_spec.rb
237
- - spec/conekta/1.0.0/token_spec.rb
238
- - spec/conekta/1.0.0/webhook_spec.rb
239
- - spec/conekta/2.0.0/customer_spec.rb
240
- - spec/conekta/2.0.0/discount_line_spec.rb
241
- - spec/conekta/2.0.0/error_spec.rb
242
- - spec/conekta/2.0.0/line_item_spec.rb
243
- - spec/conekta/2.0.0/list_spec.rb
244
- - spec/conekta/2.0.0/order_spec.rb
245
- - spec/conekta/2.0.0/payee_spec.rb
246
- - spec/conekta/2.0.0/shipping_contact_spec.rb
247
- - spec/conekta/2.0.0/shipping_line_spec.rb
248
- - spec/conekta/2.0.0/source_spec.rb
249
- - spec/conekta/2.0.0/tax_line_spec.rb
250
- - spec/conekta/2.0.0/transfer_spec.rb
251
- - spec/conekta_spec.rb
252
- - spec/spec_helper.rb
253
- - spec/support/fixtures/orders.json
254
- - spec/support/shared_context.rb
228
+ test_files: []
Binary file