dumbwaiter 0.3.6 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ecdc3bda7d10fbfb6e265a6bb7014bc6ff93f186
4
- data.tar.gz: c2c3f6d0985a8e80088bcbbea20f3fc0f4ecaead
3
+ metadata.gz: ec68f942f090e118446193ea9e09a487b8ee9a28
4
+ data.tar.gz: 320549f6150e7669651a360e85f3c95c2cdaa09f
5
5
  SHA512:
6
- metadata.gz: ea521ffdae488a9f1d2b8c8a3d1266ec7979f0ee143f8bccdd915dce9255d4fd5035b13af97d703d2c1c5c0a4cf5e30ebeaf58df9a1ac39217e0ce24ac724c8b
7
- data.tar.gz: ad34b6685b65fcc70826277fc63ecc723addcaa1f90ee1ff7a4fefa49bcf47e784fefe483a4e4590b4d037c04f6475c616f0b7331e2b08595566e7b1aaf2bec3
6
+ metadata.gz: b8907d4f70064b119f597ac078ad0453ce3e2bfadec40b15062a69b254ea5d2515d3c40c4fb9b82f7988b1a30db93666ecd02079349f203c0aebd8e20b9d6dd6
7
+ data.tar.gz: f3664d5fed012c8e7dd47458713deb03fd8f4ff7f40d4ad3bcc83fba17b0bf15eee76fea70088891cb525102e1dea0d0ecf01f1104e6502818a625e2297fdf91
@@ -26,7 +26,11 @@ class Dumbwaiter::Deployment
26
26
  end
27
27
 
28
28
  def user_name
29
- user_profile.name
29
+ if opsworks_deployment.iam_user_arn.nil?
30
+ "?"
31
+ else
32
+ user_profile.name
33
+ end
30
34
  end
31
35
 
32
36
  def git_ref
@@ -1,3 +1,3 @@
1
1
  module Dumbwaiter
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
@@ -24,8 +24,22 @@ describe Dumbwaiter::Deployment do
24
24
  its(:command_name) { should == "deplode" }
25
25
  its(:status) { should == "badical" }
26
26
  its(:git_ref) { should == "eh-buddy" }
27
- its(:user_name) { should == "goose" }
28
27
  its(:to_log) { should == "#{DateTime.parse("last Tuesday")} - goose - deplode - badical - eh-buddy" }
28
+ its(:user_name) { should == "goose" }
29
+
30
+ context "when the iam user arn is nil" do
31
+ let(:fake_deployment) do
32
+ double(:deployment,
33
+ created_at: "last Tuesday",
34
+ command: fake_command,
35
+ status: "badical",
36
+ custom_json: custom_json,
37
+ iam_user_arn: nil
38
+ )
39
+ end
40
+
41
+ its(:user_name) { should == "?" }
42
+ end
29
43
 
30
44
  context "when custom_json is nil" do
31
45
  let(:fake_deployment) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dumbwaiter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doc Ritezel