rgeo-activerecord 0.4.5 → 0.4.6
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/History.rdoc +5 -0
- data/README.rdoc +3 -3
- data/Version +1 -1
- data/lib/rgeo/active_record/adapter_test_helper.rb +5 -2
- metadata +6 -6
data/History.rdoc
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
=== 0.4.6 / 2012-12-11
|
|
2
|
+
|
|
3
|
+
* You can now provide both a default and an override database config file in the test helper.
|
|
4
|
+
* The gemspec no longer includes the timestamp in the version, so that bundler can pull from github. (Reported by corneverbruggen)
|
|
5
|
+
|
|
1
6
|
=== 0.4.5 / 2012-04-13
|
|
2
7
|
|
|
3
8
|
* Task hacker failed ungracefully when attempting to hack a nonexistent task. Fixed.
|
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.
|
|
25
|
+
* rgeo 0.3.20 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.
|
|
@@ -50,7 +50,7 @@ stage.
|
|
|
50
50
|
|
|
51
51
|
=== Development and support
|
|
52
52
|
|
|
53
|
-
Documentation is available at http://
|
|
53
|
+
Documentation is available at http://dazuma.github.com/rgeo-activerecord/rdoc
|
|
54
54
|
|
|
55
55
|
Source code is hosted on Github at http://github.com/dazuma/rgeo-activerecord
|
|
56
56
|
|
|
@@ -66,7 +66,7 @@ Contact the author at dazuma at gmail dot com.
|
|
|
66
66
|
|
|
67
67
|
\RGeo is written by Daniel Azuma (http://www.daniel-azuma.com).
|
|
68
68
|
|
|
69
|
-
Development is supported by Pirq. (http://
|
|
69
|
+
Development is supported by Pirq. (http://pirq.com).
|
|
70
70
|
|
|
71
71
|
=== License
|
|
72
72
|
|
data/Version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.6
|
|
@@ -52,7 +52,9 @@ module RGeo
|
|
|
52
52
|
|
|
53
53
|
# When this module is included in a test case class, it
|
|
54
54
|
# automatically attempts to load the database config file from the
|
|
55
|
-
# path specified by the class
|
|
55
|
+
# path specified by constants defined in the class. It first tries
|
|
56
|
+
# OVERRIDE_DATABASE_CONFIG_PATH, and then falls back on
|
|
57
|
+
# DATABASE_CONFIG_PATH.
|
|
56
58
|
# It then defines the DATABASE_CONFIG and DEFAULT_AR_CLASS constants
|
|
57
59
|
# in the testcase class.
|
|
58
60
|
#
|
|
@@ -62,7 +64,8 @@ module RGeo
|
|
|
62
64
|
# present.
|
|
63
65
|
|
|
64
66
|
def self.included(klass_)
|
|
65
|
-
database_config_ = ::YAML.load_file(klass_.const_get(:
|
|
67
|
+
database_config_ = ::YAML.load_file(klass_.const_get(:OVERRIDE_DATABASE_CONFIG_PATH)) rescue nil
|
|
68
|
+
database_config_ ||= ::YAML.load_file(klass_.const_get(:DATABASE_CONFIG_PATH)) rescue nil
|
|
66
69
|
if database_config_
|
|
67
70
|
database_config_.symbolize_keys!
|
|
68
71
|
if klass_.respond_to?(:before_open_database)
|
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.
|
|
4
|
+
version: 0.4.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-12-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rgeo
|
|
@@ -18,7 +18,7 @@ dependencies:
|
|
|
18
18
|
requirements:
|
|
19
19
|
- - ! '>='
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 0.3.
|
|
21
|
+
version: 0.3.20
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ! '>='
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 0.3.
|
|
29
|
+
version: 0.3.20
|
|
30
30
|
- !ruby/object:Gem::Dependency
|
|
31
31
|
name: activerecord
|
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -83,7 +83,7 @@ files:
|
|
|
83
83
|
- History.rdoc
|
|
84
84
|
- README.rdoc
|
|
85
85
|
- Version
|
|
86
|
-
homepage: http://
|
|
86
|
+
homepage: http://dazuma.github.com/rgeo-activerecord
|
|
87
87
|
licenses: []
|
|
88
88
|
post_install_message:
|
|
89
89
|
rdoc_options: []
|
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
103
103
|
version: 1.3.1
|
|
104
104
|
requirements: []
|
|
105
105
|
rubyforge_project: virtuoso
|
|
106
|
-
rubygems_version: 1.8.
|
|
106
|
+
rubygems_version: 1.8.24
|
|
107
107
|
signing_key:
|
|
108
108
|
specification_version: 3
|
|
109
109
|
summary: An RGeo module providing spatial extensions to ActiveRecord.
|