diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d87d4be --- /dev/null +++ b/.gitignore @@ -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 diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..b5236ec --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' + +# Specify your gem's dependencies in redmine_github_hook.gemspec +gemspec diff --git a/Rakefile b/Rakefile index 3313fff..c67a2c8 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,4 @@ +require "bundler/gem_tasks" require 'rake/testtask' Rake::TestTask.new do |t| @@ -7,4 +8,4 @@ Rake::TestTask.new do |t| t.verbose = true end -task :default => :test \ No newline at end of file +task :default => :test diff --git a/init.rb b/init.rb index 3f1048c..7197b48 100644 --- a/init.rb +++ b/init.rb @@ -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 diff --git a/lib/redmine_github_hook.rb b/lib/redmine_github_hook.rb new file mode 100644 index 0000000..7966353 --- /dev/null +++ b/lib/redmine_github_hook.rb @@ -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 diff --git a/lib/redmine_github_hook/version.rb b/lib/redmine_github_hook/version.rb new file mode 100644 index 0000000..c4d764c --- /dev/null +++ b/lib/redmine_github_hook/version.rb @@ -0,0 +1,3 @@ +module RedmineGithubHook + VERSION = "2.0.0" +end diff --git a/redmine_github_hook.gemspec b/redmine_github_hook.gemspec new file mode 100644 index 0000000..fe14a89 --- /dev/null +++ b/redmine_github_hook.gemspec @@ -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 = ["jakob@mentalized.net"] + 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