apadmi_grout 2.3.1 → 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: 8a044d2b76db5a199809db40b238d152df0b91b85f0092730177b60a104b5f9d
4
- data.tar.gz: 9d46bc9e4c75765bd2fa056494af0cd42cfa72e623d331cac330da97388121cc
3
+ metadata.gz: 9c2b3bf66e39fb59a2aa78864a22c847a4ce2cb56d111045bce2a45f4b4a3431
4
+ data.tar.gz: 55d07c67f65c048ef492689f74b90f9f52e1c97a4faf385ee18777115e6c94f4
5
5
  SHA512:
6
- metadata.gz: bb6d2a7ca64f3a9127ea8f625d1010e89e1febf0b25c787eaecacbe064e27da85ae82e587ed993c357fee1587e67c59cc41897712b4dc536e6b7ce9d6fb32dc9
7
- data.tar.gz: 674d00cfa25d7fce59f316dea0fd63ab2aef0b21ca31d4ed583c132cc679dda8ec3421e6b9339a47c60d4b12ea3a614f614a36f3e73581d570e2f015dad6a95c
6
+ metadata.gz: e6389e3c9b81b3f577b49fd1dd40c74320fe25082b1eb421ca53a4c3d3b6b5bc194d0735746a309f40857aa8ab204f956cefdd3445c63b30502170dde32a6738
7
+ data.tar.gz: 906d59910dedd1c6e96bd5ed43a76cccaaedaf8be6c1ce27d048bde5bbee3306b74695a14f3866d17d579e7c87e43822e7c322fcf113385aac8fb59974467781
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
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
+
3
6
  ## [2.3.1] - 2023-04-05
4
7
  * Makes loading pull request information more robust for situations where a ticket has no PRs.
5
8
 
@@ -9,7 +9,7 @@ module Apadmi
9
9
  module Grout
10
10
  # Generic Command parsing Utils
11
11
  class CommandParsingUtils
12
- def self.determining_build_type(command)
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Apadmi
4
4
  module Grout
5
- VERSION = "2.3.1"
5
+ VERSION = "2.3.2"
6
6
  end
7
7
  end
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.1
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-05 00:00:00.000000000 Z
11
+ date: 2023-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday