restforce 5.3.0 → 5.3.1

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
  SHA256:
3
- metadata.gz: 54463ffbbbc7f62bb17637d0bd80f9ed54061333fff5a843e40c152613fbf34b
4
- data.tar.gz: 22c2bf1bc1c516a1f31262901ef0c50c8a4417b2dc0c3838178649b220b481cd
3
+ metadata.gz: 7156aa3b1821199121b06cbf84b2c00039efeddc17cc58cbe1d8454bddbf1eb7
4
+ data.tar.gz: 8cfbd9d725041f02fa8abd45cc08254a38e563dce206747f0c778bd6c91c3306
5
5
  SHA512:
6
- metadata.gz: 82ecf32cf2ac55f42c20222a9d53d63ff595f96b591d46de3a0160b87d12a6c31a537c99dd6b08992f7ec1f58a21ba100ea14557660e57bd350eab965f5ef768
7
- data.tar.gz: d33636c9271830f8acb4da01201c042ee9147e11cf4514ebc5a144311da350f2e3379469531801fe8e276ddfff2145c7f04f19a19cd77e304da56190b97cc270
6
+ metadata.gz: 5cf147d56213c10144b4e7819f6e5a62961a84c134b66f7b506d4f76bb8aad4563c7d69b39702e06b468441c35dafac4c8e1d74a65c3c76e7c47cab76ef58080
7
+ data.tar.gz: 1351ded2015aca8bd6c8f89ab8c28c684c125b7aa2fd0c077660072064e96b4a1d917d401c9df1cd99873d12780866ba9811d23e228d185e8b6dc426c14c6aaa
@@ -9,7 +9,7 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  strategy:
11
11
  matrix:
12
- faraday_version: ['1.8.0', '1.9.0', '1.10.0']
12
+ faraday_version: ['1.0.1', '1.1.0', '1.2.0', '1.3.1', '1.4.1', '1.5.1', '1.6.0', '1.7.2', '1.8.0', '1.9.3', '1.10.0']
13
13
  env:
14
14
  FARADAY_VERSION: ~> ${{ matrix.faraday_version }}
15
15
  steps:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 5.3.1 (Jul 19 2022)
2
+
3
+ * Handle the `EXCEEDED_ID_LIMIT` error returned by the Salesforce API (@timrogers, @yashshah1)
4
+
1
5
  # 5.3.0 (May 30, 2022)
2
6
 
3
7
  * Add support for Faraday v1.9.x and v1.10.0 (@magni-, @timrogers)
data/Gemfile CHANGED
@@ -14,6 +14,6 @@ gem 'rspec', '~> 3.11.0'
14
14
  gem 'rspec-collection_matchers', '~> 1.2.0'
15
15
  gem 'rspec-its', '~> 1.3.0'
16
16
  gem 'rspec_junit_formatter', '~> 0.5.1'
17
- gem 'rubocop', '~> 1.30.0'
17
+ gem 'rubocop', '~> 1.31.2'
18
18
  gem 'simplecov', '~> 0.21.2'
19
19
  gem 'webmock', '~> 3.14.0'
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', '~> 5.3.0'
30
+ gem 'restforce', '~> 5.3.1'
31
31
 
32
32
  And then execute:
33
33
 
@@ -293,6 +293,8 @@ client.find('Account', '1234', 'Some_External_Id_Field__c')
293
293
  # => #<Restforce::SObject Id="001D000000INjVe" Name="Test" LastModifiedBy="005G0000002f8FHIAY" ... >
294
294
  ```
295
295
 
296
+ `find` raises an error if nothing is found.
297
+
296
298
  ### select
297
299
 
298
300
  `select` allows the fetching of a specific list of fields from a single object. It requires an `external_id` lookup, but is often much faster than an arbitrary query.
@@ -429,6 +429,7 @@ module Restforce
429
429
  # field - External ID field to use (default: nil).
430
430
  #
431
431
  # Returns the Restforce::SObject sobject record.
432
+ # Raises NotFoundError if nothing is found.
432
433
  def find(sobject, id, field = nil)
433
434
  url = if field
434
435
  "sobjects/#{sobject}/#{field}/#{ERB::Util.url_encode(id)}"
@@ -145,6 +145,8 @@ module Restforce
145
145
 
146
146
  class ErrorInMailer < ResponseError; end
147
147
 
148
+ class ExceededIdLimit < ResponseError; end
149
+
148
150
  class ExceededMaxSemijoinSubselects < ResponseError; end
149
151
 
150
152
  class FailedActivation < ResponseError; end
@@ -484,6 +486,7 @@ module Restforce
484
486
  "ENTITY_IS_LOCKED" => EntityIsLocked,
485
487
  "ENVIRONMENT_HUB_MEMBERSHIP_CONFLICT" => EnvironmentHubMembershipConflict,
486
488
  "ERROR_IN_MAILER" => ErrorInMailer,
489
+ "EXCEEDED_ID_LIMIT" => ExceededIdLimit,
487
490
  "EXCEEDED_MAX_SEMIJOIN_SUBSELECTS" => ExceededMaxSemijoinSubselects,
488
491
  "FAILED_ACTIVATION" => FailedActivation,
489
492
  "FIELD_CUSTOM_VALIDATION_EXCEPTION" => FieldCustomValidationException,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Restforce
4
- VERSION = '5.3.0'
4
+ VERSION = '5.3.1'
5
5
  end
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: 5.3.0
4
+ version: 5.3.1
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: 2022-05-30 00:00:00.000000000 Z
12
+ date: 2022-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday