groundskeeper-bitcore 0.28.0 → 0.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/groundskeeper/commands.rb +2 -10
- data/lib/groundskeeper/version.rb +1 -1
- data/lib/groundskeeper.rb +0 -1
- metadata +2 -3
- data/lib/groundskeeper/changelog.rb +0 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10a80c31e0e1e0de1ce9a58a3064ec9af1cfce8f8f55862af875f70eb62a58d7
|
4
|
+
data.tar.gz: ec775ffb188e4897eb5a42163ff8e85686b53d85a67b8da87117f1c6ab5f65cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dfd53cad00907f3d7964086d1212586340482566e5365b8d8f20880d98b10d6299d9742cf90dd63d7bff5516d508d00a51548160b98847fd5b89378999caf99
|
7
|
+
data.tar.gz: 8ba8ebf6f508e1ab13f42b72d482de22c896fcf7b18713182a9490ebe1644f1882f159dda6dc8ac72931a468892d65ea4bce0edcc0b510a10f266de327ff6b1b
|
@@ -36,7 +36,6 @@ module Groundskeeper
|
|
36
36
|
ssh = Ssh.build(SSH_USERNAME, project.full_dns(stage))
|
37
37
|
|
38
38
|
new(
|
39
|
-
changelog: Changelog.build,
|
40
39
|
console: console,
|
41
40
|
bitbucket: bitbucket,
|
42
41
|
git: Git.build,
|
@@ -59,7 +58,7 @@ module Groundskeeper
|
|
59
58
|
|
60
59
|
# rubocop:disable Metrics/MethodLength,Metrics/ParameterLists
|
61
60
|
def initialize(
|
62
|
-
console:, version_file:,
|
61
|
+
console:, version_file:,
|
63
62
|
bitbucket: nil,
|
64
63
|
git: nil,
|
65
64
|
jira: nil,
|
@@ -71,7 +70,6 @@ module Groundskeeper
|
|
71
70
|
ssh: nil,
|
72
71
|
website: nil
|
73
72
|
)
|
74
|
-
@changelog = changelog
|
75
73
|
@console = console
|
76
74
|
@bitbucket = bitbucket
|
77
75
|
@git = git
|
@@ -126,7 +124,6 @@ module Groundskeeper
|
|
126
124
|
say_next_version(is_initial_release)
|
127
125
|
checkout_new_branch
|
128
126
|
update_version_file
|
129
|
-
update_changelog
|
130
127
|
commit_changes_and_tag(is_initial_release)
|
131
128
|
create_jira_version
|
132
129
|
push
|
@@ -175,7 +172,7 @@ module Groundskeeper
|
|
175
172
|
private
|
176
173
|
|
177
174
|
# collaborators
|
178
|
-
attr_reader :bitbucket, :
|
175
|
+
attr_reader :bitbucket, :console, :git, :jira, :project,
|
179
176
|
:repository, :rubygems, :sentry, :slack, :ssh, :version_file,
|
180
177
|
:website
|
181
178
|
# state
|
@@ -267,11 +264,6 @@ module Groundskeeper
|
|
267
264
|
console.say("# updated version file", :green)
|
268
265
|
end
|
269
266
|
|
270
|
-
def update_changelog
|
271
|
-
changelog.update_file(next_version, recent_commits)
|
272
|
-
console.say("# updated changelog", :green)
|
273
|
-
end
|
274
|
-
|
275
267
|
def commit_changes_and_tag(is_initial_release)
|
276
268
|
is_initial_release ? git.add_all : git.add_update
|
277
269
|
git.commit(format(Repository::RELEASE_MESSAGE, next_version))
|
data/lib/groundskeeper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: groundskeeper-bitcore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.29.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RADD
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jira-ruby
|
@@ -199,7 +199,6 @@ files:
|
|
199
199
|
- lib/groundskeeper.rb
|
200
200
|
- lib/groundskeeper/application.rb
|
201
201
|
- lib/groundskeeper/bitbucket.rb
|
202
|
-
- lib/groundskeeper/changelog.rb
|
203
202
|
- lib/groundskeeper/commands.rb
|
204
203
|
- lib/groundskeeper/document.rb
|
205
204
|
- lib/groundskeeper/executable.rb
|
@@ -1,44 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "date"
|
4
|
-
|
5
|
-
module Groundskeeper
|
6
|
-
# The `CHANGELOG.md` file in an application.
|
7
|
-
class Changelog
|
8
|
-
attr_reader :document, :date
|
9
|
-
|
10
|
-
FILENAME = "CHANGELOG.md"
|
11
|
-
TITLE_EXPRESSION = "# Changelog"
|
12
|
-
|
13
|
-
def self.build(filename: FILENAME)
|
14
|
-
new(
|
15
|
-
document: Groundskeeper::Document.new(filename),
|
16
|
-
date: Date.today.iso8601
|
17
|
-
)
|
18
|
-
end
|
19
|
-
|
20
|
-
def initialize(document:, date:)
|
21
|
-
@document = document
|
22
|
-
@date = date
|
23
|
-
end
|
24
|
-
|
25
|
-
# rubocop:disable Performance/RedundantMatch,Performance/RegexpMatch
|
26
|
-
def update_file(version, changes)
|
27
|
-
unless document.match(/(#{TITLE_EXPRESSION})/o)
|
28
|
-
document.prepend_file("#{TITLE_EXPRESSION}\n\n")
|
29
|
-
end
|
30
|
-
|
31
|
-
document
|
32
|
-
.append_to_file(TITLE_EXPRESSION, version_template(version, changes))
|
33
|
-
end
|
34
|
-
# rubocop:enable Performance/RedundantMatch,Performance/RegexpMatch
|
35
|
-
|
36
|
-
private
|
37
|
-
|
38
|
-
def version_template(version, changes)
|
39
|
-
["\n", "## #{version} - #{date}", ""]
|
40
|
-
.concat((changes || []).map { |change| "* #{change}" })
|
41
|
-
.join("\n")
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|