fastlane-plugin-nico 0.10.8 → 0.10.9

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: 7f6f0043b754bb7deab5c305fc1671e750232b518a27919e2997f40200adf910
4
- data.tar.gz: 1169abd26b2e60e98f0359573837ff3be5eee8c25eea7c12f27b9bb27cf34271
3
+ metadata.gz: 798499cf19e83ad2f2abb92aee9006927936fd243718e66895fd9512ca9b3781
4
+ data.tar.gz: 75659fa820bb50b257e948e9e6aee5af7606e3bc36ded869f5cfd9eab25db39d
5
5
  SHA512:
6
- metadata.gz: b9d9fd7a85430b8d0329fd37f321e672018e6c3c392aca0c57fa8d1deec8bd0345fcfa5d7e5123f345e36f6582fd5124e8410d140289519b497b7d2b62021e25
7
- data.tar.gz: b840ae5cf9fd70217bcdc24ebec7cbc1dbae801b665ff24b3e088cdea364de5e58d3ab3407bcb7db34d5102f8e23d375cbfbf686883df7d14c140b216003f4d2
6
+ metadata.gz: 6e4f266909dedf94cd179ac6ed18cc007c978fe84622af6eaa9a071693bb6b3b386259a87f4890b81340635ac5221b5c104c06aaf98230203f220dbed0c5439b
7
+ data.tar.gz: 29ab81139a78f4c87237874c425a62ef2444d3bf608d12c44c2c229203e22859dafba1bfc68e5d34f75d152ba5fea765c8c0aa6abe1ab7b53e9b044f177a3ada
@@ -1,5 +1,6 @@
1
1
  require 'json'
2
2
  require 'fastlane_core/print_table'
3
+ require 'open3'
3
4
  require_relative 'git'
4
5
 
5
6
  module Fastlane
@@ -42,11 +43,16 @@ module Fastlane
42
43
  def self.previous_sha
43
44
  if is_push?
44
45
  github_event_data.dig(:before)
45
- else
46
+ else
46
47
  shell_command = "git rev-parse HEAD^"
47
- UI.command(shell_command)
48
- stdout, _, status = Open3.capture3(shell_command)
49
- stdout.strip if status.success?
48
+ stdout, stderr, status = Open3.capture3(shell_command)
49
+ UI.message("Previous SHA command output: #{stdout.strip}")
50
+ if status.success?
51
+ stdout.strip
52
+ else
53
+ UI.error("Failed to get previous SHA: #{stderr}")
54
+ nil
55
+ end
50
56
  end
51
57
  end
52
58
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Nico
3
- VERSION = "0.10.8"
3
+ VERSION = "0.10.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-nico
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.8
4
+ version: 0.10.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nico Testing