Skip to content

Commit a82bccc

Browse files
committed
Gemify
This should allow you to install the plugin as a gem, simply by adding it to your Gemfile.local before bundling.
1 parent f3659bf commit a82bccc

File tree

7 files changed

+59
-2
lines changed

7 files changed

+59
-2
lines changed

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
*.gem
2+
*.rbc
3+
.bundle
4+
.config
5+
.yardoc
6+
Gemfile.lock
7+
InstalledFiles
8+
_yardoc
9+
coverage
10+
doc/
11+
lib/bundler/man
12+
pkg
13+
rdoc
14+
spec/reports
15+
test/tmp
16+
test/version_tmp
17+
tmp

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://rubygems.org'
2+
3+
# Specify your gem's dependencies in redmine_github_hook.gemspec
4+
gemspec

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require "bundler/gem_tasks"
12
require 'rake/testtask'
23

34
Rake::TestTask.new do |t|
@@ -7,4 +8,4 @@ Rake::TestTask.new do |t|
78
t.verbose = true
89
end
910

10-
task :default => :test
11+
task :default => :test

init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
name 'Redmine Github Hook plugin'
55
author 'Jakob Skjerning'
66
description 'This plugin allows your Redmine installation to receive Github post-receive notifications'
7-
version '2.0.0'
7+
version RedmineGithubHook::VERSION
88
end

lib/redmine_github_hook.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
require "redmine_github_hook/version"
2+
3+
module RedmineGithubHook
4+
# Run the classic redmine plugin initializer after rails boot
5+
class Plugin < ::Rails::Engine
6+
config.after_initialize do
7+
require File.expand_path("../../init", __FILE__)
8+
end
9+
end
10+
end

lib/redmine_github_hook/version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module RedmineGithubHook
2+
VERSION = "2.0.0"
3+
end

redmine_github_hook.gemspec

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# coding: utf-8
2+
lib = File.expand_path('../lib', __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
require 'redmine_github_hook/version'
5+
6+
Gem::Specification.new do |spec|
7+
spec.name = "redmine_github_hook"
8+
spec.version = RedmineGithubHook::VERSION
9+
spec.authors = ["Jakob Skjerning"]
10+
spec.email = ["[email protected]"]
11+
spec.summary = "Allow your Redmine installation to be notified when changes have been pushed to a Github repository."
12+
spec.homepage = ""
13+
spec.license = "MIT"
14+
15+
spec.files = `git ls-files`.split($/)
16+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18+
spec.require_paths = ["lib"]
19+
20+
spec.add_development_dependency "bundler", "~> 1.5"
21+
spec.add_development_dependency "rake"
22+
end

0 commit comments

Comments
 (0)