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.
data/lib/paypro/client.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module PayPro
2
4
  # Client class to connect to the PayPro V1 API.
3
5
  # Requires an API key to authenticate API calls, you
data/lib/paypro/errors.rb CHANGED
@@ -1,4 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module PayPro
2
4
  class ConnectionError < StandardError; end
5
+
3
6
  class InvalidResponseError < StandardError; end
4
7
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module PayPro
2
- VERSION = '0.0.1'.freeze
4
+ VERSION = '1.0.0'
3
5
  end
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__) + '/data/ca-bundle.crt'
12
- API_URL = 'https://paypro.nl/post_api'.freeze
13
- API_VERSION = 'v1'.freeze
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
- require File.expand_path('../lib/paypro/version', __FILE__)
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.0.0'
13
- s.add_dependency 'faraday', '~> 0.13'
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
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe PayPro::Client do
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rspec'
2
4
  require 'paypro'
3
5
 
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.1
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: 2017-08-29 00:00:00.000000000 Z
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.0.0
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
- rubyforge_project:
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