Skip to content

Commit 8813387

Browse files
authored
Frozen string literal (#16)
* frozen_string_literal -> true * Fix FrozenError * Add badges
1 parent f7ea77b commit 8813387

File tree

10 files changed

+26
-4
lines changed

10 files changed

+26
-4
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
source 'https://rubygems.org'
24

35
gemspec

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
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+
37
This plugin provides GitHub issue tracker integration for Errbit and it is the
48
only plugin included by default in Errbit.

Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# frozen_string_literal: true
2+
13
require "bundler/gem_tasks"

errbit_github_plugin.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
lib = File.expand_path('../lib', __FILE__)
24
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
35
require 'errbit_github_plugin/version'

lib/errbit_github_plugin.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require "errbit_github_plugin/version"
24
require 'errbit_github_plugin/error'
35
require 'errbit_github_plugin/issue_tracker'

lib/errbit_github_plugin/error.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module ErrbitGithubPlugin
24
class AuthenticationError < Exception; end
35
end

lib/errbit_github_plugin/issue_tracker.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
# frozen_string_literal: true
2+
13
require 'octokit'
24

35
module 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 = {

lib/errbit_github_plugin/version.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module ErrbitGithubPlugin
24
VERSION = '0.4.0'
35
end

spec/issue_tracker_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
describe ErrbitGithubPlugin::IssueTracker do
24
describe '.label' do
35
it 'return LABEL' do

spec/spec_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'simplecov'
24

35
SimpleCov.start

0 commit comments

Comments
 (0)