crash-watch 1.1.12 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +1 -1
- data/README.markdown +2 -41
- data/Rakefile +22 -557
- data/bin/crash-watch +23 -86
- data/crash-watch.gemspec +11 -13
- data/lib/crash_watch/app.rb +138 -0
- data/lib/crash_watch/base.rb +25 -0
- data/lib/crash_watch/gdb_controller.rb +263 -307
- data/lib/crash_watch/lldb_controller.rb +178 -0
- data/lib/crash_watch/packaging.rb +29 -10
- data/lib/crash_watch/utils.rb +94 -0
- data/lib/crash_watch/version.rb +22 -1
- data/test/controller_sharedspec.rb +34 -0
- data/test/gdb_controller_spec.rb +86 -113
- data/test/lldb_controller_spec.rb +29 -0
- data/test/spec_helper.rb +9 -0
- metadata +18 -45
- data.tar.gz.asc +0 -12
- metadata.gz.asc +0 -12
@@ -0,0 +1,29 @@
|
|
1
|
+
source_root = File.expand_path(File.dirname(__FILE__) + "/..")
|
2
|
+
require "#{source_root}/test/spec_helper"
|
3
|
+
require "#{source_root}/test/controller_sharedspec"
|
4
|
+
require 'crash_watch/lldb_controller'
|
5
|
+
require 'crash_watch/utils'
|
6
|
+
|
7
|
+
if CrashWatch::Utils.lldb_installed?
|
8
|
+
describe CrashWatch::LldbController do
|
9
|
+
before :each do
|
10
|
+
@gdb = CrashWatch::LldbController.new
|
11
|
+
end
|
12
|
+
|
13
|
+
after :each do
|
14
|
+
@gdb.close
|
15
|
+
if @process
|
16
|
+
Process.kill('KILL', @process.pid)
|
17
|
+
@process.close
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
include_examples 'a CrashWatch controller'
|
22
|
+
|
23
|
+
describe "#execute" do
|
24
|
+
it "executes the desired command and returns its output" do
|
25
|
+
expect(@gdb.execute("script print 'hello world'")).to eq("hello world\n")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
data/test/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,48 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crash-watch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Hongli Lai
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: ffi
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :development
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: rspec
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '0'
|
38
|
-
type: :development
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
11
|
+
date: 2016-11-24 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
46
13
|
description: Monitor processes and display useful information when they crash.
|
47
14
|
email: software-signing@phusion.nl
|
48
15
|
executables:
|
@@ -50,38 +17,44 @@ executables:
|
|
50
17
|
extensions: []
|
51
18
|
extra_rdoc_files: []
|
52
19
|
files:
|
53
|
-
- README.markdown
|
54
20
|
- LICENSE.txt
|
21
|
+
- README.markdown
|
55
22
|
- Rakefile
|
56
|
-
- crash-watch.gemspec
|
57
23
|
- bin/crash-watch
|
24
|
+
- crash-watch.gemspec
|
25
|
+
- lib/crash_watch/app.rb
|
26
|
+
- lib/crash_watch/base.rb
|
58
27
|
- lib/crash_watch/gdb_controller.rb
|
28
|
+
- lib/crash_watch/lldb_controller.rb
|
59
29
|
- lib/crash_watch/packaging.rb
|
30
|
+
- lib/crash_watch/utils.rb
|
60
31
|
- lib/crash_watch/version.rb
|
32
|
+
- test/controller_sharedspec.rb
|
61
33
|
- test/gdb_controller_spec.rb
|
34
|
+
- test/lldb_controller_spec.rb
|
35
|
+
- test/spec_helper.rb
|
62
36
|
homepage: https://github.com/FooBarWidget/crash-watch
|
63
37
|
licenses: []
|
38
|
+
metadata: {}
|
64
39
|
post_install_message:
|
65
40
|
rdoc_options:
|
66
|
-
- --charset=UTF-8
|
41
|
+
- "--charset=UTF-8"
|
67
42
|
require_paths:
|
68
43
|
- lib
|
69
44
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
45
|
requirements:
|
72
|
-
- -
|
46
|
+
- - ">="
|
73
47
|
- !ruby/object:Gem::Version
|
74
48
|
version: '0'
|
75
49
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
-
none: false
|
77
50
|
requirements:
|
78
|
-
- -
|
51
|
+
- - ">="
|
79
52
|
- !ruby/object:Gem::Version
|
80
53
|
version: '0'
|
81
54
|
requirements: []
|
82
55
|
rubyforge_project:
|
83
|
-
rubygems_version:
|
56
|
+
rubygems_version: 2.5.2
|
84
57
|
signing_key:
|
85
|
-
specification_version:
|
58
|
+
specification_version: 4
|
86
59
|
summary: Monitor processes and display useful information when they crash
|
87
60
|
test_files: []
|
data.tar.gz.asc
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
-----BEGIN PGP SIGNATURE-----
|
2
|
-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
|
3
|
-
Comment: GPGTools - http://gpgtools.org
|
4
|
-
|
5
|
-
iQEcBAABAgAGBQJSquFeAAoJECrHRaUKISqMjVAH/3vmRFJcHZ46nJxbEYA7G/oA
|
6
|
-
E+5pfLBk56jGN8aZG2Sbpcs8hlFv1f2wZY58rJc3NgzcFNci4nW/Ej9EkYqIKTz4
|
7
|
-
9Q1ucCNH1muiyMMMhxcVnkYFXibWM+0h3Fu62LuCmHl80IdMB4xVpR+TBvUN3yBE
|
8
|
-
lLFhQjISPBg6pTwAa6YYt0YASmBGIjg1064EHXfsEUKkCYp+SZS69GJThNyFrBdb
|
9
|
-
ydzEmoelWA7R7h4EAS1dDZVwpUk2S2P6Lw8WNCx/JnRZXI8V5b3XRxLmrE0LUICy
|
10
|
-
uCUlIqRa7tRMDpM8wVXrLY+9pVX505aCIiPeeGFHphg8/qlEAUHE4CPElwo1JbA=
|
11
|
-
=BJQc
|
12
|
-
-----END PGP SIGNATURE-----
|
metadata.gz.asc
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
-----BEGIN PGP SIGNATURE-----
|
2
|
-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
|
3
|
-
Comment: GPGTools - http://gpgtools.org
|
4
|
-
|
5
|
-
iQEcBAABAgAGBQJSquFeAAoJECrHRaUKISqMhOkIAKHs19u1vHGpJzjL1+basgb1
|
6
|
-
D5qpD8D7VMm/xT3l8bkU/OLGaGyH+S1LDvJKBsMXmckI97k9/zRkxMOJ/GhCbZlX
|
7
|
-
7nbPaSVOmy2OOfoaLfhlB/8XYmOGoQFUIKb37TdLuLLUBW4vWFn1yG+/1IBgeQXh
|
8
|
-
qsGMXqYA2PDirpDBBvhmASq/HTmG+N/U/8uygvdTl9kldqPM7qdMEdUaD7/cs+5J
|
9
|
-
dMJGMxOHWa2SUiz4/KfEWjF4VcthWcC1WT/nHJf/bMplbG6ChTvq5YtOtDmwHAaB
|
10
|
-
SYCIVboO5mcnfpxYONPoPD8D/TWBKvF71Lso3FO9mYTDBu/srNYNeq6ulkqNJEA=
|
11
|
-
=bOL7
|
12
|
-
-----END PGP SIGNATURE-----
|