paypro 0.0.1 → 1.0.0
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/.circleci/config.yml +31 -11
- data/.gitignore +3 -0
- data/.rubocop.yml +2 -5
- data/Gemfile +2 -0
- data/README.md +24 -4
- data/Rakefile +2 -0
- data/VERSION +1 -1
- data/examples/create_payment.rb +2 -0
- data/lib/data/ca-bundle.crt +1220 -1828
- data/lib/paypro/client.rb +2 -0
- data/lib/paypro/errors.rb +3 -0
- data/lib/paypro/version.rb +3 -1
- data/lib/paypro.rb +5 -3
- data/paypro.gemspec +5 -3
- data/spec/paypro/client_spec.rb +2 -0
- data/spec/paypro_spec.rb +3 -1
- data/spec/spec_helper.rb +2 -0
- metadata +12 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6b86b1ac203166a746393b0d9772b47322cf3708c5482a2929354dab4c86acb6
|
4
|
+
data.tar.gz: d6f199ff056d773a99c5e50843e5ad376b688a041854c6f9274e17f3ff6aef86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bcb6e549b47d3dcb2d34ca899db63a7a093c3f0d268cf2937f2f0223b9743a8e9ee4f41196543493b29801cdca817d86c35f252d2844f64e956cc18d8a9e810
|
7
|
+
data.tar.gz: 0ec7c145fc4d0fa792039b1f3d7a2c548659bbc0941e21bc142c30935505a1b20a68364d8ae24e12eacd16136af8356d4d729d8ced7859f1c6aeef1887b54b97
|
data/.circleci/config.yml
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
defaults: &defaults
|
2
2
|
working_directory: ~/repo
|
3
3
|
|
4
|
+
resource_class: small
|
5
|
+
|
4
6
|
steps:
|
5
7
|
- checkout
|
6
8
|
|
@@ -28,27 +30,45 @@ defaults: &defaults
|
|
28
30
|
path: /tmp/test-results
|
29
31
|
destination: test-results
|
30
32
|
|
31
|
-
version: 2
|
33
|
+
version: 2.1
|
32
34
|
jobs:
|
33
|
-
build-ruby-
|
35
|
+
build-ruby-3_1_2:
|
36
|
+
<<: *defaults
|
37
|
+
docker:
|
38
|
+
- image: cimg/ruby:3.1.2
|
39
|
+
|
40
|
+
build-ruby-3_0_4:
|
34
41
|
<<: *defaults
|
35
42
|
docker:
|
36
|
-
- image:
|
37
|
-
|
38
|
-
build-ruby-
|
43
|
+
- image: cimg/ruby:3.0.4
|
44
|
+
|
45
|
+
build-ruby-2_7_6:
|
46
|
+
<<: *defaults
|
47
|
+
docker:
|
48
|
+
- image: cimg/ruby:2.7.6
|
49
|
+
|
50
|
+
build-ruby-2_6_10:
|
51
|
+
<<: *defaults
|
52
|
+
docker:
|
53
|
+
- image: cimg/ruby:2.6.10
|
54
|
+
|
55
|
+
build-ruby-2_5_9:
|
39
56
|
<<: *defaults
|
40
57
|
docker:
|
41
|
-
- image:
|
58
|
+
- image: cimg/ruby:2.5.9
|
42
59
|
|
43
|
-
build-ruby-
|
60
|
+
build-ruby-2_4_10:
|
44
61
|
<<: *defaults
|
45
62
|
docker:
|
46
|
-
- image:
|
63
|
+
- image: cimg/ruby:2.4.10
|
47
64
|
|
48
65
|
workflows:
|
49
66
|
version: 2
|
50
67
|
build:
|
51
68
|
jobs:
|
52
|
-
- build-ruby-
|
53
|
-
- build-ruby-
|
54
|
-
- build-ruby-
|
69
|
+
- build-ruby-3_1_2
|
70
|
+
- build-ruby-3_0_4
|
71
|
+
- build-ruby-2_7_6
|
72
|
+
- build-ruby-2_6_10
|
73
|
+
- build-ruby-2_5_9
|
74
|
+
- build-ruby-2_4_10
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -7,13 +7,10 @@ AllCops:
|
|
7
7
|
- "log/**/*"
|
8
8
|
- "public/**/*"
|
9
9
|
TargetRubyVersion: 2.4
|
10
|
-
|
10
|
+
Layout/LineLength:
|
11
11
|
Enabled: true
|
12
12
|
Max: 120
|
13
|
-
|
14
|
-
Description: 'Ruby 3.0 transition for frozen string literals'
|
15
|
-
Enabled: false
|
16
|
-
Style/BlockLength:
|
13
|
+
Metrics/BlockLength:
|
17
14
|
Exclude:
|
18
15
|
- 'Rakefile'
|
19
16
|
- '**/*.rake'
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,16 +1,36 @@
|
|
1
|
-

|
1
|
+

|
2
2
|
# Ruby Client for PayPro API v1
|
3
3
|
[](https://opensource.org/licenses/MIT)
|
4
|
+
[](https://badge.fury.io/rb/paypro)
|
5
|
+
[](https://circleci.com/gh/paypronl/paypro-ruby-v1)
|
4
6
|
|
5
7
|
This library provides a Ruby client to connect with the PayPro API.
|
6
8
|
|
7
9
|
## Requirements
|
8
10
|
|
9
|
-
- Ruby >= 2.
|
11
|
+
- Ruby >= 2.4.0
|
10
12
|
|
11
13
|
## Installation
|
12
14
|
|
13
|
-
|
15
|
+
Installation is pretty standard:
|
16
|
+
|
17
|
+
```sh
|
18
|
+
$ gem install paypro
|
19
|
+
```
|
20
|
+
|
21
|
+
if you'd rather install the PayPro client using `bundler` you can put this in your Gemfile:
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
source 'https://rubygems.org'
|
25
|
+
|
26
|
+
gem 'paypro'
|
27
|
+
```
|
28
|
+
|
29
|
+
Or directly from the GitHub repository:
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
gem 'paypro', git: 'https://github.com/paypronl/paypro-ruby-v1'
|
33
|
+
```
|
14
34
|
|
15
35
|
## Getting started
|
16
36
|
|
@@ -27,7 +47,7 @@ client.execute
|
|
27
47
|
|
28
48
|
## Documentation
|
29
49
|
|
30
|
-
For guides and code examples you can go to https://paypro.nl/developers/docs.
|
50
|
+
For guides and code examples you can go to https://www.paypro.nl/developers/docs.
|
31
51
|
|
32
52
|
## Contributing
|
33
53
|
If you want to contribute to this project you can fork the repository. Create a new branch, add your feature and create a pull request. We will look at your request and determine if we want to add it.
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
1.0.0
|