conekta 2.4.1 → 2.4.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 +5 -5
- data/CHANGELOG.md +5 -0
- data/README.md +9 -7
- data/lib/conekta/error.rb +5 -4
- data/lib/conekta/payee.rb +2 -2
- data/lib/conekta/resource.rb +5 -4
- data/lib/conekta/version.rb +1 -1
- data/readme_files/banner.png +0 -0
- data/readme_files/conekta-badge.png +0 -0
- data/readme_files/ruby-badge.png +0 -0
- data/spec/conekta/2.0.0/customer_spec.rb +2 -2
- metadata +7 -33
- data/readme_cover.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0bc6e32370b0435e72cb70ee5cd415f41d4a0f0bea6188ba7f49cd802ae537ed
|
4
|
+
data.tar.gz: 16d7b7ed8f40ef09b7f3406bc2c8e37fda121faaef7894de0e789ccd61485ed9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4bc49bebc82e298e7e064d8912d340754e43ed1ccdfc72434ea1607318e3bd5974cceefc6adee633a92c8933439802f998c7e240d9d12ca4b0ba0410833e632
|
7
|
+
data.tar.gz: 941ce39a04b6d3e22d82c862d0718b0a3f7e1191bb53b776d43fe72fbfa6d9a9e26a2d1f22315e960080e856ba7949fdc4cd3febca8a9cb446239e2d70c4ef5c
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-

|
2
1
|
<div align="center">
|
3
2
|
|
4
|
-
|
3
|
+

|
4
|
+
|
5
|
+
# Conekta Ruby
|
6
|
+
|
7
|
+

|
8
|
+

|
5
9
|
|
6
|
-
[](https://www.ruby-lang.org)
|
7
|
-
[](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 .
|
data/lib/conekta/error.rb
CHANGED
@@ -32,13 +32,14 @@ module Conekta
|
|
32
32
|
NoConnectionError.new({
|
33
33
|
"details" => [
|
34
34
|
{
|
35
|
-
"debug_message" => I18n.
|
35
|
+
"debug_message" => I18n.translate(
|
36
36
|
'error.requestor.connection',
|
37
|
-
|
37
|
+
locale: :en,
|
38
|
+
base: Conekta.api_base
|
38
39
|
),
|
39
|
-
"message" => I18n.
|
40
|
+
"message" => I18n.translate(
|
40
41
|
'error.requestor.connection_purchaser',
|
41
|
-
|
42
|
+
locale: Conekta.locale.to_sym
|
42
43
|
),
|
43
44
|
"code" => "error.requestor.connection"
|
44
45
|
}
|
data/lib/conekta/payee.rb
CHANGED
@@ -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.
|
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.
|
54
|
+
"message" => I18n.translate(
|
55
55
|
'error.conflict.version.unspecified_purchaser',
|
56
56
|
{ locale: Conekta.locale.to_sym }
|
57
57
|
),
|
data/lib/conekta/resource.rb
CHANGED
@@ -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.
|
37
|
+
"debug_message" => I18n.translate(
|
38
38
|
'error.resource.id',
|
39
|
-
|
39
|
+
locale: :en,
|
40
|
+
resource: self.class.class_name
|
40
41
|
),
|
41
|
-
"message" => I18n.
|
42
|
+
"message" => I18n.translate(
|
42
43
|
'error.resource.id_purchaser',
|
43
|
-
|
44
|
+
locale: Conekta.locale.to_sym
|
44
45
|
),
|
45
46
|
"param" => "id",
|
46
47
|
"code" => "error.resource.id"
|
data/lib/conekta/version.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
@@ -12,7 +12,7 @@ describe Conekta::Customer do
|
|
12
12
|
{
|
13
13
|
payment_sources: [{
|
14
14
|
type: 'oxxo_recurrent',
|
15
|
-
expires_at:
|
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:
|
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.
|
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:
|
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
|
-
-
|
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
|
-
|
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: []
|
data/readme_cover.png
DELETED
Binary file
|