hercules 0.2.4 → 0.2.5

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/hercules.gemspec +1 -1
  3. data/lib/deployer.rb +3 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{hercules}
8
- s.version = "0.2.4"
8
+ s.version = "0.2.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Diogo Biazus"]
@@ -71,9 +71,10 @@ module Hercules
71
71
  end
72
72
 
73
73
  # Check if the project has a before trigger
74
- def has_before_trigger?; (!@trigger_class.nil? and @trigger_class.methods.include?("before_deploy")) ;end
74
+ # We use the map and convert methods to symbols in order to make it work with both 1.8 and 1.9
75
+ def has_before_trigger?; (!@trigger_class.nil? and @trigger_class.methods.map{|m| m.to_sym}.include?(:before_deploy)) ;end
75
76
  # Check if the project has an after trigger
76
- def has_after_trigger?; (!@trigger_class.nil? and @trigger_class.methods.include?("after_deploy")) ;end
77
+ def has_after_trigger?; (!@trigger_class.nil? and @trigger_class.methods.map{|m| m.to_sym}.include?(:after_deploy)) ;end
77
78
 
78
79
  # Look for triggers in <dir>/lib/hercules_triggers.rb
79
80
  # The triggers should be inside a Hercules module in the Triggers class.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hercules
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Diogo Biazus