restforce 7.4.0 → 7.6.0

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: bf5c1ca9f3040291c2e30d35f51d3be42e8d6cd2e73bc5e5ea108fddd015066a
4
- data.tar.gz: fda0b60d481bb9200a2b682f282796d44f636ac07b5c4929e3e360e76c6a500e
3
+ metadata.gz: 918bb1c10b449497265b4f68942f47c2e94b41427dedcedf27875e3cc7f18433
4
+ data.tar.gz: 41638579a47caf8941aa9c137501388491448c9384700dcfb6cb7df4da1be388
5
5
  SHA512:
6
- metadata.gz: 23235274ac40e162128bd2dc86d4da182129e9b406e665241978aa7affce65ac656a7502ace2c94d14120a3c421debb2b7bbdf3919764a543cbc5a2570b16de2
7
- data.tar.gz: 86fd5160d648437fb041bb914401c98f942b20fec3c2badc952a5915c55fbffcd6b94ba8a170a6925827744a3003b7552005629575b57df933115fa2f7e75625
6
+ metadata.gz: 83b23d6abdb87c42c5c19e32de3fbddf0c463bbec21d9e2e853ffa05e6d040b6a9b36645e7de8a0a292e8689605e0ff9072c46b8cc58e5da56e8ef8cc07b044d
7
+ data.tar.gz: 74d528d15068650841408e10531b273ff84279d48686a24f609bb5fefbcbaf457b83920a420166be2e232cd6e22f83212c05ca112e875ce55139d5293664a258
@@ -6,7 +6,7 @@ jobs:
6
6
  strategy:
7
7
  fail-fast: false
8
8
  matrix:
9
- ruby_version: ['3.0', '3.1', '3.2', '3.3']
9
+ ruby_version: ["3.0", "3.1", "3.2", "3.3", "3.4.0-rc1"]
10
10
  steps:
11
11
  - name: Checkout code
12
12
  uses: actions/checkout@v4
@@ -10,7 +10,33 @@ 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.12', '2.8.1', '2.9.2', '2.10.0']
13
+ faraday_version:
14
+ [
15
+ "1.1.0",
16
+ "1.2.0",
17
+ "1.3.1",
18
+ "1.4.3",
19
+ "1.5.1",
20
+ "1.6.0",
21
+ "1.7.2",
22
+ "1.8.0",
23
+ "1.9.3",
24
+ "1.10.3",
25
+ "2.0.0",
26
+ "2.0.1",
27
+ "2.1.0",
28
+ "2.2.0",
29
+ "2.3.0",
30
+ "2.4.0",
31
+ "2.5.2",
32
+ "2.6.0",
33
+ "2.7.12",
34
+ "2.8.1",
35
+ "2.9.2",
36
+ "2.10.1",
37
+ "2.11.0",
38
+ "2.12.2",
39
+ ]
14
40
  env:
15
41
  FARADAY_VERSION: ~> ${{ matrix.faraday_version }}
16
42
  steps:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 7.6.0 (December 18, 2024)
2
+
3
+ - **Allow all `faraday` versions up to, but not including, v3.0.0**: For more details, see https://github.com/restforce/restforce/pull/915 (@timrogers)
4
+
5
+ ## 7.5.0 (September 4, 2024)
6
+
7
+ - Add support for `faraday` v2.11.x (@timrogers)
8
+
1
9
  ## 7.4.0 (July 10, 2024)
2
10
 
3
11
  - Add support for `faraday` v2.10.x (@ryan-mcneil)
data/Gemfile CHANGED
@@ -3,7 +3,7 @@
3
3
  source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
- faraday_version = ENV.fetch('FARADAY_VERSION', '~> 2.10.0')
6
+ faraday_version = ENV.fetch('FARADAY_VERSION', '~> 2.12.2')
7
7
 
8
8
  # Enable us to explicitly pick a Faraday version when running tests
9
9
  gem 'faraday', faraday_version
@@ -15,8 +15,8 @@ gem 'jruby-openssl', platforms: :jruby
15
15
  gem 'rake'
16
16
  gem 'rspec', '~> 3.13.0'
17
17
  gem 'rspec-collection_matchers', '~> 1.2.0'
18
- gem 'rspec-its', '~> 1.3.0'
18
+ gem 'rspec-its', '~> 2.0.0'
19
19
  gem 'rspec_junit_formatter', '~> 0.6.0'
20
- gem 'rubocop', '~> 1.65.0'
20
+ gem 'rubocop', '~> 1.69.2'
21
21
  gem 'simplecov', '~> 0.22.0'
22
- gem 'webmock', '~> 3.23.0'
22
+ gem 'webmock', '~> 3.24.0'
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![CircleCI](https://circleci.com/gh/restforce/restforce.svg?style=svg)](https://circleci.com/gh/restforce/restforce)
4
4
  ![Downloads](https://img.shields.io/gem/dt/restforce.svg)
5
5
 
6
- Restforce is a ruby gem for the [Salesforce REST api](http://www.salesforce.com/us/developer/docs/api_rest/index.htm).
6
+ Restforce is a ruby gem for the [Salesforce REST API](http://www.salesforce.com/us/developer/docs/api_rest/index.htm).
7
7
 
8
8
  Features include:
9
9
 
@@ -27,7 +27,7 @@ Features include:
27
27
 
28
28
  Add this line to your application's Gemfile:
29
29
 
30
- gem 'restforce', '~> 7.4.0'
30
+ gem 'restforce', '~> 7.5.0'
31
31
 
32
32
  And then execute:
33
33
 
@@ -116,7 +116,7 @@ If you prefer to use a username and password to authenticate:
116
116
  client = Restforce.new(username: config['username'],
117
117
  password: config['password'],
118
118
  instance_url: config['instance_url'],
119
- host: config['host'], # https://test.salesforce.com for sandbox (optional)
119
+ host: config['host'], # test.salesforce.com for sandbox (optional)
120
120
  client_id: config['client_key'], # Salesforce Client Key
121
121
  client_secret: config['client_secret'], # Salesforce Client Secret
122
122
  api_version: '55.0')
@@ -329,7 +329,7 @@ client.search('FIND {bar}')
329
329
  # => #<Restforce::Collection >
330
330
 
331
331
  # Find accounts matching the term 'genepoint' and return the `Name` field
332
- client.search('FIND {genepoint} RETURNING Account (Name)').map(&:Name)
332
+ client.search('FIND {genepoint} RETURNING Account (Name)')["searchRecords"].map(&:Name)
333
333
  # => ['GenePoint']
334
334
  ```
335
335
 
@@ -85,7 +85,7 @@ module Restforce
85
85
  def valid?(picklist_entry)
86
86
  valid_for = picklist_entry['validFor'].ljust(16, 'A').unpack1('m').
87
87
  unpack('C*')
88
- (valid_for[index >> 3] & (0x80 >> (index % 8))).positive?
88
+ valid_for[index >> 3].anybits?((0x80 >> (index % 8)))
89
89
  end
90
90
  end
91
91
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Restforce
4
- VERSION = '7.4.0'
4
+ VERSION = '7.6.0'
5
5
  end
data/restforce.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |gem|
24
24
 
25
25
  gem.required_ruby_version = '>= 3.0'
26
26
 
27
- gem.add_dependency 'faraday', '< 2.11.0', '>= 1.1.0'
27
+ gem.add_dependency 'faraday', '< 3.0.0', '>= 1.1.0'
28
28
  gem.add_dependency 'faraday-follow_redirects', '<= 0.3.0', '< 1.0.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'
@@ -85,6 +85,8 @@ describe Restforce::Concerns::Connection do
85
85
  client.stub options: { adapter: :typhoeus }
86
86
  end
87
87
 
88
- its(:adapter) { should eq(:typhoeus) }
88
+ it "uses typheous adapter" do
89
+ expect(client.send(:adapter)).to be(:typhoeus)
90
+ end
89
91
  end
90
92
  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: 7.4.0
4
+ version: 7.6.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: 2024-07-10 00:00:00.000000000 Z
12
+ date: 2024-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -17,7 +17,7 @@ dependencies:
17
17
  requirements:
18
18
  - - "<"
19
19
  - !ruby/object:Gem::Version
20
- version: 2.11.0
20
+ version: 3.0.0
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
23
  version: 1.1.0
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - "<"
29
29
  - !ruby/object:Gem::Version
30
- version: 2.11.0
30
+ version: 3.0.0
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.1.0
@@ -295,7 +295,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
295
295
  - !ruby/object:Gem::Version
296
296
  version: '0'
297
297
  requirements: []
298
- rubygems_version: 3.5.3
298
+ rubygems_version: 3.5.16
299
299
  signing_key:
300
300
  specification_version: 4
301
301
  summary: A lightweight Ruby client for the Salesforce REST API