salesforce_streamer 2.9.0 → 2.10.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: 37ecb05f56dfcbd08975ebc0817052aea8a7277df49c557367538ad74aa16ed9
4
- data.tar.gz: 7717a73fd3099d82113a5017974323fb20785d12da0bd74ad7f9937bb03c24f9
3
+ metadata.gz: 2224158723e61b1fe1d6f7db83facc9b4e25c313f53dfae84144fd169bdcad2b
4
+ data.tar.gz: ae91ed3fc8aec6b472c04b082a51fd0fbfb9d6792310d89bfd39708dcaec811f
5
5
  SHA512:
6
- metadata.gz: 34f17dfc6ea550a8417783a505129d94546a09b94b1828e3df9ccf30ebf9d8a8f0b62bada15faeb3e98db46c9bbebdde66950f2368bbeee7ba7d7b2b33e86353
7
- data.tar.gz: 58edcf243d803c25ff545a3ae90da695c030b5e140a17ffdbf6f914926528f6e7cad794a7d5c7d5472490ed5494baea47ae1bca2607d463615d5d88be4e84605
6
+ metadata.gz: 31f95b291a0a8ebd4caf2437afa8f7ec49722e64c80a7682254bd04617abb815986f1bc04f3353493552ae9f0abcc9366e97e6e97935c8c9972fc169fc01b8b3
7
+ data.tar.gz: c992608b2053c88e89e98f8f8565fd3136c92b7df55f03e811f32994f418bf624098cc962390c41ef66df589d8affde044a7d64da629ee2686b826bedd8a6f66
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.4.17
1
+ 2.5.6
@@ -1,19 +1,15 @@
1
- version: 1
1
+ version: 2
2
2
 
3
- update_configs:
4
- - package_manager: "ruby:bundler"
3
+ updates:
4
+ - package-ecosystem: "bundler"
5
5
  directory: "/"
6
- update_schedule: "daily"
7
- commit_message:
6
+ schedule:
7
+ interval: "weekly"
8
+ day: "monday"
9
+ time: "08:00"
10
+ timezone: "UTC"
11
+ commit-message:
8
12
  prefix: "[dependabot]"
9
- allowed_updates:
10
- - match:
11
- dependency_type: "all"
12
- update_type: "security"
13
- automerged_updates:
14
- - match:
15
- dependency_type: "all"
16
- update_type: "security:patch"
17
13
  labels:
18
14
  - "automerge"
19
15
  - "dependencies"
@@ -8,6 +8,6 @@ jobs:
8
8
  runs-on: ubuntu-latest
9
9
  steps:
10
10
  - uses: hmarr/auto-approve-action@v3
11
- if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev' || contains(toJson(github), 'HOTFIX-AUTO-APPROVE')
11
+ if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev' || contains(github.event.pull_request.labels.*.name, 'HOTFIX-AUTO-APPROVE') || contains(github.event.pull_request.labels.*.name, 'dependencies')
12
12
  with:
13
13
  github-token: "${{ secrets.GITHUB_TOKEN }}"
@@ -15,10 +15,10 @@ jobs:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
17
  - name: automerge-dependencies
18
- uses: pascalgn/automerge-action@v0.15.6
18
+ uses: pascalgn/automerge-action@v0.16.2
19
19
  env:
20
20
  GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
21
21
  MERGE_METHOD: squash
22
22
  MERGE_DELETE_BRANCH: true
23
- MERGE_LABELS: dependencies
23
+ MERGE_LABELS: "dependencies,!automerge blocked"
24
24
  MERGE_REMOVE_LABELS: ""
@@ -15,7 +15,7 @@ jobs:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
17
  - name: automerge
18
- uses: pascalgn/automerge-action@v0.15.6
18
+ uses: pascalgn/automerge-action@v0.16.2
19
19
  env:
20
20
  GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
21
21
  MERGE_METHOD: squash
@@ -7,7 +7,7 @@ on:
7
7
  branches: [ main ]
8
8
 
9
9
  jobs:
10
- test:
10
+ ci_tests_ruby:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  Sorted so that the most recent change logs are near the top. Only significant
4
4
  changes are logged in the change log.
5
5
 
6
+ ## 2024-02-29 Krzysztof Knapik
7
+
8
+ v2.10 Drop ruby 3.0 and add ruby 3.3 support
9
+
6
10
  ## 2023-07-26 Krzysztof Knapik
7
11
 
8
12
  v2.9 take default api version from `SALESFORCE_API_VERSION` env var
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- salesforce_streamer (2.9.0)
4
+ salesforce_streamer (2.10.0)
5
5
  cookiejar (~> 0.3)
6
6
  dry-initializer (~> 3.1)
7
7
  eventmachine (~> 1.2)
@@ -11,14 +11,15 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- addressable (2.8.4)
14
+ addressable (2.8.6)
15
15
  public_suffix (>= 2.0.2, < 6.0)
16
16
  ast (2.4.2)
17
+ base64 (0.2.0)
17
18
  byebug (11.1.3)
18
19
  codecov (0.6.0)
19
20
  simplecov (>= 0.15, < 0.22)
20
- cookiejar (0.3.3)
21
- diff-lcs (1.5.0)
21
+ cookiejar (0.3.4)
22
+ diff-lcs (1.5.1)
22
23
  docile (1.4.0)
23
24
  dry-initializer (3.1.1)
24
25
  em-http-request (1.1.7)
@@ -30,14 +31,14 @@ GEM
30
31
  em-socksify (0.3.2)
31
32
  eventmachine (>= 1.0.0.beta.4)
32
33
  eventmachine (1.2.7)
33
- faraday (2.7.10)
34
- faraday-net_http (>= 2.0, < 3.1)
34
+ faraday (2.0.0)
35
35
  ruby2_keywords (>= 0.0.4)
36
36
  faraday-follow_redirects (0.3.0)
37
37
  faraday (>= 1, < 3)
38
38
  faraday-multipart (1.0.4)
39
39
  multipart-post (~> 2)
40
- faraday-net_http (3.0.2)
40
+ faraday-net_http (3.1.0)
41
+ net-http
41
42
  faye (1.4.0)
42
43
  cookiejar (>= 0.3.0)
43
44
  em-http-request (>= 1.1.6)
@@ -51,63 +52,68 @@ GEM
51
52
  websocket-driver (>= 0.5.1)
52
53
  hashie (5.0.0)
53
54
  http_parser.rb (0.8.0)
54
- json (2.6.3)
55
- jwt (2.7.1)
55
+ json (2.7.1)
56
+ jwt (2.8.1)
57
+ base64
56
58
  language_server-protocol (3.17.0.3)
57
59
  multi_json (1.15.0)
58
- multipart-post (2.3.0)
59
- parallel (1.23.0)
60
- parser (3.2.2.3)
60
+ multipart-post (2.4.0)
61
+ net-http (0.4.1)
62
+ uri
63
+ parallel (1.24.0)
64
+ parser (3.3.0.5)
61
65
  ast (~> 2.4.1)
62
66
  racc
63
- public_suffix (5.0.3)
64
- racc (1.7.1)
65
- rack (3.0.8)
67
+ prism (0.24.0)
68
+ public_suffix (5.0.4)
69
+ racc (1.7.3)
70
+ rack (3.0.9.1)
66
71
  rainbow (3.1.1)
67
- rake (13.0.6)
68
- regexp_parser (2.8.1)
69
- restforce (6.2.3)
72
+ rake (13.1.0)
73
+ regexp_parser (2.9.0)
74
+ restforce (6.2.4)
70
75
  faraday (>= 1.1.0, < 2.8.0)
71
76
  faraday-follow_redirects (<= 0.3.0, < 1.0.0)
72
77
  faraday-multipart (>= 1.0.0, < 2.0.0)
73
78
  faraday-net_http (< 4.0.0)
74
79
  hashie (>= 1.2.0, < 6.0)
75
80
  jwt (>= 1.5.6)
76
- rexml (3.2.5)
77
- rspec (3.12.0)
78
- rspec-core (~> 3.12.0)
79
- rspec-expectations (~> 3.12.0)
80
- rspec-mocks (~> 3.12.0)
81
- rspec-core (3.12.2)
82
- rspec-support (~> 3.12.0)
83
- rspec-expectations (3.12.3)
81
+ rexml (3.2.6)
82
+ rspec (3.13.0)
83
+ rspec-core (~> 3.13.0)
84
+ rspec-expectations (~> 3.13.0)
85
+ rspec-mocks (~> 3.13.0)
86
+ rspec-core (3.13.0)
87
+ rspec-support (~> 3.13.0)
88
+ rspec-expectations (3.13.0)
84
89
  diff-lcs (>= 1.2.0, < 2.0)
85
- rspec-support (~> 3.12.0)
86
- rspec-mocks (3.12.6)
90
+ rspec-support (~> 3.13.0)
91
+ rspec-mocks (3.13.0)
87
92
  diff-lcs (>= 1.2.0, < 2.0)
88
- rspec-support (~> 3.12.0)
89
- rspec-support (3.12.1)
90
- rubocop (1.55.0)
93
+ rspec-support (~> 3.13.0)
94
+ rspec-support (3.13.1)
95
+ rubocop (1.61.0)
91
96
  json (~> 2.3)
92
97
  language_server-protocol (>= 3.17.0)
93
98
  parallel (~> 1.10)
94
- parser (>= 3.2.2.3)
99
+ parser (>= 3.3.0.2)
95
100
  rainbow (>= 2.2.2, < 4.0)
96
101
  regexp_parser (>= 1.8, < 3.0)
97
102
  rexml (>= 3.2.5, < 4.0)
98
- rubocop-ast (>= 1.28.1, < 2.0)
103
+ rubocop-ast (>= 1.30.0, < 2.0)
99
104
  ruby-progressbar (~> 1.7)
100
105
  unicode-display_width (>= 2.4.0, < 3.0)
101
- rubocop-ast (1.29.0)
102
- parser (>= 3.2.1.0)
103
- rubocop-capybara (2.18.0)
106
+ rubocop-ast (1.31.0)
107
+ parser (>= 3.3.0.4)
108
+ prism (>= 0.24.0)
109
+ rubocop-capybara (2.20.0)
110
+ rubocop (~> 1.41)
111
+ rubocop-factory_bot (2.25.1)
104
112
  rubocop (~> 1.41)
105
- rubocop-factory_bot (2.23.1)
106
- rubocop (~> 1.33)
107
113
  rubocop-rake (0.6.0)
108
114
  rubocop (~> 1.0)
109
- rubocop-rspec (2.22.0)
110
- rubocop (~> 1.33)
115
+ rubocop-rspec (2.26.1)
116
+ rubocop (~> 1.40)
111
117
  rubocop-capybara (~> 2.17)
112
118
  rubocop-factory_bot (~> 2.22)
113
119
  ruby-progressbar (1.13.0)
@@ -118,7 +124,8 @@ GEM
118
124
  simplecov_json_formatter (~> 0.1)
119
125
  simplecov-html (0.12.3)
120
126
  simplecov_json_formatter (0.1.4)
121
- unicode-display_width (2.4.2)
127
+ unicode-display_width (2.5.0)
128
+ uri (0.13.0)
122
129
  websocket-driver (0.7.6)
123
130
  websocket-extensions (>= 0.1.0)
124
131
  websocket-extensions (0.1.5)
@@ -137,4 +144,4 @@ DEPENDENCIES
137
144
  salesforce_streamer!
138
145
 
139
146
  BUNDLED WITH
140
- 2.4.12
147
+ 2.5.6
@@ -3,31 +3,31 @@ module SalesforceStreamer
3
3
 
4
4
  class MissingCLIFlagError < StandardError
5
5
  def initialize(flag)
6
- super "Missing required command line flag: #{flag}"
6
+ super("Missing required command line flag: #{flag}")
7
7
  end
8
8
  end
9
9
 
10
10
  class NilQueryError < StandardError
11
11
  def initialize(name)
12
- super "Query not defined for #{name}"
12
+ super("Query not defined for #{name}")
13
13
  end
14
14
  end
15
15
 
16
16
  class PushTopicHandlerMissingError < StandardError
17
17
  def initialize(message)
18
- super "Unable to load constant #{message}."
18
+ super("Unable to load constant #{message}.")
19
19
  end
20
20
  end
21
21
 
22
22
  class PushTopicNameTooLongError < StandardError
23
23
  def initialize(name)
24
- super "PushTopic name: #{name} (#{name.size}/25)"
24
+ super("PushTopic name: #{name} (#{name.size}/25)")
25
25
  end
26
26
  end
27
27
 
28
28
  class UnprocessableHandlerError < StandardError
29
29
  def initialize(constant)
30
- super "#{constant} does not repond to .call or .perform_async"
30
+ super("#{constant} does not repond to .call or .perform_async")
31
31
  end
32
32
  end
33
33
  end
@@ -8,8 +8,8 @@ module SalesforceStreamer
8
8
  @client.authenticate!
9
9
  end
10
10
 
11
- def subscribe(*args, &block)
12
- @client.subscribe(args, &block)
11
+ def subscribe(*args, &)
12
+ @client.subscribe(args, &)
13
13
  end
14
14
 
15
15
  # Returns nil or an instance of Restforce::SObject
@@ -1,3 +1,3 @@
1
1
  module SalesforceStreamer
2
- VERSION = '2.9.0'.freeze
2
+ VERSION = '2.10.0'.freeze
3
3
  end
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
25
  spec.require_paths = ['lib']
26
26
 
27
- spec.required_ruby_version = '>= 3.0'
27
+ spec.required_ruby_version = Gem::Requirement.new('>= 3.1.0')
28
28
 
29
29
  spec.add_dependency 'cookiejar', '~> 0.3'
30
30
  spec.add_dependency 'dry-initializer', '~> 3.1'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salesforce_streamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.0
4
+ version: 2.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Serok
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-07-26 00:00:00.000000000 Z
12
+ date: 2024-02-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cookiejar
@@ -139,14 +139,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
139
  requirements:
140
140
  - - ">="
141
141
  - !ruby/object:Gem::Version
142
- version: '3.0'
142
+ version: 3.1.0
143
143
  required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - ">="
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  requirements: []
149
- rubygems_version: 3.4.17
149
+ rubygems_version: 3.5.3
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: A wrapper around the Restforce Streaming API with a built-in PushTopic manager.