rgeo-activerecord 3.0.0 → 4.0.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ce0169c42b01d3301ad100aa05f613c9a5ad36c
|
|
4
|
+
data.tar.gz: 03052f644627dde6d874dbc1e91cc4a83bf9dd15
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f806e07dcf6dd5ec1995ce204f108fcc845a40e2afbfd5428c811d0446e6b24b83075b88a6e69f89b73d716eb4b0019d5d1a3601b4a176ef64c4123911c8f5ce
|
|
7
|
+
data.tar.gz: 3d4acdf3243380fdf07cf23a5fabc6d6eb1abe4bc6bd71e1637c95f3f52b16ef09143579e38420165108d0b5f1f2dc58e30ecca9882661a7e1a204350b8c42d4
|
|
@@ -37,60 +37,5 @@ module RGeo
|
|
|
37
37
|
else nil
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
|
-
|
|
41
|
-
# :stopdoc:
|
|
42
|
-
|
|
43
|
-
# Provide methods for each geometric subtype during table definitions.
|
|
44
|
-
module GeoTableDefinitions
|
|
45
|
-
def self.included(base)
|
|
46
|
-
base.class_eval do
|
|
47
|
-
alias_method :method_missing_without_rgeo, :method_missing
|
|
48
|
-
alias_method :method_missing, :method_missing_with_rgeo
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
def method_missing_with_rgeo(method_name, *args, &block)
|
|
53
|
-
if @base.respond_to?(:spatial_column_constructor) && (info = @base.spatial_column_constructor(method_name))
|
|
54
|
-
info = info.dup
|
|
55
|
-
type = (info.delete(:type) || method_name).to_s
|
|
56
|
-
opts = args.extract_options!.merge(info)
|
|
57
|
-
args.each do |name|
|
|
58
|
-
column(name, type, opts)
|
|
59
|
-
end
|
|
60
|
-
else
|
|
61
|
-
method_missing_without_rgeo(method_name, *args, &block)
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
::ActiveRecord::ConnectionAdapters::TableDefinition.send :include, GeoTableDefinitions
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
# Provide methods for each geometric subtype during table changes.
|
|
70
|
-
module GeoConnectionAdapters
|
|
71
|
-
def self.included(base)
|
|
72
|
-
base.class_eval do
|
|
73
|
-
alias_method :method_missing_without_rgeo, :method_missing
|
|
74
|
-
alias_method :method_missing, :method_missing_with_rgeo
|
|
75
|
-
end
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
def method_missing_with_rgeo(method_name, *args, &block)
|
|
79
|
-
if @base.respond_to?(:spatial_column_construcor) && (info = @base.spatial_column_constructor(method_name))
|
|
80
|
-
info = info.dup
|
|
81
|
-
type = (info.delete(:type) || method_name).to_s
|
|
82
|
-
opts = args.extract_options!.merge(info)
|
|
83
|
-
args.each do |name|
|
|
84
|
-
@base.add_column(@table_name, name, type, opts)
|
|
85
|
-
end
|
|
86
|
-
else
|
|
87
|
-
method_missing_without_rgeo(method_name, *args, &block)
|
|
88
|
-
end
|
|
89
|
-
end
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
::ActiveRecord::ConnectionAdapters::Table.send :include, GeoConnectionAdapters
|
|
93
|
-
|
|
94
|
-
# :startdoc:
|
|
95
40
|
end
|
|
96
41
|
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:
|
|
4
|
+
version: 4.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Azuma, Tee Parham
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-05-
|
|
11
|
+
date: 2015-05-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rgeo
|
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
122
122
|
version: '0'
|
|
123
123
|
requirements: []
|
|
124
124
|
rubyforge_project:
|
|
125
|
-
rubygems_version: 2.4.
|
|
125
|
+
rubygems_version: 2.4.7
|
|
126
126
|
signing_key:
|
|
127
127
|
specification_version: 4
|
|
128
128
|
summary: An RGeo module providing spatial extensions to ActiveRecord.
|
|
@@ -131,4 +131,3 @@ test_files:
|
|
|
131
131
|
- test/spatial_factory_store_test.rb
|
|
132
132
|
- test/support/fake_record.rb
|
|
133
133
|
- test/test_helper.rb
|
|
134
|
-
has_rdoc:
|