postgres_ext-postgis 0.0.2 → 0.0.3
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 +4 -4
- data/README.md +4 -2
- data/lib/postgres_ext/postgis/version.rb +1 -1
- data/postgres_ext-postgis.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cac0a121247af03c4780517dede0b21df7dc69be
|
|
4
|
+
data.tar.gz: af8fe65cdd16c85c0406143ae9114a311fd2c578
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb6ec89eaf2a20b87e3dc77504cd51bbad1c7e7af2dfcd48c1e7ac27970f4453b5d62dc523656051826d8a1749fdd13b531abb9e78b110e34e86b8e520580cf6
|
|
7
|
+
data.tar.gz: 9380cb66cf6a2a3aad3a3c2043b51d4908384bbfdc00ceea12e5806eb1433f245095bb7da678127ca40bbd836a107ff12b1144a134980a3a5e89f1a0bb0a290e
|
data/README.md
CHANGED
|
@@ -33,7 +33,8 @@ end
|
|
|
33
33
|
|
|
34
34
|
### Type Casting
|
|
35
35
|
|
|
36
|
-
PostGIS geometry types are converted to
|
|
36
|
+
PostGIS geometry types are converted to
|
|
37
|
+
[RGeo](http://dazuma.github.io/rgeo/) objects. You can set
|
|
37
38
|
your PostGIS types in ActiveRecord using either the Extended Well-Known Binary
|
|
38
39
|
(WKB) or Extended Well-Known Text (WKT) representation:
|
|
39
40
|
|
|
@@ -44,7 +45,8 @@ user.location = 'SRID=4623;POINT(1 1)'
|
|
|
44
45
|
### Querying
|
|
45
46
|
|
|
46
47
|
#### Contains
|
|
47
|
-
Using the [contains querying interface from postgres\_ext
|
|
48
|
+
Using the [contains querying interface from postgres\_ext that arrays
|
|
49
|
+
utilize](https://github.com/dockyard/postgres_ext/blob/master/docs/querying.md#---array-contains-operator), we can
|
|
48
50
|
query if geometry column contains the specified object
|
|
49
51
|
|
|
50
52
|
```ruby
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
19
|
spec.require_paths = ['lib']
|
|
20
20
|
|
|
21
|
-
spec.add_runtime_dependency 'postgres_ext', '~> 2.1
|
|
21
|
+
spec.add_runtime_dependency 'postgres_ext', '~> 2.1'
|
|
22
22
|
spec.add_runtime_dependency 'rgeo'
|
|
23
23
|
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: postgres_ext-postgis
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dan McClain
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-04-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: postgres_ext
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 2.1
|
|
19
|
+
version: '2.1'
|
|
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: 2.1
|
|
26
|
+
version: '2.1'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rgeo
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|