conekta 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +61 -9
- data/conekta.gemspec +5 -5
- data/lib/conekta/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c5e766c0ce9c0b0d1838fcf43c60e614da498b4
|
4
|
+
data.tar.gz: 4836f3f5175fd4d0adbfc167a6386e3bd40388ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c6d83db9d53f64c2ef490d5e9d2b70667ccb5923497203d4347a3668a853148d781a8da175d0e2a0ac1d047101bc791b4f638998adb26a72bb91f261664c8d2
|
7
|
+
data.tar.gz: 1260d058d7e630e4292be0daeaf888408329ae63bce925cc6d0250102242b26698908f90aaaab9e36749c3ee09b66e7a24ae03d0f0376b87173e27e190036e5e
|
data/README.md
CHANGED
@@ -1,8 +1,17 @@
|
|
1
1
|
![README Cover Image](readme_cover.png)
|
2
|
+
<div align="center">
|
2
3
|
|
3
4
|
# Conekta Ruby v.2.4.0
|
4
5
|
|
5
|
-
|
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
|
+
</div>
|
9
|
+
|
10
|
+
This is a [Ruby](https://www.ruby-lang.org/) library that allows interaction with [Conekta's API](https://api.conekta.io).
|
11
|
+
|
12
|
+
## Requeriments
|
13
|
+
|
14
|
+
Add them!
|
6
15
|
|
7
16
|
## Installation
|
8
17
|
|
@@ -12,17 +21,17 @@ Add this line to your application's Gemfile:
|
|
12
21
|
|
13
22
|
And then execute:
|
14
23
|
|
15
|
-
|
24
|
+
bundle
|
16
25
|
|
17
26
|
Or install it yourself as:
|
18
27
|
|
19
|
-
|
28
|
+
gem install conekta
|
20
29
|
|
21
30
|
## Usage
|
22
31
|
```ruby
|
23
32
|
# Set your configuration variables
|
24
33
|
|
25
|
-
# This
|
34
|
+
# This changes the Accept-Language Header to the locale specified
|
26
35
|
Conekta.locale = :es
|
27
36
|
|
28
37
|
Conekta.api_key = '1tv5yJp3xnVZ7eK67m4h'
|
@@ -101,15 +110,20 @@ end
|
|
101
110
|
}
|
102
111
|
```
|
103
112
|
|
113
|
+
## Documentation
|
114
|
+
|
115
|
+
Please visit the [official API reference](https://developers.conekta.com/api) for an up-to-date documentation.
|
116
|
+
|
104
117
|
Development and Testing
|
105
118
|
-----------------------
|
106
|
-
Feel free to play with our library and make pull requests if you find any bugs.
|
119
|
+
Feel free to play with our library and make pull requests if you find any bugs.
|
120
|
+
You can run the test suite with [rspec](https://github.com/rspec/rspec-rails) from the library's root directory:
|
107
121
|
|
108
122
|
```shell
|
109
123
|
bundle exec rspec
|
110
124
|
```
|
111
125
|
|
112
|
-
To facilitate the development and testing process you can use one our
|
126
|
+
To facilitate the development and testing process you can use one of our Docker containers that come with [RVM](https://github.com/rvm/rvm) and [Ruby](https://www.ruby-lang.org/) versions 1.9.3, 2.1.9, 2.2.4 and 2.3.0:
|
113
127
|
|
114
128
|
```shell
|
115
129
|
docker pull conekta/conekta-ruby
|
@@ -117,12 +131,50 @@ docker pull conekta/conekta-ruby
|
|
117
131
|
docker run -ti conekta/conekta-ruby /bin/bash --login
|
118
132
|
```
|
119
133
|
|
120
|
-
|
134
|
+
***
|
121
135
|
|
122
|
-
|
136
|
+
## How to contribute to the project
|
137
|
+
|
138
|
+
1. Fork the repository
|
139
|
+
|
140
|
+
2. Clone the repository
|
141
|
+
```
|
142
|
+
git clone git@github.com:yourUserName/conekta-ruby.git
|
143
|
+
```
|
144
|
+
3. Create a branch
|
145
|
+
```
|
146
|
+
git checkout develop
|
147
|
+
git pull origin develop
|
148
|
+
# You should choose the name of your branch
|
149
|
+
git checkout -b <feature/my_branch>
|
150
|
+
```
|
151
|
+
4. Make necessary changes and commit those changes
|
152
|
+
```
|
153
|
+
git add .
|
154
|
+
git commit -m "my changes"
|
155
|
+
```
|
156
|
+
5. Push changes to GitHub
|
157
|
+
```
|
158
|
+
git push origin <feature/my_branch>
|
159
|
+
```
|
160
|
+
6. Submit your changes for review, create a pull request
|
161
|
+
|
162
|
+
To create a pull request, you need to have made your code changes on a separate branch. This branch should be named like this: **feature/my_feature** or **fix/my_fix**.
|
163
|
+
|
164
|
+
Make sure that, if you add new features to our library, be sure that corresponding **unit tests** are added.
|
165
|
+
|
166
|
+
If you go to your repository on GitHub, you’ll see a Compare & pull request button. Click on that button.
|
123
167
|
|
124
168
|
***
|
125
169
|
|
126
170
|
## We are always hiring!
|
127
171
|
|
128
|
-
If you are a comfortable working with a range of backend languages (Java, Python, Ruby, PHP, etc) and frameworks, you have solid foundation in data structures, algorithms and software design with strong analytical and debugging skills
|
172
|
+
If you are a comfortable working with a range of backend languages (Java, Python, Ruby, PHP, etc) and frameworks, you have solid foundation in data structures, algorithms and software design with strong analytical and debugging skills, check our open positions: https://www.conekta.com/careers
|
173
|
+
|
174
|
+
### License
|
175
|
+
|
176
|
+
<div align="center">
|
177
|
+
|
178
|
+
Developed in :mexico: Mexico by [Conekta](https://www.conekta.com). Available with [MIT License](LICENSE).
|
179
|
+
|
180
|
+
</div>
|
data/conekta.gemspec
CHANGED
@@ -6,11 +6,11 @@ require 'conekta/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "conekta"
|
8
8
|
spec.version = Conekta::VERSION
|
9
|
-
spec.authors = ["
|
10
|
-
spec.email = ["soporte@conekta.
|
9
|
+
spec.authors = ["Conekta"]
|
10
|
+
spec.email = ["soporte@conekta.com"]
|
11
11
|
spec.description = %q{Ruby library for https://api.conekta.io}
|
12
12
|
spec.summary = %q{This library provides https://api.conekta.io operations}
|
13
|
-
spec.homepage = "https://www.conekta.
|
13
|
+
spec.homepage = "https://www.conekta.com"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
@@ -18,12 +18,12 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "bundler", "
|
21
|
+
spec.add_dependency "bundler", ">= 1.3"
|
22
22
|
spec.add_dependency "rake"
|
23
23
|
spec.add_dependency "faraday"
|
24
24
|
spec.add_dependency "json"
|
25
25
|
spec.add_dependency "sys-uname"
|
26
26
|
|
27
|
-
spec.add_development_dependency "rspec", "
|
27
|
+
spec.add_development_dependency "rspec", ">= 3.0"
|
28
28
|
spec.add_development_dependency "pry"
|
29
29
|
end
|
data/lib/conekta/version.rb
CHANGED
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
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.1
|
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: 2019-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -84,14 +84,14 @@ dependencies:
|
|
84
84
|
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '3.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '3.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
@@ -110,7 +110,7 @@ dependencies:
|
|
110
110
|
version: '0'
|
111
111
|
description: Ruby library for https://api.conekta.io
|
112
112
|
email:
|
113
|
-
- soporte@conekta.
|
113
|
+
- soporte@conekta.com
|
114
114
|
executables: []
|
115
115
|
extensions: []
|
116
116
|
extra_rdoc_files: []
|
@@ -200,7 +200,7 @@ files:
|
|
200
200
|
- spec/spec_helper.rb
|
201
201
|
- spec/support/fixtures/orders.json
|
202
202
|
- spec/support/shared_context.rb
|
203
|
-
homepage: https://www.conekta.
|
203
|
+
homepage: https://www.conekta.com
|
204
204
|
licenses:
|
205
205
|
- MIT
|
206
206
|
metadata: {}
|
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
220
|
version: '0'
|
221
221
|
requirements: []
|
222
222
|
rubyforge_project:
|
223
|
-
rubygems_version: 2.
|
223
|
+
rubygems_version: 2.5.2.3
|
224
224
|
signing_key:
|
225
225
|
specification_version: 4
|
226
226
|
summary: This library provides https://api.conekta.io operations
|