restforce 6.0.0.rc.1 → 6.0.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: 06ba6ff782797da12181fade1eb6d25cec0da4395a0880080d684a6c8d0c928e
4
- data.tar.gz: 17854adb01066aa6d09c784adeecee764b530afff0083297162c0d2633fac38f
3
+ metadata.gz: 9aade8a096cdf3f75ed27ec3d2f8393b6c2798875a3eb25fa5d7c3506532f104
4
+ data.tar.gz: b7d98630ac5c44018f4a30bcd17c14bc6d89c3d50fb27331270e7e94cb64e1a8
5
5
  SHA512:
6
- metadata.gz: 8cb18b0f488c6e793b2c1a64e54e982f08b1739522ae3bb3a5f7dd8837ffe62c05506365731f9040b25dd396b7ad5f3aff143dd9476fd0f2be475bf23623547f
7
- data.tar.gz: 7445f7337587cc19c61743abe80dad16c3d1b2c10527691d6e33edb65a023dcd4afb32db9a569405c43a7878c3cba32fb2426dd50264d7b56cfc95e5bdb2d203
6
+ metadata.gz: 4d8e4d1d84a12806a0e913a0ca0e64d481584fc774abeb2f968c95cff2d9e92699a872c8f06fe0f03eca6a838345d1b7dfebed6decacfb6f28f72f26e2cae033
7
+ data.tar.gz: 04a9c55df3fd6e49491b0a87a5da2b5f1bdd816c5f1256810770c790ec27d8aa264e537fda96b029d8ba11ce1f1872510507004e9d692cf34360da42a7252844
@@ -0,0 +1 @@
1
+ github: [restforce]
data/CHANGELOG.md CHANGED
@@ -1,13 +1,13 @@
1
- # 6.0.0.rc.1 (Aug 4 2022)
1
+ # 6.0.0 (Sep 9 2022)
2
2
 
3
- *This version is a release candidate. Once we have gathered feedback from users and are confident that it works as expected, we will release a final `v6.0.0` version.*
4
-
5
- __This version contains breaking changes. For help with upgrading, see [`UPGRADING.md`](https://github.com/restforce/restforce/blob/v6.0.0.rc.1/UPGRADING.md).__
3
+ __This version contains breaking changes. For help with upgrading, see [`UPGRADING.md`](https://github.com/restforce/restforce/blob/main/UPGRADING.md).__
6
4
 
7
5
  * __⚠️ Drop support for Ruby 2.6__, since [Ruby 2.6 has reached its end-of-life](https://www.ruby-lang.org/en/downloads/) (@timrogers)
8
6
  * __⚠️ Drop compatability with `faraday` versions before `v1.1.0`__ (@timrogers)
9
7
  * Add support for `faraday` versions `v2.0.0` onwards (@timrogers)
10
8
 
9
+ *This version was also released as [`v6.0.0.rc.1`](https://github.com/restforce/restforce/releases/tag/v6.0.0.rc.1) on Aug 4 2022.*
10
+
11
11
  # 5.3.1 (Jul 19 2022)
12
12
 
13
13
  * Handle the `EXCEEDED_ID_LIMIT` error returned by the Salesforce API (@timrogers, @yashshah1)
data/Gemfile CHANGED
@@ -7,6 +7,7 @@ faraday_version = ENV.fetch('FARADAY_VERSION', '~> 1.8.0')
7
7
 
8
8
  # Enable us to explicitly pick a Faraday version when running tests
9
9
  gem 'faraday', faraday_version
10
+ gem 'faraday-typhoeus', '~> 0.2.1' unless faraday_version.start_with?("~> 1")
10
11
  gem 'faye' unless RUBY_PLATFORM == 'java'
11
12
  gem 'guard-rspec'
12
13
  gem 'guard-rubocop'
@@ -16,8 +17,6 @@ gem 'rspec', '~> 3.11.0'
16
17
  gem 'rspec-collection_matchers', '~> 1.2.0'
17
18
  gem 'rspec-its', '~> 1.3.0'
18
19
  gem 'rspec_junit_formatter', '~> 0.5.1'
19
- gem 'rubocop', '~> 1.32.0'
20
+ gem 'rubocop', '~> 1.36.0'
20
21
  gem 'simplecov', '~> 0.21.2'
21
- gem 'webmock', '~> 3.16.0'
22
-
23
- gem 'faraday-typhoeus', '~> 0.2.1' unless faraday_version.start_with?("~> 1")
22
+ gem 'webmock', '~> 3.18.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', '~> 5.3.1'
30
+ gem 'restforce', '~> 6.0.0'
31
31
 
32
32
  And then execute:
33
33
 
@@ -37,8 +37,9 @@ Or install it yourself as:
37
37
 
38
38
  $ gem install restforce
39
39
 
40
- __As of version 5.1.0, this gem is only compatible with Ruby 2.6.0 and later.__ If you're using an earlier Ruby version:
40
+ __As of version 6.0.0, this gem is only compatible with Ruby 2.7.0 and later.__ If you're using an earlier Ruby version:
41
41
 
42
+ * for Ruby 2.6, use version 5.3.1 or earlier
42
43
  * for Ruby 2.5, use version 5.0.6 or earlier
43
44
  * for Ruby 2.4, use version 4.3.0 or earlier
44
45
  * for Ruby 2.3, use version 3.2.0 or earlier
@@ -150,6 +151,8 @@ export SALESFORCE_API_VERSION="41.0"
150
151
  client = Restforce.new
151
152
  ```
152
153
 
154
+ **Note:** Restforce library does not cache JWT Bearer tokens automatically. This means that every instantiation of the Restforce class will be treated as a new login by Salesforce. Remember that Salesforce enforces [rate limits on login requests](https://help.salesforce.com/s/articleView?id=000312767&type=1). If you are building an application that will instantiate the Restforce class more than this specified rate limit, you might want to consider caching the Bearer token either in-memory or in your own storage by leveraging the `authentication_callback` method.
155
+
153
156
  #### Sandbox Organizations
154
157
 
155
158
  You can connect to sandbox organizations by specifying a host. The default host is
@@ -191,7 +194,7 @@ end
191
194
 
192
195
  By default, the gem defaults to using Version 26.0 (Winter '13) of the Salesforce API. This maintains backwards compatibility for existing users.
193
196
 
194
- __We strongly suggest configuring Restforce to use the most recent API version, currently Version 41.0 (Winter '18) to get the best Salesforce API experience__ - for example, some more recently-added API endpoints will not be available without moving to a more recent
197
+ __We strongly suggest configuring Restforce to use the [most recent API version](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_versions.htm), to get the best Salesforce API experience__ - for example, some more recently-added API endpoints will not be available without moving to a more recent
195
198
  version. If you're trying to use a method that is unavailable with your API version,
196
199
  Restforce will raise an `APIVersionError`.
197
200
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Restforce
4
- VERSION = '6.0.0.rc.1'
4
+ VERSION = '6.0.0'
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: 6.0.0.rc.1
4
+ version: 6.0.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: 2022-08-04 00:00:00.000000000 Z
12
+ date: 2022-09-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -129,6 +129,7 @@ extra_rdoc_files: []
129
129
  files:
130
130
  - ".github/ISSUE_TEMPLATE/unhandled-salesforce-error.md"
131
131
  - ".github/dependabot.yml"
132
+ - ".github/funding.yml"
132
133
  - ".github/workflows/build.yml"
133
134
  - ".github/workflows/faraday.yml"
134
135
  - ".gitignore"
@@ -288,9 +289,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
288
289
  version: '2.7'
289
290
  required_rubygems_version: !ruby/object:Gem::Requirement
290
291
  requirements:
291
- - - ">"
292
+ - - ">="
292
293
  - !ruby/object:Gem::Version
293
- version: 1.3.1
294
+ version: '0'
294
295
  requirements: []
295
296
  rubygems_version: 3.1.6
296
297
  signing_key: