apadmi_grout 2.2.2 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22c82a973e8fcdff8c70360fa27c58ff9f79e3bc6ef9ff4175db7d646da499af
4
- data.tar.gz: aca19ee1e0f6bc2f710cb056efea7d0c8507ec01ab7ebfaa407bcc9eb79f91dd
3
+ metadata.gz: 8abbb55c9654ed19e081833a98e42ee347e57bbbf83184c890a4af0500f7ff23
4
+ data.tar.gz: d8082907b18d891eda9fb48b61c071a5b200119a3cec9d2f67ab5269249b4862
5
5
  SHA512:
6
- metadata.gz: c6fa52813fe17ff8998ceab124376a4896bf0b01c11270da86f75f9d84ce61686cbe07c509b381e6eaa6878cecd4f7d6d56152e1c8238bded0259f2eab935c80
7
- data.tar.gz: 2f96593677812988550c7c9c89cc0c753271987cf038e93bb5f176cdf8bd80c37ad062b9629101e085e0d4d85eacd675c7b4909fbdd138951a036ea58cfb8500
6
+ metadata.gz: 8b5e60257228b9fe918e771de88176279cb91ea7eb04e9f3f5358345f574a77a49d1f179a059b79a729dbe03113d1fe79d9539b9801abd852fb941d000f4d893
7
+ data.tar.gz: c8b2def2bd6f3808323db5c2ebb0179b98f3bf85ec090b2164879b08ea33841c91c7a0ea34508f6ef6a0789436ddaf2bf8fb44e73deae582dd5a490b0cf0adc7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Core Changelog
2
2
 
3
+ ## [2.3.0] - 2023-04-03
4
+ * No changes, version bump to keep in sync with fastlane plugin.
5
+
6
+ ## [2.2.3] - 2023-01-26
7
+ * Filter tickets with id 0 from changelog since these are almost always just placeholders.
8
+
3
9
  ## [2.2.2] - 2022-08-24
4
10
  * Suppress ADO errors when requesting tickets that don't exist - match JIRA behaviour
5
11
 
@@ -28,7 +28,9 @@ module Apadmi
28
28
  # Changelog often has the pull request number in it, this can mess up the parsing so strip it out if we can
29
29
  changelog = changelog.gsub(/\(pull request.*\)/, "")
30
30
 
31
- changelog.scan(/(#{@ticket_prefix}\d+)/).flatten.uniq
31
+ changelog.scan(/(#{@ticket_prefix}\d+)/).flatten.uniq.filter do |id|
32
+ Integer(id.delete_prefix(@ticket_prefix), exception: false) != 0 # Filter out tickets with ID 0 since these are always placeholders
33
+ end
32
34
  end
33
35
  end
34
36
  end
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Apadmi
4
4
  module Grout
5
- VERSION = "2.2.2"
5
+ VERSION = "2.3.0"
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.2.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: 2022-08-24 00:00:00.000000000 Z
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