dm-postgis 1.2.2 → 1.2.3

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.2
1
+ 1.2.3
data/dm-postgis.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dm-postgis}
8
- s.version = "1.2.2"
8
+ s.version = "1.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Roman Kamyk jr"]
data/lib/dm-postgis.rb CHANGED
@@ -3,8 +3,7 @@ require 'dm-core'
3
3
 
4
4
  module DataMapper
5
5
  class Property
6
- #class DMGeometry < GeoRuby::SimpleFeatures::Geometry
7
- class DMGeometry < Text
6
+ class DMGeometry < Object
8
7
  include GeoRuby::SimpleFeatures
9
8
 
10
9
  def primitive?(value)
data/spec/fixtures/geo.rb CHANGED
@@ -3,5 +3,5 @@ class TestTable
3
3
  property :id, Serial
4
4
  property :position, DMGeometry, :required => false
5
5
  end
6
- DataMapper.auto_upgrade!
6
+ DataMapper.auto_migrate!
7
7
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-postgis
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 2
10
- version: 1.2.2
9
+ - 3
10
+ version: 1.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Kamyk jr