motion.h 0.0.3 → 0.0.4
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/README.md +2 -2
- data/lib/motion.h.rb +7 -1
- data/motion.h.gemspec +1 -1
- metadata +12 -18
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 658a40d4452058be04fc540bce0b8f4b9cd1d586
|
|
4
|
+
data.tar.gz: 12953de5cb72faac6539d8ccca02814cb94654b1
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: dcd79de13a2ccfc3a824c97e67e015cac191326099fe7f42ff207f79e8fd598f8de64d69ec81f5072bcd986e22582d14bea7d71f6f3f5ab36fb0bdacac274fe5
|
|
7
|
+
data.tar.gz: e11d43ea20cc60d97ed092b13c23a4a060580aa6551dddada1858814c1e1af004e7db1fe47462c0744f2f39869dc3a4b27b1f2eadf6688ff7ef82d01741e7ea5
|
data/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# motion.h
|
|
2
2
|
|
|
3
|
-
Expose iOS system
|
|
3
|
+
Expose iOS and OS X system libraries in RubyMotion.
|
|
4
4
|
|
|
5
|
-
Outside of the usual Apple frameworks, iOS
|
|
5
|
+
Outside of the usual Apple frameworks, iOS and OS X include many system libraries,
|
|
6
6
|
with the most well known examples being [SQLite](http://www.sqlite.org/), and
|
|
7
7
|
[Libxml2](http://www.xmlsoft.org/). RubyMotion provides the ability to directly
|
|
8
8
|
call into C libraries through a mechanism called BridgeSupport, which takes us
|
data/lib/motion.h.rb
CHANGED
|
@@ -50,7 +50,7 @@ class MotionHeader
|
|
|
50
50
|
"--64-bit"
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
|
-
`/usr/bin/gen_bridge_metadata --format complete #{flag} --cflags '-I#{include_path}' #{@header_file} > #{bridgesupport_file}`
|
|
53
|
+
`/usr/bin/gen_bridge_metadata --format complete #{flag} --cflags '-I#{include_path} -F#{frameworks_path}' #{@header_file} > #{bridgesupport_file}`
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
def include_path
|
|
@@ -59,6 +59,12 @@ class MotionHeader
|
|
|
59
59
|
File.join(*path_components)
|
|
60
60
|
end
|
|
61
61
|
|
|
62
|
+
def frameworks_path
|
|
63
|
+
sdk_dir = sdk_dir(@config.sdk_version)
|
|
64
|
+
path_components = [@config.xcode_dir, *sdk_dir, 'System', 'Library', 'Frameworks'].compact
|
|
65
|
+
File.join(*path_components)
|
|
66
|
+
end
|
|
67
|
+
|
|
62
68
|
def sdk_dir(sdk_version)
|
|
63
69
|
case platform
|
|
64
70
|
when :ios
|
data/motion.h.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,46 +1,41 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: motion.h
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.0.4
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Dave Lee
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 2014-02-25 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: bundler
|
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
16
|
requirements:
|
|
19
|
-
- - ~>
|
|
17
|
+
- - "~>"
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
21
19
|
version: '1.3'
|
|
22
20
|
type: :development
|
|
23
21
|
prerelease: false
|
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
23
|
requirements:
|
|
27
|
-
- - ~>
|
|
24
|
+
- - "~>"
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
26
|
version: '1.3'
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
|
31
28
|
name: rake
|
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
30
|
requirements:
|
|
35
|
-
- -
|
|
31
|
+
- - ">="
|
|
36
32
|
- !ruby/object:Gem::Version
|
|
37
33
|
version: '0'
|
|
38
34
|
type: :development
|
|
39
35
|
prerelease: false
|
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
37
|
requirements:
|
|
43
|
-
- -
|
|
38
|
+
- - ">="
|
|
44
39
|
- !ruby/object:Gem::Version
|
|
45
40
|
version: '0'
|
|
46
41
|
description: Expose iOS system C libraries in RubyMotion
|
|
@@ -50,7 +45,7 @@ executables: []
|
|
|
50
45
|
extensions: []
|
|
51
46
|
extra_rdoc_files: []
|
|
52
47
|
files:
|
|
53
|
-
- .gitignore
|
|
48
|
+
- ".gitignore"
|
|
54
49
|
- Gemfile
|
|
55
50
|
- LICENSE.txt
|
|
56
51
|
- README.md
|
|
@@ -60,27 +55,26 @@ files:
|
|
|
60
55
|
homepage: https://github.com/kastiglione/motion.h
|
|
61
56
|
licenses:
|
|
62
57
|
- MIT
|
|
58
|
+
metadata: {}
|
|
63
59
|
post_install_message:
|
|
64
60
|
rdoc_options: []
|
|
65
61
|
require_paths:
|
|
66
62
|
- lib
|
|
67
63
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
|
-
none: false
|
|
69
64
|
requirements:
|
|
70
|
-
- -
|
|
65
|
+
- - ">="
|
|
71
66
|
- !ruby/object:Gem::Version
|
|
72
67
|
version: '0'
|
|
73
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
|
-
none: false
|
|
75
69
|
requirements:
|
|
76
|
-
- -
|
|
70
|
+
- - ">="
|
|
77
71
|
- !ruby/object:Gem::Version
|
|
78
72
|
version: '0'
|
|
79
73
|
requirements: []
|
|
80
74
|
rubyforge_project:
|
|
81
|
-
rubygems_version:
|
|
75
|
+
rubygems_version: 2.2.0
|
|
82
76
|
signing_key:
|
|
83
|
-
specification_version:
|
|
77
|
+
specification_version: 4
|
|
84
78
|
summary: Expose iOS system C libraries in RubyMotion
|
|
85
79
|
test_files: []
|
|
86
80
|
has_rdoc:
|