lhj-tools 0.2.8 → 0.2.10

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: '068e98888d87494e24872d429a872a82a2287592645ffbda0a35906b15b15a46'
4
- data.tar.gz: 1c8dfaf1e6384cc59c424b18536c5b4ddcbc108611d9740005b102399acd7f1d
3
+ metadata.gz: 670409a3954d63aa1e077c71f5b0f544899f6f9d586c66bbcc82d1e5799f3209
4
+ data.tar.gz: b9f56ef37e8b3cf6e32a2bd5e4acbde8c3221e56f6987dfb844dd6ed59495411
5
5
  SHA512:
6
- metadata.gz: 1177edd653656d64a8e24be8f476737c1ee77f02f39152018f53c02ae0602347dcce9b0e245facfb7fbd3328af20b9e13c7cb7e56d766cff5fb9814adf248c0d
7
- data.tar.gz: f8a61a039275e0ddd6356074b6b1c5d67ff62c2244ced31419fe530fe5522a6f4e4bc0fcf3a753f799b1b509240e9c15fb9a0d2c1f66d4de64993307e7046428
6
+ metadata.gz: 35452a9fbe1f94d8fa18bc3b549e68ef2b663f6e2e6244071b2349b113ce50040a2999ebce3a5c97d9ddaaef52841af474eca6808532ff3d5184bfe04088cc9b
7
+ data.tar.gz: 6b90f7b7f47524484197e8be1a4f3fac4a18720292d3120d4fb4866ab09e2f1506388fa34f91436c2ce8a3dcb45e6ceff72cb0c18f778e3916bae2d7dfaa69f5
@@ -3,15 +3,22 @@ module Lhj
3
3
  # bugly helper
4
4
  class BuglyHelper
5
5
 
6
+ BUGLY_JAR = 'buglyqq-upload-symbol.jar'
7
+
6
8
  def self.upload_sym(app_id, app_key, bundle_id, version, input_symbol)
7
- command = %w[java jar buglyqq-upload-symbol.jar]
9
+ file = File.join(Lhj::Config.instance.home_dir, BUGLY_JAR)
10
+ Lhj::OSS::Helper.instance.down_load("bugly/#{BUGLY_JAR}", file) unless File.exist?(file)
11
+
12
+ command = %w[java -jar]
13
+ command << "#{Lhj::Config.instance.home_dir}/#{BUGLY_JAR}"
8
14
  command << "-appid #{app_id}"
9
15
  command << "-appkey #{app_key}"
10
16
  command << "-bundleid #{bundle_id}"
11
17
  command << "-version #{version}"
12
18
  command << '-platform IOS'
13
19
  command << "-inputSymbol #{input_symbol}"
14
- Actions.sh(command.join[' '], log: true)
20
+ # puts command.join(' ')
21
+ Actions.sh(command.join(' '), log: true)
15
22
  end
16
23
 
17
24
  end
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.8'
4
+ VERSION = '0.2.10'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lhj-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - lihaijian