exceptional_synchrony 1.3.0 → 1.3.1

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: d067a2b3a9635740dbee2374a06e772c29ca9a8fe57a61108c94118ac15480bb
4
- data.tar.gz: 665f4bf8ccc1ea699c0d56a4f7d38647c2e3e64e814b736562bf83b69ccd0d25
3
+ metadata.gz: aa270b85777fd65a8aae32439cb7031d28f9204e21fbfc627b7659890f47c966
4
+ data.tar.gz: fea79c101de02959aefb8596b9635f2ccb24266c6173be354465b764264265ea
5
5
  SHA512:
6
- metadata.gz: 9961b1ef53acfb4c94651611871b120279dab3b3564e1841b199a7b2fa1f7a3728bca945517f50964704b0491f9a086192cb857a3205c6008758ecb51a4fb9c5
7
- data.tar.gz: 0a4d64204faf45276aaca59757ad43bb850c75ea668671e92eae251721a19c6b2ce0ecae5b3bb38c8a64179ba41d0b0864bf1a6640de4e234c4c772434bcfca0
6
+ metadata.gz: ed1b737065894c49b88eeaad73f202d8e5b512b117fb36d9ea810f993d201a9999635380f0d2632978b59726c85d0682a589748d82d0fb72b9c5e7e7fd0b52c9
7
+ data.tar.gz: ba46f65a0f74e86806dc40eda128b4b3172219d4c214d0ab697781334d371b7fda9f4f8e1f378d548fc7a053e01d83ea5ea747ea32266fb58ba0c81df4ada212
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.5
1
+ 2.7.5
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ Note: This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0
6
6
 
7
7
  All notable changes to this project will be documented in this file.
8
8
 
9
+ ## [1.3.1] - 2024-03-04
10
+ ### Changed
11
+ - Updated `exception_handling` dependency to allow usage of version 3.0
12
+
9
13
  ## [1.3.0] - 2021-02-04
10
14
  ### Added
11
15
  - Extend `EMP.defer` to have a new keyword argument, `wait_for_result` for the callers to control whether they should should block until the background thread returns. To preserve existing behavior, this option defaults to `true`, so `EMP.defer` will block in order to return the value (or raise an exception) from the deferred block. Callers can pass `wait_for_result: false` if they do not want to block.
data/Gemfile.lock CHANGED
@@ -1,58 +1,42 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- exceptional_synchrony (1.3.0)
4
+ exceptional_synchrony (1.3.1)
5
5
  em-http-request
6
6
  em-synchrony
7
7
  eventmachine
8
- exception_handling (~> 2.2)
8
+ exception_handling (>= 2.2)
9
9
  invoca-utils (~> 0.3)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- actionmailer (6.1.1)
15
- actionpack (= 6.1.1)
16
- actionview (= 6.1.1)
17
- activejob (= 6.1.1)
18
- activesupport (= 6.1.1)
19
- mail (~> 2.5, >= 2.5.4)
20
- rails-dom-testing (~> 2.0)
21
- actionpack (6.1.1)
22
- actionview (= 6.1.1)
23
- activesupport (= 6.1.1)
24
- rack (~> 2.0, >= 2.0.9)
25
- rack-test (>= 0.6.3)
26
- rails-dom-testing (~> 2.0)
27
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
28
- actionview (6.1.1)
29
- activesupport (= 6.1.1)
30
- builder (~> 3.1)
31
- erubi (~> 1.4)
32
- rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
34
- activejob (6.1.1)
35
- activesupport (= 6.1.1)
36
- globalid (>= 0.3.6)
37
- activesupport (6.1.1)
14
+ activesupport (7.1.3.2)
15
+ base64
16
+ bigdecimal
38
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ connection_pool (>= 2.2.5)
19
+ drb
39
20
  i18n (>= 1.6, < 2)
40
21
  minitest (>= 5.1)
22
+ mutex_m
41
23
  tzinfo (~> 2.0)
42
- zeitwerk (~> 2.3)
43
24
  addressable (2.7.0)
44
25
  public_suffix (>= 2.0.2, < 5.0)
45
26
  ansi (1.5.0)
27
+ base64 (0.2.0)
28
+ bigdecimal (3.1.6)
46
29
  builder (3.2.4)
47
30
  coderay (1.1.2)
48
- concurrent-ruby (1.1.8)
49
- contextual_logger (0.11.0)
31
+ concurrent-ruby (1.2.3)
32
+ connection_pool (2.4.1)
33
+ contextual_logger (1.2.0)
50
34
  activesupport
51
35
  json
52
- cookiejar (0.3.3)
36
+ cookiejar (0.3.4)
53
37
  crack (0.4.3)
54
38
  safe_yaml (~> 1.0.0)
55
- crass (1.0.6)
39
+ drb (2.2.1)
56
40
  em-http-request (1.1.7)
57
41
  addressable (>= 2.3.4)
58
42
  cookiejar (!= 0.3.1)
@@ -63,65 +47,45 @@ GEM
63
47
  eventmachine (>= 1.0.0.beta.4)
64
48
  em-synchrony (1.0.6)
65
49
  eventmachine (>= 1.0.0.beta.1)
66
- erubi (1.10.0)
50
+ escalate (0.3.0)
67
51
  eventmachine (1.2.7)
68
- exception_handling (2.8.1)
69
- actionmailer (>= 4.2, < 7.0)
70
- actionpack (>= 4.2, < 7.0)
71
- activesupport (>= 4.2, < 7.0)
72
- contextual_logger (~> 0.7)
73
- eventmachine (~> 1.0)
52
+ exception_handling (3.0.0)
53
+ activesupport (>= 5.2)
54
+ contextual_logger (~> 1.0)
55
+ escalate (~> 0.3)
74
56
  invoca-utils (~> 0.3)
75
- globalid (0.4.2)
76
- activesupport (>= 4.2.0)
57
+ psych (~> 3.0)
77
58
  hashdiff (1.0.1)
78
- http_parser.rb (0.6.0)
79
- i18n (1.8.7)
59
+ http_parser.rb (0.8.0)
60
+ i18n (1.14.1)
80
61
  concurrent-ruby (~> 1.0)
81
- invoca-utils (0.4.1)
82
- json (2.5.1)
83
- loofah (2.9.0)
84
- crass (~> 1.0.2)
85
- nokogiri (>= 1.5.9)
86
- mail (2.7.1)
87
- mini_mime (>= 0.1.1)
62
+ invoca-utils (0.5.1)
63
+ activesupport (>= 5.0)
64
+ json (2.7.1)
88
65
  method_source (1.0.0)
89
- mini_mime (1.0.2)
90
- mini_portile2 (2.5.0)
91
66
  minitest (5.14.0)
92
67
  minitest-reporters (1.4.2)
93
68
  ansi
94
69
  builder
95
70
  minitest (>= 5.0)
96
71
  ruby-progressbar
97
- nokogiri (1.11.1)
98
- mini_portile2 (~> 2.5.0)
99
- racc (~> 1.4)
72
+ mutex_m (0.2.0)
100
73
  pry (0.13.1)
101
74
  coderay (~> 1.1)
102
75
  method_source (~> 1.0)
76
+ psych (3.3.4)
103
77
  public_suffix (4.0.4)
104
- racc (1.5.2)
105
- rack (2.2.3)
106
- rack-test (1.1.0)
107
- rack (>= 1.0, < 3)
108
- rails-dom-testing (2.0.3)
109
- activesupport (>= 4.2.0)
110
- nokogiri (>= 1.6)
111
- rails-html-sanitizer (1.3.0)
112
- loofah (~> 2.3)
113
78
  rake (13.0.1)
114
79
  rr (1.2.1)
115
80
  ruby-progressbar (1.10.1)
116
81
  safe_yaml (1.0.5)
117
82
  thor (1.0.1)
118
- tzinfo (2.0.4)
83
+ tzinfo (2.0.6)
119
84
  concurrent-ruby (~> 1.0)
120
85
  webmock (1.24.6)
121
86
  addressable (>= 2.3.6)
122
87
  crack (>= 0.3.2)
123
88
  hashdiff
124
- zeitwerk (2.4.2)
125
89
 
126
90
  PLATFORMS
127
91
  ruby
@@ -137,4 +101,4 @@ DEPENDENCIES
137
101
  webmock (~> 1.24)
138
102
 
139
103
  BUNDLED WITH
140
- 1.17.3
104
+ 2.3.22
@@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
19
19
  spec.add_dependency 'em-synchrony'
20
20
  spec.add_dependency 'em-http-request'
21
21
  spec.add_dependency 'eventmachine'
22
- spec.add_dependency 'exception_handling', '~> 2.2'
22
+ spec.add_dependency 'exception_handling', '>= 2.2'
23
23
  spec.add_dependency 'invoca-utils', '~> 0.3'
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module ExceptionalSynchrony
2
- VERSION = '1.3.0'
2
+ VERSION = '1.3.1'
3
3
  end
@@ -112,7 +112,7 @@ describe ExceptionalSynchrony::EventMachineProxy do
112
112
  end
113
113
 
114
114
  it "should handle exceptions when not waiting for its block to run" do
115
- mock(ExceptionHandling).log_error(is_a(RuntimeError), "defer", {})
115
+ mock(ExceptionHandling).log_error(is_a(RuntimeError), "defer")
116
116
 
117
117
  @em.run do
118
118
  assert_nil @em.defer("#defer success", wait_for_result: false) { raise RuntimeError, "error in defer" }
@@ -140,19 +140,19 @@ describe ExceptionalSynchrony::EventMachineProxy do
140
140
  end
141
141
 
142
142
  it "add_timer" do
143
- mock(ExceptionHandling).log_error(EXCEPTION, "add_timer", {})
143
+ mock(ExceptionHandling).log_error(EXCEPTION, "add_timer")
144
144
  mock(EventMachine::Synchrony).add_timer(10) { |duration, *args| args.first.call }
145
145
  @em.add_timer(10) { raise EXCEPTION }
146
146
  end
147
147
 
148
148
  it "add_periodic_timer" do
149
- mock(ExceptionHandling).log_error(EXCEPTION, "add_periodic_timer", {})
149
+ mock(ExceptionHandling).log_error(EXCEPTION, "add_periodic_timer")
150
150
  mock(EventMachine::Synchrony).add_periodic_timer(10) { |duration, *args| args.first.call }
151
151
  @em.add_periodic_timer(10) { raise EXCEPTION }
152
152
  end
153
153
 
154
154
  it "next_tick" do
155
- mock(ExceptionHandling).log_error(EXCEPTION, "next_tick", {})
155
+ mock(ExceptionHandling).log_error(EXCEPTION, "next_tick")
156
156
  mock(EventMachine::Synchrony).next_tick { |*args| args.first.call }
157
157
  @em.next_tick { raise EXCEPTION }
158
158
  end
@@ -189,7 +189,7 @@ describe ExceptionalSynchrony::EventMachineProxy do
189
189
 
190
190
  describe "when using #{method} and on_error = :log" do
191
191
  it "should rescue any exceptions and log them" do
192
- mock(ExceptionHandling).log_error(EXCEPTION, "run_with_error_logging", {})
192
+ mock(ExceptionHandling).log_error(EXCEPTION, "run_with_error_logging")
193
193
 
194
194
  @proxy.run(on_error: :log) { raise EXCEPTION }
195
195
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exceptional_synchrony
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca
@@ -56,14 +56,14 @@ dependencies:
56
56
  name: exception_handling
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '2.2'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.2'
69
69
  - !ruby/object:Gem::Dependency
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  requirements: []
133
- rubygems_version: 3.0.3
133
+ rubygems_version: 3.1.6
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: Extensions to EventMachine/Synchrony to work well with exceptions