fastlane-plugin-unity_exporter 1.4.1 → 1.4.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: 885c7ef7ea455644cc69db2ce3a0dc6f800904590aa7d5cbb6b3c7472b499db0
4
- data.tar.gz: f3ce8899291019a8a48dab987684f31cd70df4ea435d3035af98937444d40d8d
3
+ metadata.gz: a78f2efa225ab9d6b65a90491bfd7c54a903b52948048e66198971261ab385df
4
+ data.tar.gz: 5dd1d2122e109ce66f8be30b38946bb42b987c1fec23e2f8010a768ae34f559e
5
5
  SHA512:
6
- metadata.gz: 210cfc130253c425e1d4db4d801b1a01f8ecfb8cd1fde170d49be67d144b44f610bf55bcbf655fb2f130c8105519b719e2ff488f7f96b159ce9d808a976e3ec9
7
- data.tar.gz: 13c95a2b371c2f4f24c0902bf0ba8416ef3cb8c54b88173181c0ab70c4e42943711f61fec8892c26a45ee1d50d1ab17ee8fc927789fc253ddfff03f518657350
6
+ metadata.gz: dbd77420b89dd5adcdc724c834ceb3e9b4075e3f3d937dbf1391123e6da51931518f3ab247639c1f00374f69727d5c6849fec2291643575455b52a871b0a425f
7
+ data.tar.gz: 824171bda6c2a3de02bffd0cc2fc5914c720db4356689ff2d3b3d0257580f07c5a81c26a9b41b9493f3f66a6aac7b96d32f64414c0a3dd04d18951422f47d45e
@@ -16,10 +16,13 @@ module Fastlane
16
16
 
17
17
  log_file = Helper::GenericHelper.instance_variable_get(:@git_log_path)
18
18
 
19
- # Thank you: https://linuxize.com/post/bash-redirect-stderr-stdout/#redirecting-stderr-to-stdout
20
- sh("echo 'UnityCommitVersionBumpAction: created file' > #{log_file} 2>&1")
21
- sh("git add '#{Helper::UnityEditorHelper.unity_project_path}ProjectSettings/ProjectSettings.asset' >> #{log_file} 2>&1")
22
- sh("git commit -m 'Version Bump' >> #{log_file} 2>&1")
19
+ # this changes the working directory for the code run between the do/end block
20
+ Dir.chdir(Helper::UnityEditorHelper.unity_project_path) do
21
+ # Thank you: https://linuxize.com/post/bash-redirect-stderr-stdout/#redirecting-stderr-to-stdout
22
+ sh("echo 'UnityCommitVersionBumpAction: created file' > #{log_file} 2>&1")
23
+ sh("git add 'ProjectSettings/ProjectSettings.asset' >> #{log_file} 2>&1")
24
+ sh("git commit -m 'Version Bump' >> #{log_file} 2>&1")
25
+ end
23
26
  end
24
27
 
25
28
  def self.description
@@ -8,7 +8,7 @@ module Fastlane
8
8
  class UnityExportAction < Action
9
9
  def self.run(params)
10
10
  if params[:arguments]
11
- #UI.message("Passed arguments: '#{params[:arguments]}'")
11
+ # UI.message("Passed arguments: '#{params[:arguments]}'")
12
12
  if params[:use_default_paths]
13
13
  pp = params[:arguments].scan(/-projectPath ((\w|[[:punct:]])*)/)[0][0]
14
14
  if pp != ""
@@ -155,7 +155,7 @@ module Fastlane
155
155
  type: String,
156
156
  conflicting_options: [:arguments],
157
157
  verify_block: proc do |value|
158
- unless value == "major" || value == "minor" || value == "patch" || Gem::Version.new(value).correct?
158
+ unless value == "major" || value == "minor" || value == "patch" || Gem::Version.correct?(value)
159
159
  UI.user_error!("Please pass a valid version. For options see 'fastlane action unity_exporter'")
160
160
  end
161
161
  end),
@@ -6,7 +6,7 @@ module Fastlane
6
6
 
7
7
  module Helper
8
8
  class GenericHelper
9
- @git_log_path = "fastlane-unity-exporter/logs/#{DateTime.now.strftime('%Y-%m-%d_%H-%M-%S-%L')}_git.log"
9
+ @git_log_path = "BuildExporter/#{DateTime.now.strftime('%Y-%m-%d_%H-%M-%S-%L')}_git.log"
10
10
 
11
11
  def self.shellify(path)
12
12
  if FastlaneCore::Helper.is_mac?
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module UnityExporter
3
- VERSION = "1.4.1"
3
+ VERSION = "1.4.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-unity_exporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ar:met
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-19 00:00:00.000000000 Z
11
+ date: 2022-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler