salesforce_streamer 2.8.0 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bundler-version +1 -1
- data/.github/workflows/auto-approve.yml +8 -9
- data/.github/workflows/auto-merge-dependencies.yml +1 -1
- data/.github/workflows/auto-merge.yml +1 -1
- data/.github/workflows/ci.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +31 -24
- data/LICENSE +21 -0
- data/lib/salesforce_streamer/configuration.rb +1 -1
- data/lib/salesforce_streamer/push_topic.rb +3 -1
- data/lib/salesforce_streamer/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37ecb05f56dfcbd08975ebc0817052aea8a7277df49c557367538ad74aa16ed9
|
4
|
+
data.tar.gz: 7717a73fd3099d82113a5017974323fb20785d12da0bd74ad7f9937bb03c24f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34f17dfc6ea550a8417783a505129d94546a09b94b1828e3df9ccf30ebf9d8a8f0b62bada15faeb3e98db46c9bbebdde66950f2368bbeee7ba7d7b2b33e86353
|
7
|
+
data.tar.gz: 58edcf243d803c25ff545a3ae90da695c030b5e140a17ffdbf6f914926528f6e7cad794a7d5c7d5472490ed5494baea47ae1bca2607d463615d5d88be4e84605
|
data/.bundler-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.4.
|
1
|
+
2.4.17
|
@@ -1,14 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
on: pull_request_target
|
1
|
+
name: Auto approve dependency upgrades and hot-fix PRs
|
2
|
+
on:
|
3
|
+
pull_request_target:
|
4
|
+
types: [labeled, unlabeled, edited, ready_for_review, review_requested, auto_merge_enabled]
|
6
5
|
|
7
6
|
jobs:
|
8
7
|
auto-approve:
|
9
8
|
runs-on: ubuntu-latest
|
10
9
|
steps:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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')
|
12
|
+
with:
|
13
|
+
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
data/.github/workflows/ci.yml
CHANGED
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
|
+
## 2023-07-26 Krzysztof Knapik
|
7
|
+
|
8
|
+
v2.9 take default api version from `SALESFORCE_API_VERSION` env var
|
9
|
+
|
6
10
|
## 2023-02-14 Krzysztof Knapik
|
7
11
|
|
8
12
|
v2.8 bump dependency constraints, restforce 6.2+
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
salesforce_streamer (2.
|
4
|
+
salesforce_streamer (2.9.0)
|
5
5
|
cookiejar (~> 0.3)
|
6
6
|
dry-initializer (~> 3.1)
|
7
7
|
eventmachine (~> 1.2)
|
@@ -11,7 +11,7 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
addressable (2.8.
|
14
|
+
addressable (2.8.4)
|
15
15
|
public_suffix (>= 2.0.2, < 6.0)
|
16
16
|
ast (2.4.2)
|
17
17
|
byebug (11.1.3)
|
@@ -30,7 +30,7 @@ GEM
|
|
30
30
|
em-socksify (0.3.2)
|
31
31
|
eventmachine (>= 1.0.0.beta.4)
|
32
32
|
eventmachine (1.2.7)
|
33
|
-
faraday (2.7.
|
33
|
+
faraday (2.7.10)
|
34
34
|
faraday-net_http (>= 2.0, < 3.1)
|
35
35
|
ruby2_keywords (>= 0.0.4)
|
36
36
|
faraday-follow_redirects (0.3.0)
|
@@ -46,24 +46,27 @@ GEM
|
|
46
46
|
multi_json (>= 1.0.0)
|
47
47
|
rack (>= 1.0.0)
|
48
48
|
websocket-driver (>= 0.5.1)
|
49
|
-
faye-websocket (0.11.
|
49
|
+
faye-websocket (0.11.3)
|
50
50
|
eventmachine (>= 0.12.0)
|
51
51
|
websocket-driver (>= 0.5.1)
|
52
52
|
hashie (5.0.0)
|
53
53
|
http_parser.rb (0.8.0)
|
54
54
|
json (2.6.3)
|
55
|
-
jwt (2.7.
|
55
|
+
jwt (2.7.1)
|
56
|
+
language_server-protocol (3.17.0.3)
|
56
57
|
multi_json (1.15.0)
|
57
58
|
multipart-post (2.3.0)
|
58
|
-
parallel (1.
|
59
|
-
parser (3.2.
|
59
|
+
parallel (1.23.0)
|
60
|
+
parser (3.2.2.3)
|
60
61
|
ast (~> 2.4.1)
|
61
|
-
|
62
|
-
|
62
|
+
racc
|
63
|
+
public_suffix (5.0.3)
|
64
|
+
racc (1.7.1)
|
65
|
+
rack (3.0.8)
|
63
66
|
rainbow (3.1.1)
|
64
67
|
rake (13.0.6)
|
65
|
-
regexp_parser (2.
|
66
|
-
restforce (6.2.
|
68
|
+
regexp_parser (2.8.1)
|
69
|
+
restforce (6.2.3)
|
67
70
|
faraday (>= 1.1.0, < 2.8.0)
|
68
71
|
faraday-follow_redirects (<= 0.3.0, < 1.0.0)
|
69
72
|
faraday-multipart (>= 1.0.0, < 2.0.0)
|
@@ -75,35 +78,39 @@ GEM
|
|
75
78
|
rspec-core (~> 3.12.0)
|
76
79
|
rspec-expectations (~> 3.12.0)
|
77
80
|
rspec-mocks (~> 3.12.0)
|
78
|
-
rspec-core (3.12.
|
81
|
+
rspec-core (3.12.2)
|
79
82
|
rspec-support (~> 3.12.0)
|
80
|
-
rspec-expectations (3.12.
|
83
|
+
rspec-expectations (3.12.3)
|
81
84
|
diff-lcs (>= 1.2.0, < 2.0)
|
82
85
|
rspec-support (~> 3.12.0)
|
83
|
-
rspec-mocks (3.12.
|
86
|
+
rspec-mocks (3.12.6)
|
84
87
|
diff-lcs (>= 1.2.0, < 2.0)
|
85
88
|
rspec-support (~> 3.12.0)
|
86
|
-
rspec-support (3.12.
|
87
|
-
rubocop (1.
|
89
|
+
rspec-support (3.12.1)
|
90
|
+
rubocop (1.55.0)
|
88
91
|
json (~> 2.3)
|
92
|
+
language_server-protocol (>= 3.17.0)
|
89
93
|
parallel (~> 1.10)
|
90
|
-
parser (>= 3.2.
|
94
|
+
parser (>= 3.2.2.3)
|
91
95
|
rainbow (>= 2.2.2, < 4.0)
|
92
96
|
regexp_parser (>= 1.8, < 3.0)
|
93
97
|
rexml (>= 3.2.5, < 4.0)
|
94
|
-
rubocop-ast (>= 1.
|
98
|
+
rubocop-ast (>= 1.28.1, < 2.0)
|
95
99
|
ruby-progressbar (~> 1.7)
|
96
100
|
unicode-display_width (>= 2.4.0, < 3.0)
|
97
|
-
rubocop-ast (1.
|
101
|
+
rubocop-ast (1.29.0)
|
98
102
|
parser (>= 3.2.1.0)
|
99
|
-
rubocop-capybara (2.
|
103
|
+
rubocop-capybara (2.18.0)
|
100
104
|
rubocop (~> 1.41)
|
105
|
+
rubocop-factory_bot (2.23.1)
|
106
|
+
rubocop (~> 1.33)
|
101
107
|
rubocop-rake (0.6.0)
|
102
108
|
rubocop (~> 1.0)
|
103
|
-
rubocop-rspec (2.
|
109
|
+
rubocop-rspec (2.22.0)
|
104
110
|
rubocop (~> 1.33)
|
105
111
|
rubocop-capybara (~> 2.17)
|
106
|
-
|
112
|
+
rubocop-factory_bot (~> 2.22)
|
113
|
+
ruby-progressbar (1.13.0)
|
107
114
|
ruby2_keywords (0.0.5)
|
108
115
|
simplecov (0.21.2)
|
109
116
|
docile (~> 1.1)
|
@@ -112,7 +119,7 @@ GEM
|
|
112
119
|
simplecov-html (0.12.3)
|
113
120
|
simplecov_json_formatter (0.1.4)
|
114
121
|
unicode-display_width (2.4.2)
|
115
|
-
websocket-driver (0.7.
|
122
|
+
websocket-driver (0.7.6)
|
116
123
|
websocket-extensions (>= 0.1.0)
|
117
124
|
websocket-extensions (0.1.5)
|
118
125
|
|
@@ -130,4 +137,4 @@ DEPENDENCIES
|
|
130
137
|
salesforce_streamer!
|
131
138
|
|
132
139
|
BUNDLED WITH
|
133
|
-
2.
|
140
|
+
2.4.12
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2023 RenoFi Engineering Team
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
@@ -54,7 +54,7 @@ module SalesforceStreamer
|
|
54
54
|
def push_topic_data
|
55
55
|
return @push_topic_data if @push_topic_data
|
56
56
|
|
57
|
-
data = YAML.
|
57
|
+
data = YAML.safe_load_file(config_file, aliases: true)
|
58
58
|
@push_topic_data = data[environment.to_s]
|
59
59
|
end
|
60
60
|
|
@@ -3,11 +3,13 @@ module SalesforceStreamer
|
|
3
3
|
class PushTopic
|
4
4
|
extend Dry::Initializer
|
5
5
|
|
6
|
+
DEFAULT_API_VERSION = ENV.fetch('SALESFORCE_API_VERSION', '58.0')
|
7
|
+
|
6
8
|
option :name
|
7
9
|
option :query, ->(v) { v.gsub(/\s+/, ' ') }
|
8
10
|
option :handler, ->(v) { prepare_handler_proc(Object.const_get(v)) }
|
9
11
|
option :replay, ->(v) { v.to_i }, default: -> { -1 }
|
10
|
-
option :api_version, proc(&:to_s), default: -> {
|
12
|
+
option :api_version, proc(&:to_s), default: -> { DEFAULT_API_VERSION }
|
11
13
|
option :notify_for_fields, default: -> { 'Referenced' }
|
12
14
|
option :id, optional: true
|
13
15
|
option :description, optional: true
|
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.
|
4
|
+
version: 2.9.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-
|
12
|
+
date: 2023-07-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cookiejar
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- CHANGELOG.md
|
106
106
|
- Gemfile
|
107
107
|
- Gemfile.lock
|
108
|
+
- LICENSE
|
108
109
|
- README.md
|
109
110
|
- Rakefile
|
110
111
|
- exe/streamer
|
@@ -145,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
146
|
- !ruby/object:Gem::Version
|
146
147
|
version: '0'
|
147
148
|
requirements: []
|
148
|
-
rubygems_version: 3.4.
|
149
|
+
rubygems_version: 3.4.17
|
149
150
|
signing_key:
|
150
151
|
specification_version: 4
|
151
152
|
summary: A wrapper around the Restforce Streaming API with a built-in PushTopic manager.
|