nanaimo 0.2.4 → 0.2.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53e87cd361361b93ae0c78503a44da0ad261cdcbdcaf3ec5aedc0434640790ca
4
- data.tar.gz: dac56be099c658037a703af6bfa8f2b6bed3c02c8c98fe7ae2bea17cd9116bb3
3
+ metadata.gz: a5c776733dc2e81f8c653f7825a5313a7cb1c0e8588f76c6bc07178ee6dc1486
4
+ data.tar.gz: fe1b3fdacf28874194c37fc0c112202f972c251979e444fa31832f04fbd266d8
5
5
  SHA512:
6
- metadata.gz: 1bd45db073a2b9a3bc5da56ed5ca97d384e616378234859211a2a675719e296fbd5a075b3631c2a4e5844fd0fea459467b2a9e47967a90d1e1eba2b59f227870
7
- data.tar.gz: 4ebeab355e2d531d0b55f83e4575fa8dca7d27c4a3501fc4f7fe00b8d3ac0e7f4c5803d1e04e337b8e0cc1f797ca276e6a7201e1812be046e93db7e01c124fe5
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nanaimo (0.2.4)
4
+ nanaimo (0.2.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
- eat_whitespace!
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nanaimo
4
- VERSION = '0.2.4'.freeze
4
+ VERSION = '0.2.5'.freeze
5
5
  end
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
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-03-22 00:00:00.000000000 Z
12
+ date: 2018-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler