motion-sparkinspector 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/motion-sparkinspector.rb +35 -0
- metadata +52 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA512:
|
3
|
+
data.tar.gz: c259e7bfd92b4485dd4413585d3fc3ee33cbb2d48716d904472fedb7d9c9a3f3ec7c1f2e1457cbeaa34c87a0467864287d345ecfdf63af2acefbc94a8dc104f5
|
4
|
+
metadata.gz: 1cdb0f3bbfe21b13473b8197576538a69d0e992ef8f2951ced062982b1a1bb2419343f4dd9768aedbad941af46703c340b5b42c5bee0f90d48057ad3912238e1
|
5
|
+
SHA1:
|
6
|
+
data.tar.gz: e42d755edbc516c2a92d276c23c50d6a93a92408
|
7
|
+
metadata.gz: 1dac0bcb101c6631af460f5a7c838d64a186abcd
|
@@ -0,0 +1,35 @@
|
|
1
|
+
unless defined?(Motion::Project::Config)
|
2
|
+
raise "This file must be required within a RubyMotion project Rakefile."
|
3
|
+
end
|
4
|
+
|
5
|
+
unless File.exist? '/Applications/Spark Inspector.app'
|
6
|
+
raise "Please install SparkInspector (http://www.sparkinspector.com"
|
7
|
+
end
|
8
|
+
|
9
|
+
def create_launcher(files)
|
10
|
+
# --- based on motion-testflight
|
11
|
+
launcher_code = <<EOF
|
12
|
+
# created by motion-sparkinspector
|
13
|
+
if Object.const_defined?('SparkInspector')
|
14
|
+
SparkInspector.enableObservation
|
15
|
+
end
|
16
|
+
EOF
|
17
|
+
|
18
|
+
launcher_file = './app/sparkinspector_launcher.rb'
|
19
|
+
if !File.exist?(launcher_file) or File.read(launcher_file) != launcher_code
|
20
|
+
File.open(launcher_file, 'w') { |io| io.write(launcher_code) }
|
21
|
+
end
|
22
|
+
files = files.flatten
|
23
|
+
files << launcher_file unless files.find { |x| File.expand_path(x) == File.expand_path(launcher_file) }
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
Motion::Project::App.setup do |app|
|
28
|
+
app.development do
|
29
|
+
app.vendor_project('/Applications/Spark Inspector.app/Contents/Resources/Frameworks/SparkInspector.framework', :static, :products => ['SparkInspector'], :force_load => true, :headers_dir => 'Headers')
|
30
|
+
app.libs += ['/usr/lib/libz.dylib']
|
31
|
+
app.frameworks += ['QuartzCore']
|
32
|
+
|
33
|
+
create_launcher(app.files)
|
34
|
+
end
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: motion-sparkinspector
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- TBD
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2013-05-10 00:00:00 Z
|
13
|
+
dependencies: []
|
14
|
+
|
15
|
+
description: Use SparkInspector in RubyMotion apps
|
16
|
+
email: gem@plugins.ro
|
17
|
+
executables: []
|
18
|
+
|
19
|
+
extensions: []
|
20
|
+
|
21
|
+
extra_rdoc_files: []
|
22
|
+
|
23
|
+
files:
|
24
|
+
- lib/motion-sparkinspector.rb
|
25
|
+
homepage: https://github.com/TBD/motion-sparkinspector
|
26
|
+
licenses: []
|
27
|
+
|
28
|
+
metadata: {}
|
29
|
+
|
30
|
+
post_install_message:
|
31
|
+
rdoc_options: []
|
32
|
+
|
33
|
+
require_paths:
|
34
|
+
- lib
|
35
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- &id001
|
38
|
+
- ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: "0"
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- *id001
|
44
|
+
requirements: []
|
45
|
+
|
46
|
+
rubyforge_project:
|
47
|
+
rubygems_version: 2.0.3
|
48
|
+
signing_key:
|
49
|
+
specification_version: 4
|
50
|
+
summary: Use SparkInspector in RubyMotion apps
|
51
|
+
test_files: []
|
52
|
+
|