motion-yaml 1.5.2 → 1.5.3

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: 02fb72a0ae209f234447deb8200f592c3f48e839
4
- data.tar.gz: 56fd3084df351dff849bd356eaed7477d0ce5a3c
3
+ metadata.gz: 6512e321835f64058360482c8fc3cf272886b780
4
+ data.tar.gz: becd3da3d0c357b20c3c7d00c4fd3285a9263571
5
5
  SHA512:
6
- metadata.gz: 1c27dfb0fc1de58a0195b004278beb7ee4f97bfcd100a6e47aacaa18ac847d278d332ae2ed31979396286d1fa337de9acdcd990744eb2cb116058ce7f9bd94aa
7
- data.tar.gz: 3bfb0f3b4cb89e4e4b2dbb74559c84963cd8cb4af065c4c207801ee6c0539338a470acb94f5b36eaa3081b165c65b85ce019632ee4d0cd1891ee7849f165629c
6
+ metadata.gz: 632e8eac99f16e3239dd597aa8dafa327cb3fcf0921a7b3a43ce4a82a64eaccc38145c65a86c1a0b477faf067cb9713efb1f8ea74aa583f664ac238ac96e0a3c
7
+ data.tar.gz: 0470d3817872eb3343af8696c2454e0d828e1660471eec30b709930c5dc0e2ac2f1a10b28a44637ea9e64d1732c8f56d824ef22e587d0cb7a888a5bcb4d538cb
@@ -20,6 +20,7 @@
20
20
  - (BOOL)readFile:(NSString *)path;
21
21
  - (NSArray *)parse;
22
22
  - (NSArray *)parseWithError:(NSError **)e;
23
+ - (id)tokenize:(NSString*)string; // implemented in ruby
23
24
 
24
25
  @property(readonly) BOOL readyToParse;
25
26
 
Binary file
Binary file
@@ -23,7 +23,7 @@
23
23
  # POSSIBILITY OF SUCH DAMAGE.
24
24
 
25
25
  # Special thanks to https://github.com/tenderlove/psych
26
- class YAMLKitScanner
26
+ class YKParser
27
27
  # http://yaml.org/type/timestamp.html
28
28
  TIME = /^-?\d{4}-\d{1,2}-\d{1,2}(?:[Tt]|\s+)\d{1,2}:\d\d:\d\d(?:\.\d*)?(?:\s*(?:Z|[-+]\d{1,2}:?(?:\d\d)?))?$/
29
29
 
@@ -41,7 +41,7 @@ class YAMLKitScanner
41
41
 
42
42
  # Tokenize string returning the Ruby object
43
43
  # NOTE: This method will be called from Objective-C.
44
- def self.tokenize(string)
44
+ def tokenize(string)
45
45
  case string
46
46
  when /^\+?\.inf$/i
47
47
  Float::INFINITY
@@ -84,7 +84,7 @@ class YAMLKitScanner
84
84
  end
85
85
  end
86
86
 
87
- def self.parse_time string
87
+ def parse_time(string)
88
88
  date, time = *(string.split(/[ tT]/, 2))
89
89
  (yy, m, dd) = date.match(/^(-?\d{4})-(\d{1,2})-(\d{1,2})/).captures.map { |x| x.to_i }
90
90
  md = time.match(/(\d+:\d+:\d+)(?:\.(\d*))?\s*(Z|[-+]\d+(:\d\d)?)?/)
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.5.2
4
+ version: 1.5.3
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: 2015-07-10 00:00:00.000000000 Z
12
+ date: 2015-07-15 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.