rgeo-geojson 0.3.1 → 0.3.2

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: b963b8280f0f189f154f284aea3b300ca7b16def
4
- data.tar.gz: 3d2c9a2ae2179ff2bebbf8a6a041edc502fddee1
3
+ metadata.gz: 503714421404cf164fbb61280d4b0fcdc1ed626f
4
+ data.tar.gz: bdb19b2bfa801d881f67c2b32399d29750d21ad9
5
5
  SHA512:
6
- metadata.gz: 742a3101471e19cde8e5feea3eedb8d1f3fb7c43ec4f945da1ddd874880ff80efecdce530f6bc01a2f1f68013a1cc468f9deb409e87ac66946e740b63a6e34f6
7
- data.tar.gz: 0f840064668a804a8388046cbabc21eaca020f658c2cf653d070c1dbd1f062dd1cbdd4582f3d4c913de0cd1023bbd2c1c600aacdb14774be5d6ac1d91832adbe
6
+ metadata.gz: eb72641504799a5d5272c90bd60d170295f7e34cbaab705733abb1a9b80818fadf5bade1425eb6be7e6a6ef6b45c5fad4a3774ec0046323b369d1f90dee0650c
7
+ data.tar.gz: 1c073bda74e6ac4b19bba2722ff22feb82f956fd4113b24d55d204ce24b4aa699e686517787f635841e0a68f8918225b723b2065e9000571e5a490f0e4c1fdb6
data/History.md CHANGED
@@ -1,3 +1,9 @@
1
+ ### 0.3.2 / 2015-12-10
2
+
3
+ * Faster coordinates methods (tneems) #18
4
+ * Requires rgeo 0.5.0+
5
+
6
+
1
7
  ### 0.3.1 / 2014-05-29
2
8
 
3
9
  * Include docs files in gemspec
@@ -208,32 +208,32 @@ module RGeo
208
208
  when ::RGeo::Feature::Point
209
209
  {
210
210
  'type' => 'Point',
211
- 'coordinates' => point_encoder_.call(object_),
211
+ 'coordinates' => object_.coordinates
212
212
  }
213
213
  when ::RGeo::Feature::LineString
214
214
  {
215
215
  'type' => 'LineString',
216
- 'coordinates' => object_.points.map(&point_encoder_),
216
+ 'coordinates' => object_.coordinates
217
217
  }
218
218
  when ::RGeo::Feature::Polygon
219
219
  {
220
220
  'type' => 'Polygon',
221
- 'coordinates' => [object_.exterior_ring.points.map(&point_encoder_)] + object_.interior_rings.map{ |r_| r_.points.map(&point_encoder_) }
221
+ 'coordinates' => object_.coordinates
222
222
  }
223
223
  when ::RGeo::Feature::MultiPoint
224
224
  {
225
225
  'type' => 'MultiPoint',
226
- 'coordinates' => object_.map(&point_encoder_),
226
+ 'coordinates' => object_.coordinates
227
227
  }
228
228
  when ::RGeo::Feature::MultiLineString
229
229
  {
230
230
  'type' => 'MultiLineString',
231
- 'coordinates' => object_.map{ |ls_| ls_.points.map(&point_encoder_) },
231
+ 'coordinates' => object_.coordinates
232
232
  }
233
233
  when ::RGeo::Feature::MultiPolygon
234
234
  {
235
235
  'type' => 'MultiPolygon',
236
- 'coordinates' => object_.map{ |poly_| [poly_.exterior_ring.points.map(&point_encoder_)] + poly_.interior_rings.map{ |r_| r_.points.map(&point_encoder_) } },
236
+ 'coordinates' => object_.coordinates
237
237
  }
238
238
  when ::RGeo::Feature::GeometryCollection
239
239
  {
@@ -1,5 +1,5 @@
1
1
  module RGeo
2
2
  module GeoJSON
3
- VERSION = '0.3.1'.freeze
3
+ VERSION = '0.3.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgeo-geojson
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
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: 2014-05-29 00:00:00.000000000 Z
12
+ date: 2015-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rgeo
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '0.3'
20
+ version: '0.5'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '0.3'
27
+ version: '0.5'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: bundler
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -45,28 +45,28 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '5.3'
48
+ version: '5.8'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '5.3'
55
+ version: '5.8'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rake
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '10.3'
62
+ version: '10.4'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '10.3'
69
+ version: '10.4'
70
70
  description: RGeo is a geospatial data library for Ruby. RGeo::GeoJSON is an optional
71
71
  RGeo module providing GeoJSON encoding and decoding services. This module can be
72
72
  used to communicate with location-based web services that understand the GeoJSON
@@ -108,10 +108,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.2.2
111
+ rubygems_version: 2.5.0
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: An RGeo module providing GeoJSON encoding and decoding.
115
115
  test_files:
116
116
  - test/basic_test.rb
117
- has_rdoc: