mongoid-geospatial 3.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +49 -0
- data/.travis.yml +19 -0
- data/Gemfile +30 -0
- data/Guardfile +16 -0
- data/MIT-LICENSE +20 -0
- data/README.md +519 -0
- data/Rakefile +17 -0
- data/lib/mongoid/geospatial.rb +106 -0
- data/lib/mongoid/geospatial/ext/rgeo_spherical_point_impl.rb +18 -0
- data/lib/mongoid/geospatial/fields/box.rb +6 -0
- data/lib/mongoid/geospatial/fields/circle.rb +18 -0
- data/lib/mongoid/geospatial/fields/geometry_field.rb +41 -0
- data/lib/mongoid/geospatial/fields/line.rb +6 -0
- data/lib/mongoid/geospatial/fields/point.rb +143 -0
- data/lib/mongoid/geospatial/fields/polygon.rb +6 -0
- data/lib/mongoid/geospatial/helpers/delegate.rb +30 -0
- data/lib/mongoid/geospatial/helpers/spatial.rb +19 -0
- data/lib/mongoid/geospatial/helpers/sphere.rb +18 -0
- data/lib/mongoid/geospatial/version.rb +6 -0
- data/lib/mongoid/geospatial/wrappers/georuby.rb +33 -0
- data/lib/mongoid/geospatial/wrappers/rgeo.rb +43 -0
- data/mongoid-geospatial.gemspec +22 -0
- data/spec/models/address.rb +69 -0
- data/spec/models/alarm.rb +12 -0
- data/spec/models/bar.rb +13 -0
- data/spec/models/bus.rb +12 -0
- data/spec/models/event.rb +17 -0
- data/spec/models/farm.rb +13 -0
- data/spec/models/person.rb +97 -0
- data/spec/models/phone.rb +8 -0
- data/spec/models/place.rb +13 -0
- data/spec/models/river.rb +22 -0
- data/spec/mongoid/geospatial/fields/box_spec.rb +10 -0
- data/spec/mongoid/geospatial/fields/circle_spec.rb +10 -0
- data/spec/mongoid/geospatial/fields/line_spec.rb +40 -0
- data/spec/mongoid/geospatial/fields/point_spec.rb +254 -0
- data/spec/mongoid/geospatial/fields/polygon_spec.rb +84 -0
- data/spec/mongoid/geospatial/geospatial_spec.rb +143 -0
- data/spec/mongoid/geospatial/helpers/core_spec.rb +27 -0
- data/spec/mongoid/geospatial/helpers/delegate_spec.rb +54 -0
- data/spec/mongoid/geospatial/helpers/spatial_spec.rb +36 -0
- data/spec/mongoid/geospatial/helpers/sphere_spec.rb +26 -0
- data/spec/mongoid/geospatial/wrappers/georuby_spec.rb +66 -0
- data/spec/mongoid/geospatial/wrappers/rgeo_spec.rb +121 -0
- data/spec/spec_helper.rb +64 -0
- data/spec/support/authentication.rb +29 -0
- data/spec/support/mongod.conf +3 -0
- data/spec/support/mongoid.yml +19 -0
- metadata +164 -0
metadata
ADDED
@@ -0,0 +1,164 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mongoid-geospatial
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.9.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ryan Ong
|
8
|
+
- Marcos Piccinini
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-12-22 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: mongoid
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 3.0.0
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 3.0.0
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: activemodel
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '3.2'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '3.2'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: activesupport
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '3.2'
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '3.2'
|
56
|
+
description: Mongoid Extension that simplifies MongoDB casting and operations on spatial
|
57
|
+
Ruby objects.
|
58
|
+
email:
|
59
|
+
- use@git.hub.com
|
60
|
+
executables: []
|
61
|
+
extensions: []
|
62
|
+
extra_rdoc_files: []
|
63
|
+
files:
|
64
|
+
- ".coveralls.yml"
|
65
|
+
- ".gitignore"
|
66
|
+
- ".travis.yml"
|
67
|
+
- Gemfile
|
68
|
+
- Guardfile
|
69
|
+
- MIT-LICENSE
|
70
|
+
- README.md
|
71
|
+
- Rakefile
|
72
|
+
- lib/mongoid/geospatial.rb
|
73
|
+
- lib/mongoid/geospatial/ext/rgeo_spherical_point_impl.rb
|
74
|
+
- lib/mongoid/geospatial/fields/box.rb
|
75
|
+
- lib/mongoid/geospatial/fields/circle.rb
|
76
|
+
- lib/mongoid/geospatial/fields/geometry_field.rb
|
77
|
+
- lib/mongoid/geospatial/fields/line.rb
|
78
|
+
- lib/mongoid/geospatial/fields/point.rb
|
79
|
+
- lib/mongoid/geospatial/fields/polygon.rb
|
80
|
+
- lib/mongoid/geospatial/helpers/delegate.rb
|
81
|
+
- lib/mongoid/geospatial/helpers/spatial.rb
|
82
|
+
- lib/mongoid/geospatial/helpers/sphere.rb
|
83
|
+
- lib/mongoid/geospatial/version.rb
|
84
|
+
- lib/mongoid/geospatial/wrappers/georuby.rb
|
85
|
+
- lib/mongoid/geospatial/wrappers/rgeo.rb
|
86
|
+
- mongoid-geospatial.gemspec
|
87
|
+
- spec/models/address.rb
|
88
|
+
- spec/models/alarm.rb
|
89
|
+
- spec/models/bar.rb
|
90
|
+
- spec/models/bus.rb
|
91
|
+
- spec/models/event.rb
|
92
|
+
- spec/models/farm.rb
|
93
|
+
- spec/models/person.rb
|
94
|
+
- spec/models/phone.rb
|
95
|
+
- spec/models/place.rb
|
96
|
+
- spec/models/river.rb
|
97
|
+
- spec/mongoid/geospatial/fields/box_spec.rb
|
98
|
+
- spec/mongoid/geospatial/fields/circle_spec.rb
|
99
|
+
- spec/mongoid/geospatial/fields/line_spec.rb
|
100
|
+
- spec/mongoid/geospatial/fields/point_spec.rb
|
101
|
+
- spec/mongoid/geospatial/fields/polygon_spec.rb
|
102
|
+
- spec/mongoid/geospatial/geospatial_spec.rb
|
103
|
+
- spec/mongoid/geospatial/helpers/core_spec.rb
|
104
|
+
- spec/mongoid/geospatial/helpers/delegate_spec.rb
|
105
|
+
- spec/mongoid/geospatial/helpers/spatial_spec.rb
|
106
|
+
- spec/mongoid/geospatial/helpers/sphere_spec.rb
|
107
|
+
- spec/mongoid/geospatial/wrappers/georuby_spec.rb
|
108
|
+
- spec/mongoid/geospatial/wrappers/rgeo_spec.rb
|
109
|
+
- spec/spec_helper.rb
|
110
|
+
- spec/support/authentication.rb
|
111
|
+
- spec/support/mongod.conf
|
112
|
+
- spec/support/mongoid.yml
|
113
|
+
homepage: https://github.com/nofxx/mongoid-geospatial
|
114
|
+
licenses:
|
115
|
+
- MIT
|
116
|
+
metadata: {}
|
117
|
+
post_install_message:
|
118
|
+
rdoc_options: []
|
119
|
+
require_paths:
|
120
|
+
- lib
|
121
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
requirements: []
|
132
|
+
rubyforge_project:
|
133
|
+
rubygems_version: 2.4.3
|
134
|
+
signing_key:
|
135
|
+
specification_version: 4
|
136
|
+
summary: Mongoid Extension that simplifies MongoDB Geospatial Operations.
|
137
|
+
test_files:
|
138
|
+
- spec/models/address.rb
|
139
|
+
- spec/models/alarm.rb
|
140
|
+
- spec/models/bar.rb
|
141
|
+
- spec/models/bus.rb
|
142
|
+
- spec/models/event.rb
|
143
|
+
- spec/models/farm.rb
|
144
|
+
- spec/models/person.rb
|
145
|
+
- spec/models/phone.rb
|
146
|
+
- spec/models/place.rb
|
147
|
+
- spec/models/river.rb
|
148
|
+
- spec/mongoid/geospatial/fields/box_spec.rb
|
149
|
+
- spec/mongoid/geospatial/fields/circle_spec.rb
|
150
|
+
- spec/mongoid/geospatial/fields/line_spec.rb
|
151
|
+
- spec/mongoid/geospatial/fields/point_spec.rb
|
152
|
+
- spec/mongoid/geospatial/fields/polygon_spec.rb
|
153
|
+
- spec/mongoid/geospatial/geospatial_spec.rb
|
154
|
+
- spec/mongoid/geospatial/helpers/core_spec.rb
|
155
|
+
- spec/mongoid/geospatial/helpers/delegate_spec.rb
|
156
|
+
- spec/mongoid/geospatial/helpers/spatial_spec.rb
|
157
|
+
- spec/mongoid/geospatial/helpers/sphere_spec.rb
|
158
|
+
- spec/mongoid/geospatial/wrappers/georuby_spec.rb
|
159
|
+
- spec/mongoid/geospatial/wrappers/rgeo_spec.rb
|
160
|
+
- spec/spec_helper.rb
|
161
|
+
- spec/support/authentication.rb
|
162
|
+
- spec/support/mongod.conf
|
163
|
+
- spec/support/mongoid.yml
|
164
|
+
has_rdoc:
|