capistrano-tagging 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,10 +12,9 @@ Capistrano::Configuration.instance.load do
12
12
  namespace :tagging do
13
13
 
14
14
  def tag(options = {})
15
- tag_format = exists?(:tag_format) && fetch(:tag_format)
16
- return (tag_format || ':rails_env_:release').gsub(/:([a-z_]+[^_:])/i) do |match|
15
+ return fetch(:tag_format, ":rails_env_:release").gsub(/:([a-z_]+[^_:])/i) do |match|
17
16
  method = $1.to_sym
18
- match = options[method] || (exists?(method) && fetch(method)) || (respond_to?(method) && send(method)) || ''
17
+ match = options[method] || fetch(method, false) || (send(method) rescue '')
19
18
  end
20
19
  end
21
20
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  class Tagging
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-tagging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2011-01-31 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano
17
- requirement: &70223474700880 !ruby/object:Gem::Requirement
17
+ requirement: &70303548184020 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,7 +22,7 @@ dependencies:
22
22
  version: 1.0.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70223474700880
25
+ version_requirements: *70303548184020
26
26
  description: ! ' With every commit tag the local and remote branch with a tag
27
27
 
28
28
  '