Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/errbit_github_plugin.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
require "errbit_github_plugin/version"
require 'errbit_github_plugin/error'
require 'errbit_github_plugin/issue_tracker'
require 'errbit_github_plugin/rails'

module ErrbitGithubPlugin
def self.root
File.expand_path '../..', __FILE__
end

def self.read_static_file(file)
File.read(File.join(self.root, 'static', file))
end
end

ErrbitPlugin::Registry.add_issue_tracker(ErrbitGithubPlugin::IssueTracker)
14 changes: 14 additions & 0 deletions lib/errbit_github_plugin/issue_tracker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ def self.fields
FIELDS
end

def self.icons
@icons ||= {
create: [
'image/png', ErrbitGithubPlugin.read_static_file('github_create.png')
],
goto: [
'image/png', ErrbitGithubPlugin.read_static_file('github_goto.png'),
],
inactive: [
'image/png', ErrbitGithubPlugin.read_static_file('github_inactive.png'),
]
}
end

def configured?
errors.empty?
end
Expand Down
8 changes: 0 additions & 8 deletions lib/errbit_github_plugin/rails.rb

This file was deleted.

Binary file added static/github_create.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/github_goto.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/github_inactive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.