slackistrano 3.8.2 → 3.8.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4fac68f58cb93ece5bc58a404e97e1e21189d841
4
- data.tar.gz: b58e73827ae619e20a4e2a61081872177c810ac4
2
+ SHA256:
3
+ metadata.gz: 4182bb65adae4e85721e87b7e8efd88dd44224ddab390954eaed03176d1d6e4c
4
+ data.tar.gz: 83ca4551f0befdd201a20692842a294c4c663f42b008e73fa8a2a9060ba3b4d0
5
5
  SHA512:
6
- metadata.gz: 34024139c2b12d28ddcf69428009078d931621ed75018d2c5c448464da14b6291aff0ec6193cc803bbac701c0a34b49ef977100e925d0298a26909f6b7260714
7
- data.tar.gz: 5259c193fe28f066d04972abbe22345295b9ccd8f3a305a9426c26e539c911d5ebc7723ed28221e430f136fe45e767fe6408426391d20ddbbeba1d9b1ceea605
6
+ metadata.gz: faa855d33d46be35c352cbfebce4821db657700574d462571ac1ad083e067629e28508de62cd33c5fc9c0567663edae2ec1d4663c282ab958f5267c08d791220
7
+ data.tar.gz: b1f5ba9ac2df0d4a9599113207282a6a54151f35a3f018d794c1a481ae258dc19ccf27335aa595634752d89553db56953505f6c8a657f74f9e53f45a79cffa46
data/README.md CHANGED
@@ -155,7 +155,8 @@ if defined?(Slackistrano::Messaging)
155
155
  short: true
156
156
  }],
157
157
  fallback: super[:text]
158
- }]
158
+ }],
159
+ text: "<!here> Application Deployed!"
159
160
  }
160
161
  end
161
162
 
@@ -15,7 +15,8 @@ module Slackistrano
15
15
  end
16
16
 
17
17
  def deployer
18
- ENV['USER'] || ENV['USERNAME']
18
+ default = ENV['USER'] || ENV['USERNAME']
19
+ fetch(:local_user, default)
19
20
  end
20
21
 
21
22
  def branch
@@ -1,3 +1,3 @@
1
1
  module Slackistrano
2
- VERSION = '3.8.2'
2
+ VERSION = '3.8.3'
3
3
  end
@@ -35,6 +35,18 @@ describe Slackistrano::Messaging::Default do
35
35
  end
36
36
  end
37
37
 
38
+ describe '#deployer' do
39
+ it "delegates to fetch" do
40
+ expect(subject).to receive(:fetch).with(:local_user, anything)
41
+ subject.deployer
42
+ end
43
+
44
+ it "has a default" do
45
+ ENV['USER'] = 'cappy'
46
+ expect(subject.deployer).to eq 'cappy'
47
+ end
48
+ end
49
+
38
50
  describe '#branch' do
39
51
  it "delegates to fetch" do
40
52
  expect(subject).to receive(:fetch).with(:branch)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slackistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.2
4
+ version: 3.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Hallstrom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-05 00:00:00.000000000 Z
11
+ date: 2018-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubyforge_project:
125
- rubygems_version: 2.5.2
125
+ rubygems_version: 2.7.6
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: Send notifications to Slack about Capistrano deployments.