motion-sparkinspector 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/motion-sparkinspector/config.rb +19 -0
- data/lib/motion-sparkinspector.rb +5 -2
- metadata +5 -2
@@ -0,0 +1,19 @@
|
|
1
|
+
module Motion ; module Project
|
2
|
+
class App
|
3
|
+
class << self
|
4
|
+
attr_accessor :sparkinspector_path
|
5
|
+
|
6
|
+
def sparkinspector_path
|
7
|
+
@sparkinspector_path ||= '/Applications'
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
class Config
|
13
|
+
attr_accessor :sparkinspector_path
|
14
|
+
|
15
|
+
def sparkinspector_path
|
16
|
+
@sparkinspector_path ||= Motion::Project::App.sparkinspector_path
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end ; end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'motion-sparkinspector/config'
|
2
|
+
|
1
3
|
unless defined?(Motion::Project::Config)
|
2
4
|
raise "This file must be required within a RubyMotion project Rakefile."
|
3
5
|
end
|
@@ -22,8 +24,9 @@ end
|
|
22
24
|
|
23
25
|
Motion::Project::App.setup do |app|
|
24
26
|
app.development do
|
25
|
-
|
26
|
-
|
27
|
+
sparkinspector_app = File.join(app.sparkinspector_path, 'Spark Inspector.app')
|
28
|
+
if File.exist? sparkinspector_app
|
29
|
+
app.vendor_project("#{sparkinspector_app}/Contents/Resources/Frameworks/SparkInspector.framework", :static, :products => ['SparkInspector'], :force_load => true, :headers_dir => 'Headers')
|
27
30
|
app.libs += ['/usr/lib/libz.dylib']
|
28
31
|
app.frameworks += ['QuartzCore']
|
29
32
|
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
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.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- TBD
|
9
|
+
- shirk
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2014-02-16 00:00:00.000000000 Z
|
13
14
|
dependencies: []
|
14
15
|
description: Use SparkInspector in RubyMotion apps
|
15
16
|
email: gem@plugins.ro
|
@@ -18,6 +19,7 @@ extensions: []
|
|
18
19
|
extra_rdoc_files: []
|
19
20
|
files:
|
20
21
|
- lib/motion-sparkinspector.rb
|
22
|
+
- lib/motion-sparkinspector/config.rb
|
21
23
|
homepage: https://github.com/TBD/motion-sparkinspector
|
22
24
|
licenses: []
|
23
25
|
post_install_message:
|
@@ -43,3 +45,4 @@ signing_key:
|
|
43
45
|
specification_version: 3
|
44
46
|
summary: Use SparkInspector in RubyMotion apps
|
45
47
|
test_files: []
|
48
|
+
has_rdoc:
|