Commit 962a926ad5d20afb4befd4a436a69c700cda4927
1 parent
e7e7670b
Exists in
master
and in
1 other branch
Avoid require issue_tracker model directly in Gemfile when it's not
needed
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
Gemfile
@@ -44,7 +44,7 @@ gem 'octokit' | @@ -44,7 +44,7 @@ gem 'octokit' | ||
44 | gem 'gitlab', :git => 'https://github.com/NARKOZ/gitlab.git' | 44 | gem 'gitlab', :git => 'https://github.com/NARKOZ/gitlab.git' |
45 | 45 | ||
46 | # Bitbucket Issues | 46 | # Bitbucket Issues |
47 | -gem 'bitbucket_rest_api' | 47 | +gem 'bitbucket_rest_api', :require => false |
48 | 48 | ||
49 | # Unfuddle | 49 | # Unfuddle |
50 | gem "taskmapper", "~> 0.8.0" | 50 | gem "taskmapper", "~> 0.8.0" |
app/models/issue_trackers/bitbucket_issues_tracker.rb
1 | +require 'bitbucket_rest_api' | ||
1 | class IssueTrackers::BitbucketIssuesTracker < IssueTracker | 2 | class IssueTrackers::BitbucketIssuesTracker < IssueTracker |
2 | Label = "bitbucket" | 3 | Label = "bitbucket" |
3 | Note = 'Please configure your Bitbucket repository in the <strong>BITBUCKET REPO</strong> field above.' | 4 | Note = 'Please configure your Bitbucket repository in the <strong>BITBUCKET REPO</strong> field above.' |