capistrano-fiesta 1.3.3 → 1.4.0

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: 7bfdc2abfd5fa8660f2e605dc95d036a5e498d9e
4
- data.tar.gz: 4ce31e79cdf4e076e8d0e778ff4a96007d9f7982
3
+ metadata.gz: 18e5376a4b2ea8d9c0c148732f3a545c399379cc
4
+ data.tar.gz: 237d5c472c22d82c35c1c16adc93ac738b488931
5
5
  SHA512:
6
- metadata.gz: 7e97a0626387eebbf77ec2f1c1834756f50df7d6070ab8d403068ffb6493d538a8c8151da5d02918e468bbe0b405ae2864f8c0a7628cbba9abc686532785732f
7
- data.tar.gz: 525f4804b29f7d62484bbd5fbbd2596eae8ca938b2bd767d8c4b3ed2963fb7b7cddf1b82f4f5a3db934d6e087794bd26680b069b5f2e5df552f3688018182170
6
+ metadata.gz: a3e6c2f5070ac71acf7e50ba3c8d3230abfeaad66d30b3ebc5fceb06a034d87f9aa6b2c25f4c5287d2d7758e0d6c737d14c3a45bf3322934a14ce3b45f63bfae
7
+ data.tar.gz: 960171f1a635890512a75117db3db8d2b4cbc6f72375d520d5362f4917bc813c8c6a6559361422cbcce8a675e10731b922d99a9e49e158807679edda2bcf12d8
@@ -5,8 +5,8 @@ module Capistrano
5
5
  @pr = pr
6
6
  end
7
7
 
8
- def title
9
- @pr.title.sub(/\[Delivers #\S+\]\z/, '').strip
8
+ def release_note
9
+ (release_note_in_body || title).strip
10
10
  end
11
11
 
12
12
  def images
@@ -20,6 +20,16 @@ module Capistrano
20
20
  def to_markdown
21
21
  "- [#{title}](#{url})"
22
22
  end
23
+
24
+ private
25
+
26
+ def title
27
+ @pr.title.to_s.sub(/\[Delivers #\S+\]\z/, '')
28
+ end
29
+
30
+ def release_note_in_body
31
+ @pr.body.to_s[/_Release\snote\:(.+)_/m, 1]
32
+ end
23
33
  end
24
34
  end
25
35
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Fiesta
3
- VERSION = "1.3.3"
3
+ VERSION = "1.4.0"
4
4
  end
5
5
  end
@@ -2,8 +2,8 @@
2
2
  # <%= comment %>
3
3
 
4
4
  <% end -%>
5
- <% stories.sort_by(&:title).each do |story| -%>
6
- • <%= story.title %>
5
+ <% stories.each do |story| -%>
6
+ • <%= story.release_note %>
7
7
  <% story.images.each do |image| -%>
8
8
  <<%= image %>|Screenshot>
9
9
  <% 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.3
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-10 00:00:00.000000000 Z
11
+ date: 2017-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  version: '0'
200
200
  requirements: []
201
201
  rubyforge_project:
202
- rubygems_version: 2.4.5
202
+ rubygems_version: 2.5.2
203
203
  signing_key:
204
204
  specification_version: 4
205
205
  summary: Celebrate your releases!