fastlane-plugin-emerge 0.5.0 → 0.5.1

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: 86bc85e26613527f77ae725575824b2d4c2dd5dde9ab0814f716ab8efd4875c0
4
- data.tar.gz: 3fcd9202ed9ca7d5ff16b221ad9c9d0e0e7af1cc2febbadb6e8f96cf8c498ca6
3
+ metadata.gz: 498e4fcfd1dfcae9df9fddd6b7eeee5225d031ed4ec49a79ddbb1fbb45c9599c
4
+ data.tar.gz: 878861b1e1d4569bee5171f598e97a4dbcfa7b0ef5518c64a89446a6d66befa0
5
5
  SHA512:
6
- metadata.gz: 330252fc7c00bdba4a91bd9a206dad404886c8d99631a3cc3da5efe6ee1b55e46cc0e298441fa54f5807f881cb395baf3fe3400da63c983b13182f9c25d52e2b
7
- data.tar.gz: abce90f5e848cad8c840f0d94130518ed318b776af6543d75bc73105dac295667fabf4aaff68aa06e72ae00a89956eec7f725ed54d06d460005fe396dfa3723f
6
+ metadata.gz: a41d64017cd4a2fce676ccd04928f704c65aa62852213ac5675f93a6dd88fe49cf5f3221956dd15fb8b392c57ccbd007723787475c85883c811055bb11383260
7
+ data.tar.gz: d132f4dd65ee4ee6695d232b6b069fa78e27db9ca96df239fed0a2e762b0cb89ea748821ddeaecb0637720a2d367a7dd9883fa9dc36d5e30a537eb781f712589
@@ -23,6 +23,7 @@ module Fastlane
23
23
  repo_name = params[:repo_name]
24
24
  gitlab_project_id = params[:gitlab_project_id]
25
25
  build_type = params[:build_type]
26
+ order_file_version = params[:order_file_version]
26
27
 
27
28
  if file_path == nil || !File.exist?(file_path)
28
29
  UI.error("Invalid input file")
@@ -102,6 +103,9 @@ module Fastlane
102
103
  if gitlab_project_id
103
104
  params[:gitlabProjectId] = gitlab_project_id
104
105
  end
106
+ if order_file_version
107
+ params[:orderFileVersion] = order_file_version
108
+ end
105
109
  params[:buildType] = build_type || "development"
106
110
  FastlaneCore::PrintTable.print_values(
107
111
  config: params,
@@ -202,7 +206,11 @@ module Fastlane
202
206
  FastlaneCore::ConfigItem.new(key: :build_type,
203
207
  description: "String to identify the type of build such as release/development. Used to filter size graphs. Defaults to development",
204
208
  optional: true,
205
- type: String)
209
+ type: String),
210
+ FastlaneCore::ConfigItem.new(key: :order_file_version,
211
+ description: "Version of the order file to download",
212
+ optional: true,
213
+ type: String),
206
214
  ]
207
215
  end
208
216
 
@@ -7,7 +7,8 @@ module Fastlane
7
7
  module Actions
8
8
  class EmergeOrderFileAction < Action
9
9
  def self.run(params)
10
- resp = Faraday.get("https://order-files-prod.emergetools.com/#{params[:app_id]}", nil, {'X-API-Token' => params[:api_token]})
10
+ puts "https://order-files-prod.emergetools.com/#{params[:app_id]}/#{params[:order_file_version]}"
11
+ resp = Faraday.get("https://order-files-prod.emergetools.com/#{params[:app_id]}/#{params[:order_file_version]}", nil, {'X-API-Token' => params[:api_token]})
11
12
  case resp.status
12
13
  when 200
13
14
  Tempfile.create do |f|
@@ -53,7 +54,11 @@ module Fastlane
53
54
  FastlaneCore::ConfigItem.new(key: :output_path,
54
55
  description: "Path to the order file",
55
56
  optional: false,
56
- type: String)
57
+ type: String),
58
+ FastlaneCore::ConfigItem.new(key: :order_file_version,
59
+ description: "Version of the order file to download",
60
+ optional: false,
61
+ type: String),
57
62
  ]
58
63
  end
59
64
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Emerge
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-emerge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emerge Tools, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-14 00:00:00.000000000 Z
11
+ date: 2022-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday