pbf_parser 0.2.0 → 0.2.1

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: 6e6239b4100dfc86129e84cec4952cfd68a278ef
4
- data.tar.gz: 64404cd0061c724624e3f67ae81b7daaf6e08d33
3
+ metadata.gz: 07c2bb70363fb8b76178f95144bc5df6c8348de8
4
+ data.tar.gz: cf8d821cf5d817c6088c48178c7a60c08520f1f7
5
5
  SHA512:
6
- metadata.gz: f0c735698a0df9589358b3ad9fa39058fbac6218b903e18e01bae760893599cbdb7495f17e91f9b8438877b20794052e0fcce3b478567a7c5e964a02c89cde04
7
- data.tar.gz: 03c8ee81d468ec20f62b8330c76ee29196cf37f78ec644cda128156eac817c2ae3d7d90a27d9b6156ab74992b9fdca436c1d9d7bc8ca8866809ddab8fe83669e
6
+ metadata.gz: 1e446abc01e307f90c59437c2b9417487aa7e0edcf0032bb6ce1a894facaa3363b6bf7de4edfda6b8a8efeaa506dfd4c232315d1072867458d4bebb20baa686c
7
+ data.tar.gz: 8ca9502612347aef7865c86acee71baf323f13e45d7eccebb7ba011377a58c944d375a859e1bd1ca00526196d6e124b6c3019d11f0d08836cf555252c78cb954
@@ -761,10 +761,6 @@ static VALUE initialize(VALUE obj, VALUE filename)
761
761
  // Check that filename is a string
762
762
  Check_Type(filename, T_STRING);
763
763
 
764
- // Check if the file has a valid extension
765
- if(!strcmp(".osm.pbf", StringValuePtr(filename) + RSTRING_LEN(filename)-8) == 0)
766
- rb_raise(rb_eArgError, "Not a osm.pbf file");
767
-
768
764
  // Try to open the given file
769
765
  if(!(DATA_PTR(obj) = fopen(StringValuePtr(filename), "rb")))
770
766
  rb_raise(rb_eIOError, "Unable to open the file");
@@ -1,3 +1,3 @@
1
1
  class PbfParser
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pbf_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrià Planas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-05 00:00:00.000000000 Z
11
+ date: 2017-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.2.2
78
+ rubygems_version: 2.6.10
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Parse Open Street Map PBF files with ease