salesforce_streamer 2.5.0 → 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: ee0a8f25e58071aab321354f7a419407d70f764c50c84999406dc20d798df147
4
- data.tar.gz: 3ba160a1abe2748d2bd54191a36a84de8839f4f590654ef71250fdb59172fe42
3
+ metadata.gz: e2bf462cd8fca814d8d40e393aa0f42dcfdb41da4723a114cd5192d2d9501ff5
4
+ data.tar.gz: 0b99425e8dc09388a7d7fdc4c8e60e3621f9aaf24d8664c73e9c97262e9b0ca2
5
5
  SHA512:
6
- metadata.gz: 04e3729da95d7ab24d3d4ca76f37323fdaecf5dcdcd825d8dbae03fa183126fa5b919f9eb6602e3cf2815700ae1b7479638c850c2628acfe9e9932111c3933bf
7
- data.tar.gz: af5151cc9d9d38af500085077328afa77a6d63c6786039e29b32942ebafa76074ee67c005bc3aa38d70cefc1bf79c471838c25e62660fc9445fc7b1ddfb3a451
6
+ metadata.gz: af7e8f335e4955d6b4de0c699c3391d4df0e761dbcf23c94b0d48de210179f9f79b239b8c694ace8aefe553ae1fa33949d0df07b7b8ac6c081f08409c01510c1
7
+ data.tar.gz: efdaba381d66bbb79fe74ecd0441f6ac1a6a9f52523c0c990a7ef770663a1e020e8ca38dfb3bf237c90ea1c3926c114b52bc3fb8bf9a624133b47555d52c554e
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.2.22
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,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- salesforce_streamer (2.5.0)
4
+ salesforce_streamer (2.6.0)
5
5
  cookiejar (~> 0.3.0)
6
6
  dry-initializer (~> 3.0)
7
7
  eventmachine (~> 1.2)
@@ -15,12 +15,12 @@ GEM
15
15
  public_suffix (>= 2.0.2, < 5.0)
16
16
  ast (2.4.2)
17
17
  byebug (11.1.3)
18
- codecov (0.5.2)
18
+ codecov (0.6.0)
19
19
  simplecov (>= 0.15, < 0.22)
20
20
  cookiejar (0.3.3)
21
- diff-lcs (1.4.4)
21
+ diff-lcs (1.5.0)
22
22
  docile (1.4.0)
23
- dry-initializer (3.0.4)
23
+ dry-initializer (3.1.1)
24
24
  em-http-request (1.1.7)
25
25
  addressable (>= 2.3.4)
26
26
  cookiejar (!= 0.3.1)
@@ -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 (1.5.0)
33
+ faraday (1.8.0)
34
34
  faraday-em_http (~> 1.0)
35
35
  faraday-em_synchrony (~> 1.0)
36
36
  faraday-excon (~> 1.1)
@@ -38,6 +38,7 @@ GEM
38
38
  faraday-net_http (~> 1.0)
39
39
  faraday-net_http_persistent (~> 1.1)
40
40
  faraday-patron (~> 1.0)
41
+ faraday-rack (~> 1.0)
41
42
  multipart-post (>= 1.2, < 3)
42
43
  ruby2_keywords (>= 0.0.4)
43
44
  faraday-em_http (1.0.0)
@@ -45,9 +46,10 @@ GEM
45
46
  faraday-excon (1.1.0)
46
47
  faraday-httpclient (1.0.1)
47
48
  faraday-net_http (1.0.1)
48
- faraday-net_http_persistent (1.1.0)
49
+ faraday-net_http_persistent (1.2.0)
49
50
  faraday-patron (1.0.0)
50
- faraday_middleware (1.0.0)
51
+ faraday-rack (1.0.0)
52
+ faraday_middleware (1.2.0)
51
53
  faraday (~> 1.0)
52
54
  faye (1.4.0)
53
55
  cookiejar (>= 0.3.0)
@@ -60,70 +62,72 @@ GEM
60
62
  faye-websocket (0.11.1)
61
63
  eventmachine (>= 0.12.0)
62
64
  websocket-driver (>= 0.5.1)
63
- hashie (4.1.0)
64
- http_parser.rb (0.7.0)
65
- jwt (2.2.3)
65
+ hashie (5.0.0)
66
+ http_parser.rb (0.8.0)
67
+ jwt (2.3.0)
66
68
  multi_json (1.15.0)
67
69
  multipart-post (2.1.1)
68
- parallel (1.20.1)
69
- parser (3.0.1.1)
70
+ parallel (1.22.1)
71
+ parser (3.1.2.0)
70
72
  ast (~> 2.4.1)
71
- public_suffix (4.0.6)
73
+ public_suffix (4.0.7)
72
74
  rack (2.2.3)
73
- rainbow (3.0.0)
74
- rake (13.0.4)
75
- regexp_parser (2.1.1)
76
- restforce (5.0.6)
77
- 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)
78
80
  faraday_middleware (>= 0.8.8, <= 2.0)
79
- hashie (>= 1.2.0, < 5.0)
81
+ hashie (>= 1.2.0, < 6.0)
80
82
  jwt (>= 1.5.6)
81
83
  rexml (3.2.5)
82
- rspec (3.10.0)
83
- rspec-core (~> 3.10.0)
84
- rspec-expectations (~> 3.10.0)
85
- rspec-mocks (~> 3.10.0)
86
- rspec-core (3.10.1)
87
- rspec-support (~> 3.10.0)
88
- 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)
89
91
  diff-lcs (>= 1.2.0, < 2.0)
90
- rspec-support (~> 3.10.0)
91
- rspec-mocks (3.10.2)
92
+ rspec-support (~> 3.11.0)
93
+ rspec-mocks (3.11.1)
92
94
  diff-lcs (>= 1.2.0, < 2.0)
93
- rspec-support (~> 3.10.0)
94
- rspec-support (3.10.2)
95
- rubocop (1.18.3)
95
+ rspec-support (~> 3.11.0)
96
+ rspec-support (3.11.0)
97
+ rubocop (1.27.0)
96
98
  parallel (~> 1.10)
97
- parser (>= 3.0.0.0)
99
+ parser (>= 3.1.0.0)
98
100
  rainbow (>= 2.2.2, < 4.0)
99
101
  regexp_parser (>= 1.8, < 3.0)
100
102
  rexml
101
- rubocop-ast (>= 1.7.0, < 2.0)
103
+ rubocop-ast (>= 1.16.0, < 2.0)
102
104
  ruby-progressbar (~> 1.7)
103
105
  unicode-display_width (>= 1.4.0, < 3.0)
104
- rubocop-ast (1.7.0)
105
- parser (>= 3.0.1.1)
106
+ rubocop-ast (1.17.0)
107
+ parser (>= 3.1.1.0)
106
108
  rubocop-rake (0.6.0)
107
109
  rubocop (~> 1.0)
108
- rubocop-rspec (2.4.0)
109
- rubocop (~> 1.0)
110
- rubocop-ast (>= 1.1.0)
110
+ rubocop-rspec (2.10.0)
111
+ rubocop (~> 1.19)
111
112
  ruby-progressbar (1.11.0)
112
- ruby2_keywords (0.0.4)
113
+ ruby2_keywords (0.0.5)
113
114
  simplecov (0.21.2)
114
115
  docile (~> 1.1)
115
116
  simplecov-html (~> 0.11)
116
117
  simplecov_json_formatter (~> 0.1)
117
118
  simplecov-html (0.12.3)
118
- simplecov_json_formatter (0.1.3)
119
- unicode-display_width (2.0.0)
119
+ simplecov_json_formatter (0.1.4)
120
+ unicode-display_width (2.1.0)
120
121
  websocket-driver (0.7.5)
121
122
  websocket-extensions (>= 0.1.0)
122
123
  websocket-extensions (0.1.5)
123
124
 
124
125
  PLATFORMS
126
+ aarch64-linux-musl
127
+ x86_64-darwin-18
125
128
  x86_64-darwin-19
126
129
  x86_64-darwin-20
130
+ x86_64-darwin-21
127
131
  x86_64-linux
128
132
 
129
133
  DEPENDENCIES
@@ -137,4 +141,4 @@ DEPENDENCIES
137
141
  salesforce_streamer!
138
142
 
139
143
  BUNDLED WITH
140
- 2.2.22
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,6 +45,7 @@ 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
51
  when :'max-age'
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module SalesforceStreamer
2
- VERSION = '2.5.0'.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,7 +24,7 @@ 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
 
28
29
  spec.add_dependency 'cookiejar', '~> 0.3.0'
29
30
  spec.add_dependency 'dry-initializer', '~> 3.0'
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.5.0
4
+ version: 2.6.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: 2021-07-08 00:00:00.000000000 Z
12
+ date: 2022-04-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cookiejar
@@ -196,9 +196,9 @@ files:
196
196
  - ".github/PULL_REQUEST_TEMPLATE.md"
197
197
  - ".github/workflows/auto-approve.yml"
198
198
  - ".github/workflows/auto-merge.yml"
199
+ - ".github/workflows/ci.yml"
199
200
  - ".gitignore"
200
201
  - ".rspec"
201
- - ".travis.yml"
202
202
  - CHANGELOG.md
203
203
  - Gemfile
204
204
  - Gemfile.lock
@@ -227,6 +227,7 @@ metadata:
227
227
  homepage_uri: https://github.com/renofi/salesforce_streamer
228
228
  source_code_uri: https://github.com/renofi/salesforce_streamer
229
229
  documentation_uri: https://www.rubydoc.info/gems/salesforce_streamer
230
+ rubygems_mfa_required: 'true'
230
231
  post_install_message:
231
232
  rdoc_options: []
232
233
  require_paths:
@@ -235,14 +236,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
235
236
  requirements:
236
237
  - - ">="
237
238
  - !ruby/object:Gem::Version
238
- version: '2.6'
239
+ version: '3.0'
239
240
  required_rubygems_version: !ruby/object:Gem::Requirement
240
241
  requirements:
241
242
  - - ">="
242
243
  - !ruby/object:Gem::Version
243
244
  version: '0'
244
245
  requirements: []
245
- rubygems_version: 3.2.15
246
+ rubygems_version: 3.3.11
246
247
  signing_key:
247
248
  specification_version: 4
248
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.7
7
- - 3.0
8
- before_install: gem install bundler
9
- script:
10
- - bundle exec rake spec
11
- - bundle exec rake rubocop