luffa 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/luffa/cli/cli.rb +17 -22
- data/lib/luffa/version.rb +1 -1
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1992aba629802837faab8964be288f802e9a94c
|
4
|
+
data.tar.gz: cfe9dc9def3ec34dbee77ac166a4690d6abea0eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f07a3b217a4f3cc54e53b63295667538bc02bc25e3ba7a79caa698e9d9f39849af471d651254346b5f43dd9b8cff2d0d26df9332049ad835654a81062164e32
|
7
|
+
data.tar.gz: 8c89387a8ba03f10a4ff992eed6041e253d00a2384183ed4b481bc35928a7f28d564d4a8cec1b0cbdc523b4b903d8b649111aac25e72e5b43493651f8c1ad512
|
data/lib/luffa/cli/cli.rb
CHANGED
@@ -38,28 +38,23 @@ module Luffa
|
|
38
38
|
kill_domain = 'com.apple.dt.instruments.process.kill'
|
39
39
|
kill_args = ['security', 'authorizationdb', 'write', kill_domain]
|
40
40
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
analysis_code == 0 && kill_code == 0
|
59
|
-
else
|
60
|
-
puts "Skipping 'security authorizationdb write' because it requires sudo"
|
61
|
-
true
|
62
|
-
end
|
41
|
+
cmd = "sudo #{analysis_args.join(' ')} < \"#{analysis_plist}\""
|
42
|
+
options = {
|
43
|
+
:pass_msg => 'Wrote analysis.plist',
|
44
|
+
:fail_msg => 'Could not write analysis.plist',
|
45
|
+
:exit_on_nonzero_status => false
|
46
|
+
}
|
47
|
+
analysis_code = Luffa.unix_command(cmd, options)
|
48
|
+
|
49
|
+
cmd = "sudo #{kill_args.join(' ')} < \"#{kill_plist}\""
|
50
|
+
options = {
|
51
|
+
:pass_msg => 'Wrote kill.plist',
|
52
|
+
:fail_msg => 'Could not write kill.plist',
|
53
|
+
:exit_on_nonzero_status => false
|
54
|
+
}
|
55
|
+
|
56
|
+
kill_code = Luffa.unix_command(cmd, options)
|
57
|
+
analysis_code == 0 && kill_code == 0
|
63
58
|
end
|
64
59
|
end
|
65
60
|
end
|
data/lib/luffa/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: luffa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Maturana Larsen
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2016-01-19 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: awesome_print
|
@@ -201,20 +201,6 @@ dependencies:
|
|
201
201
|
- - "~>"
|
202
202
|
- !ruby/object:Gem::Version
|
203
203
|
version: '1.0'
|
204
|
-
- !ruby/object:Gem::Dependency
|
205
|
-
name: rb-readline
|
206
|
-
requirement: !ruby/object:Gem::Requirement
|
207
|
-
requirements:
|
208
|
-
- - "~>"
|
209
|
-
- !ruby/object:Gem::Version
|
210
|
-
version: '0.5'
|
211
|
-
type: :development
|
212
|
-
prerelease: false
|
213
|
-
version_requirements: !ruby/object:Gem::Requirement
|
214
|
-
requirements:
|
215
|
-
- - "~>"
|
216
|
-
- !ruby/object:Gem::Version
|
217
|
-
version: '0.5'
|
218
204
|
- !ruby/object:Gem::Dependency
|
219
205
|
name: stub_env
|
220
206
|
requirement: !ruby/object:Gem::Requirement
|
@@ -309,7 +295,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
309
295
|
requirements:
|
310
296
|
- - ">="
|
311
297
|
- !ruby/object:Gem::Version
|
312
|
-
version: '
|
298
|
+
version: '2.0'
|
313
299
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
314
300
|
requirements:
|
315
301
|
- - ">="
|
@@ -317,7 +303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
317
303
|
version: '0'
|
318
304
|
requirements: []
|
319
305
|
rubyforge_project:
|
320
|
-
rubygems_version: 2.
|
306
|
+
rubygems_version: 2.5.1
|
321
307
|
signing_key:
|
322
308
|
specification_version: 4
|
323
309
|
summary: A gem for testing the Calabash Toolchain
|