relevance-cap_gun 0.0.7 → 0.0.8
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.
- data/CHANGELOG +2 -0
- data/README.rdoc +13 -1
- data/cap_gun.gemspec +2 -2
- data/lib/cap_gun.rb +1 -2
- data/spec/cap_gun_spec.rb +6 -0
- metadata +2 -2
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -34,6 +34,15 @@ In your Capistrano config file (usually deploy.rb):
|
|
34
34
|
|
35
35
|
# Test everything out by running "cap cap_gun:email"
|
36
36
|
|
37
|
+
== USAGE
|
38
|
+
|
39
|
+
Good news: it just works.
|
40
|
+
|
41
|
+
Want to make the notifications even better and explain _why_ you're deploying?
|
42
|
+
Just include a comment in the cap command like so, and CapGun will add the comment to the email notification.
|
43
|
+
|
44
|
+
cap -s comment="fix for bug #303" deploy
|
45
|
+
|
37
46
|
== REQUIREMENTS
|
38
47
|
|
39
48
|
* Capistrano 2+
|
@@ -81,4 +90,7 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
81
90
|
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
82
91
|
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
83
92
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
84
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
93
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
94
|
+
|
95
|
+
|
96
|
+
|
data/cap_gun.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{cap_gun}
|
3
|
-
s.version = "0.0.
|
3
|
+
s.version = "0.0.8"
|
4
4
|
|
5
5
|
s.required_rubygems_version = Gem::Requirement.new("= 1.2") if s.respond_to? :required_rubygems_version=
|
6
6
|
s.authors = ["Rob Sanheim, Relevance"]
|
7
|
-
s.date = %q{2008-
|
7
|
+
s.date = %q{2008-09-29}
|
8
8
|
s.description = %q{Super simple capistrano deployments.}
|
9
9
|
s.email = %q{opensource@thinkrelevance.com}
|
10
10
|
s.extra_rdoc_files = ["CHANGELOG", "lib/cap_gun.rb", "MIT-LICENSE", "README.rdoc"]
|
data/lib/cap_gun.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'active_support'
|
2
1
|
require 'action_mailer'
|
3
2
|
require File.join(File.dirname(__FILE__), *%w[.. vendor action_mailer_tls lib smtp_tls])
|
4
3
|
|
@@ -27,7 +26,7 @@ require File.join(File.dirname(__FILE__), *%w[.. vendor action_mailer_tls lib sm
|
|
27
26
|
#
|
28
27
|
# See README for full install/config instructions.
|
29
28
|
module CapGun
|
30
|
-
VERSION = '0.0.
|
29
|
+
VERSION = '0.0.8'
|
31
30
|
|
32
31
|
module Helper
|
33
32
|
|
data/spec/cap_gun_spec.rb
CHANGED
@@ -4,6 +4,7 @@ require 'test/unit'
|
|
4
4
|
require 'test/spec'
|
5
5
|
require 'mocha'
|
6
6
|
require 'net/smtp'
|
7
|
+
require 'redgreen' unless Object.const_defined?("TextMate")
|
7
8
|
require File.join(File.dirname(__FILE__), *%w[.. lib cap_gun])
|
8
9
|
|
9
10
|
describe "CapGun" do
|
@@ -113,6 +114,11 @@ describe "CapGun" do
|
|
113
114
|
end
|
114
115
|
|
115
116
|
describe "creating body" do
|
117
|
+
before do # make DateTime act as if local timezone is EDT
|
118
|
+
CapGun::Mailer.any_instance.stubs(:local_timezone).returns("EDT")
|
119
|
+
CapGun::Mailer.any_instance.stubs(:local_datetime_zone_offset).returns(Rational(-1,6))
|
120
|
+
end
|
121
|
+
|
116
122
|
it "has a friendly summary line" do
|
117
123
|
CapGun::Mailer.any_instance.stubs(:current_user).returns("jdoe")
|
118
124
|
capistrano = { :application => "my app", :rails_env => "staging", :current_release => "/data/foo/releases/20080227120000", :cap_gun_email_envelope => {} }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relevance-cap_gun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Sanheim, Relevance
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-09-29 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|