pbf_parser 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/pbf_parser/pbf_parser.c +3 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8822831e0588c0ae419f80a2e1be68a6424cc2c5
4
- data.tar.gz: 52b5686a8312fc81ab65066a1de598e8a9310f3e
3
+ metadata.gz: b93b6205fb6385cb5b3d69ec0f3a481872df70e7
4
+ data.tar.gz: ffb0fcb9519e2fc77d52b547d9f325232d859af2
5
5
  SHA512:
6
- metadata.gz: 6e70012790d99a59d1441769deb406f363ed4e663436f49775aeb45a50e4c0b0c16a6d349c30948793ead1938d9974a4bfa46159f07ca3119278567490bc0f99
7
- data.tar.gz: 80a48a2b9b013397763ec7d53d4b9c305f6515ce2fe674105f4c245306d001d5bbc4c839e018bf9352e2a7d313151b2224ad69c72f5082f71a0d3e7a289ea536
6
+ metadata.gz: bcaf84d9bfd5744ed0adab77ed384e58c7cfb14ee9bfeb73b368b5b50289d918ca73ab5cc40fe88a83a6e22dc21b703fa350f30bf77521cfacafb78d5e1ce857
7
+ data.tar.gz: 0c84f0292020e173a4b2bd300190b1a38e772be3c7dfd4795156eecc74a4dda9045d98da3671aa0e5a6037cd523df3d53aa8fd7435248efc11857c0a725abbdd
@@ -595,14 +595,15 @@ static VALUE iterate(VALUE obj)
595
595
  if (!rb_block_given_p())
596
596
  rb_raise(rb_eArgError, "A block is expected");
597
597
 
598
- while(parse_osm_data(obj) != Qfalse)
598
+ do
599
599
  {
600
600
  VALUE nodes = nodes_getter(obj);
601
601
  VALUE ways = ways_getter(obj);
602
602
  VALUE relations = relations_getter(obj);
603
603
 
604
604
  rb_yield_values(3, nodes, ways, relations);
605
- }
605
+
606
+ } while(parse_osm_data(obj) != Qfalse);
606
607
 
607
608
  return Qnil;
608
609
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pbf_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrià Planas