nanaimo 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/Gemfile.lock +1 -1
- data/lib/nanaimo/reader.rb +6 -8
- data/lib/nanaimo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5c776733dc2e81f8c653f7825a5313a7cb1c0e8588f76c6bc07178ee6dc1486
|
4
|
+
data.tar.gz: fe1b3fdacf28874194c37fc0c112202f972c251979e444fa31832f04fbd266d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b40376d8b00dc4cbed495c40503f0b5f7b99b1bb8f68f383eab8de510940db9277d3704e6ee5cdb85159124f22938c32412430099813aff25f14118e4e9757e1
|
7
|
+
data.tar.gz: 3047fc03c205700b4408f3efa7e4ae7b286daa5d139bb6a12f8539e6a55c497c9d0781c36027fe4d512dc26975cb0157a8a4678ead8350d6f132d23777bbaa4b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Nanaimo Changelog
|
2
2
|
|
3
|
+
## 0.2.5 (2018-04-04)
|
4
|
+
|
5
|
+
##### Enhancements
|
6
|
+
|
7
|
+
* None.
|
8
|
+
|
9
|
+
##### Bug Fixes
|
10
|
+
|
11
|
+
* Fix parsing arrays that contain a comment after a trailing comma.
|
12
|
+
[Samuel Giddins](https://github.com/segiddins)
|
13
|
+
[#26](https://github.com/CocoaPods/Nanaimo/issues/26)
|
14
|
+
|
15
|
+
|
3
16
|
## 0.2.4 (2018-03-22)
|
4
17
|
|
5
18
|
##### Enhancements
|
data/Gemfile.lock
CHANGED
data/lib/nanaimo/reader.rb
CHANGED
@@ -124,8 +124,8 @@ module Nanaimo
|
|
124
124
|
# TODO
|
125
125
|
end
|
126
126
|
|
127
|
-
def parse_object
|
128
|
-
_comment = skip_to_non_space_matching_annotations
|
127
|
+
def parse_object(already_parsed_comment: false)
|
128
|
+
_comment = skip_to_non_space_matching_annotations unless already_parsed_comment
|
129
129
|
start_pos = @scanner.pos
|
130
130
|
raise_parser_error ParseError, 'Unexpected end of string while parsing' if @scanner.eos?
|
131
131
|
if @scanner.skip(/\{/)
|
@@ -163,10 +163,10 @@ module Nanaimo
|
|
163
163
|
def parse_array
|
164
164
|
objects = []
|
165
165
|
until @scanner.eos?
|
166
|
-
|
166
|
+
_comment = skip_to_non_space_matching_annotations
|
167
167
|
break if @scanner.skip(/\)/)
|
168
168
|
|
169
|
-
objects << parse_object
|
169
|
+
objects << parse_object(already_parsed_comment: true)
|
170
170
|
|
171
171
|
eat_whitespace!
|
172
172
|
break if @scanner.skip(/\)/)
|
@@ -181,10 +181,10 @@ module Nanaimo
|
|
181
181
|
def parse_dictionary
|
182
182
|
objects = {}
|
183
183
|
until @scanner.eos?
|
184
|
-
skip_to_non_space_matching_annotations
|
184
|
+
_comment = skip_to_non_space_matching_annotations
|
185
185
|
break if @scanner.skip(/}/)
|
186
186
|
|
187
|
-
key = parse_object
|
187
|
+
key = parse_object(already_parsed_comment: true)
|
188
188
|
eat_whitespace!
|
189
189
|
unless @scanner.skip(/=/)
|
190
190
|
raise_parser_error ParseError, "Dictionary missing value for key #{key.as_ruby.inspect}, expected '=' and found #{current_character.inspect}"
|
@@ -263,8 +263,6 @@ module Nanaimo
|
|
263
263
|
next
|
264
264
|
end
|
265
265
|
|
266
|
-
eat_whitespace!
|
267
|
-
|
268
266
|
break
|
269
267
|
end
|
270
268
|
annotation
|
data/lib/nanaimo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanaimo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danielle Tomlinson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-04-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|