rgeo-activerecord 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.4.4 / 2012-04-12
2
+
3
+ * Support cartesian bounding boxes in queries.
4
+
1
5
  === 0.4.3 / 2012-02-22
2
6
 
3
7
  * Some fixes for Rails 3.2 compatibility.
data/README.rdoc CHANGED
@@ -22,7 +22,7 @@ spatial \ActiveRecord adapters based on \RGeo.
22
22
  RGeo::ActiveRecord has the following requirements:
23
23
 
24
24
  * Ruby 1.8.7 or later. Ruby 1.9.2 or later preferred.
25
- * rgeo 0.3.4 or later.
25
+ * rgeo 0.3.10 or later.
26
26
  * activerecord 3.0.3 or later. Earlier versions will not work.
27
27
  Should be compatible with Rails versions through 3.2.x.
28
28
  * arel 2.0.6 or later. Earlier versions will not work.
data/Version CHANGED
@@ -1 +1 @@
1
- 0.4.3
1
+ 0.4.4
@@ -82,6 +82,8 @@ module RGeo
82
82
  "#{st_func('ST_WKTToSQL')}(#{visit_String(node_)})"
83
83
  when ::RGeo::Feature::Instance
84
84
  visit_RGeo_Feature_Instance(node_)
85
+ when ::RGeo::Cartesian::BoundingBox
86
+ visit_RGeo_Cartesian_BoundingBox(node_)
85
87
  else
86
88
  visit(node_)
87
89
  end
@@ -144,12 +146,15 @@ module RGeo
144
146
  end
145
147
  ::Arel::Visitors::Dot.class_eval do
146
148
  alias :visit_RGeo_Feature_Instance :visit_String
149
+ alias :visit_RGeo_Cartesian_BoundingBox :visit_String
147
150
  end
148
151
  ::Arel::Visitors::DepthFirst.class_eval do
149
152
  alias :visit_RGeo_Feature_Instance :terminal
153
+ alias :visit_RGeo_Cartesian_BoundingBox :terminal
150
154
  end
151
155
  ::Arel::Visitors::ToSql.class_eval do
152
156
  alias :visit_RGeo_Feature_Instance :visit_String
157
+ alias :visit_RGeo_Cartesian_BoundingBox :visit_String
153
158
  end
154
159
 
155
160
 
@@ -37,7 +37,9 @@
37
37
  require 'active_support/core_ext/class' # Workaround for a missing require in ActiveRecord 3.2.1
38
38
  require 'active_record'
39
39
 
40
- ::ActiveRecord::ConnectionAdapters::AbstractAdapter
40
+ # Force AbstractAdapter to autoload
41
+ if ::ActiveRecord::ConnectionAdapters::AbstractAdapter
42
+ end
41
43
 
42
44
 
43
45
  module RGeo
@@ -129,6 +131,7 @@ module RGeo
129
131
 
130
132
  ::ActiveRecord::SchemaDumper.class_eval do
131
133
  private
134
+ alias_method :_old_indexes_method, :indexes
132
135
  def indexes(table_, stream_)
133
136
  if (indexes_ = @connection.indexes(table_)).any?
134
137
  add_index_statements_ = indexes_.map do |index_|
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: 0.4.3
4
+ version: 0.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,27 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-22 00:00:00.000000000 Z
12
+ date: 2012-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rgeo
16
- requirement: &2152768380 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.3.4
21
+ version: 0.3.10
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2152768380
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.3.10
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: activerecord
27
- requirement: &2152694520 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: 3.0.3
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *2152694520
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 3.0.3
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: arel
38
- requirement: &2152673420 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,7 +53,12 @@ dependencies:
43
53
  version: 2.0.6
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *2152673420
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 2.0.6
47
62
  description: RGeo is a geospatial data library for Ruby. RGeo::ActiveRecord is an
48
63
  optional RGeo module providing some spatial extensions to ActiveRecord, as well
49
64
  as common tools used by RGeo-based spatial adapters.
@@ -88,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
103
  version: 1.3.1
89
104
  requirements: []
90
105
  rubyforge_project: virtuoso
91
- rubygems_version: 1.8.17
106
+ rubygems_version: 1.8.19
92
107
  signing_key:
93
108
  specification_version: 3
94
109
  summary: An RGeo module providing spatial extensions to ActiveRecord.