rgeo-shapefile 2.0.1 → 3.0.0

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
  SHA256:
3
- metadata.gz: e1d28553b385637b13dfb5bdc863afb809a3d097b99002b961971280e7f62c30
4
- data.tar.gz: e6ce78340ba93f106f67159f56f98346a76b6a43190a8c4df2256809df669218
3
+ metadata.gz: b6e5256b3e85525a1eaf405a0d77df1e4f5e607a36164cad539b07f0f8008ad2
4
+ data.tar.gz: 69c7b87747813c5ae3bbb76a8dd9b635b8c3d6c96dcf86a3a6b50b311e126038
5
5
  SHA512:
6
- metadata.gz: 718db69169feda3abdfe4c7c483b6f346e5a276a3537f449e4eb95f971c908e9e192ff0c9f816842cafe0969da97428a4766f877aba4955462b12f29d08590a5
7
- data.tar.gz: ed9c29623ce7186c3f1da9699064deb7e468b8cc8996236eab0182ec991df0c7b8a647bb18a257450e428e2f5c64e345970752f3696289afe1840379238afc35
6
+ metadata.gz: 302a221acc3cac6842143dedaff74380d5dce58959b8b7381c00cce52401fa0e4343b31a999340f40ba08947c4245b15f2f1962e66f2422bab937b71de5bdd3e
7
+ data.tar.gz: 56c09783ed155a8fcb95ad9596bae125a4b0a54cedd655fff07cfb4d1786c1011738c1a4768dff4e023b025ce75bee788c22f368a1b5c6ea4d5d3f1237fe1bd1
data/History.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 3.0.0 / 2020-08-02
2
+
3
+ * Handle invalid DBF file (#37, rywall)
4
+ * Update DBF gem to version 4.x, bump minimum Ruby version to 2.4 (#38, alvir)
5
+
1
6
  ### 2.0.1 / 2019-04-01
2
7
 
3
8
  * Check dbf record attributes / allow DBF file to have fewer records than SHX (#34, womanonrails / #28, marcisv)
data/README.md CHANGED
@@ -42,9 +42,11 @@ end
42
42
 
43
43
  `RGeo::Shapefile` has the following requirements:
44
44
 
45
- * Ruby 2.3.0 or later
45
+ * Ruby 2.4.0 or later
46
46
  * rgeo 1.0.0 or later.
47
- * dbf 3.0 or later.
47
+ * dbf 4.0 or later.
48
+
49
+ If you need support for older Rubies, please use 2.x version
48
50
 
49
51
  Include in your bundle:
50
52
 
@@ -61,6 +63,8 @@ gem install rgeo-shapefile
61
63
  See the [`rgeo`](https://github.com/rgeo/rgeo) gem, a required dependency,
62
64
  for further installation information.
63
65
 
66
+ If you are using Ruby 2.3, use version `2.0.x` of this gem.
67
+
64
68
  If you are using Ruby 2.0-2.2, use version `1.0.x` of this gem.
65
69
 
66
70
  If you are using Ruby 1.9, use version `0.3.x` of this gem.
@@ -398,7 +398,7 @@ module RGeo
398
398
  when 31 then _read_multipatch(data_)
399
399
  end
400
400
  attrs_ = {}
401
- if @attr_dbf && @attr_dbf.record(@cur_record_index)
401
+ if @attr_dbf && !@attr_dbf.columns.empty? && @attr_dbf.record(@cur_record_index)
402
402
  dbf_record_attrs_ = @attr_dbf.record(@cur_record_index).attributes
403
403
  @attr_dbf.columns.each do |col_|
404
404
  name_ = col_.name
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RGeo
4
4
  module Shapefile
5
- VERSION = "2.0.1"
5
+ VERSION = "3.0.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgeo-shapefile
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-04-01 00:00:00.000000000 Z
12
+ date: 2020-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rgeo
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '3.0'
34
+ version: '4.0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '3.0'
41
+ version: '4.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: minitest
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: 2.3.0
99
+ version: 2.4.0
100
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - ">="