File tree Expand file tree Collapse file tree 10 files changed +26
-4
lines changed Expand file tree Collapse file tree 10 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13source 'https://rubygems.org'
24
35gemspec
Original file line number Diff line number Diff line change 11# Errbit Github Plugin
22
3+ [ ![ RSpec] ( https://github.com/errbit/errbit_github_plugin/actions/workflows/rspec.yml/badge.svg )] ( https://github.com/errbit/errbit_github_plugin/actions/workflows/rspec.yml )
4+ [ ![ RSpec on JRuby] ( https://github.com/errbit/errbit_github_plugin/actions/workflows/jruby.yml/badge.svg )] ( https://github.com/errbit/errbit_github_plugin/actions/workflows/jruby.yml )
5+ [ ![ Ruby Style Guide] ( https://img.shields.io/badge/code_style-standard-brightgreen.svg )] ( https://github.com/standardrb/standard )
6+
37This plugin provides GitHub issue tracker integration for Errbit and it is the
48only plugin included by default in Errbit.
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13require "bundler/gem_tasks"
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13lib = File . expand_path ( '../lib' , __FILE__ )
24$LOAD_PATH. unshift ( lib ) unless $LOAD_PATH. include? ( lib )
35require 'errbit_github_plugin/version'
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13require "errbit_github_plugin/version"
24require 'errbit_github_plugin/error'
35require 'errbit_github_plugin/issue_tracker'
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13module ErrbitGithubPlugin
24 class AuthenticationError < Exception ; end
35end
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13require 'octokit'
24
35module ErrbitGithubPlugin
46 class IssueTracker < ErrbitPlugin ::IssueTracker
57
68 LABEL = 'github'
79
8- NOTE = 'Please configure your github repository in the <strong>GITHUB ' <<
9- 'REPO</strong> field above.<br/> Instead of providing your ' <<
10- 'username & password, you can link your Github account to your ' <<
11- 'user profile, and allow Errbit to create issues using your ' <<
10+ NOTE = 'Please configure your github repository in the <strong>GITHUB ' \
11+ 'REPO</strong> field above.<br/> Instead of providing your ' \
12+ 'username & password, you can link your Github account to your ' \
13+ 'user profile, and allow Errbit to create issues using your ' \
1214 'OAuth token.'
1315
1416 FIELDS = {
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13module ErrbitGithubPlugin
24 VERSION = '0.4.0'
35end
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13describe ErrbitGithubPlugin ::IssueTracker do
24 describe '.label' do
35 it 'return LABEL' do
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13require 'simplecov'
24
35SimpleCov . start
You can’t perform that action at this time.
0 commit comments