motion-yaml 1.6.1 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d9043a46cbda8c06c035793a6b079a5356515161
4
- data.tar.gz: bcd3d2b13737cd307c537227d0fcd84cf4efc6f0
3
+ metadata.gz: baa4544443b52c9a587195e17bd253e13124922e
4
+ data.tar.gz: 6a1b5278d5f316975eecc5239d5a082d85e61302
5
5
  SHA512:
6
- metadata.gz: d2db53ab8f9cd54eb304628e0a96af83c49d389a33d14ce51eb14eb616aabcab8847950a1db44d15a9572d829fe20eedf9a9bfd4d3e6b2aa6880424b80985c18
7
- data.tar.gz: 4b48acfa3129d1fe80313a843e8fafd18b93e2820472e3dfee252dadc9c183c04c7909be748ce14628b00aaa9fc9adbec564e260c5946576914fed50b02f7db0
6
+ metadata.gz: 4c378d214922079ace8ad751f701e04ddabec34d83fc4daf35eaefc34cb680e2199e6199dc5f8f6a6f9380ce61de4760fc6a1a878fc8da6c2f6c7335ae8ba978
7
+ data.tar.gz: f19aaf18fc34284308d05d3f57ddabc9f8586c0666df42f2c5ac2b6677021bd0ba423284b698086429aad61caf1611fdf626268da41c0b61185484f5adaee6d5
@@ -7,13 +7,14 @@
7
7
 
8
8
  #import <Foundation/Foundation.h>
9
9
  #import "yaml.h"
10
+ #import "YKScanner.h"
10
11
 
11
12
  @interface YKParser : NSObject {
12
13
  BOOL readyToParse;
13
14
  FILE* fileInput;
14
15
  NSData *bufferInput;
15
16
  yaml_parser_t parser;
16
- id scanner;
17
+ YKScanner *scanner;
17
18
  }
18
19
 
19
20
  - (void)reset;
@@ -0,0 +1,8 @@
1
+ #import <Foundation/Foundation.h>
2
+
3
+ // YKScanner is implemented in Ruby land.
4
+ @interface YKScanner : NSObject
5
+
6
+ - (id)tokenize_from:(NSString*)string;
7
+
8
+ @end
Binary file
Binary file
Binary file
@@ -41,7 +41,7 @@ class YKScanner
41
41
 
42
42
  # Tokenize string returning the Ruby object
43
43
  # NOTE: This method will be called from Objective-C.
44
- def tokenize(string)
44
+ def tokenize_from(string)
45
45
  case string
46
46
  when /^\+?\.inf$/i
47
47
  Float::INFINITY
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent Sansonetti
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-06 00:00:00.000000000 Z
12
+ date: 2016-09-22 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: motion-yaml provides methods to access "YAML Ain't Markup Language" for
15
15
  RubyMotion projects.
@@ -26,6 +26,7 @@ files:
26
26
  - lib/YAMLKit/YKConstants.h
27
27
  - lib/YAMLKit/YKEmitter.h
28
28
  - lib/YAMLKit/YKParser.h
29
+ - lib/YAMLKit/YKScanner.h
29
30
  - lib/YAMLKit/libYAMLKit_OSX.a
30
31
  - lib/YAMLKit/libYAMLKit_iOS.a
31
32
  - lib/YAMLKit/libYAMLKit_tvOS.a
@@ -52,10 +53,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
53
  version: '0'
53
54
  requirements: []
54
55
  rubyforge_project:
55
- rubygems_version: 2.4.5.1
56
+ rubygems_version: 2.5.1
56
57
  signing_key:
57
58
  specification_version: 4
58
59
  summary: motion-yaml provides methods to access "YAML Ain't Markup Language" for RubyMotion
59
60
  projects.
60
61
  test_files: []
61
- has_rdoc: