lhj-tools 0.2.12 → 0.2.13

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: 052fc9182b82f2f6595458752a58cbf368d4ecad37c40300e6b837b5d257aa8d
4
- data.tar.gz: 5e5110997bc75ab7612047d54d3828e6190cbfc666f700bf2c399c0f2ecb4819
3
+ metadata.gz: 5c888292112f8a42fac146821844bd123369ebb13087c06c49f8b11062325145
4
+ data.tar.gz: c177cb5a26cdfb11f55c328a927b06ad9c849f756ed1e8133e95aedc7936fd5d
5
5
  SHA512:
6
- metadata.gz: 52b51878b4c58abbc55c3a8a991d1a8b75c42e92b49ef3af3828c03478b890e9fac6a102421b9fc2b8bdb694fb1bb788070147c774be376e670eb9c0a39acfb9
7
- data.tar.gz: d92a4ff5ce3f8eb74c9fdf79da7faa43f5c7a3f0ccae11d93032eb69efdf0338aabf44768457afc25c599466f704fa9170c9c1a99dbaac834739ab7dac75f2e1
6
+ metadata.gz: 0b36b3aec66d50a829c05cefbee788c9f85a5168b93e455f8d6acccfc91915834232daefe1b5d696677564bed3731c3467ca21b14e52a0fe34ffd8fae10f0170
7
+ data.tar.gz: 448a6ab8fbaa3e0a3792d2160b451191f4fdf0274f1e5b12bb378a9c0a0a4ba63eef91f8083a65af7e25c2d9b2e6d2fecd626c579214eb196a59da9281bb25aa
@@ -11,6 +11,8 @@ module Lhj
11
11
 
12
12
  # zip_path = Dir['*.app.dSYM.zip'].first
13
13
  # Action.sh("unzip -qo '#{zip_path}' -d dsym") if zip_path
14
+ sym_path = input_symbol
15
+ sym_path = input_symbol.shellescape if %r{[^A-Za-z0-9_\-.,:+/@\n]} =~ input_symbol
14
16
 
15
17
  command = %w[java -jar]
16
18
  command << "#{Lhj::Config.instance.home_dir}/#{BUGLY_JAR}"
@@ -19,7 +21,7 @@ module Lhj
19
21
  command << "-bundleid #{bundle_id}"
20
22
  command << "-version #{version}"
21
23
  command << '-platform IOS'
22
- command << "-inputSymbol #{input_symbol}"
24
+ command << "-inputSymbol #{sym_path}"
23
25
  # puts command.join(' ')
24
26
  Actions.sh(command.join(' '), log: true)
25
27
  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.12'
4
+ VERSION = '0.2.13'
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.12
4
+ version: 0.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - lihaijian