capistrano-redmine 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,5 +12,5 @@ Gem::Specification.new do |gem|
12
12
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
13
  gem.name = "capistrano-redmine"
14
14
  gem.require_paths = ["lib"]
15
- gem.version = "0.0.1"
15
+ gem.version = "0.0.2"
16
16
  end
@@ -24,9 +24,12 @@ module Capistrano
24
24
 
25
25
  begin
26
26
  RedmineClient::Project.find(p)
27
+ rescue Errno::ECONNREFUSED
28
+ logger.important "Redmine error: Server unavailable."
29
+ return
27
30
  rescue ActiveResource::UnauthorizedAccess
28
31
  logger.important "Redmine error: Unauthorized Access. Check token."
29
- return
32
+ return
30
33
  rescue ActiveResource::ResourceNotFound
31
34
  logger.important "Redmine error: Project not found."
32
35
  return
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module RedmineClient
3
3
  class Base < ActiveResource::Base
4
-
4
+
5
5
  def self.configure(&block)
6
6
  instance_eval &block
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-redmine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-05 00:00:00.000000000 Z
12
+ date: 2012-07-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! "This gem contains a Capistrano :task, which allows to\n update
15
15
  the Redmine issues statuses when you do deploy with Capistrano."