lhj-tools 0.2.85 → 0.2.86

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: 7ac8d9de925c4a6004b4cf22f6cb14a895d871dd1c70bd9b6b4b88741ae314aa
4
- data.tar.gz: 5db49d39898e4ba66a64d86d7a5bf13e19b568247db084faa1a2ce2b12232fac
3
+ metadata.gz: 4573a3fecaa5cbefb98c287f29a15aa4f1a79be649e72f496dcc2aa1b4148af1
4
+ data.tar.gz: 37d3f62d1c13febea06264d7682db2f1e34a7742cffea90021dd95509b61c8c3
5
5
  SHA512:
6
- metadata.gz: 1c7cb5985e175caf4b7c7f7c7cdbc336d93f04d237914356473d26e75a7161f7d042f159b526bbfff3a28b5271ebbcd1fd5bd4f5e6690f27ea93724233fb4572
7
- data.tar.gz: 230edcf280d2d03f08db2405b826d2e435e8694223a1d30e76d2c57244a5a508f6dda40a5869c94b078b4f0c0651826700c76666597878b91626c872d5dc0638
6
+ metadata.gz: 94969114c81edc604d008cd41792bd22e89cc7c2a9df504e140ffb3c3e85e2a9d4deb0721455993ff0d978c4d77648be6d42a989d5531a4a5393eabaf993efec
7
+ data.tar.gz: 0fe2d76cc440aa705b979a0b35865854aaa2c601e21e5a04a79d07f1bf4b2eea0e09a7f5b0f2b163606b4f7ba70d7af1a8d34448e7787bf717cb17be0f0cb5ea
@@ -4,6 +4,7 @@ require 'faraday_middleware'
4
4
  require 'lhj/helper/pgyer_config'
5
5
  require 'lhj/helper/vika_helper'
6
6
  require 'lhj/helper/oss_helper'
7
+ require 'lhj/helper/git_helper'
7
8
  require 'lhj/config'
8
9
  require_relative 'tb_config'
9
10
 
@@ -99,6 +100,7 @@ module Lhj
99
100
  short_url = info['data']['buildShortcutUrl']
100
101
  short_url = info['data']['buildKey'] if short_url.nil? || short_url == ''
101
102
  info['data']['fastlaneAddedWholeVisitUrl'] = "https://wwww.xcxwo.com/#{short_url}"
103
+ info['commitId'] = last_commit_id
102
104
  info
103
105
  elsif [1246, 1247].include?(code)
104
106
  sleep 3
@@ -108,6 +110,10 @@ module Lhj
108
110
  end
109
111
  end
110
112
 
113
+ def last_commit_id
114
+ Lhj::Actions.last_git_commit_hash(true)
115
+ end
116
+
111
117
  def upload_with_type(path, file)
112
118
  return unless @env == :release
113
119
  return unless /hai/ =~ path
data/lib/lhj/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lhj
4
- VERSION = '0.2.85'
4
+ VERSION = '0.2.86'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lhj-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.85
4
+ version: 0.2.86
5
5
  platform: ruby
6
6
  authors:
7
7
  - lihaijian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-18 00:00:00.000000000 Z
11
+ date: 2024-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xcodeproj