apadmi_grout 2.3.0 → 2.3.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c2b3bf66e39fb59a2aa78864a22c847a4ce2cb56d111045bce2a45f4b4a3431
|
4
|
+
data.tar.gz: 55d07c67f65c048ef492689f74b90f9f52e1c97a4faf385ee18777115e6c94f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6389e3c9b81b3f577b49fd1dd40c74320fe25082b1eb421ca53a4c3d3b6b5bc194d0735746a309f40857aa8ab204f956cefdd3445c63b30502170dde32a6738
|
7
|
+
data.tar.gz: 906d59910dedd1c6e96bd5ed43a76cccaaedaf8be6c1ce27d048bde5bbee3306b74695a14f3866d17d579e7c87e43822e7c322fcf113385aac8fb59974467781
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Core Changelog
|
2
2
|
|
3
|
+
## [2.3.2] - 2023-04-06
|
4
|
+
* Add utility for parsing build variant from android build command
|
5
|
+
|
6
|
+
## [2.3.1] - 2023-04-05
|
7
|
+
* Makes loading pull request information more robust for situations where a ticket has no PRs.
|
8
|
+
|
3
9
|
## [2.3.0] - 2023-04-03
|
4
10
|
* No changes, version bump to keep in sync with fastlane plugin.
|
5
11
|
|
@@ -137,9 +137,12 @@ module Apadmi
|
|
137
137
|
query_string = "issueId=#{issue.raw_object.id}&applicationType=bitbucket&dataType=pullrequest"
|
138
138
|
response = @network_service.do_get("/rest/dev-status/latest/issue/details?#{query_string}")
|
139
139
|
|
140
|
-
|
140
|
+
parsed_detail = JSON.parse(response.body)["detail"]
|
141
141
|
|
142
|
-
|
142
|
+
return [] if parsed_detail.empty?
|
143
|
+
return [] unless parsed_detail[0].key?("pullRequests")
|
144
|
+
|
145
|
+
parsed_detail[0]["pullRequests"].map do |pr|
|
143
146
|
PullRequest.new(pr["id"], pr["name"], pr["status"].to_s == "MERGED", pr["status"].to_s == "DECLINED")
|
144
147
|
end
|
145
148
|
end
|
@@ -9,7 +9,7 @@ module Apadmi
|
|
9
9
|
module Grout
|
10
10
|
# Generic Command parsing Utils
|
11
11
|
class CommandParsingUtils
|
12
|
-
def self.
|
12
|
+
def self.determine_build_type(command)
|
13
13
|
raise "Command can't be blank" if command.blank?
|
14
14
|
|
15
15
|
split = command.split(":", -1).last
|
@@ -19,6 +19,15 @@ module Apadmi
|
|
19
19
|
|
20
20
|
raise "Could not determine if #{command} generates an apk or aab"
|
21
21
|
end
|
22
|
+
|
23
|
+
def self.determine_variant(command)
|
24
|
+
raise "Command can't be blank" if command.blank?
|
25
|
+
raise "Command can't be blank" if command.strip == ":"
|
26
|
+
|
27
|
+
split = command.split(":", -1).last
|
28
|
+
|
29
|
+
split.delete_prefix("assemble").delete_prefix("bundle")
|
30
|
+
end
|
22
31
|
end
|
23
32
|
end
|
24
33
|
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.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Apadmi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|