Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 70dc14a

Browse files
authored
Rename to errbit-ng-plugin (#2)
* Update LICENSE * Update LICENSE * Update gemspec authors and email * Update LICENSE * LICENSE -> LICENSE.txt * Update Contributing and add License * Update example * Remove coveralls gem * Remove .coveralls.yml config * Update LICENSE.txt * Update Rakefile * Rename: errbit_plugin -> errbit-ng-plugin * Add standard config * frozen_string_literal -> true * Add rspec config * Cleanup * frozen_string_literal -> true * Rename lib/errbit_plugin/issue_trackers/none.rb -> lib/errbit_plugin/none_issue_tracker.rb * Update rspec configuration * Cleanup * Cleanup * Add .rspec_status to .gitignore * Update .gitignore * Add simplecov gem * Fix * Enable simpecov * Add simplecov-cobertura * Configure CI * Refactoring * Add codecov coverage * Cleanup * Cleanup * Cleanup * Fix * Cleanup * Ruby 3.4
1 parent 82e6dbf commit 70dc14a

25 files changed

+204
-165
lines changed

.coveralls.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/jruby.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- cron: "0 21 * * 6"
1212

1313
env:
14+
CI: "yes"
1415
JRUBY_OPTS: "--debug"
1516

1617
jobs:
@@ -39,3 +40,5 @@ jobs:
3940
bundler: latest
4041
bundler-cache: true
4142
- run: bundle exec rspec
43+
- name: Upload coverage to Codecov
44+
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1

.github/workflows/rspec.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ on:
1010
schedule:
1111
- cron: "0 21 * * 6"
1212

13+
env:
14+
CI: "yes"
15+
1316
jobs:
1417
rspec:
1518
runs-on: ubuntu-24.04
1619
timeout-minutes: 10
1720
strategy:
1821
fail-fast: false
1922
matrix:
20-
ruby: ["3.1", "3.2", "3.3"]
23+
ruby: ["3.1", "3.2", "3.3", "3.4"]
2124

2225
steps:
2326
- name: Harden Runner
@@ -36,3 +39,5 @@ jobs:
3639
bundler: latest
3740
bundler-cache: true
3841
- run: bundle exec rspec
42+
- name: Upload coverage to Codecov
43+
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1

.gitignore

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
*.gem
2-
*.rbc
3-
.bundle
4-
.config
5-
.yardoc
6-
InstalledFiles
7-
_yardoc
8-
coverage
9-
doc/
10-
lib/bundler/man
11-
pkg
12-
rdoc
13-
spec/reports
14-
test/tmp
15-
test/version_tmp
16-
tmp
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/doc/
6+
/pkg/
7+
/spec/reports/
8+
/tmp/
9+
10+
# rspec failure tracking
11+
.rspec_status
12+
1713
.idea/

.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--format documentation
2+
--color
3+
--require spec_helper

.standard.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby_version: 3.1

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changelog
2+
3+
## main
4+
5+
* Rename `errbit_plugin` to `errbit-ng-plugin`

Gemfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
# frozen_string_literal: true
2+
13
source "https://rubygems.org"
24

3-
# Specify your gem's dependencies in errbit_plugin.gemspec
5+
# Specify your gem's dependencies in errbit-ng-plugin.gemspec
46
gemspec
57

8+
gem "rake"
69
gem "rspec"
7-
gem "coveralls", require: false
810
gem "standard"
11+
gem "simplecov"
12+
gem "simplecov-cobertura", require: false

Gemfile.lock

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
PATH
22
remote: .
33
specs:
4-
errbit_plugin (0.6.0)
4+
errbit-ng-plugin (0.1.0)
55

66
GEM
77
remote: https://rubygems.org/
88
specs:
99
ast (2.4.2)
10-
bigdecimal (3.1.9)
11-
coveralls (0.8.23)
12-
json (>= 1.8, < 3)
13-
simplecov (~> 0.16.1)
14-
term-ansicolor (~> 1.3)
15-
thor (>= 0.19.4, < 2.0)
16-
tins (~> 1.6)
1710
diff-lcs (1.5.1)
1811
docile (1.4.1)
1912
json (2.9.1)
@@ -27,6 +20,7 @@ GEM
2720
rainbow (3.1.1)
2821
rake (13.2.1)
2922
regexp_parser (2.10.0)
23+
rexml (3.4.0)
3024
rspec (3.13.0)
3125
rspec-core (~> 3.13.0)
3226
rspec-expectations (~> 3.13.0)
@@ -56,11 +50,15 @@ GEM
5650
rubocop (>= 1.48.1, < 2.0)
5751
rubocop-ast (>= 1.31.1, < 2.0)
5852
ruby-progressbar (1.13.0)
59-
simplecov (0.16.1)
53+
simplecov (0.22.0)
6054
docile (~> 1.1)
61-
json (>= 1.8, < 3)
62-
simplecov-html (~> 0.10.0)
63-
simplecov-html (0.10.2)
55+
simplecov-html (~> 0.11)
56+
simplecov_json_formatter (~> 0.1)
57+
simplecov-cobertura (2.1.0)
58+
rexml
59+
simplecov (~> 0.19)
60+
simplecov-html (0.13.1)
61+
simplecov_json_formatter (0.1.4)
6462
standard (1.44.0)
6563
language_server-protocol (~> 3.17.0.2)
6664
lint_roller (~> 1.0)
@@ -73,13 +71,6 @@ GEM
7371
standard-performance (1.6.0)
7472
lint_roller (~> 1.1)
7573
rubocop-performance (~> 1.23.0)
76-
sync (0.5.0)
77-
term-ansicolor (1.11.2)
78-
tins (~> 1.0)
79-
thor (1.3.2)
80-
tins (1.38.0)
81-
bigdecimal
82-
sync
8374
unicode-display_width (3.1.4)
8475
unicode-emoji (~> 4.0, >= 4.0.4)
8576
unicode-emoji (4.0.4)
@@ -98,11 +89,11 @@ PLATFORMS
9889
x86_64-linux-musl
9990

10091
DEPENDENCIES
101-
bundler
102-
coveralls
103-
errbit_plugin!
92+
errbit-ng-plugin!
10493
rake
10594
rspec
95+
simplecov
96+
simplecov-cobertura
10697
standard
10798

10899
BUNDLED WITH

LICENSE

Lines changed: 0 additions & 20 deletions
This file was deleted.

LICENSE.txt

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1-
Copyright (c) 2013 Cyril Mougel
1+
The MIT License (MIT)
22

3-
MIT License
3+
Copyright (c) 2013 Errbit
4+
Copyright (c) 2013 Cyril Mougel
5+
Copyright (c) 2025 Errbit-NG Team
46

5-
Permission is hereby granted, free of charge, to any person obtaining
6-
a copy of this software and associated documentation files (the
7-
"Software"), to deal in the Software without restriction, including
8-
without limitation the rights to use, copy, modify, merge, publish,
9-
distribute, sublicense, and/or sell copies of the Software, and to
10-
permit persons to whom the Software is furnished to do so, subject to
11-
the following conditions:
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
1213

13-
The above copyright notice and this permission notice shall be
14-
included in all copies or substantial portions of the Software.
14+
The above copyright notice and this permission notice shall be included in
15+
all copies or substantial portions of the Software.
1516

16-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
THE SOFTWARE.

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@ the class must extend ErrbitPlugin::IssueTracker. Here's an example:
2929

3030
```ruby
3131
class MyIssueTracker < ErrbitPlugin::IssueTracker
32-
3332
# A unique label for your tracker plugin used internally by errbit
3433
def self.label
35-
'my-tracker'
34+
"my-tracker"
3635
end
3736

3837
def self.note
39-
'a note about this tracker that users will see'
38+
"a note about this tracker that users will see"
4039
end
4140

4241
# Form fields that will be presented to the administrator when setting up
@@ -60,9 +59,9 @@ class MyIssueTracker < ErrbitPlugin::IssueTracker
6059
# and the binary icon data.
6160
def self.icons
6261
@icons ||= {
63-
create: [ 'image/png', File.read('./path/to/create.png') ],
64-
goto: [ 'image/png', File.read('./path/to/goto.png') ],
65-
inactive: [ 'image/png', File.read('./path/to/inactive.png') ],
62+
create: ["image/png", File.read("./path/to/create.png")],
63+
goto: ["image/png", File.read("./path/to/goto.png")],
64+
inactive: ["image/png", File.read("./path/to/inactive.png")]
6665
}
6766
end
6867

@@ -80,7 +79,7 @@ class MyIssueTracker < ErrbitPlugin::IssueTracker
8079
if options[:username]
8180
{}
8281
else
83-
{ field_one: 'username must be present' }
82+
{field_one: "username must be present"}
8483
end
8584
end
8685

@@ -92,7 +91,7 @@ class MyIssueTracker < ErrbitPlugin::IssueTracker
9291
def create_issue(title, body, user: {})
9392
# Create an issue! Then update the problem to link it.
9493

95-
'http://sometracker.com/my/issue/123'
94+
"https://sometracker.com/my/issue/123"
9695
end
9796

9897
# This method is optional. Errbit will create body text for your issue by
@@ -107,7 +106,7 @@ class MyIssueTracker < ErrbitPlugin::IssueTracker
107106
# @see http://apidock.com/rails/ActionController/Base/render_to_string
108107
def render_body_args
109108
# In this example, we want to render a special file
110-
['/path/to/some/template', formats: [:rdoc]]
109+
["/path/to/some/template", formats: [:rdoc]]
111110
end
112111

113112
# This method is optional, and is where you actually go close the issue on
@@ -121,12 +120,15 @@ class MyIssueTracker < ErrbitPlugin::IssueTracker
121120

122121
# The URL for your remote issue tracker
123122
def url
124-
'http://some-remote-tracker.com'
123+
"https://some-remote-tracker.com"
125124
end
126125
end
127126
```
128127

129128
## Contributing
130129

131-
Discuss any changes you'd like to make with the authors on the mailing list, or
132-
by opening a github issue.
130+
Bug reports and pull requests are welcome on GitHub at https://github.com/errbit-ng/errbit-ng-plugin.
131+
132+
## License
133+
134+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Rakefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1+
# frozen_string_literal: true
2+
13
require "bundler/gem_tasks"
4+
require "rspec/core/rake_task"
5+
6+
RSpec::Core::RakeTask.new(:spec)
7+
8+
task default: :spec

errbit-ng-plugin.gemspec

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# frozen_string_literal: true
2+
3+
require_relative "lib/errbit_plugin/version"
4+
5+
Gem::Specification.new do |spec|
6+
spec.name = "errbit-ng-plugin"
7+
spec.version = ErrbitPlugin::VERSION
8+
spec.authors = ["Ihor Zubkov"]
9+
spec.email = ["[email protected]"]
10+
11+
spec.summary = "Base to create an Errbit-NG plugins"
12+
spec.description = "Base to create an Errbit-NG plugins"
13+
spec.homepage = "https://github.com/errbit-ng/errbit-ng-plugin"
14+
spec.license = "MIT"
15+
16+
spec.required_ruby_version = ">= 3.1.0"
17+
18+
spec.metadata["rubygems_mfa_required"] = "true"
19+
spec.metadata["bug_tracker_uri"] = "#{spec.homepage}/issues"
20+
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
21+
spec.metadata["documentation_uri"] = "#{spec.homepage}/blob/main/README.md"
22+
spec.metadata["homepage_uri"] = spec.homepage
23+
spec.metadata["source_code_uri"] = spec.homepage
24+
25+
# Specify which files should be added to the gem when it is released.
26+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27+
gemspec = File.basename(__FILE__)
28+
spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
29+
ls.readlines("\x0", chomp: true).reject do |f|
30+
(f == gemspec) ||
31+
f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile])
32+
end
33+
end
34+
spec.bindir = "exe"
35+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
36+
spec.require_paths = ["lib"]
37+
end

errbit_plugin.gemspec

Lines changed: 0 additions & 21 deletions
This file was deleted.

lib/errbit-ng-plugin.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# frozen_string_literal: true
2+
3+
require_relative "errbit_plugin"

lib/errbit_plugin.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# frozen_string_literal: true
2+
13
require "errbit_plugin/version"
24
require "errbit_plugin/registry"
35
require "errbit_plugin/issue_tracker"
46
require "errbit_plugin/validate_issue_tracker"
5-
require "errbit_plugin/issue_trackers/none"
7+
require "errbit_plugin/none_issue_tracker"

0 commit comments

Comments
 (0)