capistrano-tagging 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  class Tagging
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
@@ -12,12 +12,11 @@ Capistrano::Configuration.instance.load do
12
12
  namespace :tagging do
13
13
 
14
14
  def tag(options = {})
15
- tag_format = (tag_format || ':rails_env_:release').gsub(/:([a-z_]+[^_:])/i) do |match|
15
+ tag_format = exists?(:tag_format) && fetch(:tag_format)
16
+ return (tag_format || ':rails_env_:release').gsub(/:([a-z_]+[^_:])/i) do |match|
16
17
  method = $1.to_sym
17
- match = options[method] || send(method) || ''
18
+ match = options[method] || (exists?(method) && fetch(method)) || (respond_to?(method) && send(method)) || ''
18
19
  end
19
-
20
- tag_format
21
20
  end
22
21
 
23
22
  desc "Place release tag into Git and push it to server."
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.6
4
+ version: 0.0.7
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: &70260309342360 !ruby/object:Gem::Requirement
17
+ requirement: &70223474700880 !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: *70260309342360
25
+ version_requirements: *70223474700880
26
26
  description: ! ' With every commit tag the local and remote branch with a tag
27
27
 
28
28
  '