salesforce_streamer 2.4.0 → 2.5.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: 44577fdf473e9b6522ab3020453442e6e0ff9fe9a260405b711f6bc76cabb7db
4
- data.tar.gz: 8c2ec55c1e067ba5ea86837c1c778a33e5d90003713cc3758977f5de679f126a
3
+ metadata.gz: ee0a8f25e58071aab321354f7a419407d70f764c50c84999406dc20d798df147
4
+ data.tar.gz: 3ba160a1abe2748d2bd54191a36a84de8839f4f590654ef71250fdb59172fe42
5
5
  SHA512:
6
- metadata.gz: d6a0b79d9a2a14e8c666462385e794781037865bae627d1f7bbd018381ed1f3900eb7c726451eb62ca02782b42bee8fdb9c1e3dce9a53c35e7ab724b2607a7f6
7
- data.tar.gz: 891d7f0bafc8ca5490e109afd96408239afeee13c3d8e4cbcde571d9799edf61973981c6c63bc954e32c9fec45bdbd4b22659c9cd3b6070362357ccf58bf399c
6
+ metadata.gz: 04e3729da95d7ab24d3d4ca76f37323fdaecf5dcdcd825d8dbae03fa183126fa5b919f9eb6602e3cf2815700ae1b7479638c850c2628acfe9e9932111c3933bf
7
+ data.tar.gz: af5151cc9d9d38af500085077328afa77a6d63c6786039e29b32942ebafa76074ee67c005bc3aa38d70cefc1bf79c471838c25e62660fc9445fc7b1ddfb3a451
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.2.16
1
+ 2.2.22
data/.travis.yml CHANGED
@@ -3,8 +3,8 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.6
7
6
  - 2.7
7
+ - 3.0
8
8
  before_install: gem install bundler
9
9
  script:
10
10
  - bundle exec rake spec
data/Gemfile.lock CHANGED
@@ -1,16 +1,17 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- salesforce_streamer (2.4.0)
4
+ salesforce_streamer (2.5.0)
5
5
  cookiejar (~> 0.3.0)
6
6
  dry-initializer (~> 3.0)
7
+ eventmachine (~> 1.2)
7
8
  faye (~> 1.4)
8
9
  restforce (~> 5.0)
9
10
 
10
11
  GEM
11
12
  remote: https://rubygems.org/
12
13
  specs:
13
- addressable (2.7.0)
14
+ addressable (2.8.0)
14
15
  public_suffix (>= 2.0.2, < 5.0)
15
16
  ast (2.4.2)
16
17
  byebug (11.1.3)
@@ -18,7 +19,7 @@ GEM
18
19
  simplecov (>= 0.15, < 0.22)
19
20
  cookiejar (0.3.3)
20
21
  diff-lcs (1.4.4)
21
- docile (1.3.5)
22
+ docile (1.4.0)
22
23
  dry-initializer (3.0.4)
23
24
  em-http-request (1.1.7)
24
25
  addressable (>= 2.3.4)
@@ -29,15 +30,23 @@ GEM
29
30
  em-socksify (0.3.2)
30
31
  eventmachine (>= 1.0.0.beta.4)
31
32
  eventmachine (1.2.7)
32
- faraday (1.4.1)
33
+ faraday (1.5.0)
34
+ faraday-em_http (~> 1.0)
35
+ faraday-em_synchrony (~> 1.0)
33
36
  faraday-excon (~> 1.1)
37
+ faraday-httpclient (~> 1.0.1)
34
38
  faraday-net_http (~> 1.0)
35
39
  faraday-net_http_persistent (~> 1.1)
40
+ faraday-patron (~> 1.0)
36
41
  multipart-post (>= 1.2, < 3)
37
42
  ruby2_keywords (>= 0.0.4)
43
+ faraday-em_http (1.0.0)
44
+ faraday-em_synchrony (1.0.0)
38
45
  faraday-excon (1.1.0)
46
+ faraday-httpclient (1.0.1)
39
47
  faraday-net_http (1.0.1)
40
48
  faraday-net_http_persistent (1.1.0)
49
+ faraday-patron (1.0.0)
41
50
  faraday_middleware (1.0.0)
42
51
  faraday (~> 1.0)
43
52
  faye (1.4.0)
@@ -48,11 +57,11 @@ GEM
48
57
  multi_json (>= 1.0.0)
49
58
  rack (>= 1.0.0)
50
59
  websocket-driver (>= 0.5.1)
51
- faye-websocket (0.11.0)
60
+ faye-websocket (0.11.1)
52
61
  eventmachine (>= 0.12.0)
53
62
  websocket-driver (>= 0.5.1)
54
63
  hashie (4.1.0)
55
- http_parser.rb (0.6.0)
64
+ http_parser.rb (0.7.0)
56
65
  jwt (2.2.3)
57
66
  multi_json (1.15.0)
58
67
  multipart-post (2.1.1)
@@ -62,9 +71,9 @@ GEM
62
71
  public_suffix (4.0.6)
63
72
  rack (2.2.3)
64
73
  rainbow (3.0.0)
65
- rake (13.0.3)
74
+ rake (13.0.4)
66
75
  regexp_parser (2.1.1)
67
- restforce (5.0.5)
76
+ restforce (5.0.6)
68
77
  faraday (>= 0.9.0, <= 2.0)
69
78
  faraday_middleware (>= 0.8.8, <= 2.0)
70
79
  hashie (>= 1.2.0, < 5.0)
@@ -83,20 +92,20 @@ GEM
83
92
  diff-lcs (>= 1.2.0, < 2.0)
84
93
  rspec-support (~> 3.10.0)
85
94
  rspec-support (3.10.2)
86
- rubocop (1.14.0)
95
+ rubocop (1.18.3)
87
96
  parallel (~> 1.10)
88
97
  parser (>= 3.0.0.0)
89
98
  rainbow (>= 2.2.2, < 4.0)
90
99
  regexp_parser (>= 1.8, < 3.0)
91
100
  rexml
92
- rubocop-ast (>= 1.5.0, < 2.0)
101
+ rubocop-ast (>= 1.7.0, < 2.0)
93
102
  ruby-progressbar (~> 1.7)
94
103
  unicode-display_width (>= 1.4.0, < 3.0)
95
- rubocop-ast (1.5.0)
104
+ rubocop-ast (1.7.0)
96
105
  parser (>= 3.0.1.1)
97
- rubocop-rake (0.5.1)
98
- rubocop
99
- rubocop-rspec (2.3.0)
106
+ rubocop-rake (0.6.0)
107
+ rubocop (~> 1.0)
108
+ rubocop-rspec (2.4.0)
100
109
  rubocop (~> 1.0)
101
110
  rubocop-ast (>= 1.1.0)
102
111
  ruby-progressbar (1.11.0)
@@ -108,7 +117,7 @@ GEM
108
117
  simplecov-html (0.12.3)
109
118
  simplecov_json_formatter (0.1.3)
110
119
  unicode-display_width (2.0.0)
111
- websocket-driver (0.7.3)
120
+ websocket-driver (0.7.5)
112
121
  websocket-extensions (>= 0.1.0)
113
122
  websocket-extensions (0.1.5)
114
123
 
@@ -128,4 +137,4 @@ DEPENDENCIES
128
137
  salesforce_streamer!
129
138
 
130
139
  BUNDLED WITH
131
- 2.2.16
140
+ 2.2.22
@@ -47,7 +47,7 @@ module CookieJar
47
47
  raise unless $ERROR_INFO.message == 'time out of range'
48
48
  args[:expires_at] = Time.at(0x7FFFFFFF)
49
49
  end
50
- when :"max-age"
50
+ when :'max-age'
51
51
  args[:max_age] = keyvalue.to_i
52
52
  when :domain, :path
53
53
  args[key] = keyvalue
@@ -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'.freeze
2
+ VERSION = '2.5.0'.freeze
3
3
  end
@@ -29,6 +29,9 @@ Gem::Specification.new do |spec|
29
29
  spec.add_dependency 'dry-initializer', '~> 3.0'
30
30
  spec.add_dependency 'faye', '~> 1.4'
31
31
  spec.add_dependency 'restforce', '~> 5.0'
32
+ # # When you have issues installing eventmachine on osx and ruby 3, try:
33
+ # gem install eventmachine -- --with-openssl-dir=/usr/local/opt/openssl@1.1
34
+ spec.add_dependency 'eventmachine', '~> 1.2'
32
35
 
33
36
  spec.add_development_dependency 'byebug'
34
37
  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
4
+ version: 2.5.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-05-09 00:00:00.000000000 Z
12
+ date: 2021-07-08 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: '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'
70
84
  - !ruby/object:Gem::Dependency
71
85
  name: byebug
72
86
  requirement: !ruby/object:Gem::Requirement
@@ -228,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
242
  - !ruby/object:Gem::Version
229
243
  version: '0'
230
244
  requirements: []
231
- rubygems_version: 3.2.16
245
+ rubygems_version: 3.2.15
232
246
  signing_key:
233
247
  specification_version: 4
234
248
  summary: A wrapper around the Restforce Streaming API with a built-in PushTopic manager.