restforce 7.6.0 → 8.0.1
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 +4 -4
- data/.github/workflows/build.yml +2 -2
- data/.github/workflows/faraday.yml +3 -1
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +10 -0
- data/Gemfile +1 -1
- data/README.md +10 -9
- data/UPGRADING.md +12 -0
- data/lib/restforce/collection.rb +2 -2
- data/lib/restforce/concerns/batch_api.rb +2 -2
- data/lib/restforce/concerns/streaming.rb +4 -4
- data/lib/restforce/mash.rb +2 -2
- data/lib/restforce/version.rb +1 -1
- data/restforce.gemspec +2 -2
- metadata +6 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d15210bc91589b14b39393257c157630f0e97a48f645182f859b111ff217c1ce
|
|
4
|
+
data.tar.gz: 6e53ae6ada7fcb4743e5e9ee5b42728007d878612bf7487a02510755786d6355
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c8eb88e8e6eb093808deaa1aa6def7c59d9e883069d3835a315b492903cab8b6a3f85bd14a3b0a27ee43376075bfa49ed5af97cf11149748f7e7f2947a29b54d
|
|
7
|
+
data.tar.gz: f74e373ce9c0c206541f1555fa822ae0b2ade70a05fdec3eb5d3f7cee2ffeb0da8876a33b20e2e7350af34cb97b6335c0eaa64bf5b207d905113aebd5b9095f7
|
data/.github/workflows/build.yml
CHANGED
|
@@ -6,7 +6,7 @@ jobs:
|
|
|
6
6
|
strategy:
|
|
7
7
|
fail-fast: false
|
|
8
8
|
matrix:
|
|
9
|
-
ruby_version: ["3.
|
|
9
|
+
ruby_version: ["3.1", "3.2", "3.3", "3.4", "4.0"]
|
|
10
10
|
steps:
|
|
11
11
|
- name: Checkout code
|
|
12
12
|
uses: actions/checkout@v4
|
|
@@ -20,4 +20,4 @@ jobs:
|
|
|
20
20
|
- name: Lint Ruby files
|
|
21
21
|
run: bundle exec rubocop
|
|
22
22
|
- name: Run RSpec tests
|
|
23
|
-
run: bundle exec rspec
|
|
23
|
+
run: bundle exec rspec
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 8.0.1 (December 29, 2025)
|
|
2
|
+
|
|
3
|
+
* Allow `faraday-follow_redirects` v0.4.x and v0.5.x to unlock Ruby 4.0 compatibility
|
|
4
|
+
|
|
5
|
+
## 8.0.0 (December 18, 2024)
|
|
6
|
+
|
|
7
|
+
**This version contains breaking changes. For help with upgrading, see [`UPGRADING.md`](https://github.com/restforce/restforce/blob/main/UPGRADING.md).**
|
|
8
|
+
|
|
9
|
+
- **⚠️ Drop support for Ruby 3.0**, since Ruby 3.0 has reached its end-of-life (@timrogers)
|
|
10
|
+
|
|
1
11
|
## 7.6.0 (December 18, 2024)
|
|
2
12
|
|
|
3
13
|
- **Allow all `faraday` versions up to, but not including, v3.0.0**: For more details, see https://github.com/restforce/restforce/pull/915 (@timrogers)
|
data/Gemfile
CHANGED
|
@@ -17,6 +17,6 @@ gem 'rspec', '~> 3.13.0'
|
|
|
17
17
|
gem 'rspec-collection_matchers', '~> 1.2.0'
|
|
18
18
|
gem 'rspec-its', '~> 2.0.0'
|
|
19
19
|
gem 'rspec_junit_formatter', '~> 0.6.0'
|
|
20
|
-
gem 'rubocop', '~> 1.
|
|
20
|
+
gem 'rubocop', '~> 1.70.0'
|
|
21
21
|
gem 'simplecov', '~> 0.22.0'
|
|
22
22
|
gem 'webmock', '~> 3.24.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', '~>
|
|
30
|
+
gem 'restforce', '~> 8.0.1'
|
|
31
31
|
|
|
32
32
|
And then execute:
|
|
33
33
|
|
|
@@ -37,15 +37,16 @@ Or install it yourself as:
|
|
|
37
37
|
|
|
38
38
|
$ gem install restforce
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
**As of version 8.0.0, this gem is only compatible with Ruby 3.1.0 and later.** If you're using an earlier Ruby version:
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
- for Ruby 3.0, use version 7.6.0 or earlier
|
|
43
|
+
- for Ruby 2.7, use version 6.2.4 or earlier
|
|
44
|
+
- for Ruby 2.6, use version 5.3.1 or earlier
|
|
45
|
+
- for Ruby 2.5, use version 5.0.6 or earlier
|
|
46
|
+
- for Ruby 2.4, use version 4.3.0 or earlier
|
|
47
|
+
- for Ruby 2.3, use version 3.2.0 or earlier
|
|
48
|
+
- for Ruby versions 2.2, 2.1 and 2.0, use version 2.5.3 or earlier
|
|
49
|
+
- for Ruby 1.9.3, use version 2.4.2
|
|
49
50
|
|
|
50
51
|
This gem is versioned using [Semantic Versioning](http://semver.org/), so you can be confident when updating that there will not be breaking changes outside of a major version (following format MAJOR.MINOR.PATCH, so for instance moving from 3.1.0 to 4.0.0 would be allowed to include incompatible API changes). See the [changelog](https://github.com/restforce/restforce/tree/master/CHANGELOG.md) for details on what has changed in each version.
|
|
51
52
|
|
data/UPGRADING.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# Upgrading from Restforce 7.x to 8.x
|
|
2
|
+
|
|
3
|
+
## Ruby 3.0 is no longer supported
|
|
4
|
+
|
|
5
|
+
**Likelyhood of impact**: Moderate
|
|
6
|
+
|
|
7
|
+
Ruby 3.0 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 3.0 in the Restforce library. The gemspec now specifies that only 3.1 onwards is supported, and this will be enforced by RubyGems.
|
|
10
|
+
|
|
11
|
+
Before you update to Restforce 8.x, you'll need to switch to Ruby 3.1.0 or later. The current version of Ruby at the time of writing is 3.3.6.
|
|
12
|
+
|
|
1
13
|
# Upgrading from Restforce 6.x to 7.x
|
|
2
14
|
|
|
3
15
|
## Ruby 2.7 is no longer supported
|
data/lib/restforce/collection.rb
CHANGED
|
@@ -12,12 +12,12 @@ module Restforce
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
# Yield each value on each page.
|
|
15
|
-
def each(&
|
|
15
|
+
def each(&)
|
|
16
16
|
@raw_page['records'].each { |record| yield Restforce::Mash.build(record, @client) }
|
|
17
17
|
|
|
18
18
|
np = next_page
|
|
19
19
|
while np
|
|
20
|
-
np.current_page.each(&
|
|
20
|
+
np.current_page.each(&)
|
|
21
21
|
np = np.next_page
|
|
22
22
|
end
|
|
23
23
|
end
|
|
@@ -9,9 +9,9 @@ module Restforce
|
|
|
9
9
|
# block - A block to run when a new message is received.
|
|
10
10
|
#
|
|
11
11
|
# Returns a Faye::Subscription
|
|
12
|
-
def legacy_subscribe(topics, options = {}, &
|
|
12
|
+
def legacy_subscribe(topics, options = {}, &)
|
|
13
13
|
topics = Array(topics).map { |channel| "/topic/#{channel}" }
|
|
14
|
-
subscription(topics, options, &
|
|
14
|
+
subscription(topics, options, &)
|
|
15
15
|
end
|
|
16
16
|
alias subscribe legacy_subscribe
|
|
17
17
|
|
|
@@ -21,12 +21,12 @@ module Restforce
|
|
|
21
21
|
# block - A block to run when a new message is received.
|
|
22
22
|
#
|
|
23
23
|
# Returns a Faye::Subscription
|
|
24
|
-
def subscription(channels, options = {}, &
|
|
24
|
+
def subscription(channels, options = {}, &)
|
|
25
25
|
one_or_more_channels = Array(channels)
|
|
26
26
|
one_or_more_channels.each do |channel|
|
|
27
27
|
replay_handlers[channel] = options[:replay]
|
|
28
28
|
end
|
|
29
|
-
faye.subscribe(one_or_more_channels, &
|
|
29
|
+
faye.subscribe(one_or_more_channels, &)
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# Public: Faye client to use for subscribing to PushTopics
|
data/lib/restforce/mash.rb
CHANGED
|
@@ -46,10 +46,10 @@ module Restforce
|
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
def initialize(source_hash = nil, client = nil, default = nil, &
|
|
49
|
+
def initialize(source_hash = nil, client = nil, default = nil, &)
|
|
50
50
|
@client = client
|
|
51
51
|
deep_update(source_hash) if source_hash
|
|
52
|
-
default ? super(default) : super(&
|
|
52
|
+
default ? super(default) : super(&)
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
def dup
|
data/lib/restforce/version.rb
CHANGED
data/restforce.gemspec
CHANGED
|
@@ -22,10 +22,10 @@ Gem::Specification.new do |gem|
|
|
|
22
22
|
'rubygems_mfa_required' => 'true'
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
gem.required_ruby_version = '>= 3.
|
|
25
|
+
gem.required_ruby_version = '>= 3.1'
|
|
26
26
|
|
|
27
27
|
gem.add_dependency 'faraday', '< 3.0.0', '>= 1.1.0'
|
|
28
|
-
gem.add_dependency 'faraday-follow_redirects', '
|
|
28
|
+
gem.add_dependency 'faraday-follow_redirects', '< 0.6.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'
|
|
31
31
|
gem.add_dependency 'hashie', '>= 1.2.0', '< 6.0'
|
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: restforce
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 8.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tim Rogers
|
|
8
8
|
- Eric J. Holmes
|
|
9
|
-
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: faraday
|
|
@@ -35,22 +34,16 @@ dependencies:
|
|
|
35
34
|
name: faraday-follow_redirects
|
|
36
35
|
requirement: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
|
-
- - "<="
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.3.0
|
|
41
37
|
- - "<"
|
|
42
38
|
- !ruby/object:Gem::Version
|
|
43
|
-
version:
|
|
39
|
+
version: 0.6.0
|
|
44
40
|
type: :runtime
|
|
45
41
|
prerelease: false
|
|
46
42
|
version_requirements: !ruby/object:Gem::Requirement
|
|
47
43
|
requirements:
|
|
48
|
-
- - "<="
|
|
49
|
-
- !ruby/object:Gem::Version
|
|
50
|
-
version: 0.3.0
|
|
51
44
|
- - "<"
|
|
52
45
|
- !ruby/object:Gem::Version
|
|
53
|
-
version:
|
|
46
|
+
version: 0.6.0
|
|
54
47
|
- !ruby/object:Gem::Dependency
|
|
55
48
|
name: faraday-multipart
|
|
56
49
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -280,7 +273,6 @@ metadata:
|
|
|
280
273
|
source_code_uri: https://github.com/restforce/restforce
|
|
281
274
|
changelog_uri: https://github.com/restforce/restforce/blob/master/CHANGELOG.md
|
|
282
275
|
rubygems_mfa_required: 'true'
|
|
283
|
-
post_install_message:
|
|
284
276
|
rdoc_options: []
|
|
285
277
|
require_paths:
|
|
286
278
|
- lib
|
|
@@ -288,15 +280,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
288
280
|
requirements:
|
|
289
281
|
- - ">="
|
|
290
282
|
- !ruby/object:Gem::Version
|
|
291
|
-
version: '3.
|
|
283
|
+
version: '3.1'
|
|
292
284
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
293
285
|
requirements:
|
|
294
286
|
- - ">="
|
|
295
287
|
- !ruby/object:Gem::Version
|
|
296
288
|
version: '0'
|
|
297
289
|
requirements: []
|
|
298
|
-
rubygems_version: 3.
|
|
299
|
-
signing_key:
|
|
290
|
+
rubygems_version: 3.7.2
|
|
300
291
|
specification_version: 4
|
|
301
292
|
summary: A lightweight Ruby client for the Salesforce REST API
|
|
302
293
|
test_files: []
|