paypoint-blue 0.7.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35fda4129bc353db11b8304b32d6d73ea9c21ed1
4
- data.tar.gz: 93c06940ab960c891536e4d8d826c319a77ef04e
3
+ metadata.gz: 7e662703195b0e1509bcf9b73e7d32c185e6cae5
4
+ data.tar.gz: 05e6c11ff4136c7122615a566fad6b2a25898a98
5
5
  SHA512:
6
- metadata.gz: 3810b61fd3f56e8bbd97a62d4e010717de25c723d6646dcee20b0cc2d260f5be7548914f658b470da29c19df9cf136a3c5db8a1325c05e76ea2fa1902e530b73
7
- data.tar.gz: 8754b8f9b060eca327b42cedc08d892e7d24fdc044de0889c6304a89c3ccc9ea477a7bbd4c8b101c1f435c6c091cb8c616ae7a8f96c5d1138632f672f34cf565
6
+ metadata.gz: 129d593ae98e772f5f03dd2decc0a9d4c45e7c671b88a1d71c8c9ad584ee015a96a3a298fd6e6c83ca91b1ca398c78c4cb397eae6998f4d672c4ac3e9b298900
7
+ data.tar.gz: 2af1fa0af18c43c231fd009040e1319443f0c8399a6bd931329c4cdd43ee8e21cfcd0dcb1addadc23bff34207034d01aa69cf33d8599c3651efe9d9e3e267986
data/.rubocop.yml CHANGED
@@ -5,6 +5,7 @@ AllCops:
5
5
  - "bin/*"
6
6
  - "support/**/*"
7
7
  - "vendor/**/*"
8
+ TargetRubyVersion: 2.2
8
9
 
9
10
  ### Style ######################################################################
10
11
 
@@ -24,9 +25,15 @@ Style/BlockDelimiters:
24
25
  Style/IndentHash:
25
26
  EnforcedStyle: consistent
26
27
 
28
+ Style/MultilineMethodCallIndentation:
29
+ EnforcedStyle: indented
30
+
27
31
  Style/MultilineOperationIndentation:
28
32
  EnforcedStyle: indented
29
33
 
34
+ Style/SignalException:
35
+ EnforcedStyle: semantic
36
+
30
37
  Style/StringLiterals:
31
38
  EnforcedStyle: double_quotes
32
39
 
@@ -38,6 +45,9 @@ Style/StringLiteralsInInterpolation:
38
45
  Style/SymbolArray:
39
46
  Enabled: false
40
47
 
48
+ Style/TrailingCommaInArguments:
49
+ EnforcedStyleForMultiline: comma
50
+
41
51
  Style/TrailingCommaInLiteral:
42
52
  EnforcedStyleForMultiline: comma
43
53
 
@@ -3,8 +3,8 @@ require "paypoint/blue/base"
3
3
  # Client class for the API product.
4
4
  class PayPoint::Blue::API < PayPoint::Blue::Base
5
5
  ENDPOINTS = {
6
- test: "https://api.mite.paypoint.net:2443/acceptor/rest",
7
- live: "https://api.paypoint.net/acceptor/rest",
6
+ test: "https://api.mite.pay360.com:2443/acceptor/rest",
7
+ live: "https://api.pay360.com/acceptor/rest",
8
8
  }.freeze
9
9
 
10
10
  shortcut :merchant_ref, "transaction.merchant_ref"
@@ -53,8 +53,8 @@ module PayPoint
53
53
  # pass through the provided {https://www.runscope.com/ Runscope}
54
54
  # bucket, including notification callbacks
55
55
  def initialize(endpoint:, inst_id: ENV["BLUE_API_INSTALLATION"],
56
- api_id: ENV["BLUE_API_ID"], api_password: ENV["BLUE_API_PASSWORD"],
57
- **options)
56
+ api_id: ENV["BLUE_API_ID"], api_password: ENV["BLUE_API_PASSWORD"],
57
+ **options)
58
58
 
59
59
  @endpoint = get_endpoint_or_override_with(endpoint)
60
60
  @inst_id = inst_id or fail ArgumentError, "missing inst_id"
@@ -5,8 +5,8 @@ require "paypoint/blue/base"
5
5
  # Client class for the Hosted product.
6
6
  class PayPoint::Blue::Hosted < PayPoint::Blue::Base
7
7
  ENDPOINTS = {
8
- test: "https://hosted.mite.paypoint.net/hosted/rest",
9
- live: "https://hosted.paypoint.net/hosted/rest",
8
+ test: "https://api.mite.pay360.com/hosted/rest",
9
+ live: "https://api.pay360.com/hosted/rest",
10
10
  }.freeze
11
11
 
12
12
  shortcut :merchant_ref, "transaction.merchant_reference"
@@ -1,5 +1,5 @@
1
1
  module PayPoint
2
- module Blue # rubocop:disable Documentation
3
- VERSION = "0.7.0"
2
+ module Blue
3
+ VERSION = "1.0.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paypoint-blue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laszlo Bacsi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-18 00:00:00.000000000 Z
11
+ date: 2016-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday