salesforce_streamer 2.4.0.rc1 → 2.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: e6ae6f1fa912c4ac13fca440f74cef9b7a5952f0f555d1c41a193d1ed3d338c1
4
- data.tar.gz: 6c9d4655567a7373777b3d1d224488ecebc48fb046f98d930f05171e0199468c
3
+ metadata.gz: e2bf462cd8fca814d8d40e393aa0f42dcfdb41da4723a114cd5192d2d9501ff5
4
+ data.tar.gz: 0b99425e8dc09388a7d7fdc4c8e60e3621f9aaf24d8664c73e9c97262e9b0ca2
5
5
  SHA512:
6
- metadata.gz: 9548b2f8f714b701c8055ba63be30bd5f5057f8e87420c59c7504f438ab3ef15b4f3c986768bb19f70f57310539a8e695636a7c4540f3f00dc1d73e8ff6eed77
7
- data.tar.gz: 706ea71664fb1b7b9f28501f3525050d2d651f1189e4360c34df332cc71af01b79997b0aca144de0f6bce4a969837232982afcecb60d8378a3257264b2c39642
6
+ metadata.gz: af7e8f335e4955d6b4de0c699c3391d4df0e761dbcf23c94b0d48de210179f9f79b239b8c694ace8aefe553ae1fa33949d0df07b7b8ac6c081f08409c01510c1
7
+ data.tar.gz: efdaba381d66bbb79fe74ecd0441f6ac1a6a9f52523c0c990a7ef770663a1e020e8ca38dfb3bf237c90ea1c3926c114b52bc3fb8bf9a624133b47555d52c554e
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.2.16
1
+ 2.3.11
@@ -1,18 +1,6 @@
1
- ## Description
1
+ ## Description, motivation and context
2
2
  <!--- Describe your changes in detail -->
3
-
4
- ## Related issue(s)
5
- <!--- GH issue number -->
6
-
7
- ## Motivation and Context
8
3
  <!--- Why is this change required? What problem does it solve? -->
9
- <!--- If it fixes an open issue, please link to the issue here. -->
10
4
 
11
- ## How Has This Been Tested?
12
- <!--- Please describe in detail how you tested your changes. -->
13
-
14
- ## Screenshots (if appropriate):
15
- <!--- Please add any screenshots of the feature. -->
16
-
17
- ## Related PRs
18
- <!--- Please add links to any related PRs (backend, component packages, etc). -->
5
+ ## Related issue(s) or PR(s)
6
+ <!--- GH issue number -->
@@ -2,15 +2,13 @@
2
2
  # this will allow Dependabot to automatically merge dependency update PRs where CI passes
3
3
  # from: https://github.com/hmarr/auto-approve-action
4
4
  name: Auto approve dependency upgrades PRs
5
-
6
- on:
7
- pull_request
5
+ on: pull_request_target
8
6
 
9
7
  jobs:
10
8
  auto-approve:
11
9
  runs-on: ubuntu-latest
12
10
  steps:
13
- - uses: hmarr/auto-approve-action@v2.0.0
11
+ - uses: hmarr/auto-approve-action@v2
14
12
  if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev'
15
13
  with:
16
14
  github-token: "${{ secrets.GITHUB_TOKEN }}"
@@ -0,0 +1,28 @@
1
+ name: Ruby CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby-version: ['3.0', 3.1]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Set up Ruby
19
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
20
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
21
+ # uses: ruby/setup-ruby@v1
22
+ uses: ruby/setup-ruby@bd94d6a504586da892a5753afdd1480096ed30df
23
+ with:
24
+ ruby-version: ${{ matrix.ruby-version }}
25
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
26
+
27
+ - name: Run tests
28
+ run: bundle exec rake ci
data/Gemfile.lock CHANGED
@@ -1,24 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- salesforce_streamer (2.4.0.rc1)
4
+ salesforce_streamer (2.6.0)
5
+ cookiejar (~> 0.3.0)
5
6
  dry-initializer (~> 3.0)
7
+ eventmachine (~> 1.2)
6
8
  faye (~> 1.4)
7
9
  restforce (~> 5.0)
8
10
 
9
11
  GEM
10
12
  remote: https://rubygems.org/
11
13
  specs:
12
- addressable (2.7.0)
14
+ addressable (2.8.0)
13
15
  public_suffix (>= 2.0.2, < 5.0)
14
16
  ast (2.4.2)
15
17
  byebug (11.1.3)
16
- codecov (0.5.2)
18
+ codecov (0.6.0)
17
19
  simplecov (>= 0.15, < 0.22)
18
20
  cookiejar (0.3.3)
19
- diff-lcs (1.4.4)
20
- docile (1.3.5)
21
- dry-initializer (3.0.4)
21
+ diff-lcs (1.5.0)
22
+ docile (1.4.0)
23
+ dry-initializer (3.1.1)
22
24
  em-http-request (1.1.7)
23
25
  addressable (>= 2.3.4)
24
26
  cookiejar (!= 0.3.1)
@@ -28,16 +30,26 @@ GEM
28
30
  em-socksify (0.3.2)
29
31
  eventmachine (>= 1.0.0.beta.4)
30
32
  eventmachine (1.2.7)
31
- faraday (1.4.1)
33
+ faraday (1.8.0)
34
+ faraday-em_http (~> 1.0)
35
+ faraday-em_synchrony (~> 1.0)
32
36
  faraday-excon (~> 1.1)
37
+ faraday-httpclient (~> 1.0.1)
33
38
  faraday-net_http (~> 1.0)
34
39
  faraday-net_http_persistent (~> 1.1)
40
+ faraday-patron (~> 1.0)
41
+ faraday-rack (~> 1.0)
35
42
  multipart-post (>= 1.2, < 3)
36
43
  ruby2_keywords (>= 0.0.4)
44
+ faraday-em_http (1.0.0)
45
+ faraday-em_synchrony (1.0.0)
37
46
  faraday-excon (1.1.0)
47
+ faraday-httpclient (1.0.1)
38
48
  faraday-net_http (1.0.1)
39
- faraday-net_http_persistent (1.1.0)
40
- faraday_middleware (1.0.0)
49
+ faraday-net_http_persistent (1.2.0)
50
+ faraday-patron (1.0.0)
51
+ faraday-rack (1.0.0)
52
+ faraday_middleware (1.2.0)
41
53
  faraday (~> 1.0)
42
54
  faye (1.4.0)
43
55
  cookiejar (>= 0.3.0)
@@ -47,73 +59,75 @@ GEM
47
59
  multi_json (>= 1.0.0)
48
60
  rack (>= 1.0.0)
49
61
  websocket-driver (>= 0.5.1)
50
- faye-websocket (0.11.0)
62
+ faye-websocket (0.11.1)
51
63
  eventmachine (>= 0.12.0)
52
64
  websocket-driver (>= 0.5.1)
53
- hashie (4.1.0)
54
- http_parser.rb (0.6.0)
55
- jwt (2.2.3)
65
+ hashie (5.0.0)
66
+ http_parser.rb (0.8.0)
67
+ jwt (2.3.0)
56
68
  multi_json (1.15.0)
57
69
  multipart-post (2.1.1)
58
- parallel (1.20.1)
59
- parser (3.0.1.1)
70
+ parallel (1.22.1)
71
+ parser (3.1.2.0)
60
72
  ast (~> 2.4.1)
61
- public_suffix (4.0.6)
73
+ public_suffix (4.0.7)
62
74
  rack (2.2.3)
63
- rainbow (3.0.0)
64
- rake (13.0.3)
65
- regexp_parser (2.1.1)
66
- restforce (5.0.5)
67
- faraday (>= 0.9.0, <= 2.0)
75
+ rainbow (3.1.1)
76
+ rake (13.0.6)
77
+ regexp_parser (2.3.0)
78
+ restforce (5.2.4)
79
+ faraday (>= 0.9.0, < 1.9.0)
68
80
  faraday_middleware (>= 0.8.8, <= 2.0)
69
- hashie (>= 1.2.0, < 5.0)
81
+ hashie (>= 1.2.0, < 6.0)
70
82
  jwt (>= 1.5.6)
71
83
  rexml (3.2.5)
72
- rspec (3.10.0)
73
- rspec-core (~> 3.10.0)
74
- rspec-expectations (~> 3.10.0)
75
- rspec-mocks (~> 3.10.0)
76
- rspec-core (3.10.1)
77
- rspec-support (~> 3.10.0)
78
- rspec-expectations (3.10.1)
84
+ rspec (3.11.0)
85
+ rspec-core (~> 3.11.0)
86
+ rspec-expectations (~> 3.11.0)
87
+ rspec-mocks (~> 3.11.0)
88
+ rspec-core (3.11.0)
89
+ rspec-support (~> 3.11.0)
90
+ rspec-expectations (3.11.0)
79
91
  diff-lcs (>= 1.2.0, < 2.0)
80
- rspec-support (~> 3.10.0)
81
- rspec-mocks (3.10.2)
92
+ rspec-support (~> 3.11.0)
93
+ rspec-mocks (3.11.1)
82
94
  diff-lcs (>= 1.2.0, < 2.0)
83
- rspec-support (~> 3.10.0)
84
- rspec-support (3.10.2)
85
- rubocop (1.14.0)
95
+ rspec-support (~> 3.11.0)
96
+ rspec-support (3.11.0)
97
+ rubocop (1.27.0)
86
98
  parallel (~> 1.10)
87
- parser (>= 3.0.0.0)
99
+ parser (>= 3.1.0.0)
88
100
  rainbow (>= 2.2.2, < 4.0)
89
101
  regexp_parser (>= 1.8, < 3.0)
90
102
  rexml
91
- rubocop-ast (>= 1.5.0, < 2.0)
103
+ rubocop-ast (>= 1.16.0, < 2.0)
92
104
  ruby-progressbar (~> 1.7)
93
105
  unicode-display_width (>= 1.4.0, < 3.0)
94
- rubocop-ast (1.5.0)
95
- parser (>= 3.0.1.1)
96
- rubocop-rake (0.5.1)
97
- rubocop
98
- rubocop-rspec (2.3.0)
106
+ rubocop-ast (1.17.0)
107
+ parser (>= 3.1.1.0)
108
+ rubocop-rake (0.6.0)
99
109
  rubocop (~> 1.0)
100
- rubocop-ast (>= 1.1.0)
110
+ rubocop-rspec (2.10.0)
111
+ rubocop (~> 1.19)
101
112
  ruby-progressbar (1.11.0)
102
- ruby2_keywords (0.0.4)
113
+ ruby2_keywords (0.0.5)
103
114
  simplecov (0.21.2)
104
115
  docile (~> 1.1)
105
116
  simplecov-html (~> 0.11)
106
117
  simplecov_json_formatter (~> 0.1)
107
118
  simplecov-html (0.12.3)
108
- simplecov_json_formatter (0.1.3)
109
- unicode-display_width (2.0.0)
110
- websocket-driver (0.7.3)
119
+ simplecov_json_formatter (0.1.4)
120
+ unicode-display_width (2.1.0)
121
+ websocket-driver (0.7.5)
111
122
  websocket-extensions (>= 0.1.0)
112
123
  websocket-extensions (0.1.5)
113
124
 
114
125
  PLATFORMS
126
+ aarch64-linux-musl
127
+ x86_64-darwin-18
115
128
  x86_64-darwin-19
116
129
  x86_64-darwin-20
130
+ x86_64-darwin-21
117
131
  x86_64-linux
118
132
 
119
133
  DEPENDENCIES
@@ -127,4 +141,4 @@ DEPENDENCIES
127
141
  salesforce_streamer!
128
142
 
129
143
  BUNDLED WITH
130
- 2.2.16
144
+ 2.2.29
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/salesforce_streamer.svg)](https://rubygems.org/gems/salesforce_streamer)
2
- [![Build Status](https://travis-ci.org/RenoFi/salesforce_streamer.svg?branch=master)](https://travis-ci.org/RenoFi/salesforce_streamer)
2
+ [![Build Status](https://github.com/RenoFi/salesforce_streamer/actions/workflows/ci.yml/badge.svg)](https://github.com/RenoFi/salesforce_streamer/actions/workflows/ci.yml?query=branch%3Amain)
3
3
 
4
4
  # salesforce_streamer
5
5
 
data/Rakefile CHANGED
@@ -5,4 +5,5 @@ require 'rubocop/rake_task'
5
5
  RSpec::Core::RakeTask.new(:spec)
6
6
  RuboCop::RakeTask.new
7
7
 
8
+ task ci: %i[spec rubocop]
8
9
  task default: %i[spec rubocop:auto_correct]
@@ -45,9 +45,10 @@ module CookieJar
45
45
  args[:expires_at] = Time.parse keyvalue
46
46
  rescue ArgumentError
47
47
  raise unless $ERROR_INFO.message == 'time out of range'
48
+
48
49
  args[:expires_at] = Time.at(0x7FFFFFFF)
49
50
  end
50
- when :"max-age"
51
+ when :'max-age'
51
52
  args[:max_age] = keyvalue.to_i
52
53
  when :domain, :path
53
54
  args[key] = keyvalue
@@ -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.safe_load(File.read(config_file), [], [], true)
57
+ data = YAML.safe_load(File.read(config_file), aliases: true)
58
58
  @push_topic_data = data[environment.to_s]
59
59
  end
60
60
 
@@ -36,7 +36,7 @@ module SalesforceStreamer
36
36
  @push_topics = []
37
37
  Configuration.instance.push_topic_data.each_value do |topic_data|
38
38
  Log.debug topic_data.to_s
39
- @push_topics << PushTopic.new(topic_data.transform_keys(&:to_sym))
39
+ @push_topics << PushTopic.new(**topic_data.transform_keys(&:to_sym))
40
40
  end
41
41
  end
42
42
  end
@@ -1,6 +1,6 @@
1
1
  module SalesforceStreamer
2
2
  class ReplayIdErrorExtension
3
- REPLAY_ERROR_REGEX = /^400::The replayId /.freeze
3
+ REPLAY_ERROR_REGEX = /^400::The replayId /
4
4
 
5
5
  def incoming(message, callback)
6
6
  if message['error']&.match?(REPLAY_ERROR_REGEX)
@@ -1,3 +1,3 @@
1
1
  module SalesforceStreamer
2
- VERSION = '2.4.0.rc1'.freeze
2
+ VERSION = '2.6.0'.freeze
3
3
  end
@@ -15,6 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.metadata['homepage_uri'] = spec.homepage
16
16
  spec.metadata['source_code_uri'] = spec.homepage
17
17
  spec.metadata['documentation_uri'] = 'https://www.rubydoc.info/gems/salesforce_streamer'
18
+ spec.metadata['rubygems_mfa_required'] = 'true'
18
19
 
19
20
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
20
21
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
@@ -23,11 +24,15 @@ Gem::Specification.new do |spec|
23
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
25
  spec.require_paths = ['lib']
25
26
 
26
- spec.required_ruby_version = '>= 2.6'
27
+ spec.required_ruby_version = '>= 3.0'
27
28
 
29
+ spec.add_dependency 'cookiejar', '~> 0.3.0'
28
30
  spec.add_dependency 'dry-initializer', '~> 3.0'
29
31
  spec.add_dependency 'faye', '~> 1.4'
30
32
  spec.add_dependency 'restforce', '~> 5.0'
33
+ # # When you have issues installing eventmachine on osx and ruby 3, try:
34
+ # gem install eventmachine -- --with-openssl-dir=/usr/local/opt/openssl@1.1
35
+ spec.add_dependency 'eventmachine', '~> 1.2'
31
36
 
32
37
  spec.add_development_dependency 'byebug'
33
38
  spec.add_development_dependency 'codecov'
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.0.rc1
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Serok
@@ -9,8 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-05-09 00:00:00.000000000 Z
12
+ date: 2022-04-20 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: cookiejar
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: 0.3.0
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: 0.3.0
14
28
  - !ruby/object:Gem::Dependency
15
29
  name: dry-initializer
16
30
  requirement: !ruby/object:Gem::Requirement
@@ -53,6 +67,20 @@ dependencies:
53
67
  - - "~>"
54
68
  - !ruby/object:Gem::Version
55
69
  version: '5.0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: eventmachine
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '1.2'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '1.2'
56
84
  - !ruby/object:Gem::Dependency
57
85
  name: byebug
58
86
  requirement: !ruby/object:Gem::Requirement
@@ -168,9 +196,9 @@ files:
168
196
  - ".github/PULL_REQUEST_TEMPLATE.md"
169
197
  - ".github/workflows/auto-approve.yml"
170
198
  - ".github/workflows/auto-merge.yml"
199
+ - ".github/workflows/ci.yml"
171
200
  - ".gitignore"
172
201
  - ".rspec"
173
- - ".travis.yml"
174
202
  - CHANGELOG.md
175
203
  - Gemfile
176
204
  - Gemfile.lock
@@ -199,6 +227,7 @@ metadata:
199
227
  homepage_uri: https://github.com/renofi/salesforce_streamer
200
228
  source_code_uri: https://github.com/renofi/salesforce_streamer
201
229
  documentation_uri: https://www.rubydoc.info/gems/salesforce_streamer
230
+ rubygems_mfa_required: 'true'
202
231
  post_install_message:
203
232
  rdoc_options: []
204
233
  require_paths:
@@ -207,14 +236,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
236
  requirements:
208
237
  - - ">="
209
238
  - !ruby/object:Gem::Version
210
- version: '2.6'
239
+ version: '3.0'
211
240
  required_rubygems_version: !ruby/object:Gem::Requirement
212
241
  requirements:
213
- - - ">"
242
+ - - ">="
214
243
  - !ruby/object:Gem::Version
215
- version: 1.3.1
244
+ version: '0'
216
245
  requirements: []
217
- rubygems_version: 3.2.16
246
+ rubygems_version: 3.3.11
218
247
  signing_key:
219
248
  specification_version: 4
220
249
  summary: A wrapper around the Restforce Streaming API with a built-in PushTopic manager.
data/.travis.yml DELETED
@@ -1,11 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.6
7
- - 2.7
8
- before_install: gem install bundler
9
- script:
10
- - bundle exec rake spec
11
- - bundle exec rake rubocop