apadmi_grout 2.2.3 → 2.3.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 +3 -0
- data/lib/apadmi/grout/utils/command_parsing_utils.rb +24 -0
- data/lib/apadmi/grout/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8abbb55c9654ed19e081833a98e42ee347e57bbbf83184c890a4af0500f7ff23
|
4
|
+
data.tar.gz: d8082907b18d891eda9fb48b61c071a5b200119a3cec9d2f67ab5269249b4862
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b5e60257228b9fe918e771de88176279cb91ea7eb04e9f3f5358345f574a77a49d1f179a059b79a729dbe03113d1fe79d9539b9801abd852fb941d000f4d893
|
7
|
+
data.tar.gz: c8b2def2bd6f3808323db5c2ebb0179b98f3bf85ec090b2164879b08ea33841c91c7a0ea34508f6ef6a0789436ddaf2bf8fb44e73deae582dd5a490b0cf0adc7
|
data/CHANGELOG.md
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AndroidBuildType
|
4
|
+
AAB = "aab"
|
5
|
+
APK = "apk"
|
6
|
+
end
|
7
|
+
|
8
|
+
module Apadmi
|
9
|
+
module Grout
|
10
|
+
# Generic Command parsing Utils
|
11
|
+
class CommandParsingUtils
|
12
|
+
def self.determining_build_type(command)
|
13
|
+
raise "Command can't be blank" if command.blank?
|
14
|
+
|
15
|
+
split = command.split(":", -1).last
|
16
|
+
|
17
|
+
return AndroidBuildType::APK if split.starts_with?("assemble")
|
18
|
+
return AndroidBuildType::AAB if split.starts_with?("bundle")
|
19
|
+
|
20
|
+
raise "Could not determine if #{command} generates an apk or aab"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
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.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Apadmi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- lib/apadmi/grout/service/board_service/ado_board_service.rb
|
84
84
|
- lib/apadmi/grout/service/board_service/board_service.rb
|
85
85
|
- lib/apadmi/grout/service/board_service/jira_board_service.rb
|
86
|
+
- lib/apadmi/grout/utils/command_parsing_utils.rb
|
86
87
|
- lib/apadmi/grout/utils/filename_utils.rb
|
87
88
|
- lib/apadmi/grout/utils/git_utils.rb
|
88
89
|
- lib/apadmi/grout/utils/logger.rb
|