Skip to content

Commit

Permalink
Gemify
Browse files Browse the repository at this point in the history
This should allow you to install the plugin as a gem, simply by adding it to
your Gemfile.local before bundling.
  • Loading branch information
koppen committed Apr 27, 2014
1 parent f3659bf commit a82bccc
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
*.gem
*.rbc
.bundle
.config
.yardoc
Gemfile.lock
InstalledFiles
_yardoc
coverage
doc/
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in redmine_github_hook.gemspec
gemspec
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require "bundler/gem_tasks"
require 'rake/testtask'

Rake::TestTask.new do |t|
Expand All @@ -7,4 +8,4 @@ Rake::TestTask.new do |t|
t.verbose = true
end

task :default => :test
task :default => :test
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
name 'Redmine Github Hook plugin'
author 'Jakob Skjerning'
description 'This plugin allows your Redmine installation to receive Github post-receive notifications'
version '2.0.0'
version RedmineGithubHook::VERSION
end
10 changes: 10 additions & 0 deletions lib/redmine_github_hook.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require "redmine_github_hook/version"

module RedmineGithubHook
# Run the classic redmine plugin initializer after rails boot
class Plugin < ::Rails::Engine
config.after_initialize do
require File.expand_path("../../init", __FILE__)
end
end
end
3 changes: 3 additions & 0 deletions lib/redmine_github_hook/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module RedmineGithubHook
VERSION = "2.0.0"
end
22 changes: 22 additions & 0 deletions redmine_github_hook.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'redmine_github_hook/version'

Gem::Specification.new do |spec|
spec.name = "redmine_github_hook"
spec.version = RedmineGithubHook::VERSION
spec.authors = ["Jakob Skjerning"]
spec.email = ["[email protected]"]
spec.summary = "Allow your Redmine installation to be notified when changes have been pushed to a Github repository."
spec.homepage = ""
spec.license = "MIT"

spec.files = `git ls-files`.split($/)
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.add_development_dependency "bundler", "~> 1.5"
spec.add_development_dependency "rake"
end

0 comments on commit a82bccc

Please sign in to comment.