docdata-order 2.1.0 → 2.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e9a69ef9b4a6b563b917c5e8b4c1509796f580c285b84dac289a4b7e0d9c6ff
4
- data.tar.gz: e4280bb171fb3aecf0412f4546f47054504ea986dd1491f0310e5ba87aba769d
3
+ metadata.gz: 590985b29272c02538fc431cd9d8d1c0aac3ec95d960732d7f9e9086c3c031a2
4
+ data.tar.gz: bc7ee9aad6969ed3356edb7eaa95082149e04823e5663e9668b7c44cf088ca18
5
5
  SHA512:
6
- metadata.gz: 8f1711b410acb0e21d1b2d2cbbe4097806dc08df39e03879d12f34def9bae4ea6290afbadffa02600fd42c1b9056c1dc2721513323f0880ac1b0d561ecb61c4e
7
- data.tar.gz: b5c6891840ec43f427446bbeaaa43de2d2cf455e438b454eceebab361801338be784c687020eae1675e5d75d3e07fc11ed3562bca122d74c64338712ea0d96fb
6
+ metadata.gz: 3dc9102ac8c43271c37e89280d5af148f492c54ee3af3c26ba48f67618e614319b42aea2eb8c72a1df05274ea9a9583dc1fab09d31a5a159f784f11dfbbff0a8
7
+ data.tar.gz: 6009315e800b314617239ad87bbb790f77512329b38400e26b516a36453cb1fa73b808ecb8085c48e0e24bce59b9f68b4efec3f4883cfb3c43681abd485a64f6
data/README.md CHANGED
@@ -105,12 +105,11 @@ The `redirect_url` in the response will redirect the user to the Docdata Payment
105
105
  #### Redirecting directly to the payment page
106
106
 
107
107
  For some payment methods you can skip the Docdata One Page Checkout and redirect directly to the payment page of the specified payment method.
108
- This works for the payment methods iDEAL, Sofort and PayPal. For iDEAL, you also need to provide the issuer:
108
+ This works for the payment methods iDEAL, Sofort and PayPal.
109
109
 
110
110
  ```ruby
111
111
  response = client.create(options.merge(
112
112
  payment_method: Docdata::Order::PaymentMethod::IDEAL,
113
- issuer_id: "INGBNL2A",
114
113
  return_url: "http://yourwebshop.nl/payment_return"
115
114
  ))
116
115
  ```
@@ -218,4 +217,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/Kentaa
218
217
  ## License
219
218
 
220
219
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
221
-
@@ -31,7 +31,7 @@ module Docdata
31
31
 
32
32
  # Convert the amount to a String with 2 decimals.
33
33
  def to_s
34
- format("%.2f", @amount)
34
+ format('%.2f', @amount)
35
35
  end
36
36
  end
37
37
  end
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "savon"
3
+ require 'savon'
4
4
 
5
5
  module Docdata
6
6
  module Order
7
7
  # Client for the Docdata Order API.
8
8
  class Client
9
- XMLNS_DDP = "http://www.docdatapayments.com/services/paymentservice/1_3/"
10
- DDP_VERSION = "1.3"
9
+ XMLNS_DDP = 'http://www.docdatapayments.com/services/paymentservice/1_3/'
10
+ DDP_VERSION = '1.3'
11
11
 
12
12
  def initialize(name, password, options = {})
13
13
  @options = options.merge(merchant: { name: name, password: password })
@@ -15,59 +15,50 @@ module Docdata
15
15
 
16
16
  def create(options = {})
17
17
  params = @options.merge(options)
18
-
19
- response = client.call(:create, message: CreateRequest.new(params), attributes: { xmlns: XMLNS_DDP, version: DDP_VERSION })
20
-
21
- raise Docdata::Order::Exception, response unless response.success?
18
+ response = call(:create, CreateRequest.new(params))
22
19
 
23
20
  CreateResponse.new(params, response)
24
21
  end
25
22
 
26
23
  def start(options = {})
27
24
  params = @options.merge(options)
28
-
29
- response = client.call(:start, message: StartRequest.new(params), attributes: { xmlns: XMLNS_DDP, version: DDP_VERSION })
30
-
31
- raise Docdata::Order::Exception, response unless response.success?
25
+ response = call(:start, StartRequest.new(params))
32
26
 
33
27
  StartResponse.new(params, response)
34
28
  end
35
29
 
36
30
  def status(options = {})
37
31
  params = @options.merge(options)
38
-
39
- response = client.call(:status_extended, message: ExtendedStatusRequest.new(params), attributes: { xmlns: XMLNS_DDP, version: DDP_VERSION })
40
-
41
- raise Docdata::Order::Exception, response unless response.success?
32
+ response = call(:status_extended, ExtendedStatusRequest.new(params))
42
33
 
43
34
  ExtendedStatusResponse.new(params, response)
44
35
  end
45
36
 
46
37
  def refund(options = {})
47
38
  params = @options.merge(options)
48
-
49
- response = client.call(:refund, message: RefundRequest.new(params), attributes: { xmlns: XMLNS_DDP, version: DDP_VERSION })
50
-
51
- raise Docdata::Order::Exception, response unless response.success?
39
+ response = call(:refund, RefundRequest.new(params))
52
40
 
53
41
  RefundResponse.new(params, response)
54
42
  end
55
43
 
56
44
  def payment_methods(options = {})
57
45
  params = @options.merge(options)
58
-
59
- response = client.call(:list_payment_methods, message: ListPaymentMethodsRequest.new(params), attributes: { xmlns: XMLNS_DDP, version: DDP_VERSION })
60
-
61
- raise Docdata::Order::Exception, response unless response.success?
46
+ response = call(:list_payment_methods, ListPaymentMethodsRequest.new(params))
62
47
 
63
48
  ListPaymentMethodsResponse.new(params, response)
64
49
  end
65
50
 
66
51
  private
67
52
 
53
+ def call(operation, message)
54
+ client.call(operation, message: message, attributes: { xmlns: XMLNS_DDP, version: DDP_VERSION })
55
+ rescue Savon::Error => e
56
+ raise Docdata::Order::Exception, e.message
57
+ end
58
+
68
59
  def client
69
60
  @client ||= begin
70
- params = { wsdl: wsdl_url, raise_errors: false, namespace_identifier: nil, namespaces: { "xmlns:ddp" => XMLNS_DDP } }
61
+ params = { wsdl: wsdl_url, raise_errors: true, namespace_identifier: nil, namespaces: { 'xmlns:ddp' => XMLNS_DDP } }
71
62
 
72
63
  params.merge!(log: true, log_level: :debug, pretty_print_xml: true) if @options[:debug]
73
64
 
@@ -3,9 +3,9 @@
3
3
  module Docdata
4
4
  module Order
5
5
  module Gender
6
- MALE = "M"
7
- FEMALE = "F"
8
- UNDEFINED = "U"
6
+ MALE = 'M'
7
+ FEMALE = 'F'
8
+ UNDEFINED = 'U'
9
9
  end
10
10
  end
11
11
  end
@@ -4,16 +4,16 @@ module Docdata
4
4
  module Order
5
5
  # Payment method in Docdata, optionally with issuers.
6
6
  class PaymentMethod
7
- IDEAL = "IDEAL"
8
- VISA = "VISA"
9
- MASTER_CARD = "MASTERCARD"
10
- MAESTRO = "MAESTRO"
11
- AMERICAN_EXPRESS = "AMEX"
12
- PAYPAL = "PAYPAL_EXPRESS_CHECKOUT"
13
- SEPA_DIRECT_DEBIT = "SEPA_DIRECT_DEBIT"
14
- BANCONTACT = "MISTERCASH"
15
- SOFORT = "EBANKING"
16
- GIROPAY = "GIROPAY"
7
+ IDEAL = 'IDEAL'
8
+ VISA = 'VISA'
9
+ MASTER_CARD = 'MASTERCARD'
10
+ MAESTRO = 'MAESTRO'
11
+ AMERICAN_EXPRESS = 'AMEX'
12
+ PAYPAL = 'PAYPAL_EXPRESS_CHECKOUT'
13
+ SEPA_DIRECT_DEBIT = 'SEPA_DIRECT_DEBIT'
14
+ BANCONTACT = 'MISTERCASH'
15
+ SOFORT = 'EBANKING'
16
+ GIROPAY = 'GIROPAY'
17
17
 
18
18
  attr_accessor :payment_method, :issuers
19
19
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "builder/xmlmarkup"
4
- require "securerandom"
3
+ require 'builder/xmlmarkup'
4
+ require 'securerandom'
5
5
 
6
6
  module Docdata
7
7
  module Order
@@ -40,11 +40,11 @@ module Docdata
40
40
  # This info is useful when debugging troubleshooting technical integration issues.
41
41
  builder.integrationInfo do |integration|
42
42
  # The name of the plugin used to contact this webservice.
43
- integration.webshopPlugin("docdata-order")
43
+ integration.webshopPlugin('docdata-order')
44
44
  # The version of the plugin used to contact this webservice.
45
45
  integration.webshopPluginVersion(Docdata::Order::VERSION)
46
46
  # The name of the plugin creator used to contact this webservice.
47
- integration.integratorName("Kentaa")
47
+ integration.integratorName('Kentaa')
48
48
  # The programming language used to contact this webservice.
49
49
  integration.programmingLanguage("Ruby #{RUBY_VERSION}")
50
50
  # The operating system from which this webservice is contacted.
@@ -88,7 +88,7 @@ module Docdata
88
88
  end
89
89
 
90
90
  def subject_merchant_fee_moment
91
- subject_merchant_fee[:moment] || "FULLY_PAID"
91
+ subject_merchant_fee[:moment] || 'FULLY_PAID'
92
92
  end
93
93
 
94
94
  def subject_merchant_fee_description
@@ -100,7 +100,7 @@ module Docdata
100
100
  end
101
101
 
102
102
  def subject_merchant_fee_currency
103
- subject_merchant_fee[:currency] || "EUR"
103
+ subject_merchant_fee[:currency] || 'EUR'
104
104
  end
105
105
 
106
106
  def build_request
@@ -254,7 +254,7 @@ module Docdata
254
254
  end
255
255
 
256
256
  def currency
257
- options[:currency] || "EUR"
257
+ options[:currency] || 'EUR'
258
258
  end
259
259
 
260
260
  def description
@@ -292,8 +292,10 @@ module Docdata
292
292
 
293
293
  case payment_method
294
294
  when PaymentMethod::IDEAL
295
- payment.iDealPaymentInput do |input|
296
- input.issuerId(issuer_id)
295
+ if issuer_id
296
+ payment.iDealPaymentInput do |input|
297
+ input.issuerId(issuer_id)
298
+ end
297
299
  end
298
300
  when PaymentMethod::SEPA_DIRECT_DEBIT
299
301
  payment.directDebitPaymentInput do |input|
@@ -319,7 +321,7 @@ module Docdata
319
321
  end
320
322
 
321
323
  def issuer_id
322
- options.fetch(:issuer_id)
324
+ options[:issuer_id]
323
325
  end
324
326
 
325
327
  def consumer_name
@@ -387,7 +389,7 @@ module Docdata
387
389
  end
388
390
 
389
391
  def currency
390
- options[:currency] || "EUR"
392
+ options[:currency] || 'EUR'
391
393
  end
392
394
 
393
395
  def description
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "uri"
3
+ require 'uri'
4
4
 
5
5
  module Docdata
6
6
  module Order
@@ -22,7 +22,7 @@ module Docdata
22
22
  end
23
23
 
24
24
  def error_code
25
- errors[:error].attributes["code"] if errors
25
+ errors[:error].attributes['code'] if errors
26
26
  end
27
27
  end
28
28
 
@@ -50,7 +50,7 @@ module Docdata
50
50
 
51
51
  def redirect_url
52
52
  params = {
53
- command: "show_payment_cluster",
53
+ command: 'show_payment_cluster',
54
54
  merchant_name: merchant_name,
55
55
  client_language: client_language,
56
56
  payment_cluster_key: order_key
@@ -70,10 +70,10 @@ module Docdata
70
70
 
71
71
  if return_url
72
72
  params.merge!(
73
- return_url_success: build_return_url("success"),
74
- return_url_canceled: build_return_url("cancelled"),
75
- return_url_pending: build_return_url("pending"),
76
- return_url_error: build_return_url("error")
73
+ return_url_success: build_return_url('success'),
74
+ return_url_canceled: build_return_url('cancelled'),
75
+ return_url_pending: build_return_url('pending'),
76
+ return_url_error: build_return_url('error')
77
77
  )
78
78
  end
79
79
 
@@ -119,7 +119,7 @@ module Docdata
119
119
 
120
120
  def build_return_url(status)
121
121
  uri = URI.parse(return_url)
122
- query = URI.decode_www_form(uri.query || "") << ["status", status]
122
+ query = URI.decode_www_form(uri.query || '') << ['status', status]
123
123
  uri.query = URI.encode_www_form(query)
124
124
  uri.to_s
125
125
  end
@@ -154,6 +154,10 @@ module Docdata
154
154
  def payment_id
155
155
  payment_success[:id] if payment_success
156
156
  end
157
+
158
+ def payment_status
159
+ payment_success[:status] if payment_success
160
+ end
157
161
  end
158
162
 
159
163
  # Response to a extended status operation.
@@ -224,10 +228,22 @@ module Docdata
224
228
  authorization[:status] if authorization
225
229
  end
226
230
 
231
+ def authorization_amount
232
+ to_decimal(authorization[:amount]) if authorization
233
+ end
234
+
235
+ def authorization_currency
236
+ authorization[:amount].attributes['currency'] if authorization
237
+ end
238
+
227
239
  def approximate_totals
228
240
  report[:approximate_totals]
229
241
  end
230
242
 
243
+ def exchanged_to
244
+ report[:approximate_totals][:@exchanged_to]
245
+ end
246
+
231
247
  def total_registered
232
248
  to_decimal(approximate_totals[:total_registered])
233
249
  end
@@ -277,12 +293,12 @@ module Docdata
277
293
  end
278
294
 
279
295
  def started?
280
- (authorization_status == "NEW" || authorization_status == "STARTED" ||
281
- (total_captured.zero? && total_acquirer_approved.zero?)) && authorization_status != "CANCELED"
296
+ (authorization_status == 'NEW' || authorization_status == 'STARTED' ||
297
+ (total_captured.zero? && total_acquirer_approved.zero?)) && authorization_status != 'CANCELED'
282
298
  end
283
299
 
284
300
  def cancelled?
285
- authorization_status == "CANCELED"
301
+ authorization_status == 'CANCELED'
286
302
  end
287
303
 
288
304
  def consumer_iban
@@ -368,7 +384,7 @@ module Docdata
368
384
  def payment_methods
369
385
  data[:list_payment_methods_success][:payment_method].map do |payment_method|
370
386
  method = PaymentMethod.new(payment_method[:name])
371
- method.issuers = payment_method[:issuers][:issuer].map { |issuer| [issuer.attributes["id"], issuer.to_s] }.to_h if payment_method.key?(:issuers)
387
+ method.issuers = payment_method[:issuers][:issuer].to_h { |issuer| [issuer.attributes['id'], issuer.to_s] } if payment_method.key?(:issuers)
372
388
  method
373
389
  end
374
390
  end
@@ -4,12 +4,12 @@ module Docdata
4
4
  module Order
5
5
  module Urls
6
6
  # WSDL location, see Order API 1.3.
7
- WSDL_LIVE_URL = "https://secure.docdatapayments.com/ps/services/paymentservice/1_3?wsdl"
8
- WSDL_TEST_URL = "https://testsecure.docdatapayments.com/ps/services/paymentservice/1_3?wsdl"
7
+ WSDL_LIVE_URL = 'https://secure.docdatapayments.com/ps/services/paymentservice/1_3?wsdl'
8
+ WSDL_TEST_URL = 'https://testsecure.docdatapayments.com/ps/services/paymentservice/1_3?wsdl'
9
9
 
10
10
  # Payment Menu base URL, see Functional API.
11
- MENU_LIVE_URL = "https://secure.docdatapayments.com/ps/menu"
12
- MENU_TEST_URL = "https://testsecure.docdatapayments.com/ps/menu"
11
+ MENU_LIVE_URL = 'https://secure.docdatapayments.com/ps/menu'
12
+ MENU_TEST_URL = 'https://testsecure.docdatapayments.com/ps/menu'
13
13
  end
14
14
  end
15
15
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Docdata
4
4
  module Order
5
- VERSION = "2.1.0"
5
+ VERSION = '2.3.0'
6
6
  end
7
7
  end
data/lib/docdata/order.rb CHANGED
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "docdata/order/amount"
4
- require "docdata/order/client"
5
- require "docdata/order/exception"
6
- require "docdata/order/gender"
7
- require "docdata/order/payment_method"
8
- require "docdata/order/request"
9
- require "docdata/order/response"
10
- require "docdata/order/urls"
11
- require "docdata/order/version"
3
+ require 'docdata/order/amount'
4
+ require 'docdata/order/client'
5
+ require 'docdata/order/exception'
6
+ require 'docdata/order/gender'
7
+ require 'docdata/order/payment_method'
8
+ require 'docdata/order/request'
9
+ require 'docdata/order/response'
10
+ require 'docdata/order/urls'
11
+ require 'docdata/order/version'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docdata-order
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kentaa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-16 00:00:00.000000000 Z
11
+ date: 2025-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '2.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '2.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,20 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.3'
62
- - - ">="
63
- - !ruby/object:Gem::Version
64
- version: 2.3.2
61
+ version: '3.0'
65
62
  type: :development
66
63
  prerelease: false
67
64
  version_requirements: !ruby/object:Gem::Requirement
68
65
  requirements:
69
66
  - - "~>"
70
67
  - !ruby/object:Gem::Version
71
- version: '2.3'
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: bigdecimal
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
72
80
  - - ">="
73
81
  - !ruby/object:Gem::Version
74
- version: 2.3.2
82
+ version: '0'
75
83
  - !ruby/object:Gem::Dependency
76
84
  name: savon
77
85
  requirement: !ruby/object:Gem::Requirement
@@ -99,18 +107,8 @@ executables: []
99
107
  extensions: []
100
108
  extra_rdoc_files: []
101
109
  files:
102
- - ".github/workflows/test.yml"
103
- - ".gitignore"
104
- - ".rspec"
105
- - ".rubocop.yml"
106
- - Gemfile
107
- - Gemfile.lock
108
110
  - LICENSE.txt
109
111
  - README.md
110
- - Rakefile
111
- - bin/console
112
- - bin/setup
113
- - docdata-order.gemspec
114
112
  - lib/docdata/order.rb
115
113
  - lib/docdata/order/amount.rb
116
114
  - lib/docdata/order/client.rb
@@ -124,7 +122,8 @@ files:
124
122
  homepage: https://github.com/KentaaNL/docdata-order
125
123
  licenses:
126
124
  - MIT
127
- metadata: {}
125
+ metadata:
126
+ rubygems_mfa_required: 'true'
128
127
  post_install_message:
129
128
  rdoc_options: []
130
129
  require_paths:
@@ -133,14 +132,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
132
  requirements:
134
133
  - - ">="
135
134
  - !ruby/object:Gem::Version
136
- version: 2.4.0
135
+ version: 3.0.0
137
136
  required_rubygems_version: !ruby/object:Gem::Requirement
138
137
  requirements:
139
138
  - - ">="
140
139
  - !ruby/object:Gem::Version
141
140
  version: '0'
142
141
  requirements: []
143
- rubygems_version: 3.0.8
142
+ rubygems_version: 3.2.33
144
143
  signing_key:
145
144
  specification_version: 4
146
145
  summary: Ruby client for the Docdata Order API
@@ -1,23 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- pull_request:
8
-
9
- jobs:
10
- test:
11
- runs-on: ubuntu-latest
12
- strategy:
13
- matrix:
14
- ruby-version: ['2.4', '2.5', '2.6', '2.7', '3.0']
15
-
16
- steps:
17
- - uses: actions/checkout@v2
18
- - uses: ruby/setup-ruby@v1
19
- with:
20
- ruby-version: ${{ matrix.ruby-version }}
21
- bundler-cache: true
22
- - name: Run tests
23
- run: bundle exec rake
data/.gitignore DELETED
@@ -1,14 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
12
-
13
- .ruby-version
14
- .ruby-gemset
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/.rubocop.yml DELETED
@@ -1,57 +0,0 @@
1
- # Docdata-order RuboCop configuration
2
-
3
- require:
4
- - rubocop-performance
5
- - rubocop-rake
6
- - rubocop-rspec
7
-
8
- AllCops:
9
- NewCops: enable
10
- TargetRubyVersion: 2.4
11
- DisplayCopNames: true
12
- DisplayStyleGuide: true
13
- Exclude:
14
- - 'tmp/**/*'
15
- - 'vendor/**/*'
16
-
17
-
18
- Layout/LineLength:
19
- Enabled: false
20
-
21
-
22
- Metrics/AbcSize:
23
- Max: 58
24
-
25
- Metrics/BlockLength:
26
- Exclude:
27
- - 'spec/**/*.rb'
28
-
29
- Metrics/ClassLength:
30
- Enabled: false
31
-
32
- Metrics/MethodLength:
33
- Enabled: false
34
-
35
-
36
- RSpec/DescribedClass:
37
- EnforcedStyle: explicit
38
-
39
- RSpec/ExampleLength:
40
- Max: 41
41
-
42
- RSpec/MultipleExpectations:
43
- Max: 10
44
-
45
-
46
- Style/BlockDelimiters:
47
- Exclude:
48
- - 'spec/**/*.rb'
49
-
50
- Style/GuardClause:
51
- Enabled: false
52
-
53
- Style/StringLiterals:
54
- Enabled: false
55
-
56
- Style/SymbolArray:
57
- Enabled: false
data/Gemfile DELETED
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in docdata-order.gemspec
6
- gemspec
7
-
8
- gem 'rubocop', '~> 1.12.0'
9
- gem 'rubocop-performance', '~> 1.10.2'
10
- gem 'rubocop-rake', '~> 0.5.1'
11
- gem 'rubocop-rspec', '~> 2.2.0'
data/Gemfile.lock DELETED
@@ -1,106 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- docdata-order (2.1.0)
5
- savon (>= 2.0, < 3.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- addressable (2.8.0)
11
- public_suffix (>= 2.0.2, < 5.0)
12
- akami (1.3.1)
13
- gyoku (>= 0.4.0)
14
- nokogiri
15
- ast (2.4.2)
16
- builder (3.2.4)
17
- crack (0.4.5)
18
- rexml
19
- diff-lcs (1.4.4)
20
- gyoku (1.3.1)
21
- builder (>= 2.1.2)
22
- hashdiff (1.0.1)
23
- httpi (2.4.5)
24
- rack
25
- socksify
26
- mini_portile2 (2.4.0)
27
- nokogiri (1.10.10)
28
- mini_portile2 (~> 2.4.0)
29
- nori (2.6.0)
30
- parallel (1.20.1)
31
- parser (3.0.2.0)
32
- ast (~> 2.4.1)
33
- public_suffix (4.0.6)
34
- rack (2.2.3)
35
- rainbow (3.0.0)
36
- rake (13.0.6)
37
- regexp_parser (2.1.1)
38
- rexml (3.2.5)
39
- rspec (3.10.0)
40
- rspec-core (~> 3.10.0)
41
- rspec-expectations (~> 3.10.0)
42
- rspec-mocks (~> 3.10.0)
43
- rspec-core (3.10.1)
44
- rspec-support (~> 3.10.0)
45
- rspec-expectations (3.10.1)
46
- diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.10.0)
48
- rspec-mocks (3.10.2)
49
- diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.10.0)
51
- rspec-support (3.10.2)
52
- rubocop (1.12.1)
53
- parallel (~> 1.10)
54
- parser (>= 3.0.0.0)
55
- rainbow (>= 2.2.2, < 4.0)
56
- regexp_parser (>= 1.8, < 3.0)
57
- rexml
58
- rubocop-ast (>= 1.2.0, < 2.0)
59
- ruby-progressbar (~> 1.7)
60
- unicode-display_width (>= 1.4.0, < 3.0)
61
- rubocop-ast (1.4.1)
62
- parser (>= 2.7.1.5)
63
- rubocop-performance (1.10.2)
64
- rubocop (>= 0.90.0, < 2.0)
65
- rubocop-ast (>= 0.4.0)
66
- rubocop-rake (0.5.1)
67
- rubocop
68
- rubocop-rspec (2.2.0)
69
- rubocop (~> 1.0)
70
- rubocop-ast (>= 1.1.0)
71
- ruby-progressbar (1.11.0)
72
- savon (2.12.1)
73
- akami (~> 1.2)
74
- builder (>= 2.1.2)
75
- gyoku (~> 1.2)
76
- httpi (~> 2.3)
77
- nokogiri (>= 1.8.1)
78
- nori (~> 2.4)
79
- wasabi (~> 3.4)
80
- socksify (1.7.1)
81
- unicode-display_width (2.0.0)
82
- wasabi (3.6.1)
83
- addressable
84
- httpi (~> 2.0)
85
- nokogiri (>= 1.4.2)
86
- webmock (2.3.2)
87
- addressable (>= 2.3.6)
88
- crack (>= 0.3.2)
89
- hashdiff
90
-
91
- PLATFORMS
92
- ruby
93
-
94
- DEPENDENCIES
95
- bundler (~> 2.0)
96
- docdata-order!
97
- rake (~> 13.0)
98
- rspec (~> 3.0)
99
- rubocop (~> 1.12.0)
100
- rubocop-performance (~> 1.10.2)
101
- rubocop-rake (~> 0.5.1)
102
- rubocop-rspec (~> 2.2.0)
103
- webmock (~> 2.3, >= 2.3.2)
104
-
105
- BUNDLED WITH
106
- 2.2.17
data/Rakefile DELETED
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
- require "rubocop/rake_task"
6
-
7
- RSpec::Core::RakeTask.new(:spec)
8
- RuboCop::RakeTask.new(:rubocop)
9
-
10
- task default: [:spec, :rubocop]
data/bin/console DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "bundler/setup"
5
- require "docdata/order"
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require "irb"
15
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,32 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'docdata/order/version'
6
-
7
- Gem::Specification.new do |spec|
8
- spec.name = "docdata-order"
9
- spec.version = Docdata::Order::VERSION
10
- spec.authors = ["Kentaa"]
11
- spec.email = ["support@kentaa.nl"]
12
-
13
- spec.summary = "Ruby client for the Docdata Order API"
14
- spec.homepage = "https://github.com/KentaaNL/docdata-order"
15
- spec.license = "MIT"
16
-
17
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
- f.match(%r{^(test|spec|features)/})
19
- end
20
- spec.bindir = "exe"
21
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
- spec.require_paths = ["lib"]
23
-
24
- spec.required_ruby_version = ">= 2.4.0"
25
-
26
- spec.add_development_dependency "bundler", "~> 2.0"
27
- spec.add_development_dependency "rake", "~> 13.0"
28
- spec.add_development_dependency "rspec", "~> 3.0"
29
- spec.add_development_dependency "webmock", "~> 2.3", ">= 2.3.2"
30
-
31
- spec.add_dependency "savon", ">= 2.0", "< 3.0"
32
- end