rgeo-activerecord 4.0.4 → 4.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d27b6bb8914ba1efbe13091ef65dd328b0e57202
4
- data.tar.gz: f66b13c43432eaebac55630b5d80f315a0754f63
3
+ metadata.gz: 746ee8f040e9ef026c3d43bc346ca06f868acd30
4
+ data.tar.gz: e2f02e5a4e134c090d701a0812c6d6b639f12caa
5
5
  SHA512:
6
- metadata.gz: 3dc2edf13190bee7e2e713ea002bd15b10a92dd425d3f3f7a49951aa486087897de92557ab54fd832675178c95a3ec699924da77c309b157810772e9c49abcf4
7
- data.tar.gz: 1694a93bb2e6e857a9efa89bcc1a534f3008632c9f83465ae1c8a63523198cfe8c7340549a668bf31b0526aa047644e560448d0adc48f4e982258551a79fa05c
6
+ metadata.gz: debe22e1741a1889064d29b00351b12b5a942e9993b82c29c56b9ec6a96579f3028ea843cea70341aa6860d2627ce5f83c335715a8bb178e74d41c6d4775bd3f
7
+ data.tar.gz: 68c7b5367ce0d0efa4d810810cc5788dbfebda986f5380b1891391fb27486723a2bcc9fd8f8eb5847ef1ea54726db24a79388406416a674db905c0fbb57fdaf6
data/History.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 4.0.5 / 2015-12-29
2
+
3
+ * Fix #geometric_type_from_name for :geometrycollection
4
+
1
5
  ### 4.0.4 / 2015-12-29
2
6
 
3
7
  * Restore rgeo/active_record.rb
@@ -54,7 +54,7 @@ module RGeo
54
54
 
55
55
  # This node wraps an RGeo feature and gives it spatial expression constructors.
56
56
  class SpatialConstantNode
57
- include RGeo::ActiveRecord::SpatialExpressions
57
+ include SpatialExpressions
58
58
 
59
59
  # The delegate should be the RGeo feature.
60
60
  def initialize(delegate)
@@ -6,15 +6,15 @@ module RGeo
6
6
  # Some default column constructors specifications for most spatial
7
7
  # databases. Individual adapters may add to or override this list.
8
8
  DEFAULT_SPATIAL_COLUMN_CONSTRUCTORS = {
9
- spatial: { type: "geometry" }.freeze,
9
+ geometry_collection: {}.freeze,
10
10
  geometry: {}.freeze,
11
- point: {}.freeze,
12
11
  line_string: {}.freeze,
13
- polygon: {}.freeze,
14
- geometry_collection: {}.freeze,
15
12
  multi_line_string: {}.freeze,
16
13
  multi_point: {}.freeze,
17
14
  multi_polygon: {}.freeze,
15
+ point: {}.freeze,
16
+ polygon: {}.freeze,
17
+ spatial: { type: "geometry" }.freeze,
18
18
  }.freeze
19
19
 
20
20
  # Index definition struct with a spatial flag field.
@@ -25,14 +25,14 @@ module RGeo
25
25
 
26
26
  def self.geometric_type_from_name(name)
27
27
  case name.to_s
28
+ when /^geometrycollection/i then Feature::GeometryCollection
28
29
  when /^geometry/i then Feature::Geometry
29
- when /^point/i then Feature::Point
30
30
  when /^linestring/i then Feature::LineString
31
- when /^polygon/i then Feature::Polygon
32
- when /^geometrycollection/i then Feature::GeometryCollection
33
- when /^multipoint/i then Feature::MultiPoint
34
31
  when /^multilinestring/i then Feature::MultiLineString
32
+ when /^multipoint/i then Feature::MultiPoint
35
33
  when /^multipolygon/i then Feature::MultiPolygon
34
+ when /^point/i then Feature::Point
35
+ when /^polygon/i then Feature::Polygon
36
36
  end
37
37
  end
38
38
  end
@@ -26,7 +26,7 @@ module RGeo
26
26
  if block && !value
27
27
  value = block
28
28
  elsif value == :geojson
29
- require "rgeo-geojson"
29
+ require "rgeo/geo_json"
30
30
  value = proc { |geom| GeoJSON.encode(geom) }
31
31
  end
32
32
  if value.is_a?(Proc)
@@ -1,5 +1,5 @@
1
1
  module RGeo
2
2
  module ActiveRecord
3
- VERSION = "4.0.4".freeze
3
+ VERSION = "4.0.5".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgeo-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.4
4
+ version: 4.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma, Tee Parham
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '5.4'
47
+ version: '5.8'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '5.4'
54
+ version: '5.8'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -80,6 +80,34 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: appraisal
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '2.1'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2.1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rgeo-geojson
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: 0.4.1
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 0.4.1
83
111
  description: RGeo is a geospatial data library for Ruby. RGeo::ActiveRecord is an
84
112
  optional RGeo module providing some spatial extensions to ActiveRecord, as well
85
113
  as common tools used by RGeo-based spatial adapters.