Skip to content

Commit 6473de8

Browse files
author
root
committed
Fix #4
1 parent 7a8be20 commit 6473de8

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ source 'https://rubygems.org'
33
gem "inifile", "~>0.4.1"
44
gem "lockfile", "~>1.4.3"
55
gem "net-ssh", "~>2.1.4"
6+
gem "backports"

app/controllers/gitolite_hooks_controller.rb

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
include ActionView::Helpers::TextHelper
22

3-
4-
53
class GitoliteHooksController < ApplicationController
64

75
skip_before_filter :verify_authenticity_token, :check_if_login_required, :except => :test

lib/redmine_git_hosting.rb

+7
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,11 @@ def apply_patch(&block)
6262
## Redmine Git Hosting Hooks
6363
require_dependency 'redmine_git_hosting/hooks/git_project_show_hook'
6464
require_dependency 'redmine_git_hosting/hooks/git_repo_url_hook'
65+
66+
## Backport lib
67+
## Fix Enumerable::Enumerator for Ruby 1.8.7
68+
## https://github.com/jbox-web/redmine_git_hosting/issues/4
69+
if RUBY_VERSION == '1.8.7'
70+
require_dependency 'backports'
71+
end
6572
end

0 commit comments

Comments
 (0)