salesforce_streamer 2.11.2 → 2.12.1
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 +1 -1
- data/.github/workflows/auto-merge.yml +13 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +25 -27
- data/lib/salesforce_streamer/push_topic.rb +3 -1
- data/lib/salesforce_streamer/version.rb +1 -1
- data/salesforce_streamer.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cf8ea4e5fd298afb484d4c40243cb86caae7a1599aeb71d87799542ce2f76d5
|
4
|
+
data.tar.gz: f9ed07a842356e6de6ed6878513cea4bca27ca98782721985b4b8907eab1fa78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e37f2e50ad1c457cfa5814f6ac174b676c6edcd604f7564b70ca922a5b66a1073217262348ed7a74c8f44877b179c27663f7b61c0d50e8bd0c3d6561356b3c5
|
7
|
+
data.tar.gz: 7efd1718a6bc094de36c33d91de7c115bf21dbe8fec68157510fd6d8660c90a8aaa3c9c4c83c6ce2b2fd1d98942572086b1bd8e586f0dafd69fb8b579672cb12
|
data/.bundler-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5.
|
1
|
+
2.5.23
|
@@ -9,6 +9,6 @@ jobs:
|
|
9
9
|
runs-on: ubuntu-latest
|
10
10
|
steps:
|
11
11
|
- uses: hmarr/auto-approve-action@v3
|
12
|
-
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
|
+
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, 'self-approve') || contains(github.event.pull_request.labels.*.name, 'dependencies')
|
13
13
|
with:
|
14
14
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
@@ -1,5 +1,8 @@
|
|
1
1
|
name: automerge
|
2
2
|
on:
|
3
|
+
pull_request_target:
|
4
|
+
types:
|
5
|
+
- labeled
|
3
6
|
pull_request_review:
|
4
7
|
types:
|
5
8
|
- submitted
|
@@ -12,8 +15,17 @@ jobs:
|
|
12
15
|
runs-on: ubuntu-latest
|
13
16
|
steps:
|
14
17
|
- name: automerge
|
15
|
-
uses: pascalgn/automerge-action@v0.16.
|
18
|
+
uses: pascalgn/automerge-action@v0.16.4
|
19
|
+
env:
|
20
|
+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
21
|
+
MERGE_METHOD: squash
|
22
|
+
MERGE_DELETE_BRANCH: true
|
23
|
+
MERGE_LABELS: "automerge,!automerge blocked"
|
24
|
+
- name: automerge-dependencies
|
25
|
+
uses: pascalgn/automerge-action@v0.16.4
|
16
26
|
env:
|
17
27
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
18
28
|
MERGE_METHOD: squash
|
19
29
|
MERGE_DELETE_BRANCH: true
|
30
|
+
MERGE_LABELS: "dependencies,!automerge blocked"
|
31
|
+
MERGE_REMOVE_LABELS: ""
|
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-10-17 Krzysztof Knapik
|
7
|
+
|
8
|
+
v2.12.0 pass HOSTNAME and K8S_POD_NAME env varas to handler
|
9
|
+
|
6
10
|
## 2024-08-02 Krzysztof Knapik
|
7
11
|
|
8
12
|
v2.11.2 add SalesforceStreamer.logger
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
salesforce_streamer (2.
|
4
|
+
salesforce_streamer (2.12.1)
|
5
5
|
cookiejar (~> 0.3)
|
6
6
|
dry-initializer (~> 3.1)
|
7
7
|
eventmachine (~> 1.2)
|
8
8
|
faye (~> 1.4)
|
9
9
|
restforce (~> 7.3)
|
10
|
+
uri (~> 0.13)
|
10
11
|
|
11
12
|
GEM
|
12
13
|
remote: https://rubygems.org/
|
@@ -29,13 +30,14 @@ GEM
|
|
29
30
|
base64
|
30
31
|
eventmachine (>= 1.0.0.beta.4)
|
31
32
|
eventmachine (1.2.7)
|
32
|
-
faraday (2.
|
33
|
-
|
33
|
+
faraday (2.11.0)
|
34
|
+
faraday-net_http (>= 2.0, < 3.4)
|
35
|
+
logger
|
34
36
|
faraday-follow_redirects (0.3.0)
|
35
37
|
faraday (>= 1, < 3)
|
36
38
|
faraday-multipart (1.0.4)
|
37
39
|
multipart-post (~> 2)
|
38
|
-
faraday-net_http (3.
|
40
|
+
faraday-net_http (3.3.0)
|
39
41
|
net-http
|
40
42
|
faye (1.4.0)
|
41
43
|
cookiejar (>= 0.3.0)
|
@@ -50,68 +52,64 @@ GEM
|
|
50
52
|
websocket-driver (>= 0.5.1)
|
51
53
|
hashie (5.0.0)
|
52
54
|
http_parser.rb (0.8.0)
|
53
|
-
json (2.
|
54
|
-
jwt (2.
|
55
|
+
json (2.8.1)
|
56
|
+
jwt (2.9.3)
|
55
57
|
base64
|
56
58
|
language_server-protocol (3.17.0.3)
|
59
|
+
logger (1.6.1)
|
57
60
|
multi_json (1.15.0)
|
58
61
|
multipart-post (2.4.1)
|
59
|
-
net-http (0.
|
62
|
+
net-http (0.5.0)
|
60
63
|
uri
|
61
|
-
parallel (1.
|
62
|
-
parser (3.3.
|
64
|
+
parallel (1.26.3)
|
65
|
+
parser (3.3.6.0)
|
63
66
|
ast (~> 2.4.1)
|
64
67
|
racc
|
65
68
|
public_suffix (6.0.1)
|
66
69
|
racc (1.8.1)
|
67
|
-
rack (3.1.
|
70
|
+
rack (3.1.8)
|
68
71
|
rainbow (3.1.1)
|
69
72
|
rake (13.2.1)
|
70
73
|
regexp_parser (2.9.2)
|
71
|
-
restforce (7.
|
72
|
-
faraday (>= 1.1.0, < 2.
|
74
|
+
restforce (7.5.0)
|
75
|
+
faraday (>= 1.1.0, < 2.12.0)
|
73
76
|
faraday-follow_redirects (<= 0.3.0, < 1.0.0)
|
74
77
|
faraday-multipart (>= 1.0.0, < 2.0.0)
|
75
78
|
faraday-net_http (< 4.0.0)
|
76
79
|
hashie (>= 1.2.0, < 6.0)
|
77
80
|
jwt (>= 1.5.6)
|
78
|
-
rexml (3.3.4)
|
79
|
-
strscan
|
80
81
|
rspec (3.13.0)
|
81
82
|
rspec-core (~> 3.13.0)
|
82
83
|
rspec-expectations (~> 3.13.0)
|
83
84
|
rspec-mocks (~> 3.13.0)
|
84
|
-
rspec-core (3.13.
|
85
|
+
rspec-core (3.13.2)
|
85
86
|
rspec-support (~> 3.13.0)
|
86
|
-
rspec-expectations (3.13.
|
87
|
+
rspec-expectations (3.13.3)
|
87
88
|
diff-lcs (>= 1.2.0, < 2.0)
|
88
89
|
rspec-support (~> 3.13.0)
|
89
|
-
rspec-mocks (3.13.
|
90
|
+
rspec-mocks (3.13.2)
|
90
91
|
diff-lcs (>= 1.2.0, < 2.0)
|
91
92
|
rspec-support (~> 3.13.0)
|
92
93
|
rspec-support (3.13.1)
|
93
|
-
rubocop (1.
|
94
|
+
rubocop (1.68.0)
|
94
95
|
json (~> 2.3)
|
95
96
|
language_server-protocol (>= 3.17.0)
|
96
97
|
parallel (~> 1.10)
|
97
98
|
parser (>= 3.3.0.2)
|
98
99
|
rainbow (>= 2.2.2, < 4.0)
|
99
100
|
regexp_parser (>= 2.4, < 3.0)
|
100
|
-
|
101
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
101
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
102
102
|
ruby-progressbar (~> 1.7)
|
103
103
|
unicode-display_width (>= 2.4.0, < 3.0)
|
104
|
-
rubocop-ast (1.
|
104
|
+
rubocop-ast (1.34.0)
|
105
105
|
parser (>= 3.3.1.0)
|
106
106
|
rubocop-rake (0.6.0)
|
107
107
|
rubocop (~> 1.0)
|
108
|
-
rubocop-rspec (3.0
|
108
|
+
rubocop-rspec (3.2.0)
|
109
109
|
rubocop (~> 1.61)
|
110
110
|
ruby-progressbar (1.13.0)
|
111
|
-
|
112
|
-
|
113
|
-
unicode-display_width (2.5.0)
|
114
|
-
uri (0.13.0)
|
111
|
+
unicode-display_width (2.6.0)
|
112
|
+
uri (0.13.1)
|
115
113
|
websocket-driver (0.7.6)
|
116
114
|
websocket-extensions (>= 0.1.0)
|
117
115
|
websocket-extensions (0.1.5)
|
@@ -129,4 +127,4 @@ DEPENDENCIES
|
|
129
127
|
salesforce_streamer!
|
130
128
|
|
131
129
|
BUNDLED WITH
|
132
|
-
2.5.
|
130
|
+
2.5.23
|
@@ -18,6 +18,8 @@ module SalesforceStreamer
|
|
18
18
|
|
19
19
|
def handle(message)
|
20
20
|
message['topic'] = @name
|
21
|
+
message['hostname'] = ENV['HOSTNAME']
|
22
|
+
message['k8s_pod_name'] = ENV['K8S_POD_NAME']
|
21
23
|
message_middleware.call(message)
|
22
24
|
rescue StandardError => e
|
23
25
|
Log.error e
|
@@ -55,7 +57,7 @@ module SalesforceStreamer
|
|
55
57
|
if constant.respond_to? :call
|
56
58
|
constant
|
57
59
|
elsif constant.respond_to? :perform_async
|
58
|
-
proc { |message| constant.perform_async
|
60
|
+
proc { |message| constant.perform_async(message) }
|
59
61
|
else
|
60
62
|
fail(UnprocessableHandlerError, constant)
|
61
63
|
end
|
data/salesforce_streamer.gemspec
CHANGED
@@ -30,6 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency 'dry-initializer', '~> 3.1'
|
31
31
|
spec.add_dependency 'faye', '~> 1.4'
|
32
32
|
spec.add_dependency 'restforce', '~> 7.3'
|
33
|
+
spec.add_dependency 'uri', '~> 0.13'
|
33
34
|
# When you have issues installing eventmachine on osx and ruby 3, try:
|
34
35
|
# export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib"
|
35
36
|
# 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.
|
4
|
+
version: 2.12.1
|
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: 2024-
|
12
|
+
date: 2024-11-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cookiejar
|
@@ -67,6 +67,20 @@ dependencies:
|
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '7.3'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: uri
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0.13'
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0.13'
|
70
84
|
- !ruby/object:Gem::Dependency
|
71
85
|
name: eventmachine
|
72
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
160
|
- !ruby/object:Gem::Version
|
147
161
|
version: '0'
|
148
162
|
requirements: []
|
149
|
-
rubygems_version: 3.5.
|
163
|
+
rubygems_version: 3.5.23
|
150
164
|
signing_key:
|
151
165
|
specification_version: 4
|
152
166
|
summary: A wrapper around the Restforce Streaming API with a built-in PushTopic manager.
|