apadmi_grout 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/apadmi/grout/models/release_notes_templates.rb +2 -2
- data/lib/apadmi/grout/utils/git_utils.rb +12 -12
- data/lib/apadmi/grout/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01621f3c2ed3d2ca284e8f7778bdff16ed635a8bb25a2bae11c79962ce1d9d00
|
4
|
+
data.tar.gz: e480a79994bff440381d288826315960900909d2b7d94b3ec4e36415d13420b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6e74bc59d0434dea89aea4f35b593d3b59f85bca8bbb1f003f53b287ba0c4ebdf02aa246c66da327579c4eb174ee7f1df504022ad034b121b1b2ee7e878f82f
|
7
|
+
data.tar.gz: 8d173b1f108f290be9d554c95201c469d34d20989d8826d4a9020e31ff645d85e9075e374300a4d42f93e22cc000ab4bbdadd713623787975869fae9cf318dea
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
# Core Changelog
|
2
2
|
|
3
|
-
## [2.
|
3
|
+
## [2.2.0] - 2022-08-16
|
4
|
+
* Bumped min ruby version to 3.0.0 to prevent subtle bugs
|
5
|
+
* Removed references to JIRA in default release note templates
|
6
|
+
* Fixed issues with git warnings being treated like errors
|
7
|
+
|
8
|
+
## [2.1.0] - 2022-07-26
|
4
9
|
* Added a few bitrise utils to support listing builds, triggering builds and downloading artifacts.
|
5
10
|
* Added utilities to the network service to upload files
|
6
11
|
|
@@ -20,9 +20,9 @@ module Apadmi
|
|
20
20
|
Commit Hash: {{config.commit_hash}}
|
21
21
|
[CI/CD build \#{{config.ci_build_number}}]({{config.ci_build_url}})
|
22
22
|
|
23
|
-
##
|
23
|
+
## Tickets Moved By This Build
|
24
24
|
{{ rendered_moved_issues }}
|
25
|
-
##
|
25
|
+
## Sprint Release notes
|
26
26
|
{{ rendered_release_issues }} }
|
27
27
|
end
|
28
28
|
|
@@ -9,16 +9,16 @@ module Apadmi
|
|
9
9
|
# Gets the root of the Git repo we're in
|
10
10
|
# @return [String] The full path for the root of this Git repo
|
11
11
|
def self.git_root
|
12
|
-
stdout, stderr, = Open3.capture3("git rev-parse --show-toplevel")
|
13
|
-
raise "Failed to get git root: #{stderr}" unless
|
12
|
+
stdout, stderr, status = Open3.capture3("git rev-parse --show-toplevel")
|
13
|
+
raise "Failed to get git root: #{stderr}" unless status.success?
|
14
14
|
|
15
15
|
stdout.strip
|
16
16
|
end
|
17
17
|
|
18
18
|
# Gets the commit hash of the current HEAD
|
19
19
|
def self.commit_hash
|
20
|
-
stdout, stderr, = Open3.capture3("git rev-parse HEAD")
|
21
|
-
raise "Failed to get hash: #{stderr}" unless
|
20
|
+
stdout, stderr, status = Open3.capture3("git rev-parse HEAD")
|
21
|
+
raise "Failed to get hash: #{stderr}" unless status.success?
|
22
22
|
|
23
23
|
stdout.strip
|
24
24
|
end
|
@@ -27,16 +27,16 @@ module Apadmi
|
|
27
27
|
# See more details here: https://git-scm.com/docs/git-rev-list
|
28
28
|
# @return [String] The number of commits
|
29
29
|
def self.number_of_commits
|
30
|
-
stdout, stderr, = Open3.capture3("git rev-list HEAD --count")
|
31
|
-
raise "Failed to get commit number: #{stderr}" unless
|
30
|
+
stdout, stderr, status = Open3.capture3("git rev-list HEAD --count")
|
31
|
+
raise "Failed to get commit number: #{stderr}" unless status.success?
|
32
32
|
|
33
33
|
stdout.strip
|
34
34
|
end
|
35
35
|
|
36
36
|
# Runs a git fetch all
|
37
37
|
def self.fetch_all
|
38
|
-
stdout, stderr, = Open3.capture3("git fetch --all")
|
39
|
-
raise "Failed to fetch #{stderr}" unless
|
38
|
+
stdout, stderr, status = Open3.capture3("git fetch --all")
|
39
|
+
raise "Failed to fetch #{stderr}" unless status.success?
|
40
40
|
|
41
41
|
stdout.strip
|
42
42
|
end
|
@@ -45,8 +45,8 @@ module Apadmi
|
|
45
45
|
# @param grep_conditions [Array<String>] values to be passed in as grep cases (https://git-scm.com/docs/git-log)
|
46
46
|
def self.merge_changelog(grep_conditions)
|
47
47
|
command = "git log HEAD --merges --format=%s#{grep_conditions.map { |c| " --grep #{c}" }.join(" ")}"
|
48
|
-
stdout, stderr, = Open3.capture3(command)
|
49
|
-
raise "Failed to get changelog: #{stderr}" unless
|
48
|
+
stdout, stderr, status = Open3.capture3(command)
|
49
|
+
raise "Failed to get changelog: #{stderr}" unless status.success?
|
50
50
|
|
51
51
|
stdout
|
52
52
|
end
|
@@ -55,8 +55,8 @@ module Apadmi
|
|
55
55
|
# @param grep_conditions [Array<String>] values to be passed in as grep cases (https://git-scm.com/docs/git-log)
|
56
56
|
def self.invert_changelog(grep_conditions)
|
57
57
|
command = "git log --all ^HEAD --merges --format=%s#{grep_conditions.map { |c| " --grep #{c}" }.join(" ")}"
|
58
|
-
stdout, stderr, = Open3.capture3(command)
|
59
|
-
raise "Failed to get changelog: #{stderr}" unless
|
58
|
+
stdout, stderr, status = Open3.capture3(command)
|
59
|
+
raise "Failed to get changelog: #{stderr}" unless status.success?
|
60
60
|
|
61
61
|
stdout
|
62
62
|
end
|
data/lib/apadmi/grout/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apadmi_grout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Apadmi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -104,14 +104,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
104
|
requirements:
|
105
105
|
- - ">="
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
version:
|
107
|
+
version: 3.0.0
|
108
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
110
|
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
|
-
rubygems_version: 3.
|
114
|
+
rubygems_version: 3.2.3
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Apadmi build tool utils for use through Fastlane on Android and iOS.
|