cap_gun_reloaded 0.2.0 → 0.2.1

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{cap_gun_reloaded}
5
- s.version = "0.2.0"
5
+ s.version = "0.2.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Rob Sanheim", "Muness Alrubaie", "Relevance", "Leigh Caplan"]
@@ -56,7 +56,7 @@ module CapGun
56
56
  end
57
57
 
58
58
  def git_log_messages
59
- messages = `git log #{capistrano[:previous_revision]}..#{capistrano[:current_revision]} --pretty=format:%h:%s`
59
+ messages = `git log #{capistrano[:previous_revision]}..#{capistrano[:latest_revision]} --pretty=format:%h:%s`
60
60
  exit_code.success? ? messages : "N/A"
61
61
  end
62
62
 
@@ -75,6 +75,10 @@ module CapGun
75
75
  local.strftime("%B #{local.day.ordinalize}, %Y %l:%M %p #{local_timezone}").gsub(/\s+/, ' ').strip
76
76
  end
77
77
 
78
+ def present_time(time)
79
+ time.strftime("%B #{time.day.ordinalize}, %Y %l:%M %p #{local_timezone}").gsub(/\s+/, ' ').strip
80
+ end
81
+
78
82
  # Use some DateTime magicrey to convert UTC to the current time zone
79
83
  # When the whole world is on Rails 2.1 (and therefore new ActiveSupport) we can use the magic timezone support there.
80
84
  def convert_from_utc(timestamp)
@@ -93,7 +97,7 @@ module CapGun
93
97
  end
94
98
 
95
99
  def release_time
96
- humanize_release_time(capistrano[:current_release])
100
+ present_time(Time.now)
97
101
  end
98
102
 
99
103
  def previous_release_time
@@ -114,12 +118,9 @@ module CapGun
114
118
  #{comment}
115
119
  Deployment details
116
120
  ==================
117
- Release: #{capistrano[:current_release]}
118
- Release Time: #{release_time}
119
- Release Revision: #{capistrano[:current_revision]}
121
+ Current Branch: #{capistrano[:current_revision]}
120
122
 
121
- Previous Release: #{capistrano[:previous_release]}
122
- Previous Release Time: #{previous_release_time}
123
+ Release Revision: #{capistrano[:latest_revision]}
123
124
  Previous Release Revision: #{capistrano[:previous_revision]}
124
125
 
125
126
  Repository: #{capistrano[:repository]}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap_gun_reloaded
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Sanheim