tomo-plugin-rollbar 0.1.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +21 -5
- data/lib/tomo/plugin/rollbar/version.rb +4 -3
- data/lib/tomo/plugin/rollbar.rb +5 -7
- metadata +56 -25
- data/.github/main.workflow +0 -9
- data/.github/release-drafter.yml +0 -17
- data/.gitignore +0 -9
- data/.prettierignore +0 -2
- data/.rubocop.yml +0 -75
- data/.travis.yml +0 -14
- data/CHANGELOG.md +0 -1
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -4
- data/Rakefile +0 -101
- data/tomo-plugin-rollbar.gemspec +0 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e2f3265ae18f7d90270c2a37e0c911f272cfad317f520a0c40c8ffc3118ec9d
|
4
|
+
data.tar.gz: 82cc6c90c334ba91d94a99cf7b30b07f24672dafc4870dfa33b5cfebd8b64781
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca3c9246a64af5768a4ffe5509911b6d05a50dc20a59f9d7f33ab8224aa1087e5b534133d90bdc8c2a3885fb2e94d915a30ac533a99f122f372e5592264f395a
|
7
|
+
data.tar.gz: bd368f29ffa729c3435319413d69bce6d41ea265bdad50799c1ed0406c70a5dfce960d3803808fd9002cffeceb643f8d1d224ed094b4f5d2cce7a37c05be1386
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,10 +2,22 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/tomo-plugin-rollbar.svg)](https://rubygems.org/gems/tomo-plugin-rollbar)
|
4
4
|
[![Travis](https://img.shields.io/travis/mattbrictson/tomo-plugin-rollbar.svg?label=travis)](https://travis-ci.org/mattbrictson/tomo-plugin-rollbar)
|
5
|
+
[![Circle](https://circleci.com/gh/mattbrictson/tomo-plugin-rollbar.svg?style=shield)](https://app.circleci.com/pipelines/github/mattbrictson/tomo-plugin-rollbar?branch=master)
|
5
6
|
[![Code Climate](https://codeclimate.com/github/mattbrictson/tomo-plugin-rollbar/badges/gpa.svg)](https://codeclimate.com/github/mattbrictson/tomo-plugin-rollbar)
|
6
7
|
|
7
8
|
This is a [tomo](https://github.com/mattbrictson/tomo) plugin that sends a notification to [Rollbar](https://rollbar.com) on a successful deploy.
|
8
9
|
|
10
|
+
---
|
11
|
+
|
12
|
+
- [Installation](#installation)
|
13
|
+
- [Settings](#settings)
|
14
|
+
- [Tasks](#tasks)
|
15
|
+
- [Support](#support)
|
16
|
+
- [License](#license)
|
17
|
+
- [Code of conduct](#code-of-conduct)
|
18
|
+
- [Contribution guide](#contribution-guide)
|
19
|
+
|
20
|
+
|
9
21
|
## Installation
|
10
22
|
|
11
23
|
Run:
|
@@ -52,14 +64,18 @@ Sends an HTTP POST notification to the Rollbar API describing the release that w
|
|
52
64
|
|
53
65
|
Note that this task must run _after_ `git:create_release` in the deploy sequence in order to have access to the release information.
|
54
66
|
|
55
|
-
##
|
67
|
+
## Support
|
56
68
|
|
57
|
-
|
69
|
+
If you want to report a bug, or have ideas, feedback or questions about the gem, [let me know via GitHub issues](https://github.com/mattbrictson/tomo-plugin-rollbar/issues/new) and I will do my best to provide a helpful answer. Happy hacking!
|
58
70
|
|
59
71
|
## License
|
60
72
|
|
61
|
-
The gem is available as open source under the terms of the [MIT License](
|
73
|
+
The gem is available as open source under the terms of the [MIT License](LICENSE.txt).
|
74
|
+
|
75
|
+
## Code of conduct
|
76
|
+
|
77
|
+
Everyone interacting in this project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](CODE_OF_CONDUCT.md).
|
62
78
|
|
63
|
-
##
|
79
|
+
## Contribution guide
|
64
80
|
|
65
|
-
|
81
|
+
Pull requests are welcome!
|
data/lib/tomo/plugin/rollbar.rb
CHANGED
@@ -2,13 +2,11 @@ require "tomo"
|
|
2
2
|
require_relative "rollbar/tasks"
|
3
3
|
require_relative "rollbar/version"
|
4
4
|
|
5
|
-
module Tomo::Plugin
|
6
|
-
|
7
|
-
extend Tomo::PluginDSL
|
5
|
+
module Tomo::Plugin::Rollbar
|
6
|
+
extend Tomo::PluginDSL
|
8
7
|
|
9
|
-
|
8
|
+
tasks Tomo::Plugin::Rollbar::Tasks
|
10
9
|
|
11
|
-
|
12
|
-
|
13
|
-
end
|
10
|
+
defaults rollbar_env: nil,
|
11
|
+
rollbar_token: nil
|
14
12
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tomo-plugin-rollbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brictson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tomo
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.11'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest-ci
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.4'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.4'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: minitest-reporters
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,42 +86,70 @@ dependencies:
|
|
72
86
|
requirements:
|
73
87
|
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
89
|
+
version: '13.0'
|
76
90
|
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
94
|
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
96
|
+
version: '13.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rexml
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.2'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.2'
|
83
111
|
- !ruby/object:Gem::Dependency
|
84
112
|
name: rubocop
|
85
113
|
requirement: !ruby/object:Gem::Requirement
|
86
114
|
requirements:
|
87
115
|
- - '='
|
88
116
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
117
|
+
version: 0.81.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.81.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rubocop-minitest
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.8.1
|
90
132
|
type: :development
|
91
133
|
prerelease: false
|
92
134
|
version_requirements: !ruby/object:Gem::Requirement
|
93
135
|
requirements:
|
94
136
|
- - '='
|
95
137
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
138
|
+
version: 0.8.1
|
97
139
|
- !ruby/object:Gem::Dependency
|
98
140
|
name: rubocop-performance
|
99
141
|
requirement: !ruby/object:Gem::Requirement
|
100
142
|
requirements:
|
101
143
|
- - '='
|
102
144
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
145
|
+
version: 1.5.2
|
104
146
|
type: :development
|
105
147
|
prerelease: false
|
106
148
|
version_requirements: !ruby/object:Gem::Requirement
|
107
149
|
requirements:
|
108
150
|
- - '='
|
109
151
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
152
|
+
version: 1.5.2
|
111
153
|
- !ruby/object:Gem::Dependency
|
112
154
|
name: webmock
|
113
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,22 +171,11 @@ executables: []
|
|
129
171
|
extensions: []
|
130
172
|
extra_rdoc_files: []
|
131
173
|
files:
|
132
|
-
- ".github/main.workflow"
|
133
|
-
- ".github/release-drafter.yml"
|
134
|
-
- ".gitignore"
|
135
|
-
- ".prettierignore"
|
136
|
-
- ".rubocop.yml"
|
137
|
-
- ".travis.yml"
|
138
|
-
- CHANGELOG.md
|
139
|
-
- CODE_OF_CONDUCT.md
|
140
|
-
- Gemfile
|
141
174
|
- LICENSE.txt
|
142
175
|
- README.md
|
143
|
-
- Rakefile
|
144
176
|
- lib/tomo/plugin/rollbar.rb
|
145
177
|
- lib/tomo/plugin/rollbar/tasks.rb
|
146
178
|
- lib/tomo/plugin/rollbar/version.rb
|
147
|
-
- tomo-plugin-rollbar.gemspec
|
148
179
|
homepage: https://github.com/mattbrictson/tomo-plugin-rollbar
|
149
180
|
licenses:
|
150
181
|
- MIT
|
@@ -161,14 +192,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
161
192
|
requirements:
|
162
193
|
- - ">="
|
163
194
|
- !ruby/object:Gem::Version
|
164
|
-
version: 2.
|
195
|
+
version: 2.5.0
|
165
196
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
166
197
|
requirements:
|
167
198
|
- - ">="
|
168
199
|
- !ruby/object:Gem::Version
|
169
200
|
version: '0'
|
170
201
|
requirements: []
|
171
|
-
rubygems_version: 3.
|
202
|
+
rubygems_version: 3.1.2
|
172
203
|
signing_key:
|
173
204
|
specification_version: 4
|
174
205
|
summary: Provides rollbar tasks for tomo
|
data/.github/main.workflow
DELETED
data/.github/release-drafter.yml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
name-template: "$NEXT_PATCH_VERSION"
|
2
|
-
tag-template: "v$NEXT_PATCH_VERSION"
|
3
|
-
categories:
|
4
|
-
- title: "⚠️ Breaking Changes"
|
5
|
-
label: "⚠️ Breaking"
|
6
|
-
- title: "✨ New Features"
|
7
|
-
label: "✨ Feature"
|
8
|
-
- title: "🐛 Bug Fixes"
|
9
|
-
label: "🐛 Bug Fix"
|
10
|
-
- title: "📚 Documentation"
|
11
|
-
label: "📚 Docs"
|
12
|
-
- title: "🏠 Housekeeping"
|
13
|
-
label: "🏠 Housekeeping"
|
14
|
-
change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
|
15
|
-
no-changes-template: "- No changes"
|
16
|
-
template: |
|
17
|
-
$CHANGES
|
data/.gitignore
DELETED
data/.prettierignore
DELETED
data/.rubocop.yml
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
require: rubocop-performance
|
2
|
-
|
3
|
-
AllCops:
|
4
|
-
DisplayCopNames: true
|
5
|
-
DisplayStyleGuide: true
|
6
|
-
TargetRubyVersion: 2.4
|
7
|
-
Exclude:
|
8
|
-
- "tmp/**/*"
|
9
|
-
- "vendor/**/*"
|
10
|
-
|
11
|
-
Metrics/AbcSize:
|
12
|
-
Max: 16
|
13
|
-
Exclude:
|
14
|
-
- "test/**/*"
|
15
|
-
|
16
|
-
Metrics/BlockLength:
|
17
|
-
Exclude:
|
18
|
-
- "*.gemspec"
|
19
|
-
- "Rakefile"
|
20
|
-
|
21
|
-
Metrics/ClassLength:
|
22
|
-
Exclude:
|
23
|
-
- "test/**/*"
|
24
|
-
|
25
|
-
Metrics/MethodLength:
|
26
|
-
Exclude:
|
27
|
-
- "test/**/*"
|
28
|
-
|
29
|
-
Metrics/LineLength:
|
30
|
-
Exclude:
|
31
|
-
- "*.gemspec"
|
32
|
-
|
33
|
-
Layout/AlignHash:
|
34
|
-
EnforcedColonStyle:
|
35
|
-
- table
|
36
|
-
- key
|
37
|
-
EnforcedHashRocketStyle:
|
38
|
-
- table
|
39
|
-
- key
|
40
|
-
|
41
|
-
Layout/SpaceAroundEqualsInParameterDefault:
|
42
|
-
EnforcedStyle: no_space
|
43
|
-
|
44
|
-
Naming/MemoizedInstanceVariableName:
|
45
|
-
Enabled: false
|
46
|
-
|
47
|
-
Naming/VariableNumber:
|
48
|
-
Enabled: false
|
49
|
-
|
50
|
-
Style/BarePercentLiterals:
|
51
|
-
EnforcedStyle: percent_q
|
52
|
-
|
53
|
-
Style/ClassAndModuleChildren:
|
54
|
-
Enabled: false
|
55
|
-
|
56
|
-
Style/Documentation:
|
57
|
-
Enabled: false
|
58
|
-
|
59
|
-
Style/DoubleNegation:
|
60
|
-
Enabled: false
|
61
|
-
|
62
|
-
Style/EmptyMethod:
|
63
|
-
Enabled: false
|
64
|
-
|
65
|
-
Style/FrozenStringLiteralComment:
|
66
|
-
Enabled: false
|
67
|
-
|
68
|
-
Style/HashSyntax:
|
69
|
-
EnforcedStyle: ruby19
|
70
|
-
|
71
|
-
Style/StringLiterals:
|
72
|
-
EnforcedStyle: double_quotes
|
73
|
-
|
74
|
-
Style/TrivialAccessors:
|
75
|
-
AllowPredicates: true
|
data/.travis.yml
DELETED
data/CHANGELOG.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Release notes for this project are kept here: https://github.com/mattbrictson/tomo-plugin-rollbar/releases
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at opensource@mattbrictson.com. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: http://contributor-covenant.org
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,101 +0,0 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
2
|
-
require "rake/testtask"
|
3
|
-
require "rubocop/rake_task"
|
4
|
-
|
5
|
-
task default: %i[test rubocop]
|
6
|
-
|
7
|
-
RuboCop::RakeTask.new
|
8
|
-
|
9
|
-
Rake::TestTask.new("test") do |t|
|
10
|
-
t.libs << "test"
|
11
|
-
t.libs << "lib"
|
12
|
-
t.test_files = FileList["test/**/*_test.rb"]
|
13
|
-
end
|
14
|
-
|
15
|
-
task bump: %w[bump:bundler bump:ruby bump:year]
|
16
|
-
|
17
|
-
namespace :bump do
|
18
|
-
task :bundler do
|
19
|
-
version = Gemfile.bundler_version
|
20
|
-
replace_in_file ".travis.yml", /bundler -v (\S+)/ => version
|
21
|
-
end
|
22
|
-
|
23
|
-
task :ruby do
|
24
|
-
lowest = RubyVersions.lowest_supported
|
25
|
-
lowest_minor = RubyVersions.lowest_supported_minor
|
26
|
-
|
27
|
-
replace_in_file "tomo-plugin-rollbar.gemspec",
|
28
|
-
/ruby_version = ">= (.*)"/ => lowest
|
29
|
-
replace_in_file ".rubocop.yml", /TargetRubyVersion: (.*)/ => lowest_minor
|
30
|
-
|
31
|
-
travis = YAML.safe_load(open(".travis.yml"))
|
32
|
-
travis["rvm"] = RubyVersions.latest_supported_patches + ["ruby-head"]
|
33
|
-
IO.write(".travis.yml", YAML.dump(travis))
|
34
|
-
end
|
35
|
-
|
36
|
-
task :year do
|
37
|
-
replace_in_file "LICENSE.txt", /\(c\) (\d+)/ => Date.today.year.to_s
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
require "date"
|
42
|
-
require "open-uri"
|
43
|
-
require "yaml"
|
44
|
-
|
45
|
-
def replace_in_file(path, replacements)
|
46
|
-
contents = IO.read(path)
|
47
|
-
orig_contents = contents.dup
|
48
|
-
replacements.each do |regexp, text|
|
49
|
-
contents.gsub!(regexp) do |match|
|
50
|
-
match[regexp, 1] = text
|
51
|
-
match
|
52
|
-
end
|
53
|
-
end
|
54
|
-
IO.write(path, contents) if contents != orig_contents
|
55
|
-
end
|
56
|
-
|
57
|
-
module Gemfile
|
58
|
-
class << self
|
59
|
-
def bundler_version
|
60
|
-
lock_file[/BUNDLED WITH\n (\S+)$/, 1]
|
61
|
-
end
|
62
|
-
|
63
|
-
private
|
64
|
-
|
65
|
-
def lock_file
|
66
|
-
@_lock_file ||= IO.read("Gemfile.lock")
|
67
|
-
end
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
module RubyVersions
|
72
|
-
class << self
|
73
|
-
def lowest_supported
|
74
|
-
"#{lowest_supported_minor}.0"
|
75
|
-
end
|
76
|
-
|
77
|
-
def lowest_supported_minor
|
78
|
-
latest_supported_patches.first[/\d+\.\d+/]
|
79
|
-
end
|
80
|
-
|
81
|
-
def latest
|
82
|
-
latest_supported_patches.last
|
83
|
-
end
|
84
|
-
|
85
|
-
def latest_supported_patches
|
86
|
-
patches = [versions[:stable], versions[:security_maintenance]].flatten
|
87
|
-
patches.map(&Gem::Version.method(:new)).sort.map(&:to_s)
|
88
|
-
end
|
89
|
-
|
90
|
-
private
|
91
|
-
|
92
|
-
def versions
|
93
|
-
@_versions ||= begin
|
94
|
-
yaml = open(
|
95
|
-
"https://raw.githubusercontent.com/ruby/www.ruby-lang.org/master/_data/downloads.yml"
|
96
|
-
)
|
97
|
-
YAML.safe_load(yaml, symbolize_names: true)
|
98
|
-
end
|
99
|
-
end
|
100
|
-
end
|
101
|
-
end
|
data/tomo-plugin-rollbar.gemspec
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
lib = File.expand_path("lib", __dir__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require "tomo/plugin/rollbar/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "tomo-plugin-rollbar"
|
7
|
-
spec.version = Tomo::Plugin::Rollbar::VERSION
|
8
|
-
spec.authors = ["Matt Brictson"]
|
9
|
-
spec.email = ["opensource@mattbrictson.com"]
|
10
|
-
|
11
|
-
spec.summary = "Provides rollbar tasks for tomo"
|
12
|
-
spec.homepage = "https://github.com/mattbrictson/tomo-plugin-rollbar"
|
13
|
-
spec.license = "MIT"
|
14
|
-
|
15
|
-
spec.metadata = {
|
16
|
-
"bug_tracker_uri" => "https://github.com/mattbrictson/tomo-plugin-rollbar/issues",
|
17
|
-
"changelog_uri" => "https://github.com/mattbrictson/tomo-plugin-rollbar/releases",
|
18
|
-
"homepage_uri" => "https://github.com/mattbrictson/tomo-plugin-rollbar",
|
19
|
-
"source_code_uri" => "https://github.com/mattbrictson/tomo-plugin-rollbar"
|
20
|
-
}
|
21
|
-
|
22
|
-
# Specify which files should be added to the gem when it is released.
|
23
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
25
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(docs|test|spec|features)/}) }
|
26
|
-
end
|
27
|
-
spec.bindir = "exe"
|
28
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
-
spec.require_paths = ["lib"]
|
30
|
-
|
31
|
-
spec.required_ruby_version = ">= 2.4.0"
|
32
|
-
|
33
|
-
spec.add_dependency "tomo"
|
34
|
-
|
35
|
-
spec.add_development_dependency "bundler", "~> 2.0"
|
36
|
-
spec.add_development_dependency "minitest", "~> 5.11"
|
37
|
-
spec.add_development_dependency "minitest-reporters", "~> 1.3"
|
38
|
-
spec.add_development_dependency "rake", "~> 12.3"
|
39
|
-
spec.add_development_dependency "rubocop", "0.71.0"
|
40
|
-
spec.add_development_dependency "rubocop-performance", "1.4.0"
|
41
|
-
spec.add_development_dependency "webmock", "~> 3.6"
|
42
|
-
end
|