crash_analysis 0.1.3 → 0.1.4

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
  SHA1:
3
- metadata.gz: 71fd0c89a9da5f8cc0a714120a15052f248053b1
4
- data.tar.gz: 67c79ebf66e6b5eb35eeadde3ecc0efa444666c4
3
+ metadata.gz: f42c16a1959cf15f4849467366d8406150ab54e6
4
+ data.tar.gz: 6e7271b6c22240e3618655315dc6e132be6b5c41
5
5
  SHA512:
6
- metadata.gz: 0f4b6fe59bf034fddf38ab7139407e030faa741d658a7b5acca8117826404ad8b6a12b480505f6c815dcbce97b1e0dcf6a806f178404599b5234de39917083db
7
- data.tar.gz: 25971506e95367aaac9e835ef03f9387b1a17643ccf431517ac7a06608eceb947bf06131a77ef344268a06d983c7135b2271b9067304c92bd4052343da1d0947
6
+ metadata.gz: ca52844d41124bde80a63900298039a68d65a385b518c0d6d07ff7ce03bf2b7c66c2c0573f5093f4e77b69928ba22fae4d08127d7171b7a2ed326f6f5eb93fbb
7
+ data.tar.gz: 09bcbb9459f2fb9ab459fbd525bafc94b2e08c31dd6f5bce07fa23ad8302b2cf2c72d5f0482cec60c11a66ff6c66d5518a142837833eb179b1b806e5c7d6296c
@@ -1,3 +1,3 @@
1
1
  module CrashAnalysis
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -107,13 +107,19 @@ module CrashAnalysis
107
107
  end
108
108
 
109
109
  for fileName in crashFileNames
110
- shortFileName = fileName.split("/").last
111
- outputFile = logDir + "/" + shortFileName +".log"
112
- system("#{evn} \n #{cmd} #{fileName}.#{rawFileSuffix} BDPhoneBrowser.app.dSYM > #{outputFile}")
113
- @percentCount = @percentCount + 1
114
- precent = ((@percentCount.to_f / crashFileNames.count.to_f) * 10000).round / 10000.0
115
- str = (precent * 100).to_s
116
- print "\r #{str[0,4]}%"
110
+ runningThread = Thread.new do
111
+ shortFileName = fileName.split("/").last
112
+ outputFile = logDir + "/" + shortFileName +".log"
113
+ system("#{evn} \n #{cmd} #{fileName}.#{rawFileSuffix} BDPhoneBrowser.app.dSYM > #{outputFile}")
114
+ @percentCount = @percentCount + 1
115
+ precent = ((@percentCount.to_f / crashFileNames.count.to_f) * 10000).round / 10000.0
116
+ str = (precent * 100).to_s
117
+ print "\r #{str[0,4]}%"
118
+ Thread.main.wakeup
119
+ end
120
+ # Maximum run for 10 seconds
121
+ sleep 10
122
+ Thread.kill(runningThread)
117
123
  end
118
124
  puts "\n Done."
119
125
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crash_analysis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - HongliYu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-20 00:00:00.000000000 Z
11
+ date: 2015-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler