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 +4 -4
- data/ext/pbf_parser/pbf_parser.c +0 -4
- data/lib/pbf_parser/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07c2bb70363fb8b76178f95144bc5df6c8348de8
|
4
|
+
data.tar.gz: cf8d821cf5d817c6088c48178c7a60c08520f1f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e446abc01e307f90c59437c2b9417487aa7e0edcf0032bb6ce1a894facaa3363b6bf7de4edfda6b8a8efeaa506dfd4c232315d1072867458d4bebb20baa686c
|
7
|
+
data.tar.gz: 8ca9502612347aef7865c86acee71baf323f13e45d7eccebb7ba011377a58c944d375a859e1bd1ca00526196d6e124b6c3019d11f0d08836cf555252c78cb954
|
data/ext/pbf_parser/pbf_parser.c
CHANGED
@@ -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");
|
data/lib/pbf_parser/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|