motion-sparkinspector 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/motion-sparkinspector.rb +16 -16
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA512:
|
3
|
-
|
4
|
-
|
3
|
+
metadata.gz: 537a156c49d9e75b5f9cd6e38c5e592c1d7195a249aff1dd0498bea680f81c598528e23bcd47c3f9b418201660774dcb53f1e6a965226f2e7a7f7fa8aac182fb
|
4
|
+
data.tar.gz: d03bcbb7bcb68d1555008132eaed0b12dca5b3417ab93de51b218e7d0f2e05c8ea3cde9809dec7a3599712f4f883fd958e63de7c5b81e54816c591516ea97276
|
5
5
|
SHA1:
|
6
|
-
|
7
|
-
|
6
|
+
metadata.gz: 6121be748fa627b6f76cc4aa8e0d065dacd3694b
|
7
|
+
data.tar.gz: 3581386a8361ccbf9f4d29935be28b1a95556ded
|
@@ -1,35 +1,35 @@
|
|
1
1
|
unless defined?(Motion::Project::Config)
|
2
|
-
|
3
|
-
end
|
4
|
-
|
5
|
-
unless File.exist? '/Applications/Spark Inspector.app'
|
6
|
-
raise "Please install SparkInspector (http://www.sparkinspector.com"
|
2
|
+
raise "This file must be required within a RubyMotion project Rakefile."
|
7
3
|
end
|
8
4
|
|
9
5
|
def create_launcher(files)
|
10
6
|
# --- based on motion-testflight
|
11
7
|
launcher_code = <<EOF
|
12
|
-
|
8
|
+
# created by motion-sparkinspector
|
13
9
|
if Object.const_defined?('SparkInspector')
|
14
10
|
SparkInspector.enableObservation
|
15
11
|
end
|
16
12
|
EOF
|
17
13
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
14
|
+
launcher_file = './app/sparkinspector_launcher.rb'
|
15
|
+
if !File.exist?(launcher_file) or File.read(launcher_file) != launcher_code
|
16
|
+
File.open(launcher_file, 'w') { |io| io.write(launcher_code) }
|
17
|
+
end
|
18
|
+
files = files.flatten
|
19
|
+
files << launcher_file unless files.find { |x| File.expand_path(x) == File.expand_path(launcher_file) }
|
24
20
|
|
25
21
|
end
|
26
22
|
|
27
23
|
Motion::Project::App.setup do |app|
|
28
24
|
app.development do
|
29
|
-
|
30
|
-
|
31
|
-
|
25
|
+
if File.exist? '/Applications/Spark Inspector.appx'
|
26
|
+
app.vendor_project('/Applications/Spark Inspector.app/Contents/Resources/Frameworks/SparkInspector.framework', :static, :products => ['SparkInspector'], :force_load => true, :headers_dir => 'Headers')
|
27
|
+
app.libs += ['/usr/lib/libz.dylib']
|
28
|
+
app.frameworks += ['QuartzCore']
|
32
29
|
|
33
|
-
|
30
|
+
create_launcher(app.files)
|
31
|
+
else
|
32
|
+
puts "[warning] missing SparkInspector (http://www.sparkinspector.com)"
|
33
|
+
end
|
34
34
|
end
|
35
35
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-sparkinspector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TBD
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-15 00:00:00 Z
|
13
13
|
dependencies: []
|
14
14
|
|
15
15
|
description: Use SparkInspector in RubyMotion apps
|