capistrano-fiesta 1.3.1 → 1.3.2

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
2
  SHA1:
3
- metadata.gz: dd615588bba4cd9922731be538fc611b7af47514
4
- data.tar.gz: 9f80dbd3ee5d4bc35d568158126e13749b88fdac
3
+ metadata.gz: 4f688344d1b9807d268fb083032325ca69888a57
4
+ data.tar.gz: 536f6963a665b905d1c0fc1c90abd44bd047ce4f
5
5
  SHA512:
6
- metadata.gz: 8e0b0c73ededa7353cde0a7901e60eca3abbf004911e161b53e051e95d1e172ecb0d8daa3f6d0144c75dc11fff729b5ca606831e65728d52f5afeeb7b1666b08
7
- data.tar.gz: cfc11f821cdb9fd8dac47e226d8bbb963cd05dc3e0c07ab3f1dbc4b3b8c9342e2ae3847a66ddf926f147165af24ffd8b5ffb964cd67e682bb704533a7b399bbb
6
+ metadata.gz: f30a3630f84004730af25f00def47a49c41e0d01066d44cc0b7d79912746d5781b2b7a6de781251bd06026ec97d42933697cb23208fe350da061e31caf596bd3
7
+ data.tar.gz: 3d1cd7f2d81a0a2c8d4bb86430ec32672c970184200f4f3a90cc4781e7fa1440379a20bb98b505ffc49ef39f119485df5049959b2581dfb2b2ce6eae4692fbb7
@@ -4,15 +4,12 @@ require "capistrano/fiesta/github"
4
4
  require "capistrano/fiesta/draft"
5
5
  require "capistrano/fiesta/editor"
6
6
  require "capistrano/fiesta/logger"
7
+ require "capistrano/fiesta/slack_dummy"
7
8
  require "capistrano/fiesta/story"
8
9
 
9
10
  module Capistrano
10
11
  module Fiesta
11
12
  class Report
12
- class << self
13
- attr_accessor :chat_client
14
- end
15
-
16
13
  attr_reader :stories
17
14
 
18
15
  def initialize(github_url, last_release: nil, comment: nil)
@@ -26,8 +23,6 @@ module Capistrano
26
23
  options[:payload] = options.fetch(:payload, {}).merge(text: text)
27
24
  chat.post(options)
28
25
  text
29
- rescue NameError => e
30
- Logger.warn "Install Slackistrano to announce releases on Slack (#{e.message})"
31
26
  end
32
27
 
33
28
  def create_release(name = nil)
@@ -66,7 +61,9 @@ module Capistrano
66
61
  end
67
62
 
68
63
  def chat
69
- self.class.chat_client || Slackistrano
64
+ Slackistrano
65
+ rescue NameError
66
+ SlackDummy.new
70
67
  end
71
68
  end
72
69
  end
@@ -0,0 +1,14 @@
1
+ module Capistrano
2
+ module Fiesta
3
+ class SlackDummy
4
+ class << self
5
+ attr_accessor :log
6
+ end
7
+
8
+ def post(params = {})
9
+ self.class.log = params
10
+ Logger.warn "Install Slackistrano to announce releases on Slack"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -10,7 +10,7 @@ module Capistrano
10
10
  end
11
11
 
12
12
  def images
13
- @pr.body.scan(/https?:\/\/\S*\.(?:png|jpg|gif)/i)
13
+ @pr.body.to_s.scan(/https?:\/\/\S*\.(?:png|jpg|gif)/i)
14
14
  end
15
15
 
16
16
  def url
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Fiesta
3
- VERSION = "1.3.1"
3
+ VERSION = "1.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-fiesta
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-05 00:00:00.000000000 Z
11
+ date: 2017-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -174,6 +174,7 @@ files:
174
174
  - lib/capistrano/fiesta/github.rb
175
175
  - lib/capistrano/fiesta/logger.rb
176
176
  - lib/capistrano/fiesta/report.rb
177
+ - lib/capistrano/fiesta/slack_dummy.rb
177
178
  - lib/capistrano/fiesta/story.rb
178
179
  - lib/capistrano/fiesta/version.rb
179
180
  - lib/capistrano/tasks/fiesta.rake