paypro 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
data/lib/paypro/client.rb
CHANGED
data/lib/paypro/errors.rb
CHANGED
data/lib/paypro/version.rb
CHANGED
data/lib/paypro.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'openssl'
|
2
4
|
require 'json'
|
3
5
|
|
@@ -8,7 +10,7 @@ require 'paypro/errors'
|
|
8
10
|
require 'paypro/version'
|
9
11
|
|
10
12
|
module PayPro
|
11
|
-
CA_BUNDLE_FILE = File.dirname(__FILE__)
|
12
|
-
API_URL = 'https://paypro.nl/post_api'
|
13
|
-
API_VERSION = 'v1'
|
13
|
+
CA_BUNDLE_FILE = "#{File.dirname(__FILE__)}/data/ca-bundle.crt"
|
14
|
+
API_URL = 'https://www.paypro.nl/post_api'
|
15
|
+
API_VERSION = 'v1'
|
14
16
|
end
|
data/paypro.gemspec
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require File.expand_path('lib/paypro/version', __dir__)
|
2
4
|
|
3
5
|
Gem::Specification.new do |s|
|
4
6
|
s.name = 'paypro'
|
@@ -9,8 +11,8 @@ Gem::Specification.new do |s|
|
|
9
11
|
s.email = 'support@paypro.nl'
|
10
12
|
s.summary = 'Ruby client for PayPro API v1'
|
11
13
|
|
12
|
-
s.required_ruby_version = '>= 2.
|
13
|
-
s.add_dependency 'faraday', '
|
14
|
+
s.required_ruby_version = '>= 2.4.0'
|
15
|
+
s.add_dependency 'faraday', '>= 0.13', '< 2'
|
14
16
|
|
15
17
|
s.add_development_dependency 'rspec', '~> 3.6'
|
16
18
|
|
data/spec/paypro/client_spec.rb
CHANGED
data/spec/paypro_spec.rb
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
5
|
describe PayPro do
|
4
6
|
it 'returns the correct api url' do
|
5
|
-
expect(described_class::API_URL).to eql 'https://paypro.nl/post_api'
|
7
|
+
expect(described_class::API_URL).to eql 'https://www.paypro.nl/post_api'
|
6
8
|
end
|
7
9
|
|
8
10
|
it 'returns the correct path for ca-bundle.crt' do
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paypro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PayPro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.13'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0.13'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rspec
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -74,15 +80,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
74
80
|
requirements:
|
75
81
|
- - ">="
|
76
82
|
- !ruby/object:Gem::Version
|
77
|
-
version: 2.
|
83
|
+
version: 2.4.0
|
78
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
85
|
requirements:
|
80
86
|
- - ">="
|
81
87
|
- !ruby/object:Gem::Version
|
82
88
|
version: '0'
|
83
89
|
requirements: []
|
84
|
-
|
85
|
-
rubygems_version: 2.5.2
|
90
|
+
rubygems_version: 3.1.6
|
86
91
|
signing_key:
|
87
92
|
specification_version: 4
|
88
93
|
summary: Ruby client for PayPro API v1
|