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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b48d66d48282bc25c683626bcda3e0e1d9f4900ee1e2a9014cf17183968682b
4
- data.tar.gz: 726117d043708ca037e4f0b8f2846d78b072b3f7cce454b2bbc221004c0b52c6
3
+ metadata.gz: a064caa88016d665e2338dfc97d618468362b2ec67b4e5b0f848c3f5e9cd1bd9
4
+ data.tar.gz: ee10ba6fb12e1c21c997591b10bd4a2c29d2a12d3b7603d1bc010c76bf458f8b
5
5
  SHA512:
6
- metadata.gz: 62b82ca13de73fa0ff1a0ab866d1add6c960b5d5361a0d3396c72b32acaaf7b57ef2ff96a9f71ab09dcc90ba00d6a62214f37567cf28645efd65ce94970d35c2
7
- data.tar.gz: 8b860c7706f48b12023a99d45eb8d11aecfb896baa1fbd4670c7098a5fae5f214296578086607ff2fb4c6a2517a45cda24b59c5ed00c4e1649d1f1dcb7483225
6
+ metadata.gz: 1025b0d37c75e35950b2d1f975a9bea317f404aa510550b3505ca79c4261ec2e4a679060423c2ada1d3dd53b831b32c7276b765e787583d382f09307bcc5d6d1
7
+ data.tar.gz: fbfe081914cac4a3c7e0f583ca808f9e6f248c883564d47123bbcdcb41f7ff1a359f5590b5c502f01ab2744689b15d3eeba67d2484766e4a4875e7c17226ea61
@@ -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, name: name, body: body)
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
- Release.new(repo: repo, name: name, stories: stories).post
27
+
28
+ Release.new(repo: repo, name: name, stories: stories, revision: revision).post
28
29
  end
29
30
 
30
31
  def stories
@@ -1,3 +1,3 @@
1
1
  module Fiesta
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
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.1.0
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-17 00:00:00.000000000 Z
11
+ date: 2021-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attr_extras