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 +4 -4
- data/.github/workflows/faraday.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/README.md +3 -1
- data/lib/restforce/concerns/api.rb +1 -0
- data/lib/restforce/error_code.rb +3 -0
- data/lib/restforce/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7156aa3b1821199121b06cbf84b2c00039efeddc17cc58cbe1d8454bddbf1eb7
|
4
|
+
data.tar.gz: 8cfbd9d725041f02fa8abd45cc08254a38e563dce206747f0c778bd6c91c3306
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
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.
|
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.
|
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)}"
|
data/lib/restforce/error_code.rb
CHANGED
@@ -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,
|
data/lib/restforce/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2022-07-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|