rgeo-activerecord 3.0.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f60cf6ae67e0e2e1a73d57c4a0bad86f534f96c0
4
- data.tar.gz: 17c3e5ecc8458e01eab3dc4531622ec3460cb193
3
+ metadata.gz: 3ce0169c42b01d3301ad100aa05f613c9a5ad36c
4
+ data.tar.gz: 03052f644627dde6d874dbc1e91cc4a83bf9dd15
5
5
  SHA512:
6
- metadata.gz: 7296946f83cabf48737cd6e5b7f3b8af4af78ba3c69b77e86618bdbff65be11a05d8c32c44084a8ced839f5952c9a560f8d6912db0fe5c6fd953cc12c89bc2a8
7
- data.tar.gz: 2a2239bd24fa6d7e4940da9a61253fa9b427457e6b01120d94f822428c476544d698463f72b240ad83c826c954bb8ad21e74f8c4037c7f99b65999f9f679ee3f
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
@@ -1,5 +1,5 @@
1
1
  module RGeo
2
2
  module ActiveRecord
3
- VERSION = "3.0.0".freeze
3
+ VERSION = "4.0.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: 3.0.0
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-10 00:00:00.000000000 Z
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.6
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: