motion-yaml 1.0 → 1.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 54a38d729fd3119b062d82b6106f37f7070039e7
4
+ data.tar.gz: dd04037a26ba265befdac3c605d70870887840ca
5
+ SHA512:
6
+ metadata.gz: f6e4a4e322038b4606107d580b5a6bd4efd55d2c90325ae5004edfb2febcf69c38f1c959441d29d042b3adf0b9244f71dcdc590d7ea79f57b3b42000480daedd
7
+ data.tar.gz: f688af684c28fe3f581b4a5c09f4290c448b71842d2a876d713b58d9ad1795c25e62207de1fed5b3b768cc4d93e9d8745c57ddfed254a2df0175844e3d7a881f
@@ -0,0 +1,91 @@
1
+ <?xml version='1.0'?>
2
+ <signatures version='1.0'>
3
+ <constant declared_type='NSString*' type='@' const='true' name='YKErrorContextColumnKey'/>
4
+ <constant declared_type='NSString*' type='@' const='true' name='YKErrorContextDescriptionKey'/>
5
+ <constant declared_type='NSString*' type='@' const='true' name='YKErrorContextIndexKey'/>
6
+ <constant declared_type='NSString*' type='@' const='true' name='YKErrorContextLineKey'/>
7
+ <constant declared_type='NSString*' type='@' name='YKErrorDomain'/>
8
+ <constant declared_type='NSString*' type='@' const='true' name='YKProblemColumnKey'/>
9
+ <constant declared_type='NSString*' type='@' const='true' name='YKProblemDescriptionKey'/>
10
+ <constant declared_type='NSString*' type='@' const='true' name='YKProblemIndexKey'/>
11
+ <constant declared_type='NSString*' type='@' const='true' name='YKProblemLineKey'/>
12
+ <constant declared_type='NSString*' type='@' const='true' name='YKProblemOffsetKey'/>
13
+ <constant declared_type='NSString*' type='@' const='true' name='YKProblemValueKey'/>
14
+ <class name='YAMLKit'>
15
+ <method selector='dumpObject:' class_method='true'>
16
+ <arg declared_type='id' type='@' name='object' index='0'/>
17
+ <retval declared_type='NSString*' type='@'/>
18
+ </method>
19
+ <method selector='dumpObject:toFile:' class_method='true'>
20
+ <arg declared_type='id' type='@' name='object' index='0'/>
21
+ <arg declared_type='NSString*' type='@' name='path' index='1'/>
22
+ <retval declared_type='BOOL' type='B'/>
23
+ </method>
24
+ <method selector='dumpObject:toURL:' class_method='true'>
25
+ <arg declared_type='id' type='@' name='object' index='0'/>
26
+ <arg declared_type='NSURL*' type='@' name='path' index='1'/>
27
+ <retval declared_type='BOOL' type='B'/>
28
+ </method>
29
+ <method selector='loadFromFile:' class_method='true'>
30
+ <arg declared_type='NSString*' type='@' name='path' index='0'/>
31
+ <retval declared_type='id' type='@'/>
32
+ </method>
33
+ <method selector='loadFromString:' class_method='true'>
34
+ <arg declared_type='NSString*' type='@' name='aString' index='0'/>
35
+ <retval declared_type='id' type='@'/>
36
+ </method>
37
+ <method selector='loadFromURL:' class_method='true'>
38
+ <arg declared_type='NSURL*' type='@' name='url' index='0'/>
39
+ <retval declared_type='id' type='@'/>
40
+ </method>
41
+ </class>
42
+ <class name='YKEmitter'>
43
+ <method selector='emitItem:'>
44
+ <arg declared_type='id' type='@' name='item' index='0'/>
45
+ <retval declared_type='void' type='v'/>
46
+ </method>
47
+ <method selector='emittedData'>
48
+ <retval declared_type='NSData*' type='@'/>
49
+ </method>
50
+ <method selector='emittedString'>
51
+ <retval declared_type='NSString*' type='@'/>
52
+ </method>
53
+ <method selector='encoding'>
54
+ <retval declared_type='NSStringEncoding' type='I'/>
55
+ </method>
56
+ <method selector='setEncoding:'>
57
+ <arg declared_type='NSStringEncoding' type='I' name='encoding' index='0'/>
58
+ <retval declared_type='void' type='v'/>
59
+ </method>
60
+ <method selector='setUsesExplicitDelimiters:'>
61
+ <arg declared_type='BOOL' type='B' name='usesExplicitDelimiters' index='0'/>
62
+ <retval declared_type='void' type='v'/>
63
+ </method>
64
+ <method selector='usesExplicitDelimiters'>
65
+ <retval declared_type='BOOL' type='B'/>
66
+ </method>
67
+ </class>
68
+ <class name='YKParser'>
69
+ <method selector='parse'>
70
+ <retval declared_type='NSArray*' type='@'/>
71
+ </method>
72
+ <method selector='parseWithError:'>
73
+ <arg declared_type='NSError**' type='^@' name='e' index='0'/>
74
+ <retval declared_type='NSArray*' type='@'/>
75
+ </method>
76
+ <method selector='readFile:'>
77
+ <arg declared_type='NSString*' type='@' name='path' index='0'/>
78
+ <retval declared_type='BOOL' type='B'/>
79
+ </method>
80
+ <method selector='readString:'>
81
+ <arg declared_type='NSString*' type='@' name='path' index='0'/>
82
+ <retval declared_type='BOOL' type='B'/>
83
+ </method>
84
+ <method selector='readyToParse'>
85
+ <retval declared_type='BOOL' type='B'/>
86
+ </method>
87
+ <method selector='reset'>
88
+ <retval declared_type='void' type='v'/>
89
+ </method>
90
+ </class>
91
+ </signatures>
Binary file
Binary file
data/lib/motion-yaml.rb CHANGED
@@ -26,8 +26,19 @@ unless defined?(Motion::Project::Config)
26
26
  raise "This file must be required within a RubyMotion project Rakefile."
27
27
  end
28
28
 
29
+ def platform
30
+ Motion::Project::App.respond_to?(:template) ? Motion::Project::App.template : :ios
31
+ end
32
+
29
33
  lib_dir_path = File.dirname(File.expand_path(__FILE__))
30
34
  Motion::Project::App.setup do |app|
31
35
  app.files.concat(Dir.glob(File.join(lib_dir_path, "project/**/*.rb")))
32
- app.vendor_project(File.join(lib_dir_path, "YAMLKit"), :static)
36
+ case platform
37
+ when :ios
38
+ app.vendor_project(File.join(lib_dir_path, "YAMLKit"), :static,
39
+ :products => ["libYAMLKit_iOS.a"])
40
+ when :osx
41
+ app.vendor_project(File.join(lib_dir_path, "YAMLKit"), :static,
42
+ :products => ["libYAMLKit_OSX.a"])
43
+ end
33
44
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
5
- prerelease:
4
+ version: '1.1'
6
5
  platform: ruby
7
6
  authors:
8
7
  - Laurent Sansonetti
@@ -10,7 +9,7 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-01-29 00:00:00.000000000 Z
12
+ date: 2013-08-25 00:00:00.000000000 Z
14
13
  dependencies: []
15
14
  description: motion-yaml provides methods to access "YAML Ain't Markup Language" for
16
15
  RubyMotion projects.
@@ -24,7 +23,9 @@ files:
24
23
  - README.md
25
24
  - lib/motion-yaml.rb
26
25
  - lib/project/yaml.rb
27
- - lib/YAMLKit/libYAMLKit.a
26
+ - lib/YAMLKit/libYAMLKit_iOS.a
27
+ - lib/YAMLKit/libYAMLKit_OSX.a
28
+ - lib/YAMLKit/YAMLKit.bridgesupport
28
29
  - lib/YAMLKit/YAMLKit.h
29
30
  - lib/YAMLKit/YAMLKit_Prefix.pch
30
31
  - lib/YAMLKit/YKConstants.h
@@ -32,27 +33,27 @@ files:
32
33
  - lib/YAMLKit/YKParser.h
33
34
  homepage: https://github.com/HipByte/motion-yaml
34
35
  licenses: []
36
+ metadata: {}
35
37
  post_install_message:
36
38
  rdoc_options: []
37
39
  require_paths:
38
40
  - lib
39
41
  required_ruby_version: !ruby/object:Gem::Requirement
40
- none: false
41
42
  requirements:
42
- - - ! '>='
43
+ - - '>='
43
44
  - !ruby/object:Gem::Version
44
45
  version: '0'
45
46
  required_rubygems_version: !ruby/object:Gem::Requirement
46
- none: false
47
47
  requirements:
48
- - - ! '>='
48
+ - - '>='
49
49
  - !ruby/object:Gem::Version
50
50
  version: '0'
51
51
  requirements: []
52
52
  rubyforge_project:
53
- rubygems_version: 1.8.23
53
+ rubygems_version: 2.0.6
54
54
  signing_key:
55
- specification_version: 3
55
+ specification_version: 4
56
56
  summary: motion-yaml provides methods to access "YAML Ain't Markup Language" for RubyMotion
57
57
  projects.
58
58
  test_files: []
59
+ has_rdoc:
Binary file