rgeo-activerecord 1.0.0 → 1.1.0

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: 3891bad7ab5e1f7408095e87bcf8a731a7130ba7
4
- data.tar.gz: 4d466201e93d07234853ea049823968898761407
3
+ metadata.gz: f94beffe14f68a9d360669c0bca51418c0664927
4
+ data.tar.gz: c01b8a49ffef9f9b827821d84f5f892f01846d52
5
5
  SHA512:
6
- metadata.gz: f493f620c706f0adc498ec9f729c9d0a019fdd316f4e41e2e4fa4faef7df2a93a32143329ad01d34ad850dda6ec55a5830a6792c6f908fbe79025691540c6d32
7
- data.tar.gz: 38b04b4a6938fea2e95128409bc9e3346a213ce9289e267e023a7da19c9e6afe3ced84ef59020a4f501081dd9969ba28dff60e8913435b0927fdbe41155f4eef
6
+ metadata.gz: f03466ff65bda17394763232137d63d88ba3a13e5fedd218ef34d2c86fe4a42b4dab3cd12ae997f5e98af8521f67d50ce05ae26465d3643b2d3efaffe8bda4e2
7
+ data.tar.gz: e6d12a4be7fa31702edbf53795b5f082d1755fd8a8efa4db33979f031a3664b55087687c11557fbb59166aa31e9790d83d79eec9d5a64f758fe209f763a77303
data/History.md ADDED
@@ -0,0 +1,140 @@
1
+ ### 0.5.0 / 2013-02-27
2
+
3
+ * No changes. Rereleased as 0.5.0 final.
4
+
5
+
6
+ ### 0.5.0.beta2 / 2013-02-04
7
+
8
+ * Revert change made to SpatialIndexDefinition in beta1.
9
+ * Fix some deprecations in the post-test cache cleanup.
10
+
11
+
12
+ ### 0.5.0.beta1 / 2013-02-04
13
+
14
+ * Updates for compatibility with Rails 4 and support of Rails 4 oriented
15
+ adapters.
16
+ * Testing tool is better factored to allow customization of cleanup
17
+
18
+
19
+ ### 0.4.6 / 2012-12-11
20
+
21
+ * You can now provide both a default and an override database config file in
22
+ the test helper.
23
+ * The gemspec no longer includes the timestamp in the version, so that
24
+ bundler can pull from github. (Reported by corneverbruggen)
25
+
26
+
27
+ ### 0.4.5 / 2012-04-13
28
+
29
+ * Task hacker failed ungracefully when attempting to hack a nonexistent
30
+ task. Fixed.
31
+
32
+
33
+ ### 0.4.4 / 2012-04-12
34
+
35
+ * Support cartesian bounding boxes in queries.
36
+
37
+
38
+ ### 0.4.3 / 2012-02-22
39
+
40
+ * Some fixes for Rails 3.2 compatibility.
41
+
42
+
43
+ ### 0.4.2 / 2012-01-09
44
+
45
+ * Added an "rgeo-activerecord.rb" wrapper so bundler's auto-require will
46
+ work without modification. (Reported by Mauricio Pasquier Juan.)
47
+ * Fixed unit tests so they actually pass...
48
+
49
+
50
+ ### 0.4.1 / 2011-10-26
51
+
52
+ * Fixed wrong variable name crash in rgeo_factory_for_column (patch by Andy
53
+ Allan).
54
+
55
+
56
+ ### 0.4.0 / 2011-08-15
57
+
58
+ * Several compatibility fixes for Rails 3.1.
59
+ * Revamped factory setter mechanism with a system that should be more
60
+ robust.
61
+ * Some general code cleanup.
62
+
63
+
64
+ ### 0.3.4 / 2011-05-23
65
+
66
+ * Uses the mixin feature of RGeo 0.3 to add an as_json method to all
67
+ geometry objects. This should allow ActiveRecord's JSON serialization to
68
+ function for models with geometry fields. (Reported by thenetduck and
69
+ tonyc on github.)
70
+
71
+
72
+ ### 0.3.3 / 2011-04-11
73
+
74
+ * A .gemspec file is now available for gem building and bundler git
75
+ integration.
76
+
77
+
78
+ ### 0.3.2 / 2011-02-28
79
+
80
+ * Fixed a bug that sometimes caused spatial column detection to fail, which
81
+ could result in exceptions or incorrect spatial queries.
82
+
83
+
84
+ ### 0.3.1 / 2011-02-28
85
+
86
+ * Fixed a bug that could cause some spatial ActiveRecord adapters to fail to
87
+ create multiple spatial columns in a migration.
88
+
89
+
90
+ ### 0.3.0 / 2011-01-26
91
+
92
+ * Experimental support for complex spatial queries. (Requires Arel 2.1,
93
+ which is expected to be released with Rails 3.1.) Currently, only a
94
+ low-level Arel-based interface is supported.
95
+ * Better support for geography types in PostGIS.
96
+ * Adapters can now define additional column constructors.
97
+ * Support for spatial column constructors on change_table.
98
+ * Fixed column type inference for some cases where the column included Z
99
+ and/or M.
100
+ * IS NULL predicates now work properly with spatial types.
101
+ * Preferred attribute type is now :spatial rather than :geometry.
102
+ * The gem version is now accessible via an api.
103
+ * Some code reorganization.
104
+
105
+
106
+ ### 0.2.4 / 2011-01-13
107
+
108
+ * Fixed a problem that caused a hang during rake db:rollback, as well as
109
+ probably certain other functions that use ActiveRecord::Base directly
110
+ rather than a subclass. (Reported by Alexander Graefe.)
111
+
112
+
113
+ ### 0.2.3 / 2011-01-07
114
+
115
+ * Updated gem dependencies to include Arel 2.0.6, since some earlier Arel
116
+ versions weren't working. (Reported by Pirmin Kalberer.)
117
+
118
+
119
+ ### 0.2.2 / 2011-01-06
120
+
121
+ * Some adjustments to the Arel integration for future Arel compatibility.
122
+ (Thanks to Aaron Patterson.)
123
+ * Support code for hacking ActiveRecord's rake tasks.
124
+
125
+
126
+ ### 0.2.1 / 2010-12-27
127
+
128
+ * Support for RGeo features as nodes in the Arel AST.
129
+ * Basic utility Arel visitor methods for handling spatial equality nodes in
130
+ where-expressions.
131
+
132
+
133
+ ### 0.2.0 / 2010-12-07
134
+
135
+ * Initial public alpha release. Spun rgeo-activerecord off from the core
136
+ rgeo gem.
137
+ * Support for setting factory by column.
138
+
139
+
140
+ For earlier history, see the History file for the rgeo gem.
data/README.md ADDED
@@ -0,0 +1,80 @@
1
+ ## RGeo::ActiveRecord
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/rgeo-activerecord.svg)](http://badge.fury.io/rb/rgeo-activerecord)
4
+ [![Build Status](https://travis-ci.org/rgeo/rgeo-activerecord.svg?branch=master)](https://travis-ci.org/rgeo/rgeo-activerecord)
5
+ [![Code Climate](https://codeclimate.com/github/rgeo/rgeo-activerecord.png)](https://codeclimate.com/github/rgeo/rgeo-activerecord)
6
+
7
+ RGeo::ActiveRecord is an optional [RGeo](http://github.com/dazuma/rgeo) module
8
+ providing spatial extensions for ActiveRecord, as well as a set of helpers for
9
+ writing spatial ActiveRecord adapters based on RGeo.
10
+
11
+ ### Summary
12
+
13
+ RGeo is a key component for writing location-aware applications in the Ruby
14
+ programming language. At its core is an implementation of the industry
15
+ standard OGC Simple Features Specification, which provides data
16
+ representations of geometric objects such as points, lines, and polygons,
17
+ along with a set of geometric analysis operations. See the README for the
18
+ "rgeo" gem for more information.
19
+
20
+ RGeo::ActiveRecord is an optional RGeo add-on module providing spatial
21
+ extensions for ActiveRecord, as well as a set of helpers for writing spatial
22
+ ActiveRecord adapters based on RGeo.
23
+
24
+ ### Installation
25
+
26
+ Gemfile:
27
+
28
+ ```ruby
29
+ gem 'rgeo-activerecord'
30
+ ```
31
+
32
+ `rgeo-activerecord` has the following requirements:
33
+
34
+ * Ruby 1.9.3 or later
35
+ * ActiveRecord 4.0.0 or later
36
+ * rgeo 0.3.20 or later.
37
+
38
+ Version `0.6.0` supports earlier versions of ruby and activerecord:
39
+
40
+ * Ruby 1.8.7 or later
41
+ * ActiveRecord 3.0.3 - 3.2.x
42
+ * rgeo 0.3.20 or later
43
+ * arel 2.0.6 or later
44
+
45
+ See the README for the "rgeo" gem, a required dependency, for further
46
+ installation information.
47
+
48
+ ### Development and support
49
+
50
+ This README is the official documentation.
51
+
52
+ RDoc documentation is available at http://rdoc.info/gems/rgeo-activerecord
53
+
54
+ Source code is hosted on Github at http://github.com/rgeo/rgeo-activerecord
55
+
56
+ Contributions are welcome. Fork the project on Github.
57
+
58
+ Report bugs on Github issues at
59
+ http://github.com/rgeo/rgeo-activerecord/issues
60
+
61
+ Support available on the rgeo-users google group at
62
+ http://groups.google.com/group/rgeo-users
63
+
64
+ ### Acknowledgments
65
+
66
+ [Daniel Azuma](http://www.daniel-azuma.com) created RGeo.
67
+ [Tee Parham](http://twitter.com/teeparham) is the current maintainer.
68
+
69
+ Development is supported by:
70
+
71
+ * [Pirq](http://pirq.com)
72
+ * [Neighborland](https://neighborland.com)
73
+
74
+ ### License
75
+
76
+ Copyright 2013 Daniel Azuma
77
+
78
+ Copyright 2014 Tee Parham
79
+
80
+ https://github.com/rgeo/rgeo-activerecord/blob/master/LICENSE.txt
@@ -1,5 +1,5 @@
1
1
  module RGeo
2
2
  module ActiveRecord
3
- VERSION = '1.0.0'.freeze
3
+ VERSION = '1.1.0'.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: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-06 00:00:00.000000000 Z
11
+ date: 2014-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rgeo
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.20
19
+ version: '0.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.3.20
26
+ version: '0.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,33 +66,17 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '10.2'
69
- - !ruby/object:Gem::Dependency
70
- name: rdoc
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
69
  description: RGeo is a geospatial data library for Ruby. RGeo::ActiveRecord is an
84
70
  optional RGeo module providing some spatial extensions to ActiveRecord, as well
85
71
  as common tools used by RGeo-based spatial adapters.
86
72
  email: dazuma@gmail.com
87
73
  executables: []
88
74
  extensions: []
89
- extra_rdoc_files:
90
- - History.rdoc
91
- - README.rdoc
75
+ extra_rdoc_files: []
92
76
  files:
93
- - History.rdoc
77
+ - History.md
94
78
  - LICENSE.txt
95
- - README.rdoc
79
+ - README.md
96
80
  - lib/rgeo-activerecord.rb
97
81
  - lib/rgeo/active_record.rb
98
82
  - lib/rgeo/active_record/adapter_test_helper.rb
@@ -105,7 +89,7 @@ files:
105
89
  - test/support/fake_record.rb
106
90
  - test/tc_basic.rb
107
91
  - test/test_helper.rb
108
- homepage: http://rgeo.github.com/rgeo-activerecord
92
+ homepage: http://github.com/rgeo/rgeo-activerecord
109
93
  licenses: []
110
94
  metadata: {}
111
95
  post_install_message:
@@ -124,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
108
  version: '0'
125
109
  requirements: []
126
110
  rubyforge_project:
127
- rubygems_version: 2.2.2
111
+ rubygems_version: 2.3.0
128
112
  signing_key:
129
113
  specification_version: 4
130
114
  summary: An RGeo module providing spatial extensions to ActiveRecord.
data/History.rdoc DELETED
@@ -1,98 +0,0 @@
1
- === 0.5.0 / 2013-02-27
2
-
3
- * No changes. Rereleased as 0.5.0 final.
4
-
5
- === 0.5.0.beta2 / 2013-02-04
6
-
7
- * Revert change made to SpatialIndexDefinition in beta1.
8
- * Fix some deprecations in the post-test cache cleanup.
9
-
10
- === 0.5.0.beta1 / 2013-02-04
11
-
12
- * Updates for compatibility with Rails 4 and support of Rails 4 oriented adapters.
13
- * Testing tool is better factored to allow customization of cleanup
14
-
15
- === 0.4.6 / 2012-12-11
16
-
17
- * You can now provide both a default and an override database config file in the test helper.
18
- * The gemspec no longer includes the timestamp in the version, so that bundler can pull from github. (Reported by corneverbruggen)
19
-
20
- === 0.4.5 / 2012-04-13
21
-
22
- * Task hacker failed ungracefully when attempting to hack a nonexistent task. Fixed.
23
-
24
- === 0.4.4 / 2012-04-12
25
-
26
- * Support cartesian bounding boxes in queries.
27
-
28
- === 0.4.3 / 2012-02-22
29
-
30
- * Some fixes for Rails 3.2 compatibility.
31
-
32
- === 0.4.2 / 2012-01-09
33
-
34
- * Added an "rgeo-activerecord.rb" wrapper so bundler's auto-require will work without modification. (Reported by Mauricio Pasquier Juan.)
35
- * Fixed unit tests so they actually pass...
36
-
37
- === 0.4.1 / 2011-10-26
38
-
39
- * Fixed wrong variable name crash in rgeo_factory_for_column (patch by Andy Allan).
40
-
41
- === 0.4.0 / 2011-08-15
42
-
43
- * Several compatibility fixes for Rails 3.1.
44
- * Revamped factory setter mechanism with a system that should be more robust.
45
- * Some general code cleanup.
46
-
47
- === 0.3.4 / 2011-05-23
48
-
49
- * Uses the mixin feature of RGeo 0.3 to add an as_json method to all geometry objects. This should allow ActiveRecord's JSON serialization to function for models with geometry fields. (Reported by thenetduck and tonyc on github.)
50
-
51
- === 0.3.3 / 2011-04-11
52
-
53
- * A .gemspec file is now available for gem building and bundler git integration.
54
-
55
- === 0.3.2 / 2011-02-28
56
-
57
- * Fixed a bug that sometimes caused spatial column detection to fail, which could result in exceptions or incorrect spatial queries.
58
-
59
- === 0.3.1 / 2011-02-28
60
-
61
- * Fixed a bug that could cause some spatial ActiveRecord adapters to fail to create multiple spatial columns in a migration.
62
-
63
- === 0.3.0 / 2011-01-26
64
-
65
- * Experimental support for complex spatial queries. (Requires Arel 2.1, which is expected to be released with Rails 3.1.) Currently, only a low-level Arel-based interface is supported.
66
- * Better support for geography types in PostGIS.
67
- * Adapters can now define additional column constructors.
68
- * Support for spatial column constructors on change_table.
69
- * Fixed column type inference for some cases where the column included Z and/or M.
70
- * IS NULL predicates now work properly with spatial types.
71
- * Preferred attribute type is now :spatial rather than :geometry.
72
- * The gem version is now accessible via an api.
73
- * Some code reorganization.
74
-
75
- === 0.2.4 / 2011-01-13
76
-
77
- * Fixed a problem that caused a hang during rake db:rollback, as well as probably certain other functions that use ActiveRecord::Base directly rather than a subclass. (Reported by Alexander Graefe.)
78
-
79
- === 0.2.3 / 2011-01-07
80
-
81
- * Updated gem dependencies to include Arel 2.0.6, since some earlier Arel versions weren't working. (Reported by Pirmin Kalberer.)
82
-
83
- === 0.2.2 / 2011-01-06
84
-
85
- * Some adjustments to the Arel integration for future Arel compatibility. (Thanks to Aaron Patterson.)
86
- * Support code for hacking ActiveRecord's rake tasks.
87
-
88
- === 0.2.1 / 2010-12-27
89
-
90
- * Support for RGeo features as nodes in the Arel AST.
91
- * Basic utility Arel visitor methods for handling spatial equality nodes in where-expressions.
92
-
93
- === 0.2.0 / 2010-12-07
94
-
95
- * Initial public alpha release. Spun rgeo-activerecord off from the core rgeo gem.
96
- * Support for setting factory by column.
97
-
98
- For earlier history, see the History file for the rgeo gem.
data/README.rdoc DELETED
@@ -1,91 +0,0 @@
1
- == RGeo::ActiveRecord
2
-
3
- RGeo::ActiveRecord is an optional {RGeo}[http://github.com/dazuma/rgeo]
4
- module providing spatial extensions for \ActiveRecord, as well as a set
5
- of helpers for writing spatial \ActiveRecord adapters based on \RGeo.
6
-
7
- === Summary
8
-
9
- \RGeo is a key component for writing location-aware applications in the
10
- Ruby programming language. At its core is an implementation of the
11
- industry standard OGC Simple Features Specification, which provides data
12
- representations of geometric objects such as points, lines, and polygons,
13
- along with a set of geometric analysis operations. See the README for the
14
- "rgeo" gem for more information.
15
-
16
- RGeo::ActiveRecord is an optional \RGeo add-on module providing spatial
17
- extensions for \ActiveRecord, as well as a set of helpers for writing
18
- spatial \ActiveRecord adapters based on \RGeo.
19
-
20
- === Installation
21
-
22
- RGeo::ActiveRecord has the following requirements:
23
-
24
- * Ruby 1.8.7 or later. Ruby 1.9.2 or later preferred.
25
- * rgeo 0.3.20 or later.
26
- * activerecord 3.0.3 or later. Earlier versions will not work.
27
- Should be compatible with Rails versions through 3.2.x.
28
- * arel 2.0.6 or later. Earlier versions will not work.
29
-
30
- This version of rgeo-activerecord also includes experimental support for
31
- the Rails 4.0.
32
-
33
- Generally, \ActiveRecord adapters which depend on this module should be
34
- installed as gems, and they will install this module automatically as
35
- a dependency. However, you can also install it manually as a gem:
36
-
37
- gem install rgeo
38
- gem install rgeo-activerecord
39
-
40
- See the README for the "rgeo" gem, a required dependency, for further
41
- installation information.
42
-
43
- === Development and support
44
-
45
- Documentation is available at http://dazuma.github.com/rgeo-activerecord/rdoc
46
-
47
- Source code is hosted on Github at http://github.com/dazuma/rgeo-activerecord
48
-
49
- Contributions are welcome. Fork the project on Github.
50
-
51
- Report bugs on Github issues at http://github.org/dazuma/rgeo-activerecord/issues
52
-
53
- Support available on the rgeo-users google group at http://groups.google.com/group/rgeo-users
54
-
55
- Contact the author at dazuma at gmail dot com.
56
-
57
- === Acknowledgments
58
-
59
- \RGeo is written by Daniel Azuma (http://www.daniel-azuma.com).
60
-
61
- Development is supported by Pirq. (http://pirq.com).
62
-
63
- === License
64
-
65
- Copyright 2010-2013 Daniel Azuma
66
-
67
- All rights reserved.
68
-
69
- Redistribution and use in source and binary forms, with or without
70
- modification, are permitted provided that the following conditions are met:
71
-
72
- * Redistributions of source code must retain the above copyright notice,
73
- this list of conditions and the following disclaimer.
74
- * Redistributions in binary form must reproduce the above copyright notice,
75
- this list of conditions and the following disclaimer in the documentation
76
- and/or other materials provided with the distribution.
77
- * Neither the name of the copyright holder, nor the names of any other
78
- contributors to this software, may be used to endorse or promote products
79
- derived from this software without specific prior written permission.
80
-
81
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
82
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
83
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
84
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
85
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
86
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
87
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
88
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
89
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
90
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
91
- POSSIBILITY OF SUCH DAMAGE.