restforce 7.1.0 → 7.2.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: fe63ad6684261df32867bad2431709006a8507a481261c14cd8fac1aab6dc88c
4
- data.tar.gz: fe26e4ac42c9eda729b51d058f52a706d648673cf743b7fcf1f295747b41cd95
3
+ metadata.gz: 32f18ed324e748a4cc4b9b6178db20373ddcc219d44c3a98baccfbb50e29c1d5
4
+ data.tar.gz: a9fbbc98cb0c0929f561e8730bfef4913eca9994a489d337c6e67359bcaa9040
5
5
  SHA512:
6
- metadata.gz: 45e4800621600bc351f7cbe52bbb7847a89351a72c407d5de5cd01ecc2e99576ba2b8707f6ab47a8d95f09a1833934de63ff52b1867e0d4b640884683b2c1e85
7
- data.tar.gz: 9aee02914b520b0f68c6d40017f136198e082db951a3a96af693da8537b963471b1ff4b73602588250bed6f8ba10d1c3a3a95eed118204c2c85f8913a178d3fb
6
+ metadata.gz: 3a26f9c8ccc4c846af46fe3019679afdfb1a82d6ca94979d8d6e119bf87681abd73b15ca1fd6f32d1ad1ce663b8b69d31f0d64d38451c15378cc45c0b99022ef
7
+ data.tar.gz: cab7aac0506a7963a0b1a4cf56e257c0b09ff7cb15f0e17491cb57d18e2797b676c1463470052fecf4ea3d93645b71780d6318ee59c3306fb2c268da7a15a462
@@ -6,7 +6,7 @@ jobs:
6
6
  strategy:
7
7
  fail-fast: false
8
8
  matrix:
9
- ruby_version: ['3.0', '3.1', '3.2']
9
+ ruby_version: ['3.0', '3.1', '3.2', '3.3']
10
10
  steps:
11
11
  - name: Checkout code
12
12
  uses: actions/checkout@v4
@@ -10,7 +10,7 @@ jobs:
10
10
  # For v2.0.x, we test v2.0.0 and v2.0.1 because v2.0.0 has a special behaviour where
11
11
  # the Net::HTTP adapter is not included. See
12
12
  # https://github.com/lostisland/faraday/blob/main/UPGRADING.md#faraday-20.
13
- faraday_version: ['1.1.0', '1.2.0', '1.3.1', '1.4.3', '1.5.1', '1.6.0', '1.7.2', '1.8.0', '1.9.3', '1.10.3', '2.0.0', '2.0.1', '2.1.0', '2.2.0', '2.3.0', '2.4.0', '2.5.2', '2.6.0', '2.7.12', '2.8.0']
13
+ faraday_version: ['1.1.0', '1.2.0', '1.3.1', '1.4.3', '1.5.1', '1.6.0', '1.7.2', '1.8.0', '1.9.3', '1.10.3', '2.0.0', '2.0.1', '2.1.0', '2.2.0', '2.3.0', '2.4.0', '2.5.2', '2.6.0', '2.7.12', '2.8.1', '2.9.0']
14
14
  env:
15
15
  FARADAY_VERSION: ~> ${{ matrix.faraday_version }}
16
16
  steps:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 7.2.0 (Jan 23, 2024)
2
+
3
+ - Add support for `faraday` v2.9.x (@timrogers)
4
+
5
+ # 7.1.1 (Jan 23, 2024)
6
+
7
+ - Handle the `APEX_REST_SERVICES_DISABLED` error returned by the Salesforce API (@timrogers)
8
+
1
9
  # 7.1.0 (Dec 20, 2023)
2
10
 
3
11
  - Add support for the [OAuth 2.0 Client Credentials authentication flow](https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_client_credentials_flow.htm&type=5) (@rh-taro)
data/Gemfile CHANGED
@@ -3,7 +3,7 @@
3
3
  source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
- faraday_version = ENV.fetch('FARADAY_VERSION', '~> 2.8.0')
6
+ faraday_version = ENV.fetch('FARADAY_VERSION', '~> 2.9.0')
7
7
 
8
8
  # Enable us to explicitly pick a Faraday version when running tests
9
9
  gem 'faraday', faraday_version
@@ -17,6 +17,6 @@ gem 'rspec', '~> 3.12.0'
17
17
  gem 'rspec-collection_matchers', '~> 1.2.0'
18
18
  gem 'rspec-its', '~> 1.3.0'
19
19
  gem 'rspec_junit_formatter', '~> 0.6.0'
20
- gem 'rubocop', '~> 1.59.0'
20
+ gem 'rubocop', '~> 1.60.1'
21
21
  gem 'simplecov', '~> 0.22.0'
22
22
  gem 'webmock', '~> 3.19.1'
data/README.md CHANGED
@@ -27,7 +27,7 @@ Features include:
27
27
 
28
28
  Add this line to your application's Gemfile:
29
29
 
30
- gem 'restforce', '~> 7.1.0'
30
+ gem 'restforce', '~> 7.2.0'
31
31
 
32
32
  And then execute:
33
33
 
@@ -19,6 +19,8 @@ module Restforce
19
19
 
20
20
  class ApexError < ResponseError; end
21
21
 
22
+ class ApexRestServicesDisabled < ResponseError; end
23
+
22
24
  class ApiCurrentlyDisabled < ResponseError; end
23
25
 
24
26
  class ApiDisabledForOrg < ResponseError; end
@@ -429,6 +431,7 @@ module Restforce
429
431
  "ALL_OR_NONE_OPERATION_ROLLED_BACK" => AllOrNoneOperationRolledBack,
430
432
  "ALREADY_IN_PROCESS" => AlreadyInProcess,
431
433
  "APEX_ERROR" => ApexError,
434
+ "APEX_REST_SERVICES_DISABLED" => ApexRestServicesDisabled,
432
435
  "API_CURRENTLY_DISABLED" => ApiCurrentlyDisabled,
433
436
  "API_DISABLED_FOR_ORG" => ApiDisabledForOrg,
434
437
  "ASSIGNEE_TYPE_REQUIRED" => AssigneeTypeRequired,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Restforce
4
- VERSION = '7.1.0'
4
+ VERSION = '7.2.0'
5
5
  end
data/restforce.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |gem|
24
24
 
25
25
  gem.required_ruby_version = '>= 3.0'
26
26
 
27
- gem.add_dependency 'faraday', '< 2.9.0', '>= 1.1.0'
27
+ gem.add_dependency 'faraday', '< 2.10.0', '>= 1.1.0'
28
28
  gem.add_dependency 'faraday-follow_redirects', '<= 0.3.0', '< 1.0.0'
29
29
  gem.add_dependency 'faraday-multipart', '>= 1.0.0', '< 2.0.0'
30
30
  gem.add_dependency 'faraday-net_http', '< 4.0.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restforce
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0
4
+ version: 7.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Rogers
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-12-20 00:00:00.000000000 Z
12
+ date: 2024-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -17,7 +17,7 @@ dependencies:
17
17
  requirements:
18
18
  - - "<"
19
19
  - !ruby/object:Gem::Version
20
- version: 2.9.0
20
+ version: 2.10.0
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
23
  version: 1.1.0
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - "<"
29
29
  - !ruby/object:Gem::Version
30
- version: 2.9.0
30
+ version: 2.10.0
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.1.0
@@ -295,7 +295,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
295
295
  - !ruby/object:Gem::Version
296
296
  version: '0'
297
297
  requirements: []
298
- rubygems_version: 3.4.20
298
+ rubygems_version: 3.5.3
299
299
  signing_key:
300
300
  specification_version: 4
301
301
  summary: A lightweight Ruby client for the Salesforce REST API