salesforce_streamer 2.9.0 → 2.11.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: 9c3d6e20509fb6b2db42d2f3668b7f683f9715dbb339fde471decb8d21bcbc3e
4
+ data.tar.gz: 76083b242caad63d75ac566078e1ff2a8c65efdfdfff6dd71386913ca8c8ba79
5
5
  SHA512:
6
- metadata.gz: 34f17dfc6ea550a8417783a505129d94546a09b94b1828e3df9ccf30ebf9d8a8f0b62bada15faeb3e98db46c9bbebdde66950f2368bbeee7ba7d7b2b33e86353
7
- data.tar.gz: 58edcf243d803c25ff545a3ae90da695c030b5e140a17ffdbf6f914926528f6e7cad794a7d5c7d5472490ed5494baea47ae1bca2607d463615d5d88be4e84605
6
+ metadata.gz: 7b228d8ae940f446d3d884d86fd91eccabff30344838ab08a005be2358a833886901bf612eb8105c362d26c03ffcd1ff0a4c323d2fd2a74d11e1f80782f401b4
7
+ data.tar.gz: 8ce51aca2504b0792b128b3b35f8f9cea023d0e071e2a9912f3c2fc46f3b8c3228ed6cad05a2ae06debb98f43972d12fb22655f2b747b7ee56d280f29a0717ce
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.4.17
1
+ 2.5.7
@@ -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,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,11 +7,11 @@ 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:
14
- ruby-version: [3.1, 3.2]
14
+ ruby-version: [3.1, 3.2, 3.3]
15
15
 
16
16
  steps:
17
17
  - uses: actions/checkout@v3
data/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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-04-05 Krzysztof Knapik
7
+
8
+ v2.11 bump dependency constraints, restforce 7.3+
9
+
10
+ ## 2024-02-29 Krzysztof Knapik
11
+
12
+ v2.10 Drop ruby 3.0 and add ruby 3.3 support
13
+
6
14
  ## 2023-07-26 Krzysztof Knapik
7
15
 
8
16
  v2.9 take default api version from `SALESFORCE_API_VERSION` env var
data/Gemfile CHANGED
@@ -3,7 +3,6 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  gem 'byebug'
6
- gem 'codecov'
7
6
  gem 'rake'
8
7
  gem 'rspec'
9
8
  gem 'rubocop'
data/Gemfile.lock CHANGED
@@ -1,25 +1,23 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- salesforce_streamer (2.9.0)
4
+ salesforce_streamer (2.11.0)
5
5
  cookiejar (~> 0.3)
6
6
  dry-initializer (~> 3.1)
7
7
  eventmachine (~> 1.2)
8
8
  faye (~> 1.4)
9
- restforce (~> 6.2)
9
+ restforce (~> 7.3)
10
10
 
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
- codecov (0.6.0)
19
- simplecov (>= 0.15, < 0.22)
20
- cookiejar (0.3.3)
21
- diff-lcs (1.5.0)
22
- docile (1.4.0)
19
+ cookiejar (0.3.4)
20
+ diff-lcs (1.5.1)
23
21
  dry-initializer (3.1.1)
24
22
  em-http-request (1.1.7)
25
23
  addressable (>= 2.3.4)
@@ -30,14 +28,14 @@ GEM
30
28
  em-socksify (0.3.2)
31
29
  eventmachine (>= 1.0.0.beta.4)
32
30
  eventmachine (1.2.7)
33
- faraday (2.7.10)
34
- faraday-net_http (>= 2.0, < 3.1)
35
- ruby2_keywords (>= 0.0.4)
31
+ faraday (2.9.0)
32
+ faraday-net_http (>= 2.0, < 3.2)
36
33
  faraday-follow_redirects (0.3.0)
37
34
  faraday (>= 1, < 3)
38
35
  faraday-multipart (1.0.4)
39
36
  multipart-post (~> 2)
40
- faraday-net_http (3.0.2)
37
+ faraday-net_http (3.1.0)
38
+ net-http
41
39
  faye (1.4.0)
42
40
  cookiejar (>= 0.3.0)
43
41
  em-http-request (>= 1.1.6)
@@ -51,74 +49,74 @@ GEM
51
49
  websocket-driver (>= 0.5.1)
52
50
  hashie (5.0.0)
53
51
  http_parser.rb (0.8.0)
54
- json (2.6.3)
55
- jwt (2.7.1)
52
+ json (2.7.2)
53
+ jwt (2.8.1)
54
+ base64
56
55
  language_server-protocol (3.17.0.3)
57
56
  multi_json (1.15.0)
58
- multipart-post (2.3.0)
59
- parallel (1.23.0)
60
- parser (3.2.2.3)
57
+ multipart-post (2.4.0)
58
+ net-http (0.4.1)
59
+ uri
60
+ parallel (1.24.0)
61
+ parser (3.3.0.5)
61
62
  ast (~> 2.4.1)
62
63
  racc
63
- public_suffix (5.0.3)
64
- racc (1.7.1)
65
- rack (3.0.8)
64
+ public_suffix (5.0.5)
65
+ racc (1.7.3)
66
+ rack (3.0.10)
66
67
  rainbow (3.1.1)
67
- rake (13.0.6)
68
- regexp_parser (2.8.1)
69
- restforce (6.2.3)
70
- faraday (>= 1.1.0, < 2.8.0)
68
+ rake (13.2.1)
69
+ regexp_parser (2.9.0)
70
+ restforce (7.3.1)
71
+ faraday (>= 1.1.0, < 2.10.0)
71
72
  faraday-follow_redirects (<= 0.3.0, < 1.0.0)
72
73
  faraday-multipart (>= 1.0.0, < 2.0.0)
73
74
  faraday-net_http (< 4.0.0)
74
75
  hashie (>= 1.2.0, < 6.0)
75
76
  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)
77
+ rexml (3.2.6)
78
+ rspec (3.13.0)
79
+ rspec-core (~> 3.13.0)
80
+ rspec-expectations (~> 3.13.0)
81
+ rspec-mocks (~> 3.13.0)
82
+ rspec-core (3.13.0)
83
+ rspec-support (~> 3.13.0)
84
+ rspec-expectations (3.13.0)
84
85
  diff-lcs (>= 1.2.0, < 2.0)
85
- rspec-support (~> 3.12.0)
86
- rspec-mocks (3.12.6)
86
+ rspec-support (~> 3.13.0)
87
+ rspec-mocks (3.13.0)
87
88
  diff-lcs (>= 1.2.0, < 2.0)
88
- rspec-support (~> 3.12.0)
89
- rspec-support (3.12.1)
90
- rubocop (1.55.0)
89
+ rspec-support (~> 3.13.0)
90
+ rspec-support (3.13.1)
91
+ rubocop (1.62.1)
91
92
  json (~> 2.3)
92
93
  language_server-protocol (>= 3.17.0)
93
94
  parallel (~> 1.10)
94
- parser (>= 3.2.2.3)
95
+ parser (>= 3.3.0.2)
95
96
  rainbow (>= 2.2.2, < 4.0)
96
97
  regexp_parser (>= 1.8, < 3.0)
97
98
  rexml (>= 3.2.5, < 4.0)
98
- rubocop-ast (>= 1.28.1, < 2.0)
99
+ rubocop-ast (>= 1.31.1, < 2.0)
99
100
  ruby-progressbar (~> 1.7)
100
101
  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)
102
+ rubocop-ast (1.31.2)
103
+ parser (>= 3.3.0.4)
104
+ rubocop-capybara (2.20.0)
105
+ rubocop (~> 1.41)
106
+ rubocop-factory_bot (2.25.1)
104
107
  rubocop (~> 1.41)
105
- rubocop-factory_bot (2.23.1)
106
- rubocop (~> 1.33)
107
108
  rubocop-rake (0.6.0)
108
109
  rubocop (~> 1.0)
109
- rubocop-rspec (2.22.0)
110
- rubocop (~> 1.33)
110
+ rubocop-rspec (2.29.1)
111
+ rubocop (~> 1.40)
111
112
  rubocop-capybara (~> 2.17)
112
113
  rubocop-factory_bot (~> 2.22)
114
+ rubocop-rspec_rails (~> 2.28)
115
+ rubocop-rspec_rails (2.28.2)
116
+ rubocop (~> 1.40)
113
117
  ruby-progressbar (1.13.0)
114
- ruby2_keywords (0.0.5)
115
- simplecov (0.21.2)
116
- docile (~> 1.1)
117
- simplecov-html (~> 0.11)
118
- simplecov_json_formatter (~> 0.1)
119
- simplecov-html (0.12.3)
120
- simplecov_json_formatter (0.1.4)
121
- unicode-display_width (2.4.2)
118
+ unicode-display_width (2.5.0)
119
+ uri (0.13.0)
122
120
  websocket-driver (0.7.6)
123
121
  websocket-extensions (>= 0.1.0)
124
122
  websocket-extensions (0.1.5)
@@ -128,7 +126,6 @@ PLATFORMS
128
126
 
129
127
  DEPENDENCIES
130
128
  byebug
131
- codecov
132
129
  rake
133
130
  rspec
134
131
  rubocop
@@ -137,4 +134,4 @@ DEPENDENCIES
137
134
  salesforce_streamer!
138
135
 
139
136
  BUNDLED WITH
140
- 2.4.12
137
+ 2.5.7
@@ -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.11.0'.freeze
3
3
  end
@@ -24,12 +24,12 @@ 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'
31
31
  spec.add_dependency 'faye', '~> 1.4'
32
- spec.add_dependency 'restforce', '~> 6.2'
32
+ spec.add_dependency 'restforce', '~> 7.3'
33
33
  # When you have issues installing eventmachine on osx and ruby 3, try:
34
34
  # export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib"
35
35
  # export CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include"
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.11.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-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cookiejar
@@ -59,14 +59,14 @@ dependencies:
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '6.2'
62
+ version: '7.3'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '6.2'
69
+ version: '7.3'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: eventmachine
72
72
  requirement: !ruby/object:Gem::Requirement
@@ -97,7 +97,6 @@ files:
97
97
  - ".github/ISSUE_TEMPLATE/story.md"
98
98
  - ".github/PULL_REQUEST_TEMPLATE.md"
99
99
  - ".github/workflows/auto-approve.yml"
100
- - ".github/workflows/auto-merge-dependencies.yml"
101
100
  - ".github/workflows/auto-merge.yml"
102
101
  - ".github/workflows/ci.yml"
103
102
  - ".gitignore"
@@ -139,14 +138,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
138
  requirements:
140
139
  - - ">="
141
140
  - !ruby/object:Gem::Version
142
- version: '3.0'
141
+ version: 3.1.0
143
142
  required_rubygems_version: !ruby/object:Gem::Requirement
144
143
  requirements:
145
144
  - - ">="
146
145
  - !ruby/object:Gem::Version
147
146
  version: '0'
148
147
  requirements: []
149
- rubygems_version: 3.4.17
148
+ rubygems_version: 3.5.7
150
149
  signing_key:
151
150
  specification_version: 4
152
151
  summary: A wrapper around the Restforce Streaming API with a built-in PushTopic manager.
@@ -1,24 +0,0 @@
1
- name: automerge-dependencies
2
- on:
3
- pull_request_review:
4
- types:
5
- - submitted
6
- check_suite:
7
- types:
8
- - completed
9
- label:
10
- types:
11
- - created
12
- status: {}
13
- jobs:
14
- automerge:
15
- runs-on: ubuntu-latest
16
- steps:
17
- - name: automerge-dependencies
18
- uses: pascalgn/automerge-action@v0.15.6
19
- env:
20
- GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
21
- MERGE_METHOD: squash
22
- MERGE_DELETE_BRANCH: true
23
- MERGE_LABELS: dependencies
24
- MERGE_REMOVE_LABELS: ""