capistrano-notifier 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
@@ -18,7 +18,7 @@ class Capistrano::Notifier::Base
18
18
  end
19
19
 
20
20
  def git_current_revision
21
- cap.current_revision[0,7] if cap.respond_to? :current_revision
21
+ cap.current_revision.try(:[], 0,7) if cap.respond_to?(:current_revision)
22
22
  end
23
23
 
24
24
  def git_log
@@ -28,7 +28,7 @@ class Capistrano::Notifier::Base
28
28
  end
29
29
 
30
30
  def git_previous_revision
31
- cap.previous_revision[0,7] if cap.respond_to? :previous_revision
31
+ cap.previous_revision.try(:[], 0,7) if cap.respond_to?(:previous_revision)
32
32
  end
33
33
 
34
34
  def git_range
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Notifier
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-01-11 00:00:00.000000000 Z
13
+ date: 2013-05-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: actionmailer
@@ -151,21 +151,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
151
  - - ! '>='
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0'
154
- segments:
155
- - 0
156
- hash: -700121420444324432
157
154
  required_rubygems_version: !ruby/object:Gem::Requirement
158
155
  none: false
159
156
  requirements:
160
157
  - - ! '>='
161
158
  - !ruby/object:Gem::Version
162
159
  version: '0'
163
- segments:
164
- - 0
165
- hash: -700121420444324432
166
160
  requirements: []
167
161
  rubyforge_project:
168
- rubygems_version: 1.8.24
162
+ rubygems_version: 1.8.23
169
163
  signing_key:
170
164
  specification_version: 3
171
165
  summary: Capistrano Notifier
@@ -175,3 +169,4 @@ test_files:
175
169
  - spec/capistrano/notifier/statsd_spec.rb
176
170
  - spec/capistrano/notifier_spec.rb
177
171
  - spec/spec_helper.rb
172
+ has_rdoc: