rgeo-activerecord 5.1.0 → 5.1.1

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: 5207d63dd05e8316acb1cc3773cf2ea698ead68c
4
- data.tar.gz: 23c73d278a1422169eac065b0d8774f7dac8f287
3
+ metadata.gz: cb9333047d9015a705f5bff61d30a82ab162b4d4
4
+ data.tar.gz: a21b3212037d3bfe7dbf59f68ad87b3dfbe8f056
5
5
  SHA512:
6
- metadata.gz: 2558b812b46f1de380c85693c94528e0271f32ad0e20979ac0033729bb4a5724c09a654b10b58c1af296ad3a028422160f5acf480f4149e55b5b04dea26d5663
7
- data.tar.gz: 1394b0bf3a9453688e6f7ff10d6fbda46babd5bb387ef63ddaa7614e2371e1789479d6d349330288a650731cbd6e3c3f5c1e40b0b5ef9a188780134d96f8e7eb
6
+ metadata.gz: 26607180b536dbe371568598b6b9b5694ce99b7c85360242708759b7c58402445ae1bc51b44d699cef4e62724f78755e8390132b43dc3a994ef5fa7ab25150be
7
+ data.tar.gz: 9d40eccd79541f4054b2e1ca5dc92557ce18a5290cee46f37aab0af90f5916790a36bd3c92e42011da1b8d0b2df8a42f21e9450d332272b7ddc8016a87d7e631
data/History.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 5.1.1 / 2017-10-02
2
+
3
+ * Fix #st_area #43
4
+
1
5
  ### 5.1.0 / 2017-02-27
2
6
 
3
7
  * Allow ActiveRecord 5.x
@@ -1,25 +1,6 @@
1
1
  module RGeo
2
2
  module ActiveRecord
3
- # Some default column constructors specifications for most spatial
4
- # databases. Individual adapters may add to or override this list.
5
- DEFAULT_SPATIAL_COLUMN_CONSTRUCTORS = {
6
- geometry_collection: {}.freeze,
7
- geometry: {}.freeze,
8
- line_string: {}.freeze,
9
- multi_line_string: {}.freeze,
10
- multi_point: {}.freeze,
11
- multi_polygon: {}.freeze,
12
- point: {}.freeze,
13
- polygon: {}.freeze,
14
- spatial: { type: "geometry" }.freeze,
15
- }.freeze
16
-
17
- # Index definition struct with a spatial flag field.
18
-
19
- SpatialIndexDefinition = Struct.new(:table, :name, :unique, :columns, :lengths, :orders, :where, :spatial)
20
-
21
- # Returns a feature type module given a string type.
22
-
3
+ # Return a feature type module given a string type.
23
4
  def self.geometric_type_from_name(name)
24
5
  case name.to_s
25
6
  when /^geometrycollection/i then Feature::GeometryCollection
@@ -194,7 +194,7 @@ module RGeo
194
194
  def st_area(units = nil)
195
195
  args = [self]
196
196
  args << units.to_s if units
197
- SpatialNamedFunction.new("ST_StartPoint", args, [false, true, false])
197
+ SpatialNamedFunction.new("ST_Area", args, [false, true, false])
198
198
  end
199
199
 
200
200
  def st_centroid
@@ -1,5 +1,5 @@
1
1
  module RGeo
2
2
  module ActiveRecord
3
- VERSION = "5.1.0".freeze
3
+ VERSION = "5.1.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgeo-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma, Tee Parham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-27 00:00:00.000000000 Z
11
+ date: 2017-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rgeo
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project:
149
- rubygems_version: 2.6.10
149
+ rubygems_version: 2.6.13
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: An RGeo module providing spatial extensions to ActiveRecord.