gocardless_pro 2.37.0 → 2.38.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: e7f1e988aa7164b8006b5a6b76d0e43df2d45dcea8e51f4edaf719e94b26b939
4
- data.tar.gz: 813c7ac58a0ef7476572b38a74456331c705574d081a90759d13f20cb63d3814
3
+ metadata.gz: 3e4380b36b1277edc983d6ce90e5cfcc0176584173d104650cb4cb93f85bd95d
4
+ data.tar.gz: 1d1164f47ebb0a9e2d5e7c0eb01bfa1beac353a193dd186dd2b6af5ce14bc872
5
5
  SHA512:
6
- metadata.gz: e1e31bbc274a59b3d6d1e1de8a2929bcc89163a7a88e0ca314f4f4498a7405f8b5c16d50da0f2e8dde70edc20032191e45099dc9230e8342738e63926a7051da
7
- data.tar.gz: c277105a55d42a91a7cfcb5f54b98af70668ba4879a203024e8578be26f24b894def6680ba9725638c4785a8d531b9945ca02a3a9fc7663223e34419ea949611
6
+ metadata.gz: 3b67e3af4bc7220609dfd2b147d7a7bf445992bee0639047ab57d95dfa2f947c1e834558d9373817294c2bcb6ca67c9b7b2deae0ae228749ea14e6b5689f2ee5
7
+ data.tar.gz: d96959f738e09a95ebdf6f8249cba353218aa53205e6eee20a4b82a83305bc6324a0ebba119de85133d9042a57dd7db463c4ff9cd958ea010fc72ac1125c191b
@@ -198,7 +198,7 @@ module GoCardlessPro
198
198
  'User-Agent' => user_agent.to_s,
199
199
  'Content-Type' => 'application/json',
200
200
  'GoCardless-Client-Library' => 'gocardless-pro-ruby',
201
- 'GoCardless-Client-Version' => '2.37.0',
201
+ 'GoCardless-Client-Version' => '2.38.0',
202
202
  },
203
203
  }
204
204
  end
@@ -169,10 +169,10 @@ module GoCardlessPro
169
169
  # Returns 201 if at least one block was created. Returns 200 if there were no
170
170
  # new
171
171
  # blocks created.
172
- # Example URL: /block_by_ref
172
+ # Example URL: /blocks/block_by_ref
173
173
  # @param options [Hash] parameters as a hash, under a params key.
174
174
  def block_by_ref(options = {})
175
- path = '/block_by_ref'
175
+ path = '/blocks/block_by_ref'
176
176
 
177
177
  params = options.delete(:params) || {}
178
178
  options[:params] = {}
@@ -4,5 +4,5 @@ end
4
4
 
5
5
  module GoCardlessPro
6
6
  # Current version of the GC gem
7
- VERSION = '2.37.0'.freeze
7
+ VERSION = '2.38.0'.freeze
8
8
  end
@@ -504,8 +504,8 @@ describe GoCardlessPro::Resources::Block do
504
504
  let(:resource_id) { 'ABC123' }
505
505
 
506
506
  let!(:stub) do
507
- # /block_by_ref
508
- stub_url = '/block_by_ref'.gsub(':identity', resource_id)
507
+ # /blocks/block_by_ref
508
+ stub_url = '/blocks/block_by_ref'.gsub(':identity', resource_id)
509
509
  stub_request(:post, /.*api.gocardless.com#{stub_url}/).to_return(
510
510
 
511
511
  body: {
@@ -549,8 +549,8 @@ describe GoCardlessPro::Resources::Block do
549
549
  let(:resource_id) { 'ABC123' }
550
550
 
551
551
  let!(:stub) do
552
- # /block_by_ref
553
- stub_url = '/block_by_ref'.gsub(':identity', resource_id)
552
+ # /blocks/block_by_ref
553
+ stub_url = '/blocks/block_by_ref'.gsub(':identity', resource_id)
554
554
  stub_request(:post, /.*api.gocardless.com#{stub_url}/).
555
555
  with(
556
556
  body: { foo: 'bar' },
@@ -756,8 +756,8 @@ describe GoCardlessPro::Services::BlocksService do
756
756
  let(:resource_id) { 'ABC123' }
757
757
 
758
758
  let!(:stub) do
759
- # /block_by_ref
760
- stub_url = '/block_by_ref'.gsub(':identity', resource_id)
759
+ # /blocks/block_by_ref
760
+ stub_url = '/blocks/block_by_ref'.gsub(':identity', resource_id)
761
761
  stub_request(:post, /.*api.gocardless.com#{stub_url}/).to_return(
762
762
 
763
763
  body: {
@@ -797,7 +797,7 @@ describe GoCardlessPro::Services::BlocksService do
797
797
 
798
798
  describe 'retry behaviour' do
799
799
  it "doesn't retry errors" do
800
- stub_url = '/block_by_ref'.gsub(':identity', resource_id)
800
+ stub_url = '/blocks/block_by_ref'.gsub(':identity', resource_id)
801
801
  stub = stub_request(:post, /.*api.gocardless.com#{stub_url}/).
802
802
  to_timeout
803
803
 
@@ -812,8 +812,8 @@ describe GoCardlessPro::Services::BlocksService do
812
812
  let(:resource_id) { 'ABC123' }
813
813
 
814
814
  let!(:stub) do
815
- # /block_by_ref
816
- stub_url = '/block_by_ref'.gsub(':identity', resource_id)
815
+ # /blocks/block_by_ref
816
+ stub_url = '/blocks/block_by_ref'.gsub(':identity', resource_id)
817
817
  stub_request(:post, /.*api.gocardless.com#{stub_url}/).
818
818
  with(
819
819
  body: { foo: 'bar' },
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gocardless_pro
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.37.0
4
+ version: 2.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-13 00:00:00.000000000 Z
11
+ date: 2022-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday