exceptional_synchrony 1.4.4 → 1.4.6

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: 64473ec4185310154722e87211ea7c14db497e67d3f877a80b8fa260d0300453
4
- data.tar.gz: 3f3c9d2a18c80120bde2264d515db9cf46d40e3177fc66ea5db15df65c4154f4
3
+ metadata.gz: b71be2de82429b47ed818b7917462ca97ce84536ed1ad21ac9d6783fe5c64468
4
+ data.tar.gz: '08885035983ed422cf14209229905892fb26fc1a760107e55f6baea1ccff7c59'
5
5
  SHA512:
6
- metadata.gz: b63d62a1d09d4976caca3a3c8c5734a8567a97910970042262cab2c11b71b7aa512bc53294222ec47a1cd60b2335085b9137a1de256696f238613cc79c39ee45
7
- data.tar.gz: 488170dc367327780a3e6ccd494c05df45f75cfd2b7f1d16a293046c4012b87b63f92bcc9097414b2026a7d002f0236710ad35a54f35dcc90d09f311fb198b64
6
+ metadata.gz: 82fafb9ad1d90c3bacb2d4f73e2c9282240678ae1931c1acc1131f5fd6297a062cc977a83348d05b692c65d15b081198b91b50f6af8cbe7b9ba32a833df379cc
7
+ data.tar.gz: cbfbbe45d7e759bac61530d0a94c82c55d6986289177145709024f57217b9b0c759d63f4560359c7e52db958fff5c0c2d84ce947632519ff2da226b18cf1da86
@@ -0,0 +1 @@
1
+ * @Invoca/octothorpe
@@ -8,13 +8,13 @@ jobs:
8
8
  strategy:
9
9
  fail-fast: false
10
10
  matrix:
11
- ruby: [2.6.5]
11
+ ruby: [3.1, 3.2, 3.3]
12
12
  steps:
13
13
  - uses: actions/checkout@v2
14
14
  - uses: ruby/setup-ruby@v1
15
15
  with:
16
16
  ruby-version: ${{ matrix.ruby }}
17
- bundler: 1.17.3
17
+ bundler: 2.2.29
18
18
  bundler-cache: true
19
19
  - name: Unit tests
20
20
  run: bundle exec rake
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.5
1
+ 3.1.6
data/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ 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.4.6] - Unreleased
10
+ ### Changed
11
+ - Loosed dependency on `exception_handling` to remove upper bound.
12
+
13
+ ## [1.4.5] - 2024-02-29
14
+ ### Changed
15
+ - Updated dependency on `exception_handling` to allow for the latest version.
16
+
9
17
  ## [1.4.4] - 2022-03-25
10
18
  ### Changed
11
19
  - Default unused defer(context) argument to nil.
data/Gemfile CHANGED
@@ -10,6 +10,7 @@ group :development do
10
10
  gem 'minitest-reporters'
11
11
  gem 'pry'
12
12
  gem 'rake'
13
+ gem 'rexml'
13
14
  gem 'rr', '~> 1.2'
14
15
  gem 'thor'
15
16
  gem 'webmock', '~> 1.24'
data/Gemfile.lock CHANGED
@@ -1,58 +1,43 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- exceptional_synchrony (1.4.4)
4
+ exceptional_synchrony (1.4.6)
5
5
  em-http-request
6
6
  em-synchrony
7
7
  eventmachine
8
- exception_handling (~> 2.10)
8
+ exception_handling (>= 2.10)
9
9
  invoca-utils (~> 0.3)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- actionmailer (6.1.5)
15
- actionpack (= 6.1.5)
16
- actionview (= 6.1.5)
17
- activejob (= 6.1.5)
18
- activesupport (= 6.1.5)
19
- mail (~> 2.5, >= 2.5.4)
20
- rails-dom-testing (~> 2.0)
21
- actionpack (6.1.5)
22
- actionview (= 6.1.5)
23
- activesupport (= 6.1.5)
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.5)
29
- activesupport (= 6.1.5)
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.5)
35
- activesupport (= 6.1.5)
36
- globalid (>= 0.3.6)
37
- activesupport (6.1.5)
14
+ activesupport (7.1.3.4)
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
- addressable (2.7.0)
44
- public_suffix (>= 2.0.2, < 5.0)
24
+ addressable (2.8.7)
25
+ public_suffix (>= 2.0.2, < 7.0)
45
26
  ansi (1.5.0)
46
- builder (3.2.4)
47
- coderay (1.1.2)
48
- concurrent-ruby (1.1.10)
49
- contextual_logger (0.11.0)
50
- activesupport
27
+ base64 (0.2.0)
28
+ bigdecimal (3.1.8)
29
+ builder (3.3.0)
30
+ coderay (1.1.3)
31
+ concurrent-ruby (1.3.3)
32
+ connection_pool (2.4.1)
33
+ contextual_logger (1.4.0)
34
+ activesupport (>= 6.0)
51
35
  json
52
- cookiejar (0.3.3)
53
- crack (0.4.3)
54
- safe_yaml (~> 1.0.0)
55
- crass (1.0.6)
36
+ cookiejar (0.3.4)
37
+ crack (1.0.0)
38
+ bigdecimal
39
+ rexml
40
+ drb (2.2.1)
56
41
  em-http-request (1.1.7)
57
42
  addressable (>= 2.3.4)
58
43
  cookiejar (!= 0.3.1)
@@ -63,67 +48,49 @@ GEM
63
48
  eventmachine (>= 1.0.0.beta.4)
64
49
  em-synchrony (1.0.6)
65
50
  eventmachine (>= 1.0.0.beta.1)
66
- erubi (1.10.0)
67
51
  escalate (0.3.0)
68
52
  eventmachine (1.2.7)
69
- exception_handling (2.10.0)
70
- actionmailer (>= 4.2, < 7.0)
71
- actionpack (>= 4.2, < 7.0)
72
- activesupport (>= 4.2, < 7.0)
73
- contextual_logger (~> 0.7)
53
+ exception_handling (3.1.2)
54
+ activesupport (>= 5.2)
55
+ contextual_logger (~> 1.0)
74
56
  escalate (~> 0.3)
75
- eventmachine (~> 1.0)
76
57
  invoca-utils (~> 0.3)
77
- globalid (1.0.0)
78
- activesupport (>= 5.0)
79
- hashdiff (1.0.1)
58
+ psych (>= 3.2)
59
+ hashdiff (1.1.0)
80
60
  http_parser.rb (0.8.0)
81
- i18n (1.10.0)
61
+ i18n (1.14.5)
82
62
  concurrent-ruby (~> 1.0)
83
- invoca-utils (0.4.1)
84
- json (2.6.1)
85
- loofah (2.15.0)
86
- crass (~> 1.0.2)
87
- nokogiri (>= 1.5.9)
88
- mail (2.7.1)
89
- mini_mime (>= 0.1.1)
90
- method_source (1.0.0)
91
- mini_mime (1.1.2)
92
- mini_portile2 (2.8.0)
93
- minitest (5.15.0)
94
- minitest-reporters (1.4.2)
63
+ invoca-utils (0.6.0)
64
+ activesupport (>= 6.0)
65
+ json (2.7.2)
66
+ method_source (1.1.0)
67
+ minitest (5.24.1)
68
+ minitest-reporters (1.7.1)
95
69
  ansi
96
70
  builder
97
71
  minitest (>= 5.0)
98
72
  ruby-progressbar
99
- nokogiri (1.13.3)
100
- mini_portile2 (~> 2.8.0)
101
- racc (~> 1.4)
102
- pry (0.13.1)
73
+ mutex_m (0.2.0)
74
+ pry (0.14.2)
103
75
  coderay (~> 1.1)
104
76
  method_source (~> 1.0)
105
- public_suffix (4.0.4)
106
- racc (1.6.0)
107
- rack (2.2.3)
108
- rack-test (1.1.0)
109
- rack (>= 1.0, < 3)
110
- rails-dom-testing (2.0.3)
111
- activesupport (>= 4.2.0)
112
- nokogiri (>= 1.6)
113
- rails-html-sanitizer (1.4.2)
114
- loofah (~> 2.3)
115
- rake (13.0.1)
77
+ psych (5.1.2)
78
+ stringio
79
+ public_suffix (6.0.0)
80
+ rake (13.2.1)
81
+ rexml (3.3.1)
82
+ strscan
116
83
  rr (1.2.1)
117
- ruby-progressbar (1.10.1)
118
- safe_yaml (1.0.5)
119
- thor (1.0.1)
120
- tzinfo (2.0.4)
84
+ ruby-progressbar (1.13.0)
85
+ stringio (3.1.1)
86
+ strscan (3.1.0)
87
+ thor (1.3.1)
88
+ tzinfo (2.0.6)
121
89
  concurrent-ruby (~> 1.0)
122
90
  webmock (1.24.6)
123
91
  addressable (>= 2.3.6)
124
92
  crack (>= 0.3.2)
125
93
  hashdiff
126
- zeitwerk (2.5.4)
127
94
 
128
95
  PLATFORMS
129
96
  ruby
@@ -134,9 +101,10 @@ DEPENDENCIES
134
101
  minitest-reporters
135
102
  pry
136
103
  rake
104
+ rexml
137
105
  rr (~> 1.2)
138
106
  thor
139
107
  webmock (~> 1.24)
140
108
 
141
109
  BUNDLED WITH
142
- 1.17.3
110
+ 2.3.22
data/catalog-info.yaml ADDED
@@ -0,0 +1,35 @@
1
+ # This file is partially auto-generated by the invoca-backstage-tools gem
2
+ # The following fields should not be edited manually as they are auto-generated
3
+ # based on the contents of the repo:
4
+ # - metadata.name
5
+ # - metadata.title
6
+ # - metadata.description
7
+ # - annotations.github.com/project-slug
8
+ # - invoca.com/version-repository-location
9
+ # - invoca.com/version-repository-name
10
+ # - spec.type
11
+ # - spec.owner
12
+ ---
13
+ apiVersion: backstage.io/v1alpha1
14
+ kind: Component
15
+ metadata:
16
+ name: exceptional_synchrony-gem
17
+ title: ExceptionalSynchrony
18
+ annotations:
19
+ buildkite.com/project-slug: Invoca/exceptional_synchrony
20
+ github.com/project-slug: Invoca/exceptional_synchrony
21
+ invoca.com/version-repository-location: rubygems
22
+ invoca.com/version-repository-name: exceptional_synchrony
23
+ endoflife.date/products: ruby@3.3
24
+ tags:
25
+ - ruby
26
+ - open-source
27
+ - gem
28
+ description: ''
29
+ spec:
30
+ type: library
31
+ lifecycle: production
32
+ owner: octothorpe
33
+ dependsOn:
34
+ - component:exception_handling-gem
35
+ - component:invoca-utils-gem
@@ -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.10'
22
+ spec.add_dependency 'exception_handling', '>= 2.10'
23
23
  spec.add_dependency 'invoca-utils', '~> 0.3'
24
24
  end
@@ -68,7 +68,7 @@ module ExceptionalSynchrony
68
68
  end
69
69
 
70
70
  def error_is_a_timeout?(error)
71
- error =~ /timeout/i || error == Errno::ETIMEDOUT
71
+ error.to_s =~ /timeout/i || error == Errno::ETIMEDOUT
72
72
  end
73
73
  end
74
74
  end
@@ -1,3 +1,3 @@
1
1
  module ExceptionalSynchrony
2
- VERSION = '1.4.4'
2
+ VERSION = '1.4.6'
3
3
  end
@@ -120,7 +120,7 @@ describe ExceptionalSynchrony::EventMachineProxy do
120
120
  end
121
121
 
122
122
  it "should handle exceptions when not waiting for its block to run" do
123
- mock(ExceptionHandling).log_error(is_a(RuntimeError), "defer", {})
123
+ mock(ExceptionHandling).log_error(is_a(RuntimeError), "defer")
124
124
 
125
125
  @em.run do
126
126
  assert_nil @em.defer(wait_for_result: false) { raise RuntimeError, "error in defer" }
@@ -148,19 +148,19 @@ describe ExceptionalSynchrony::EventMachineProxy do
148
148
  end
149
149
 
150
150
  it "add_timer" do
151
- mock(ExceptionHandling).log_error(EXCEPTION, "add_timer", {})
151
+ mock(ExceptionHandling).log_error(EXCEPTION, "add_timer")
152
152
  mock(EventMachine::Synchrony).add_timer(10) { |duration, *args| args.first.call }
153
153
  @em.add_timer(10) { raise EXCEPTION }
154
154
  end
155
155
 
156
156
  it "add_periodic_timer" do
157
- mock(ExceptionHandling).log_error(EXCEPTION, "add_periodic_timer", {})
157
+ mock(ExceptionHandling).log_error(EXCEPTION, "add_periodic_timer")
158
158
  mock(EventMachine::Synchrony).add_periodic_timer(10) { |duration, *args| args.first.call }
159
159
  @em.add_periodic_timer(10) { raise EXCEPTION }
160
160
  end
161
161
 
162
162
  it "next_tick" do
163
- mock(ExceptionHandling).log_error(EXCEPTION, "next_tick", {})
163
+ mock(ExceptionHandling).log_error(EXCEPTION, "next_tick")
164
164
  mock(EventMachine::Synchrony).next_tick { |*args| args.first.call }
165
165
  @em.next_tick { raise EXCEPTION }
166
166
  end
@@ -210,7 +210,7 @@ describe ExceptionalSynchrony::EventMachineProxy do
210
210
 
211
211
  describe "when using #{method} and on_error = :log" do
212
212
  it "should rescue any exceptions and log them" do
213
- mock(ExceptionHandling).log_error(EXCEPTION, "run_with_error_logging", {})
213
+ mock(ExceptionHandling).log_error(EXCEPTION, "run_with_error_logging")
214
214
 
215
215
  @proxy.run(on_error: :log) { raise EXCEPTION }
216
216
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exceptional_synchrony
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2014-01-16 00:00:00.000000000 Z
@@ -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.10'
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.10'
69
69
  - !ruby/object:Gem::Dependency
@@ -87,6 +87,7 @@ extensions: []
87
87
  extra_rdoc_files: []
88
88
  files:
89
89
  - ".dependabot/config.yml"
90
+ - ".github/CODEOWNERS"
90
91
  - ".github/workflows/pipeline.yml"
91
92
  - ".gitignore"
92
93
  - ".ruby-gemset"
@@ -96,6 +97,7 @@ files:
96
97
  - Gemfile.lock
97
98
  - README.md
98
99
  - Rakefile
100
+ - catalog-info.yaml
99
101
  - exceptional_synchrony.gemspec
100
102
  - lib/exceptional_synchrony.rb
101
103
  - lib/exceptional_synchrony/callback_exceptions.rb
@@ -115,7 +117,7 @@ licenses:
115
117
  metadata:
116
118
  source_code_uri: https://github.com/Invoca/exceptional_synchrony
117
119
  allowed_push_host: https://rubygems.org
118
- post_install_message:
120
+ post_install_message:
119
121
  rdoc_options: []
120
122
  require_paths:
121
123
  - lib
@@ -130,8 +132,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
132
  - !ruby/object:Gem::Version
131
133
  version: '0'
132
134
  requirements: []
133
- rubygems_version: 3.0.3
134
- signing_key:
135
+ rubygems_version: 3.3.27
136
+ signing_key:
135
137
  specification_version: 4
136
138
  summary: Extensions to EventMachine/Synchrony to work well with exceptions
137
139
  test_files: []