fiesta 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fiesta/release.rb +10 -2
- data/lib/fiesta/report.rb +3 -2
- data/lib/fiesta/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a064caa88016d665e2338dfc97d618468362b2ec67b4e5b0f848c3f5e9cd1bd9
|
4
|
+
data.tar.gz: ee10ba6fb12e1c21c997591b10bd4a2c29d2a12d3b7603d1bc010c76bf458f8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1025b0d37c75e35950b2d1f975a9bea317f404aa510550b3505ca79c4261ec2e4a679060423c2ada1d3dd53b831b32c7276b765e787583d382f09307bcc5d6d1
|
7
|
+
data.tar.gz: fbfe081914cac4a3c7e0f583ca808f9e6f248c883564d47123bbcdcb41f7ff1a359f5590b5c502f01ab2744689b15d3eeba67d2484766e4a4875e7c17226ea61
|
data/lib/fiesta/release.rb
CHANGED
@@ -3,14 +3,22 @@ require "attr_extras/explicit"
|
|
3
3
|
module Fiesta
|
4
4
|
class Release
|
5
5
|
extend AttrExtras.mixin
|
6
|
-
pattr_initialize [:repo, :name, :stories]
|
6
|
+
pattr_initialize [:repo, :name, :stories, :revision]
|
7
7
|
|
8
8
|
def post
|
9
|
-
github.create_release(repo, tag,
|
9
|
+
github.create_release(repo, tag, options)
|
10
10
|
end
|
11
11
|
|
12
12
|
private
|
13
13
|
|
14
|
+
def options
|
15
|
+
{
|
16
|
+
name: name,
|
17
|
+
body: body,
|
18
|
+
target_commitish: revision
|
19
|
+
}.compact
|
20
|
+
end
|
21
|
+
|
14
22
|
def name
|
15
23
|
@name ||= Time.now.to_i.to_s
|
16
24
|
end
|
data/lib/fiesta/report.rb
CHANGED
@@ -22,9 +22,10 @@ module Fiesta
|
|
22
22
|
Announcement.new(text, config).post
|
23
23
|
end
|
24
24
|
|
25
|
-
def create_release(name = nil)
|
25
|
+
def create_release(name = nil, revision: nil)
|
26
26
|
return Logger.warn "No new stories, skipping GitHub release" if stories.none?
|
27
|
-
|
27
|
+
|
28
|
+
Release.new(repo: repo, name: name, stories: stories, revision: revision).post
|
28
29
|
end
|
29
30
|
|
30
31
|
def stories
|
data/lib/fiesta/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fiesta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.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: 2021-02-
|
11
|
+
date: 2021-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: attr_extras
|