File tree 15 files changed +74
-14
lines changed
15 files changed +74
-14
lines changed Original file line number Diff line number Diff line change
1
+ export JRUBY_OPTS=" --debug"
Original file line number Diff line number Diff line change
1
+ name : RSpec on JRuby
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - master
10
+ schedule :
11
+ - cron : " 0 21 * * 6"
12
+
13
+ env :
14
+ JRUBY_OPTS : " --debug"
15
+
16
+ jobs :
17
+ rspec :
18
+ runs-on : ubuntu-24.04
19
+ timeout-minutes : 10
20
+ strategy :
21
+ fail-fast : false
22
+ matrix :
23
+ ruby : ["jruby-9.4", "jruby-head"]
24
+
25
+ steps :
26
+ - uses : actions/checkout@v4
27
+ - run : rm -f Gemfile.lock
28
+ - run : rm -f .ruby-version
29
+ - name : Set up Ruby
30
+ uses : ruby/setup-ruby@v1
31
+ with :
32
+ ruby-version : ${{ matrix.ruby }}
33
+ rubygems : latest
34
+ bundler : latest
35
+ bundler-cache : true
36
+
37
+ - run : bundle exec rspec
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
source 'https://rubygems.org'
2
4
3
5
# Specify your gem's dependencies in errbit_plugin.gemspec
4
6
gemspec
5
7
8
+ gem "rake"
6
9
gem 'rspec'
10
+ gem "simplecov" , require : false
Original file line number Diff line number Diff line change 7
7
remote: https://rubygems.org/
8
8
specs:
9
9
diff-lcs (1.6.1 )
10
+ docile (1.4.1 )
10
11
rake (13.2.1 )
11
12
rspec (3.13.0 )
12
13
rspec-core (~> 3.13.0 )
21
22
diff-lcs (>= 1.2.0 , < 2.0 )
22
23
rspec-support (~> 3.13.0 )
23
24
rspec-support (3.13.2 )
25
+ simplecov (0.22.0 )
26
+ docile (~> 1.1 )
27
+ simplecov-html (~> 0.11 )
28
+ simplecov_json_formatter (~> 0.1 )
29
+ simplecov-html (0.13.1 )
30
+ simplecov_json_formatter (0.1.4 )
24
31
25
32
PLATFORMS
26
33
arm64-darwin-24
@@ -29,6 +36,7 @@ DEPENDENCIES
29
36
errbit_plugin !
30
37
rake
31
38
rspec
39
+ simplecov
32
40
33
41
BUNDLED WITH
34
42
2.6.7
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
require "bundler/gem_tasks"
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
lib = File . expand_path ( '../lib' , __FILE__ )
2
4
$LOAD_PATH. unshift ( lib ) unless $LOAD_PATH. include? ( lib )
3
5
require 'errbit_plugin/version'
@@ -16,6 +18,4 @@ Gem::Specification.new do |spec|
16
18
spec . executables = spec . files . grep ( %r{^bin/} ) { |f | File . basename ( f ) }
17
19
spec . test_files = spec . files . grep ( %r{^(test|spec|features)/} )
18
20
spec . require_paths = [ "lib" ]
19
-
20
- spec . add_development_dependency "rake"
21
21
end
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
require "errbit_plugin/version"
2
4
require "errbit_plugin/registry"
3
5
require "errbit_plugin/issue_tracker"
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
module ErrbitPlugin
2
4
# abstract class for issue trackers
3
5
class IssueTracker
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
module ErrbitPlugin
2
4
class NoneIssueTracker < IssueTracker
3
5
def self . label ; 'none' ; end
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
module ErrbitPlugin
2
4
class IncompatibilityError < StandardError ; end
3
5
class AlreadyRegisteredError < StandardError ; end
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
module ErrbitPlugin
2
4
class ValidateIssueTracker
3
5
def initialize ( klass )
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
module ErrbitPlugin
2
4
VERSION = '0.7.0'
3
5
end
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
require 'spec_helper'
2
4
3
5
describe ErrbitPlugin ::Registry do
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
require 'spec_helper'
2
4
3
5
describe ErrbitPlugin ::ValidateIssueTracker do
Original file line number Diff line number Diff line change 1
- if ENV [ 'COVERAGE' ]
2
- require 'simplecov'
3
- if ENV [ 'CI' ]
4
- require 'coveralls'
5
- Coveralls . wear!
6
- SimpleCov . formatter = SimpleCov ::Formatter ::MultiFormatter [
7
- SimpleCov ::Formatter ::HTMLFormatter ,
8
- Coveralls ::SimpleCov ::Formatter
9
- ]
10
- end
1
+ # frozen_string_literal: true
11
2
12
- SimpleCov . start
13
- end
3
+ require 'simplecov'
4
+
5
+ SimpleCov . start
14
6
15
7
require 'errbit_plugin'
16
8
You can’t perform that action at this time.
0 commit comments