redmine_github_hook 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c30863fa492b92934b5a26ac38859b3c914a7521
4
+ data.tar.gz: 9f87ea3e8368290abcc8ffe8d6a0e2620189292e
5
+ SHA512:
6
+ metadata.gz: aeb53b9b14fcf449a6d27fc3e7b6f747b0b735605a35f67321687f5f7acdf699dff8e6fb29f39740225a50bd6f21c7ef6bc8ea869c06d2f404547107ea4fe8a0
7
+ data.tar.gz: ae96c35e10d754a00acbd373ec0e89eb3875b1c7764b0c25a7f9602b39d92d24e59bbd3ddf66a002615ec945406e856522d1ca652edec8fba8dbc539df32da78
data/.gitignore ADDED
@@ -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
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in redmine_github_hook.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2010 Jakob Skjerning
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,92 @@
1
+ # Redmine GitHub Hook
2
+
3
+ This plugin allows you to update your local Git repositories in Redmine when changes have been pushed to GitHub.
4
+
5
+ ## Description
6
+
7
+ [Redmine](http://redmine.org) has supported Git repositories for a long time, allowing you to browse your code and view your changesets directly in Redmine. For this purpose, Redmine relies on local clones of the Git repositories.
8
+
9
+ If your shared repository is on a remote machine - for example on GitHub - this unfortunately means a bit of legwork to keep the local, Redmine-accessible repository up-to-date. The common approach is to set up a cronjob that pulls in any changes with regular intervals and updates Redmine with them.
10
+
11
+ That approach works perfectly fine, but is a bit heavy-handed and cumbersome. The Redmine GitHub Hook plugin allows GitHub to notify your Redmine installation when changes have been pushed to a repository, triggering an update of your local repository and Redmine data only when it is actually necessary.
12
+
13
+
14
+ ## Installation
15
+
16
+ 1. Installing the plugin
17
+ 1. Install the [json gem](http://json.rubyforge.org/) on the machine where Redmine is running.
18
+ 2. Follow the plugin installation procedure outlined in the [Redmine wiki](http://www.redmine.org/wiki/redmine/Plugins).
19
+ * Make sure that Redmine GitHub Hook is installed in a directory named `redmine_github_hook`
20
+ 3. Restart your Redmine.
21
+ 4. If you already have a local Git repository set up and working from Redmine go to step 3, otherwise continue at step 2.
22
+
23
+ 2. Adding a Git repository to a project (note, this should work whether you want to use Redmine GitHub Hook or not). Simply follow the instructions for [keeping your git repository in sync](http://www.redmine.org/wiki/redmine/HowTo_keep_in_sync_your_git_repository_for_redmine).
24
+
25
+ 3. Connecting GitHub to Redmine
26
+ 1. Go to the repository Settings interface on GitHub.
27
+ 2. Under "Webhooks & Services" add a new "WebHook". The "Payload URL" needs to be of the format: `[redmine_url]/github_hook` (for example `http://redmine.example.com/github_hook`).
28
+ 1. By default, GitHub Hook assumes your GitHub repository name is the same as the project identifier in your Redmine installation. If this is not the case, you can specify the actual Redmine project identifier in the Post-Receive URL by using the format `[redmine_url]/github_hook?project_id=[identifier]` (for example `http://redmine.example.com/github_hook?project_id=my_project`).
29
+ 2. In most cases, just having the "push" event trigger the webhook should suffice, but you are free to customize the events as you desire.
30
+
31
+ That's it. GitHub will now send a HTTP POST to the Redmine GitHub Hook plugin whenever changes are pushed to GitHub. The plugin then takes care of pulling the changes to the local repository and updating the Redmine database with them.
32
+
33
+
34
+ ## Assumptions
35
+
36
+ * Redmine 2 running on a *nix-like system. Redmine versions before 2.0 should use the redmine_1.x branch.
37
+ * Git 1.5 or higher available on the commandline.
38
+
39
+
40
+ ## Troubleshooting
41
+
42
+ ### Check your logfile
43
+
44
+ If you run into issues, your Redmine logfile might have some valuable information. Two things to check for:
45
+
46
+ 1. Do POST requests to `/github_hook` show up in the logfile at all? If so, what's the resulting status code?
47
+ 2. If the git command used to pull in changes fails for whatever reason, there should also be some details about the failure in the logfile.
48
+
49
+ The logfile is usually found in your Redmine directory in `log/production.log` although your webserver logs may contain some additional clues.
50
+
51
+ ### Permissions problems
52
+
53
+ As for permissions, whatever user Redmine is running as needs permissions to do the following things:
54
+
55
+ * Read from the remote repository on GitHub
56
+ * Read and write to the local repository on the Redmine server
57
+
58
+ What user you are running Redmine as depends on your system and how you've setup your Redmine installation.
59
+
60
+ #### GitHub
61
+
62
+ This means you need to add its SSH keys on GitHub. If the user doesn't already have an SSH key, generate one and add the public SSH key as a Deploy Key for the repository on GitHub (or as one of your own keys, if you prefer that).
63
+
64
+ #### Local repository
65
+
66
+ The user running Redmine needs permissions to read and write to the local repository on the server.
67
+
68
+
69
+ ## License
70
+
71
+ Copyright (c) 2009-2013 Jakob Skjerning
72
+
73
+ Permission is hereby granted, free of charge, to any person
74
+ obtaining a copy of this software and associated documentation
75
+ files (the "Software"), to deal in the Software without
76
+ restriction, including without limitation the rights to use,
77
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
78
+ copies of the Software, and to permit persons to whom the
79
+ Software is furnished to do so, subject to the following
80
+ conditions:
81
+
82
+ The above copyright notice and this permission notice shall be
83
+ included in all copies or substantial portions of the Software.
84
+
85
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
87
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
88
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
89
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
92
+ OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,11 @@
1
+ require "bundler/gem_tasks"
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new do |t|
5
+ t.libs << "test"
6
+ files = FileList['test/**/*test.rb']
7
+ t.test_files = files
8
+ t.verbose = true
9
+ end
10
+
11
+ task :default => :test
@@ -0,0 +1,117 @@
1
+ require 'json'
2
+
3
+ class GithubHookController < ApplicationController
4
+
5
+ GIT_BIN = Redmine::Configuration['scm_git_command'] || "git"
6
+ skip_before_filter :verify_authenticity_token, :check_if_login_required
7
+
8
+ def index
9
+ if request.post?
10
+ repositories = find_repositories
11
+
12
+ repositories.each do |repository|
13
+ # Fetch the changes from Github
14
+ update_repository(repository)
15
+
16
+ # Fetch the new changesets into Redmine
17
+ repository.fetch_changesets
18
+ end
19
+ end
20
+
21
+ render(:text => 'OK')
22
+ end
23
+
24
+ def welcome
25
+ # Render the default layout
26
+ end
27
+
28
+ private
29
+
30
+ def system(command)
31
+ Kernel.system(command)
32
+ end
33
+
34
+ # Executes shell command. Returns true if the shell command exits with a
35
+ # success status code.
36
+ #
37
+ # If directory is given the current directory will be changed to that
38
+ # directory before executing command.
39
+ def exec(command, directory)
40
+ logger.debug { "GithubHook: Executing command: '#{command}'" }
41
+
42
+ # Get a path to a temp file
43
+ logfile = Tempfile.new('github_hook_exec')
44
+ logfile.close
45
+
46
+ full_command = "#{command} > #{logfile.path} 2>&1"
47
+ success = if directory.present?
48
+ Dir.chdir(directory) do
49
+ system(full_command)
50
+ end
51
+ else
52
+ system(full_command)
53
+ end
54
+
55
+ output_from_command = File.readlines(logfile.path)
56
+ if success
57
+ logger.debug { "GithubHook: Command output: #{output_from_command.inspect}"}
58
+ else
59
+ logger.error { "GithubHook: Command '#{command}' didn't exit properly. Full output: #{output_from_command.inspect}"}
60
+ end
61
+
62
+ return success
63
+ ensure
64
+ logfile.unlink
65
+ end
66
+
67
+ def git_command(command)
68
+ GIT_BIN + " #{command}"
69
+ end
70
+
71
+ # Fetches updates from the remote repository
72
+ def update_repository(repository)
73
+ command = git_command('fetch origin')
74
+ if exec(command, repository.url)
75
+ command = git_command("fetch origin \"+refs/heads/*:refs/heads/*\"")
76
+ exec(command, repository.url)
77
+ end
78
+ end
79
+
80
+ # Gets the project identifier from the querystring parameters and if that's not supplied, assume
81
+ # the Github repository name is the same as the project identifier.
82
+ def get_identifier
83
+ identifier = get_project_name
84
+ raise ActiveRecord::RecordNotFound, "Project identifier not specified" if identifier.nil?
85
+ return identifier
86
+ end
87
+
88
+ # Attempts to find the project name. It first looks in the params, then in the
89
+ # payload if params[:project_id] isn't given.
90
+ def get_project_name
91
+ payload = JSON.parse(params[:payload] || '{}')
92
+ params[:project_id] || (payload['repository'] ? payload['repository']['name'] : nil)
93
+ end
94
+
95
+ # Finds the Redmine project in the database based on the given project identifier
96
+ def find_project
97
+ identifier = get_identifier
98
+ project = Project.find_by_identifier(identifier.downcase)
99
+ raise ActiveRecord::RecordNotFound, "No project found with identifier '#{identifier}'" if project.nil?
100
+ return project
101
+ end
102
+
103
+ # Returns the Redmine Repository object we are trying to update
104
+ def find_repositories
105
+ project = find_project
106
+ repositories = project.repositories.select do |repo|
107
+ repo.is_a?(Repository::Git)
108
+ end
109
+
110
+ if repositories.nil? or repositories.length == 0
111
+ raise TypeError, "Project '#{project.to_s}' ('#{project.identifier}') has no repository"
112
+ end
113
+
114
+ return repositories
115
+ end
116
+
117
+ end
@@ -0,0 +1,2 @@
1
+ module GitHookHelper
2
+ end
@@ -0,0 +1,13 @@
1
+ <div class="wiki">
2
+
3
+ <h2>You have successfully installed the Redmine GitHub Hook Plugin.</h2>
4
+
5
+ <p>
6
+ This page is just a confirmation that you have successfully installed the plugin.
7
+ Follow the rest of the installation:
8
+ <a href="https://github.com/koppen/redmine_github_hook" class="external">
9
+ Redmine GitHub Hook Plugin on GitHub
10
+ </a>
11
+ </p>
12
+
13
+ </div>
data/config/routes.rb ADDED
@@ -0,0 +1,4 @@
1
+ RedmineApp::Application.routes.draw do
2
+ match 'github_hook' => 'github_hook#index', :via => [:post]
3
+ match 'github_hook' => 'github_hook#welcome', :via => [:get]
4
+ end
data/init.rb ADDED
@@ -0,0 +1,8 @@
1
+ require 'redmine'
2
+
3
+ Redmine::Plugin.register :redmine_github_hook do
4
+ name 'Redmine Github Hook plugin'
5
+ author 'Jakob Skjerning'
6
+ description 'This plugin allows your Redmine installation to receive Github post-receive notifications'
7
+ version RedmineGithubHook::VERSION
8
+ end
data/lang/en.yml ADDED
@@ -0,0 +1,2 @@
1
+ # English strings go here
2
+ my_label: "My label"
@@ -0,0 +1,3 @@
1
+ module RedmineGithubHook
2
+ VERSION = "2.0.0"
3
+ end
@@ -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
@@ -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 = ["jakob@mentalized.net"]
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,0 +1,203 @@
1
+ require 'test_helper'
2
+
3
+ require 'test/unit'
4
+ require 'mocha'
5
+
6
+ class GithubHookControllerTest < ActionController::TestCase
7
+ def json
8
+ # Sample JSON post from http://github.com/guides/post-receive-hooks
9
+ '{
10
+ "before": "5aef35982fb2d34e9d9d4502f6ede1072793222d",
11
+ "repository": {
12
+ "url": "http://github.com/defunkt/github",
13
+ "name": "github",
14
+ "description": "You\'re lookin\' at it.",
15
+ "watchers": 5,
16
+ "forks": 2,
17
+ "private": 1,
18
+ "owner": {
19
+ "email": "chris@ozmm.org",
20
+ "name": "defunkt"
21
+ }
22
+ },
23
+ "commits": [
24
+ {
25
+ "id": "41a212ee83ca127e3c8cf465891ab7216a705f59",
26
+ "url": "http://github.com/defunkt/github/commit/41a212ee83ca127e3c8cf465891ab7216a705f59",
27
+ "author": {
28
+ "email": "chris@ozmm.org",
29
+ "name": "Chris Wanstrath"
30
+ },
31
+ "message": "okay i give in",
32
+ "timestamp": "2008-02-15T14:57:17-08:00",
33
+ "added": ["filepath.rb"]
34
+ },
35
+ {
36
+ "id": "de8251ff97ee194a289832576287d6f8ad74e3d0",
37
+ "url": "http://github.com/defunkt/github/commit/de8251ff97ee194a289832576287d6f8ad74e3d0",
38
+ "author": {
39
+ "email": "chris@ozmm.org",
40
+ "name": "Chris Wanstrath"
41
+ },
42
+ "message": "update pricing a tad",
43
+ "timestamp": "2008-02-15T14:36:34-08:00"
44
+ }
45
+ ],
46
+ "after": "de8251ff97ee194a289832576287d6f8ad74e3d0",
47
+ "ref": "refs/heads/master"
48
+ }'
49
+ end
50
+
51
+ def repository
52
+ return @repository if @repository
53
+
54
+ @repository ||= Repository::Git.new
55
+ @repository.stubs(:fetch_changesets).returns(true)
56
+ @repository
57
+ end
58
+
59
+ def project
60
+ return @project if @project
61
+
62
+ @project ||= Project.new
63
+ @project.repositories << repository
64
+ @project
65
+ end
66
+
67
+ def setup
68
+ Project.stubs(:find_by_identifier).with('github').returns(project)
69
+
70
+ # Make sure we don't run actual commands in test
71
+ @controller.expects(:system).never
72
+ Repository.expects(:fetch_changesets).never
73
+ end
74
+
75
+ def mock_descriptor(kind, contents = [])
76
+ descriptor = mock(kind)
77
+ descriptor.expects(:readlines).returns(contents)
78
+ descriptor
79
+ end
80
+
81
+ def do_post(payload = nil)
82
+ payload = json if payload.nil?
83
+ payload = payload.to_json if payload.is_a?(Hash)
84
+ post :index, :payload => payload
85
+ end
86
+
87
+ def test_should_use_the_repository_name_as_project_identifier
88
+ Project.expects(:find_by_identifier).with('github').returns(project)
89
+ @controller.stubs(:exec).returns(true)
90
+ do_post
91
+ end
92
+
93
+ def test_should_fetch_changes_from_origin
94
+ Project.expects(:find_by_identifier).with('github').returns(project)
95
+ @controller.expects(:exec).with("git fetch origin", repository.url)
96
+ do_post
97
+ end
98
+
99
+ def test_should_reset_repository_when_fetch_origin_succeeds
100
+ Project.expects(:find_by_identifier).with('github').returns(project)
101
+ @controller.expects(:exec).with("git fetch origin", repository.url).returns(true)
102
+ @controller.expects(:exec).with("git fetch origin \"+refs/heads/*:refs/heads/*\"", repository.url)
103
+ do_post
104
+ end
105
+
106
+ def test_should_not_reset_repository_when_fetch_origin_fails
107
+ Project.expects(:find_by_identifier).with('github').returns(project)
108
+ @controller.expects(:exec).with("git fetch origin", repository.url).returns(false)
109
+ @controller.expects(:exec).with("git reset --soft refs\/remotes\/origin\/master", repository.url).never
110
+ do_post
111
+ end
112
+
113
+ def test_should_use_project_identifier_from_request
114
+ Project.expects(:find_by_identifier).with('redmine').returns(project)
115
+ @controller.stubs(:exec).returns(true)
116
+ post :index, :project_id => 'redmine', :payload => json
117
+ end
118
+
119
+ def test_should_return_404_if_project_identifier_not_found
120
+ assert_raises ActiveRecord::RecordNotFound do
121
+ post :index
122
+ end
123
+ end
124
+
125
+ def test_should_downcase_identifier
126
+ # Redmine project identifiers are always downcase
127
+ Project.expects(:find_by_identifier).with('redmine').returns(project)
128
+ @controller.stubs(:exec).returns(true)
129
+ post :index, :project_id => 'ReDmInE', :payload => json
130
+ end
131
+
132
+ def test_should_render_ok_when_done
133
+ @controller.expects(:update_repository).returns(true)
134
+ do_post
135
+ assert_response :success
136
+ assert_equal 'OK', @response.body
137
+ end
138
+
139
+ def test_should_fetch_changesets_into_the_repository
140
+ @controller.expects(:update_repository).returns(true)
141
+ repository.expects(:fetch_changesets).returns(true)
142
+
143
+ do_post
144
+ assert_response :success
145
+ assert_equal 'OK', @response.body
146
+ end
147
+
148
+ def test_should_return_404_if_project_identifier_not_given
149
+ assert_raises ActiveRecord::RecordNotFound do
150
+ do_post :repository => {}
151
+ end
152
+ end
153
+
154
+ def test_should_return_404_if_project_not_found
155
+ assert_raises ActiveRecord::RecordNotFound do
156
+ Project.expects(:find_by_identifier).with('foobar').returns(nil)
157
+ do_post :repository => {:name => 'foobar'}
158
+ end
159
+ end
160
+
161
+ def test_should_return_500_if_project_has_no_repository
162
+ assert_raises TypeError do
163
+ project = mock('project', :to_s => 'My Project', :identifier => 'github')
164
+ project.expects(:repositories).returns([])
165
+ Project.expects(:find_by_identifier).with('github').returns(project)
166
+ do_post :repository => {:name => 'github'}
167
+ end
168
+ end
169
+
170
+ def test_should_return_500_if_repository_is_not_git
171
+ assert_raises TypeError do
172
+ project = mock('project', :to_s => 'My Project', :identifier => 'github')
173
+ repository = Repository::Subversion.new
174
+ project.expects(:repositories).at_least(1).returns([repository])
175
+ Project.expects(:find_by_identifier).with('github').returns(project)
176
+ do_post :repository => {:name => 'github'}
177
+ end
178
+ end
179
+
180
+ def test_should_not_require_login
181
+ @controller.expects(:update_repository).returns(true)
182
+ @controller.expects(:check_if_login_required).never
183
+ do_post
184
+ end
185
+
186
+ def test_exec_should_log_output_from_git_as_debug_when_things_go_well
187
+ @controller.expects(:system).at_least(1).returns(true)
188
+ @controller.logger.expects(:debug).at_least(1)
189
+ do_post
190
+ end
191
+
192
+ def test_exec_should_log_output_from_git_as_error_when_things_go_sour
193
+ @controller.expects(:system).at_least(1).returns(false)
194
+ @controller.logger.expects(:error).at_least(1)
195
+ do_post
196
+ end
197
+
198
+ def test_should_respond_to_get
199
+ get :index
200
+ assert_response :success
201
+ end
202
+
203
+ end
@@ -0,0 +1,2 @@
1
+ # Load the normal Rails helper from the Redmine host app
2
+ require File.expand_path(File.dirname(__FILE__) + '/../../../test/test_helper')
metadata ADDED
@@ -0,0 +1,92 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: redmine_github_hook
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Jakob Skjerning
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description:
42
+ email:
43
+ - jakob@mentalized.net
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - .gitignore
49
+ - Gemfile
50
+ - LICENSE
51
+ - README.md
52
+ - Rakefile
53
+ - app/controllers/github_hook_controller.rb
54
+ - app/helpers/git_hook_helper.rb
55
+ - app/views/github_hook/welcome.html.erb
56
+ - config/routes.rb
57
+ - init.rb
58
+ - lang/en.yml
59
+ - lib/redmine_github_hook.rb
60
+ - lib/redmine_github_hook/version.rb
61
+ - redmine_github_hook.gemspec
62
+ - test/functional/github_hook_controller_test.rb
63
+ - test/test_helper.rb
64
+ homepage: ''
65
+ licenses:
66
+ - MIT
67
+ metadata: {}
68
+ post_install_message:
69
+ rdoc_options: []
70
+ require_paths:
71
+ - lib
72
+ required_ruby_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ requirements: []
83
+ rubyforge_project:
84
+ rubygems_version: 2.2.2
85
+ signing_key:
86
+ specification_version: 4
87
+ summary: Allow your Redmine installation to be notified when changes have been pushed
88
+ to a Github repository.
89
+ test_files:
90
+ - test/functional/github_hook_controller_test.rb
91
+ - test/test_helper.rb
92
+ has_rdoc: