lhj-tools 0.2.84 → 0.2.86

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: b5099d017ea0c7cfff90a0f2a63084a5a1714c832246f10d3c7dcc34162c5072
4
- data.tar.gz: f336ef00bff5aadfc71612f07100ff4a74012302b59a134b9bc6819bd9631e6a
3
+ metadata.gz: 4573a3fecaa5cbefb98c287f29a15aa4f1a79be649e72f496dcc2aa1b4148af1
4
+ data.tar.gz: 37d3f62d1c13febea06264d7682db2f1e34a7742cffea90021dd95509b61c8c3
5
5
  SHA512:
6
- metadata.gz: ac9b2e52461c0d8b85bfb3b27ecf0472b3b6a6b910e8071ac1716b3f27254ba50d06cd070a2f7123208a343e0eb87b81cd6c39db4bb6b756c5158f95ba407d0a
7
- data.tar.gz: 41d174583980d1b6eb72598259e2dbef709c4834c211c904126017677d4869ee0baeb1ac898192a6b5f83afee595817d8b9be85be84cab621a673b7ed2808043
6
+ metadata.gz: 94969114c81edc604d008cd41792bd22e89cc7c2a9df504e140ffb3c3e85e2a9d4deb0721455993ff0d978c4d77648be6d42a989d5531a4a5393eabaf993efec
7
+ data.tar.gz: 0fe2d76cc440aa705b979a0b35865854aaa2c601e21e5a04a79d07f1bf4b2eea0e09a7f5b0f2b163606b4f7ba70d7af1a8d34448e7787bf717cb17be0f0cb5ea
@@ -105,6 +105,10 @@ module Lhj
105
105
  vers.last[:value]
106
106
  end
107
107
 
108
+ def last_commit_id
109
+ Lhj::Actions.last_git_commit_hash(true)
110
+ end
111
+
108
112
  def build_app_version_no
109
113
  # xcode build version
110
114
  # ${BUILD_NUMBER} of jenkins
@@ -1,5 +1,4 @@
1
1
  # frozen_string_literal: true
2
- require 'jenkins_api_client'
3
2
  require 'faraday'
4
3
  require 'faraday_middleware'
5
4
 
@@ -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.84'
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.84
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-05-21 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