tomo-plugin-honeybadger 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 93864a35b0642c014a40ef1cd2a6f978c3823edd05fe3baa5d6bc7a695b412fc
4
+ data.tar.gz: fdc61830017c969e5294db8be6325aba11c9fd627fbfd063548eef5766451da9
5
+ SHA512:
6
+ metadata.gz: 93476051d2e42048dd1eb9846b436c5fcb337a46525a58e3c322001fee5cb24466619cf97e7c353446e46eb57f3bccc05b1ec085da66ba87795c16c0e6e96e03
7
+ data.tar.gz: 8f1007010a41859a443fd2f76b3eceda74a0332d01ac9dbd1242e1f40f40986fb2e366db05109786b6da6cc84e3e29e8d7a133fca4dcdf7d2bb4b2a8d626d369
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Usman
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # tomo-plugin-honeybadger
2
+
3
+ [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/uxxman/tomo-plugin-honeybadger/CI)](https://github.com/uxxman/tomo-plugin-honeybadger/actions?query=workflow%3ACI)
4
+ [![Code Climate coverage](https://img.shields.io/codeclimate/coverage/uxxman/tomo-plugin-honeybadger)](https://codeclimate.com/github/uxxman/tomo-plugin-honeybadger)
5
+ [![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/uxxman/tomo-plugin-honeybadger)](https://codeclimate.com/github/uxxman/tomo-plugin-honeybadger)
6
+ [![Gem](https://img.shields.io/gem/v/tomo-plugin-honeybadger)](https://rubygems.org/gems/tomo-plugin-honeybadger)
7
+
8
+ This is a [tomo](https://github.com/mattbrictson/tomo) plugin that provides tasks for honeybadger gem.
9
+
10
+ ## Installation
11
+
12
+ Run:
13
+
14
+ ```
15
+ $ gem install tomo-plugin-honeybadger
16
+ ```
17
+
18
+ Or add it to your Gemfile:
19
+
20
+ ```ruby
21
+ gem "tomo-plugin-honeybadger"
22
+ ```
23
+
24
+ Then add the following to `.tomo/config.rb`:
25
+
26
+ ```ruby
27
+ plugin "honeybadger"
28
+ ```
29
+
30
+ ## Tasks
31
+
32
+ ### honeybadger:deploy
33
+
34
+ Update honeybadger for the latest deployment.
35
+
36
+ ## Support
37
+
38
+ 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/uxxman/tomo-plugin-honeybadger/issues/new) and I will do my best to provide a helpful answer. Happy hacking!
39
+
40
+ ## License
41
+
42
+ The gem is available as open source under the terms of the [MIT License](LICENSE.txt).
43
+
44
+ ## Code of conduct
45
+
46
+ 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).
47
+
48
+ ## Contribution guide
49
+
50
+ Pull requests are welcome!
@@ -0,0 +1,13 @@
1
+ module Tomo::Plugin::Honeybadger
2
+ class Tasks < Tomo::TaskLibrary
3
+ # Update Honeybadger about the new deployment
4
+ def deploy
5
+ remote.chdir(paths.current) do
6
+ deployer = `whoami`.strip
7
+ revision = `git rev-parse HEAD`.strip
8
+
9
+ remote.run("bundle", "exec", "honeybadger", "deploy", "-r", settings[:git_url], "-s", revision, "-u", deployer)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,7 @@
1
+ module Tomo
2
+ module Plugin
3
+ module Honeybadger
4
+ VERSION = "1.0.0".freeze
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,17 @@
1
+ require "tomo"
2
+ require_relative "honeybadger/tasks"
3
+ require_relative "honeybadger/version"
4
+
5
+ module Tomo
6
+ module Plugin
7
+ module Honeybadger
8
+ extend Tomo::PluginDSL
9
+
10
+ # TODO: initialize this plugin's settings with default values
11
+ # defaults honeybadger_setting: "foo",
12
+ # honeybadger_another_setting: "bar"
13
+
14
+ tasks Tomo::Plugin::Honeybadger::Tasks
15
+ end
16
+ end
17
+ end
metadata ADDED
@@ -0,0 +1,67 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tomo-plugin-honeybadger
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Usman
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-12-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tomo
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description:
28
+ email:
29
+ - uxman.sherwani@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - LICENSE.txt
35
+ - README.md
36
+ - lib/tomo/plugin/honeybadger.rb
37
+ - lib/tomo/plugin/honeybadger/tasks.rb
38
+ - lib/tomo/plugin/honeybadger/version.rb
39
+ homepage: https://github.com/uxxman/tomo-plugin-honeybadger
40
+ licenses:
41
+ - MIT
42
+ metadata:
43
+ bug_tracker_uri: https://github.com/uxxman/tomo-plugin-honeybadger/issues
44
+ changelog_uri: https://github.com/uxxman/tomo-plugin-honeybadger/releases
45
+ source_code_uri: https://github.com/uxxman/tomo-plugin-honeybadger
46
+ homepage_uri: https://github.com/uxxman/tomo-plugin-honeybadger
47
+ rubygems_mfa_required: 'true'
48
+ post_install_message:
49
+ rdoc_options: []
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 2.6.0
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ requirements: []
63
+ rubygems_version: 3.2.32
64
+ signing_key:
65
+ specification_version: 4
66
+ summary: Honeybadger tasks for tomo
67
+ test_files: []