restforce 6.2.4 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +1 -1
- data/.github/workflows/faraday.yml +1 -1
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +7 -1
- data/README.md +3 -2
- data/UPGRADING.md +12 -0
- data/lib/restforce/middleware/json_request.rb +1 -1
- data/lib/restforce/middleware/raise_error.rb +1 -1
- data/lib/restforce/version.rb +1 -1
- data/restforce.gemspec +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: 6a22215414b1c1ee4264e25ab13469d1e19b1ec88263ec118b8dc1937a5867d7
|
4
|
+
data.tar.gz: 78fbdda639da07c4f4bdb48656a55a068e6a91d9f17a938d909fb27e747b1840
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3e16bc52f787d054849826bacbc6a9f9fcd839847d3afdad7ef889b1f8211179238cba65bf3de1903e4e94d62d88de6be223139a4e40eca60ba8f543b64d945
|
7
|
+
data.tar.gz: 1daae50110e5848ff47ba97fa3ddc36418fab74f4cd10a7f3643c487397cd64681b091efabf037dcd026f2679a9ce91a5df36d5f88545804ba58a5394cce8090
|
data/.github/workflows/build.yml
CHANGED
@@ -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.
|
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.11']
|
14
14
|
env:
|
15
15
|
FARADAY_VERSION: ~> ${{ matrix.faraday_version }}
|
16
16
|
steps:
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
#
|
1
|
+
# 7.0.0 (Oct 6, 2023)
|
2
|
+
|
3
|
+
__This version contains breaking changes. For help with upgrading, see [`UPGRADING.md`](https://github.com/restforce/restforce/blob/main/UPGRADING.md).__
|
4
|
+
|
5
|
+
* __⚠️ Drop support for Ruby 2.7__, since [Ruby 2.7 has reached its end-of-life](https://www.ruby-lang.org/en/downloads/) (@timrogers)
|
6
|
+
|
7
|
+
# 6.2.4 (Oct 6, 2023)
|
2
8
|
|
3
9
|
* Register the custom JSON middleware for Faraday with a more unique name to avoid clashes with other middleware (@dbackeus)
|
4
10
|
|
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', '~>
|
30
|
+
gem 'restforce', '~> 7.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
|
40
|
+
__As of version 7.0.0, this gem is only compatible with Ruby 3.0.0 and later.__ If you're using an earlier Ruby version:
|
41
41
|
|
42
|
+
* for Ruby 2.7, use version 6.2.4 or earlier
|
42
43
|
* for Ruby 2.6, use version 5.3.1 or earlier
|
43
44
|
* for Ruby 2.5, use version 5.0.6 or earlier
|
44
45
|
* for Ruby 2.4, use version 4.3.0 or earlier
|
data/UPGRADING.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
# Upgrading from Restforce 6.x to 7.x
|
2
|
+
|
3
|
+
## Ruby 2.7 is no longer supported
|
4
|
+
|
5
|
+
__Likelyhood of impact__: Moderate
|
6
|
+
|
7
|
+
Ruby 2.7 is no longer officially supported as an active version of the Ruby language. That means that it will not receive patches and security fixes.
|
8
|
+
|
9
|
+
Accordingly, we've dropped support for Ruby 2.7 in the Restforce library. The gemspec now specifies that only 3.0 onwards is supported, and this will be enforced by RubyGems.
|
10
|
+
|
11
|
+
Before you update to Restforce 7.x, you'll need to switch to Ruby 3.0.0 or later. The current version of Ruby at the time of writing is 3.2.2.
|
12
|
+
|
1
13
|
# Upgrading from Restforce 5.x to 6.x
|
2
14
|
|
3
15
|
__There are two breaking changes introduced in Restforce 6.x__. In this guide, you'll learn about these changes and what you should check in your code to make sure that it will work with the latest version of the library.
|
@@ -31,7 +31,7 @@ module Restforce
|
|
31
31
|
CONTENT_TYPE = 'Content-Type'
|
32
32
|
|
33
33
|
MIME_TYPE = 'application/json'
|
34
|
-
MIME_TYPE_REGEX = %r{^application/(vnd\..+\+)?json$}
|
34
|
+
MIME_TYPE_REGEX = %r{^application/(vnd\..+\+)?json$}
|
35
35
|
|
36
36
|
#
|
37
37
|
# Taken from `lib/faraday/middleware.rb` in the `faraday`
|
data/lib/restforce/version.rb
CHANGED
data/restforce.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |gem|
|
|
22
22
|
'rubygems_mfa_required' => 'true'
|
23
23
|
}
|
24
24
|
|
25
|
-
gem.required_ruby_version = '>=
|
25
|
+
gem.required_ruby_version = '>= 3.0'
|
26
26
|
|
27
27
|
gem.add_dependency 'faraday', '< 2.8.0', '>= 1.1.0'
|
28
28
|
gem.add_dependency 'faraday-follow_redirects', '<= 0.3.0', '< 1.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:
|
4
|
+
version: 7.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Rogers
|
@@ -286,7 +286,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
286
286
|
requirements:
|
287
287
|
- - ">="
|
288
288
|
- !ruby/object:Gem::Version
|
289
|
-
version: '
|
289
|
+
version: '3.0'
|
290
290
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
291
291
|
requirements:
|
292
292
|
- - ">="
|