relevance-cap_gun 0.0.5 → 0.0.7
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 +4 -0
- data/cap_gun.gemspec +2 -2
- data/lib/cap_gun.rb +2 -2
- data/spec/cap_gun_spec.rb +4 -3
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
v0.0.7. Pick up changelog and gemspec
|
2
|
+
|
3
|
+
v0.0.6. Fix subject line if there *is* a rails_env defined - this was a bug introduced with the 0.0.5 'fix'. Awesome.
|
4
|
+
|
1
5
|
v0.0.5. Fix subject line iv there is no rails_env defined
|
2
6
|
|
3
7
|
v0.0.4. Add dev dependency on echoe; update manifest
|
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.7"
|
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-07-
|
7
|
+
s.date = %q{2008-07-17}
|
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
@@ -27,7 +27,7 @@ require File.join(File.dirname(__FILE__), *%w[.. vendor action_mailer_tls lib sm
|
|
27
27
|
#
|
28
28
|
# See README for full install/config instructions.
|
29
29
|
module CapGun
|
30
|
-
VERSION = '0.0.
|
30
|
+
VERSION = '0.0.7'
|
31
31
|
|
32
32
|
module Helper
|
33
33
|
|
@@ -116,7 +116,7 @@ module CapGun
|
|
116
116
|
end
|
117
117
|
|
118
118
|
def deployed_to(capistrano)
|
119
|
-
returning(
|
119
|
+
returning(deploy_msg = "deployed") { |msg| msg << " to #{capistrano[:rails_env]}" if capistrano[:rails_env] }
|
120
120
|
end
|
121
121
|
|
122
122
|
# Create the body of the message using a bunch of values from Capistrano
|
data/spec/cap_gun_spec.rb
CHANGED
@@ -115,14 +115,15 @@ describe "CapGun" do
|
|
115
115
|
describe "creating body" do
|
116
116
|
it "has a friendly summary line" do
|
117
117
|
CapGun::Mailer.any_instance.stubs(:current_user).returns("jdoe")
|
118
|
-
capistrano = { :application => "my app", :rails_env => "staging", :current_release => "/data/foo/releases/20080227120000",
|
118
|
+
capistrano = { :application => "my app", :rails_env => "staging", :current_release => "/data/foo/releases/20080227120000", :cap_gun_email_envelope => {} }
|
119
119
|
mail = CapGun::Mailer.create_deployment_notification capistrano
|
120
|
+
mail.subject.should == "[DEPLOY] my app deployed to staging"
|
120
121
|
mail.body.split("\n").first.should == "my app was deployed to staging by jdoe at February 27th, 2008 8:00 AM EDT."
|
121
122
|
end
|
122
123
|
|
123
|
-
it "does not include rails env
|
124
|
+
it "does not include rails env if not defined" do
|
124
125
|
CapGun::Mailer.any_instance.stubs(:current_user).returns("jdoe")
|
125
|
-
capistrano = { :application => "my app", :current_release => "/data/foo/releases/20080227120000", :cap_gun_email_envelope => {
|
126
|
+
capistrano = { :application => "my app", :current_release => "/data/foo/releases/20080227120000", :cap_gun_email_envelope => {}}
|
126
127
|
mail = CapGun::Mailer.create_deployment_notification capistrano
|
127
128
|
mail.subject.should == "[DEPLOY] my app deployed"
|
128
129
|
mail.body.split("\n").first.should == "my app was deployed by jdoe at February 27th, 2008 8:00 AM EDT."
|
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.7
|
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-07-
|
12
|
+
date: 2008-07-17 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|