activerecord-postgis-adapter 0.6.6 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/History.rdoc +7 -0
  3. data/{lib/rgeo/active_record/postgis_adapter/railtie.rb → LICENSE.txt} +2 -12
  4. data/lib/active_record/connection_adapters/postgis_adapter.rb +1 -60
  5. data/lib/active_record/connection_adapters/postgis_adapter/rails4/create_connection.rb +15 -74
  6. data/lib/active_record/connection_adapters/postgis_adapter/rails4/databases.rake +0 -38
  7. data/lib/active_record/connection_adapters/postgis_adapter/rails4/main_adapter.rb +0 -68
  8. data/lib/active_record/connection_adapters/postgis_adapter/rails4/postgis_database_tasks.rb +0 -36
  9. data/lib/active_record/connection_adapters/postgis_adapter/rails4/spatial_column.rb +0 -36
  10. data/lib/active_record/connection_adapters/postgis_adapter/rails4/spatial_table_definition.rb +0 -36
  11. data/lib/active_record/connection_adapters/postgis_adapter/railtie.rb +0 -36
  12. data/lib/active_record/connection_adapters/postgis_adapter/shared/arel_tosql.rb +0 -36
  13. data/lib/active_record/connection_adapters/postgis_adapter/shared/common_adapter_methods.rb +3 -70
  14. data/lib/active_record/connection_adapters/postgis_adapter/shared/railtie.rb +1 -54
  15. data/lib/active_record/connection_adapters/postgis_adapter/shared/setup.rb +0 -36
  16. data/lib/active_record/connection_adapters/postgis_adapter/version.rb +7 -0
  17. data/lib/activerecord-postgis-adapter.rb +0 -36
  18. data/lib/activerecord/postgis/adapter.rb +0 -36
  19. data/test/database.yml +5 -0
  20. data/test/tc_basic.rb +0 -35
  21. data/test/tc_ddl.rb +0 -35
  22. data/test/tc_nested_class.rb +0 -35
  23. data/test/tc_spatial_queries.rb +0 -35
  24. data/test/tc_tasks.rb +0 -78
  25. metadata +33 -38
  26. data/Version +0 -1
  27. data/lib/active_record/connection_adapters/postgis_adapter/rails3/create_connection.rb +0 -96
  28. data/lib/active_record/connection_adapters/postgis_adapter/rails3/databases.rake +0 -232
  29. data/lib/active_record/connection_adapters/postgis_adapter/rails3/main_adapter.rb +0 -298
  30. data/lib/active_record/connection_adapters/postgis_adapter/rails3/spatial_column.rb +0 -195
  31. data/lib/active_record/connection_adapters/postgis_adapter/rails3/spatial_table_definition.rb +0 -145
  32. data/lib/active_record/connection_adapters/postgis_adapter/shared/jdbc_compat.rb +0 -134
  33. data/lib/active_record/connection_adapters/postgis_adapter/shared/version.rb +0 -62
@@ -1,62 +0,0 @@
1
- # -----------------------------------------------------------------------------
2
- #
3
- # PostGIS adapter for ActiveRecord
4
- #
5
- # -----------------------------------------------------------------------------
6
- # Copyright 2010-2012 Daniel Azuma
7
- #
8
- # All rights reserved.
9
- #
10
- # Redistribution and use in source and binary forms, with or without
11
- # modification, are permitted provided that the following conditions are met:
12
- #
13
- # * Redistributions of source code must retain the above copyright notice,
14
- # this list of conditions and the following disclaimer.
15
- # * Redistributions in binary form must reproduce the above copyright notice,
16
- # this list of conditions and the following disclaimer in the documentation
17
- # and/or other materials provided with the distribution.
18
- # * Neither the name of the copyright holder, nor the names of any other
19
- # contributors to this software, may be used to endorse or promote products
20
- # derived from this software without specific prior written permission.
21
- #
22
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23
- # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24
- # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26
- # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27
- # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28
- # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30
- # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32
- # POSSIBILITY OF SUCH DAMAGE.
33
- # -----------------------------------------------------------------------------
34
- ;
35
-
36
-
37
- begin
38
- require 'versionomy'
39
- rescue ::LoadError
40
- end
41
-
42
-
43
- module ActiveRecord
44
-
45
- module ConnectionAdapters
46
-
47
- module PostGISAdapter
48
-
49
-
50
- # Current version of PostGISAdapter as a frozen string
51
- VERSION_STRING = ::File.read(::File.expand_path('../../../../../Version', ::File.dirname(__FILE__))).strip.freeze
52
-
53
- # Current version of PostGISAdapter as a Versionomy object, if the
54
- # Versionomy gem is available; otherwise equal to VERSION_STRING.
55
- VERSION = defined?(::Versionomy) ? ::Versionomy.parse(VERSION_STRING) : VERSION_STRING
56
-
57
-
58
- end
59
-
60
- end
61
-
62
- end