exception_handling 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.jenkins/Jenkinsfile +59 -0
- data/.jenkins/ruby_build_pod.yml +18 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +11 -0
- data/Gemfile +8 -16
- data/Gemfile.lock +19 -49
- data/Rakefile +4 -10
- data/exception_handling.gemspec +1 -2
- data/lib/exception_handling.rb +1 -1
- data/lib/exception_handling/honeybadger_callbacks.rb +1 -1
- data/lib/exception_handling/version.rb +1 -1
- data/test/test_helper.rb +3 -2
- metadata +8 -21
- data/semaphore_ci/setup.sh +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 59c756149958cc585d26d470b83d28eae00adf19c3d7e6a5ac0e19ea28e301bb
|
4
|
+
data.tar.gz: 374842c72bdb92b8e4e311aca9c9021016c907fc1b9bc1679c89fb0a4932bce8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 378b6795aa9d7c3819bc9890467f2318e17414d34ddfd28ab7a1c6e91ee6ac74c8fd22a429c7ea29cec928a4ba9ac5489451bd24533ef1b0da6b1b533b3dc5d9
|
7
|
+
data.tar.gz: 051a52b1b5a43a6e38ebfb6f6a1f293d0e35846dea8741f0c392a7fe22adc16b4f5692eabad4ec4b685e70047f2e82eb28cca3bb417fc8bf7357fbd8b723ffdf
|
data/.gitignore
CHANGED
@@ -0,0 +1,59 @@
|
|
1
|
+
#!/usr/bin/groovy
|
2
|
+
@Library('jenkins-pipeline@v0.4.5')
|
3
|
+
import com.invoca.docker.*;
|
4
|
+
pipeline {
|
5
|
+
agent {
|
6
|
+
kubernetes {
|
7
|
+
defaultContainer "ruby"
|
8
|
+
yamlFile ".jenkins/ruby_build_pod.yml"
|
9
|
+
}
|
10
|
+
}
|
11
|
+
|
12
|
+
environment {
|
13
|
+
GITHUB_TOKEN = credentials('github_token')
|
14
|
+
GITHUB_KEY = credentials('github_key')
|
15
|
+
BUNDLE_GEM__FURY__IO = credentials('gemfury_deploy_token')
|
16
|
+
}
|
17
|
+
|
18
|
+
stages {
|
19
|
+
stage('Setup') {
|
20
|
+
steps {
|
21
|
+
script {
|
22
|
+
sh '''
|
23
|
+
# get SSH setup inside the container
|
24
|
+
eval `ssh-agent -s`
|
25
|
+
echo "$GITHUB_KEY" | ssh-add -
|
26
|
+
mkdir -p /root/.ssh
|
27
|
+
ssh-keyscan -t rsa github.com > /root/.ssh/known_hosts
|
28
|
+
|
29
|
+
bundle install
|
30
|
+
'''
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
stage('Unit Test') {
|
35
|
+
steps {
|
36
|
+
script {
|
37
|
+
sh 'bundle exec rake'
|
38
|
+
}
|
39
|
+
}
|
40
|
+
post {
|
41
|
+
always { junit '*/reports/*.xml' }
|
42
|
+
success { updateGitHubStatus('clean-build', 'success', 'Unit tests.') }
|
43
|
+
failure { updateGitHubStatus('clean-build', 'failure', 'Unit tests.') }
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
void updateGitHubStatus(String context, String status, String description) {
|
50
|
+
gitHubStatus([
|
51
|
+
repoSlug: 'Invoca/exception_handling',
|
52
|
+
sha: env.GIT_COMMIT,
|
53
|
+
description: description,
|
54
|
+
context: context,
|
55
|
+
targetURL: env.BUILD_URL,
|
56
|
+
token: env.GITHUB_TOKEN,
|
57
|
+
status: status
|
58
|
+
])
|
59
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
apiVersion: v1
|
3
|
+
kind: Pod
|
4
|
+
metadata:
|
5
|
+
labels:
|
6
|
+
jenkins/exception-handling: 'true'
|
7
|
+
namespace: jenkins
|
8
|
+
name: exception-handling
|
9
|
+
spec:
|
10
|
+
containers:
|
11
|
+
- name: ruby
|
12
|
+
image: ruby:2.6.5
|
13
|
+
tty: true
|
14
|
+
resources:
|
15
|
+
requests:
|
16
|
+
memory: "100Mi"
|
17
|
+
command:
|
18
|
+
- cat
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6.5
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# CHANGELOG for `exception_handling`
|
2
|
+
|
3
|
+
Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
4
|
+
|
5
|
+
Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
## [2.4.1] - 2020-04-29
|
8
|
+
### Changed
|
9
|
+
- No longer depends on hobo_support. Uses invoca-utils 0.3 instead.
|
10
|
+
|
11
|
+
[2.4.1]: https://github.com/Invoca/exception_handling/compare/v2.4.0...v2.4.1
|
data/Gemfile
CHANGED
@@ -2,21 +2,13 @@
|
|
2
2
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
|
5
|
-
# Specify your gem's dependencies in attr_default.gemspec
|
6
5
|
gemspec
|
7
6
|
|
8
|
-
gem '
|
9
|
-
gem
|
10
|
-
gem
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
gem 'rubocop'
|
17
|
-
gem 'shoulda', '> 3.1.1'
|
18
|
-
end
|
19
|
-
|
20
|
-
group :test do
|
21
|
-
gem 'honeybadger', '3.3.1-1', git: 'git@github.com:Invoca/honeybadger-ruby', ref: 'bb5f2b8a86e4147c38a6270d39ad610fab4dd5e6'
|
22
|
-
end
|
7
|
+
gem 'honeybadger', '3.3.1-1', git: 'git@github.com:Invoca/honeybadger-ruby', ref: 'bb5f2b8a86e4147c38a6270d39ad610fab4dd5e6'
|
8
|
+
gem "minitest"
|
9
|
+
gem "minitest-reporters"
|
10
|
+
gem 'pry'
|
11
|
+
gem 'rake'
|
12
|
+
gem 'rr'
|
13
|
+
gem 'rubocop'
|
14
|
+
gem 'shoulda'
|
data/Gemfile.lock
CHANGED
@@ -8,14 +8,13 @@ GIT
|
|
8
8
|
PATH
|
9
9
|
remote: .
|
10
10
|
specs:
|
11
|
-
exception_handling (2.4.
|
11
|
+
exception_handling (2.4.1)
|
12
12
|
actionmailer (~> 4.2)
|
13
13
|
actionpack (~> 4.2)
|
14
14
|
activesupport (~> 4.2)
|
15
15
|
contextual_logger
|
16
16
|
eventmachine (~> 1.0)
|
17
|
-
|
18
|
-
invoca-utils (~> 0.0)
|
17
|
+
invoca-utils (~> 0.3)
|
19
18
|
|
20
19
|
GEM
|
21
20
|
remote: https://rubygems.org/
|
@@ -42,39 +41,30 @@ GEM
|
|
42
41
|
activejob (4.2.11.1)
|
43
42
|
activesupport (= 4.2.11.1)
|
44
43
|
globalid (>= 0.3.0)
|
45
|
-
activemodel (4.2.11.1)
|
46
|
-
activesupport (= 4.2.11.1)
|
47
|
-
builder (~> 3.1)
|
48
|
-
activerecord (4.2.11.1)
|
49
|
-
activemodel (= 4.2.11.1)
|
50
|
-
activesupport (= 4.2.11.1)
|
51
|
-
arel (~> 6.0)
|
52
44
|
activesupport (4.2.11.1)
|
53
45
|
i18n (~> 0.7)
|
54
46
|
minitest (~> 5.1)
|
55
47
|
thread_safe (~> 0.3, >= 0.3.4)
|
56
48
|
tzinfo (~> 1.1)
|
57
|
-
|
49
|
+
ansi (1.5.0)
|
58
50
|
ast (2.4.0)
|
59
51
|
builder (3.2.3)
|
60
52
|
coderay (1.1.2)
|
61
53
|
concurrent-ruby (1.1.5)
|
62
|
-
contextual_logger (0.
|
54
|
+
contextual_logger (0.6.1)
|
63
55
|
activesupport
|
64
56
|
json
|
65
|
-
crass (1.0.
|
57
|
+
crass (1.0.6)
|
66
58
|
erubis (2.7.0)
|
67
59
|
eventmachine (1.2.7)
|
68
60
|
globalid (0.4.2)
|
69
61
|
activesupport (>= 4.2.0)
|
70
|
-
hobo_support (2.2.6)
|
71
|
-
rails (~> 4.2.6)
|
72
62
|
i18n (0.9.5)
|
73
63
|
concurrent-ruby (~> 1.0)
|
74
|
-
invoca-utils (0.0
|
64
|
+
invoca-utils (0.3.0)
|
75
65
|
jaro_winkler (1.5.3)
|
76
66
|
json (2.3.0)
|
77
|
-
loofah (2.
|
67
|
+
loofah (2.4.0)
|
78
68
|
crass (~> 1.0.2)
|
79
69
|
nokogiri (>= 1.5.9)
|
80
70
|
mail (2.7.1)
|
@@ -83,7 +73,12 @@ GEM
|
|
83
73
|
mini_mime (1.0.1)
|
84
74
|
mini_portile2 (2.4.0)
|
85
75
|
minitest (5.11.3)
|
86
|
-
|
76
|
+
minitest-reporters (1.0.20)
|
77
|
+
ansi
|
78
|
+
builder
|
79
|
+
minitest (>= 5.0)
|
80
|
+
ruby-progressbar
|
81
|
+
nokogiri (1.10.9)
|
87
82
|
mini_portile2 (~> 2.4.0)
|
88
83
|
parallel (1.17.0)
|
89
84
|
parser (2.6.3.0)
|
@@ -91,20 +86,9 @@ GEM
|
|
91
86
|
pry (0.12.2)
|
92
87
|
coderay (~> 1.1.0)
|
93
88
|
method_source (~> 0.9.0)
|
94
|
-
rack (1.6.
|
89
|
+
rack (1.6.12)
|
95
90
|
rack-test (0.6.3)
|
96
91
|
rack (>= 1.0)
|
97
|
-
rails (4.2.11.1)
|
98
|
-
actionmailer (= 4.2.11.1)
|
99
|
-
actionpack (= 4.2.11.1)
|
100
|
-
actionview (= 4.2.11.1)
|
101
|
-
activejob (= 4.2.11.1)
|
102
|
-
activemodel (= 4.2.11.1)
|
103
|
-
activerecord (= 4.2.11.1)
|
104
|
-
activesupport (= 4.2.11.1)
|
105
|
-
bundler (>= 1.3.0, < 2.0)
|
106
|
-
railties (= 4.2.11.1)
|
107
|
-
sprockets-rails
|
108
92
|
rails-deprecated_sanitizer (1.0.3)
|
109
93
|
activesupport (>= 4.2.0.alpha)
|
110
94
|
rails-dom-testing (1.0.9)
|
@@ -113,13 +97,8 @@ GEM
|
|
113
97
|
rails-deprecated_sanitizer (>= 1.0.1)
|
114
98
|
rails-html-sanitizer (1.0.4)
|
115
99
|
loofah (~> 2.2, >= 2.2.2)
|
116
|
-
railties (4.2.11.1)
|
117
|
-
actionpack (= 4.2.11.1)
|
118
|
-
activesupport (= 4.2.11.1)
|
119
|
-
rake (>= 0.8.7)
|
120
|
-
thor (>= 0.18.1, < 2.0)
|
121
100
|
rainbow (3.0.0)
|
122
|
-
rake (
|
101
|
+
rake (13.0.1)
|
123
102
|
rr (1.2.1)
|
124
103
|
rubocop (0.74.0)
|
125
104
|
jaro_winkler (~> 1.5.1)
|
@@ -135,14 +114,6 @@ GEM
|
|
135
114
|
shoulda-context (1.2.2)
|
136
115
|
shoulda-matchers (3.1.3)
|
137
116
|
activesupport (>= 4.0.0)
|
138
|
-
sprockets (3.7.2)
|
139
|
-
concurrent-ruby (~> 1.0)
|
140
|
-
rack (> 1, < 3)
|
141
|
-
sprockets-rails (3.2.1)
|
142
|
-
actionpack (>= 4.0)
|
143
|
-
activesupport (>= 4.0)
|
144
|
-
sprockets (>= 3.0.0)
|
145
|
-
thor (1.0.1)
|
146
117
|
thread_safe (0.3.6)
|
147
118
|
tzinfo (1.2.5)
|
148
119
|
thread_safe (~> 0.1)
|
@@ -152,16 +123,15 @@ PLATFORMS
|
|
152
123
|
ruby
|
153
124
|
|
154
125
|
DEPENDENCIES
|
155
|
-
actionmailer (>= 4.2.11.1)
|
156
|
-
actionpack (>= 4.2.11.1)
|
157
|
-
activesupport (>= 4.2.11.1)
|
158
126
|
exception_handling!
|
159
127
|
honeybadger (= 3.3.1.pre.1)!
|
128
|
+
minitest
|
129
|
+
minitest-reporters
|
160
130
|
pry
|
161
|
-
rake
|
131
|
+
rake
|
162
132
|
rr
|
163
133
|
rubocop
|
164
|
-
shoulda
|
134
|
+
shoulda
|
165
135
|
|
166
136
|
BUNDLED WITH
|
167
137
|
1.17.3
|
data/Rakefile
CHANGED
@@ -4,15 +4,9 @@
|
|
4
4
|
require "bundler/gem_tasks"
|
5
5
|
require 'rake/testtask'
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
t.pattern = 'test/unit/**/*_test.rb'
|
12
|
-
t.verbose = true
|
13
|
-
end
|
14
|
-
Rake::Task['test:unit'].comment = "Run the unit tests"
|
7
|
+
task default: :test
|
8
|
+
|
9
|
+
Rake::TestTask.new do |t|
|
10
|
+
t.pattern = "test/**/*_test.rb"
|
15
11
|
end
|
16
12
|
|
17
|
-
task test: 'test:unit'
|
18
|
-
task default: 'test'
|
data/exception_handling.gemspec
CHANGED
@@ -25,6 +25,5 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_dependency 'activesupport', '~> 4.2'
|
26
26
|
spec.add_dependency 'contextual_logger'
|
27
27
|
spec.add_dependency 'eventmachine', '~> 1.0'
|
28
|
-
spec.add_dependency '
|
29
|
-
spec.add_dependency 'invoca-utils', '~> 0.0'
|
28
|
+
spec.add_dependency 'invoca-utils', '~> 0.3'
|
30
29
|
end
|
data/lib/exception_handling.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -3,13 +3,14 @@
|
|
3
3
|
require 'active_support'
|
4
4
|
require 'active_support/time'
|
5
5
|
require 'active_support/test_case'
|
6
|
-
require 'active_model'
|
7
6
|
require 'action_mailer'
|
8
7
|
require 'action_dispatch'
|
9
|
-
require 'hobo_support'
|
10
8
|
require 'shoulda'
|
11
9
|
require 'rr'
|
12
10
|
require 'minitest/autorun'
|
11
|
+
require "minitest/reporters"
|
12
|
+
Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new, Minitest::Reporters::JUnitReporter.new]
|
13
|
+
|
13
14
|
require 'pry'
|
14
15
|
require 'honeybadger'
|
15
16
|
require 'contextual_logger'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exception_handling
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Invoca
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|
@@ -80,34 +80,20 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '1.0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: hobo_support
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: invoca-utils
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
87
|
- - "~>"
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0.
|
89
|
+
version: '0.3'
|
104
90
|
type: :runtime
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
94
|
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0.
|
96
|
+
version: '0.3'
|
111
97
|
description: Exception handling logger/emailer
|
112
98
|
email:
|
113
99
|
- development@invoca.com
|
@@ -116,8 +102,11 @@ extensions: []
|
|
116
102
|
extra_rdoc_files: []
|
117
103
|
files:
|
118
104
|
- ".gitignore"
|
105
|
+
- ".jenkins/Jenkinsfile"
|
106
|
+
- ".jenkins/ruby_build_pod.yml"
|
119
107
|
- ".rubocop.yml"
|
120
108
|
- ".ruby-version"
|
109
|
+
- CHANGELOG.md
|
121
110
|
- Gemfile
|
122
111
|
- Gemfile.lock
|
123
112
|
- LICENSE
|
@@ -136,7 +125,6 @@ files:
|
|
136
125
|
- lib/exception_handling/sensu.rb
|
137
126
|
- lib/exception_handling/testing.rb
|
138
127
|
- lib/exception_handling/version.rb
|
139
|
-
- semaphore_ci/setup.sh
|
140
128
|
- test/helpers/controller_helpers.rb
|
141
129
|
- test/helpers/exception_helpers.rb
|
142
130
|
- test/test_helper.rb
|
@@ -172,8 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
160
|
- !ruby/object:Gem::Version
|
173
161
|
version: '0'
|
174
162
|
requirements: []
|
175
|
-
|
176
|
-
rubygems_version: 2.6.13
|
163
|
+
rubygems_version: 3.0.3
|
177
164
|
signing_key:
|
178
165
|
specification_version: 4
|
179
166
|
summary: Invoca's exception handling logger/emailer layer, based on exception_notifier.
|
data/semaphore_ci/setup.sh
DELETED