rgeo-shapefile 1.1.0 → 1.2.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: 60b5fe0419db2be490c686e44bcb45b9a0ba525135d508d942794611eee5644b
4
- data.tar.gz: fcd09ac84d91cc2cedd780daf6ce33bcc7976a4256cde707f23ce3390ccf1804
3
+ metadata.gz: a42cd096d3c0e6c58fa79c248c2de90c1e911910d9f798c8b14254ae44667c9c
4
+ data.tar.gz: ea81602df1862fb59824749648883a03d61547a4aa55ec8ec08c0fa45599c39a
5
5
  SHA512:
6
- metadata.gz: d643dee4381e0b0d1c8da6272a2c7fa7bec301842874c1e6474522f54c899c4abf9ac065e64af0c57f4d04548e539b0e4d63f6716103fa0d2b03d47a4268329a
7
- data.tar.gz: 418425fe33d02f0c6136b2f2279ca4430886a3a7d7c76b51afe5694a71cebd665183276c2a9c2493893609da18a3d6acbb1cf5a39b3d7bb294a0c35630d3f5cb
6
+ metadata.gz: fa18b8185a2a6dcdba4d0aaf2957a55c7ee47cbff735aa2bb0d40922ee039e48640670dee15d0f9f194e93a211b5915bac3854caa764a103a349112feda8f1ce
7
+ data.tar.gz: 9d4dd628de16180cba325a3fb907b9cce1133ea3bb3a53cc310f759128c96eb9cd70b42e51eba3d155088eba75b853a2cce9d514d094eed3467d5564d421f84f
data/History.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 1.2.0 / 2019-02-21
2
+
3
+ * Add ability to specify the DBF encoding (#30, rywall)
4
+
5
+
1
6
  ### 1.1.0 / 2018-11-30
2
7
 
3
8
  * Allow rgeo 2.0 (#29, sunpoet)
@@ -181,7 +181,7 @@ module RGeo
181
181
  @main_file = ::File.open(path_ + ".shp", "rb:ascii-8bit")
182
182
  @index_file = ::File.open(path_ + ".shx", "rb:ascii-8bit")
183
183
  @attr_dbf = if ::File.file?(path_ + ".dbf") && ::File.readable?(path_ + ".dbf")
184
- ::DBF::Table.new(path_ + ".dbf")
184
+ ::DBF::Table.new(path_ + ".dbf", nil, opts_[:dbf_encoding])
185
185
  end
186
186
  @main_length, @shape_type_code, @xmin, @ymin, @xmax, @ymax, @zmin, @zmax, @mmin, @mmax = @main_file.read(100).unpack("x24Nx4VE8")
187
187
  @main_length *= 2
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RGeo
4
4
  module Shapefile
5
- VERSION = "1.1.0"
5
+ VERSION = "1.2.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: 1.1.0
4
+ version: 1.2.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: 2018-11-30 00:00:00.000000000 Z
12
+ date: 2019-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rgeo
@@ -39,20 +39,6 @@ dependencies:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '3.0'
42
- - !ruby/object:Gem::Dependency
43
- name: bundler
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - "~>"
47
- - !ruby/object:Gem::Version
48
- version: '1.6'
49
- type: :development
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - "~>"
54
- - !ruby/object:Gem::Version
55
- version: '1.6'
56
42
  - !ruby/object:Gem::Dependency
57
43
  name: minitest
58
44
  requirement: !ruby/object:Gem::Requirement
@@ -117,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
103
  - !ruby/object:Gem::Version
118
104
  version: '0'
119
105
  requirements: []
120
- rubyforge_project:
121
- rubygems_version: 2.7.8
106
+ rubygems_version: 3.0.2
122
107
  signing_key:
123
108
  specification_version: 4
124
109
  summary: An RGeo module for reading ESRI shapefiles.