mongoid_spacial 0.2.13 → 0.2.16
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +49 -0
- data/Gemfile +3 -30
- data/README.md +1 -1
- data/Rakefile +3 -27
- data/lib/mongoid_spacial/field_option.rb +3 -2
- data/lib/mongoid_spacial/spacial/geo_near_results.rb +2 -3
- data/lib/mongoid_spacial/spacial/version.rb +5 -0
- data/mongoid_spacial.gemspec +21 -171
- metadata +123 -76
- data/VERSION +0 -1
data/.gitignore
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
Gemfile.lock
|
2
|
+
# rcov generated
|
3
|
+
coverage
|
4
|
+
|
5
|
+
# rdoc generated
|
6
|
+
rdoc
|
7
|
+
|
8
|
+
# yard generated
|
9
|
+
doc
|
10
|
+
.yardoc
|
11
|
+
|
12
|
+
# bundler
|
13
|
+
.bundle
|
14
|
+
|
15
|
+
# jeweler generated
|
16
|
+
pkg
|
17
|
+
|
18
|
+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
19
|
+
#
|
20
|
+
# * Create a file at ~/.gitignore
|
21
|
+
# * Include files you want ignored
|
22
|
+
# * Run: git config --global core.excludesfile ~/.gitignore
|
23
|
+
#
|
24
|
+
# After doing this, these files will be ignored in all your git projects,
|
25
|
+
# saving you from having to 'pollute' every project you touch with them
|
26
|
+
#
|
27
|
+
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
28
|
+
#
|
29
|
+
# For MacOS:
|
30
|
+
#
|
31
|
+
.DS_Store
|
32
|
+
|
33
|
+
# For TextMate
|
34
|
+
#*.tmproj
|
35
|
+
#tmtags
|
36
|
+
|
37
|
+
# For emacs:
|
38
|
+
#*~
|
39
|
+
#\#*
|
40
|
+
#.\#*
|
41
|
+
|
42
|
+
# For vim:
|
43
|
+
*.swp
|
44
|
+
|
45
|
+
# For redcar:
|
46
|
+
#.redcar
|
47
|
+
|
48
|
+
# For rubinius:
|
49
|
+
#*.rbc
|
data/Gemfile
CHANGED
@@ -1,31 +1,4 @@
|
|
1
|
-
source
|
2
|
-
# Add dependencies required to use your gem here.
|
3
|
-
# Example:
|
4
|
-
# gem "activesupport", ">= 2.3.5"
|
1
|
+
source 'http://rubygems.org'
|
5
2
|
|
6
|
-
#
|
7
|
-
|
8
|
-
gem 'mongoid'
|
9
|
-
gem 'activesupport'
|
10
|
-
|
11
|
-
group :development do
|
12
|
-
gem "bson", '>= 1.3', :platforms => [:jruby] # for non jruby apps, require bson_ext in your Gemfile to boost performance
|
13
|
-
gem "bson_ext", '>= 1.3', :platforms => [:mri]
|
14
|
-
gem "rspec", "~> 2.3.0"
|
15
|
-
gem "yard", "~> 0.6.0"
|
16
|
-
gem "bundler"
|
17
|
-
gem "jeweler", "~> 1.6.2"
|
18
|
-
gem "rcov", ">= 0"
|
19
|
-
end
|
20
|
-
|
21
|
-
group :test, :development do
|
22
|
-
gem 'linecache19'
|
23
|
-
gem 'ruby-debug19'
|
24
|
-
end
|
25
|
-
|
26
|
-
group :test do
|
27
|
-
gem 'rspec-rails'
|
28
|
-
gem 'mocha'
|
29
|
-
gem 'will_paginate'
|
30
|
-
gem 'kaminari'
|
31
|
-
end
|
3
|
+
# Specify your gem's dependencies in mongoid_spacial.gemspec
|
4
|
+
gemspec
|
data/README.md
CHANGED
@@ -148,7 +148,7 @@ Thanks
|
|
148
148
|
* Thanks to Kristian Mandrup for creating the base of the gem and a few of the tests
|
149
149
|
* Thanks to CarZen LLC. for letting me release the code we are using
|
150
150
|
|
151
|
-
Contributing to
|
151
|
+
Contributing to mongoid_spacial
|
152
152
|
-----------
|
153
153
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
154
154
|
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
data/Rakefile
CHANGED
@@ -1,29 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
require 'bundler'
|
5
|
-
begin
|
6
|
-
Bundler.setup(:default, :development)
|
7
|
-
rescue Bundler::BundlerError => e
|
8
|
-
$stderr.puts e.message
|
9
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
-
exit e.status_code
|
11
|
-
end
|
12
|
-
require 'rake'
|
13
|
-
|
14
|
-
require 'jeweler'
|
15
|
-
Jeweler::Tasks.new do |gem|
|
16
|
-
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
-
gem.name = "mongoid_spacial"
|
18
|
-
gem.homepage = "http://github.com/ryanong/mongoid_spacial"
|
19
|
-
gem.license = "MIT"
|
20
|
-
gem.summary = %Q{A Mongoid Extention that simplifies and adds support for MongoDB Geo Spacial Calculations.}
|
21
|
-
gem.description = %Q{A Mongoid Extention that simplifies and adds support for MongoDB Geo Spacial Calculations.}
|
22
|
-
gem.email = "ryanong@gmail.com"
|
23
|
-
gem.authors = ["Ryan Ong"]
|
24
|
-
# dependencies defined in Gemfile
|
25
|
-
end
|
26
|
-
Jeweler::RubygemsDotOrgTasks.new
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
require "bundler/gem_tasks"
|
27
3
|
|
28
4
|
require 'rspec/core'
|
29
5
|
require 'rspec/core/rake_task'
|
@@ -39,4 +15,4 @@ end
|
|
39
15
|
task :default => :spec
|
40
16
|
|
41
17
|
require 'yard'
|
42
|
-
|
18
|
+
|
@@ -23,14 +23,15 @@ field.option :spacial do |model,field,options|
|
|
23
23
|
|
24
24
|
define_method "#{field.name}=" do |arg|
|
25
25
|
if arg.kind_of?(Hash) && arg[lng_meth] && arg[lat_meth]
|
26
|
-
arg = [arg[lng_meth], arg[lat_meth]]
|
26
|
+
arg = [arg[lng_meth].to_f, arg[lat_meth].to_f]
|
27
27
|
elsif arg.respond_to?(:to_lng_lat)
|
28
28
|
arg = arg.to_lng_lat
|
29
29
|
end
|
30
30
|
self[field.name]=arg
|
31
31
|
arg = [nil,nil] if arg.nil?
|
32
32
|
return arg[0..1] if options[:return_array]
|
33
|
-
|
33
|
+
h = {lng_meth => arg[0], lat_meth => arg[1]}
|
34
|
+
return h if options[:class].blank?
|
34
35
|
options[:class].new(h)
|
35
36
|
end
|
36
37
|
end
|
@@ -5,13 +5,12 @@ module Mongoid
|
|
5
5
|
attr_accessor :opts
|
6
6
|
|
7
7
|
def initialize(document,results,opts = {})
|
8
|
-
raise "class must include Mongoid::Spacial::Document" unless document.respond_to?(:spacial_fields_indexed)
|
8
|
+
raise "#{document.name} class must include Mongoid::Spacial::Document" unless document.respond_to?(:spacial_fields_indexed)
|
9
9
|
@document = document
|
10
10
|
@opts = opts
|
11
11
|
@_original_opts = opts.clone
|
12
12
|
@stats = results['stats'] || {}
|
13
13
|
@opts[:skip] ||= 0
|
14
|
-
@opts[:total_entries] = opts[:query]["num"] || @stats['nscanned']
|
15
14
|
|
16
15
|
@_original_array = results['results'].collect do |result|
|
17
16
|
res = Mongoid::Factory.from_db(@document, result.delete('obj'))
|
@@ -88,7 +87,7 @@ module Mongoid
|
|
88
87
|
end
|
89
88
|
|
90
89
|
def total_entries
|
91
|
-
@
|
90
|
+
(@_paginated_array) ? @_paginated_array.count : @_original_array.count
|
92
91
|
end
|
93
92
|
alias_method :total_count, :total_entries
|
94
93
|
|
data/mongoid_spacial.gemspec
CHANGED
@@ -1,177 +1,27 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/mongoid_spacial/spacial/version', __FILE__)
|
5
3
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Ryan Ong"]
|
6
|
+
gem.email = ["ryanong@gmail.com"]
|
7
|
+
gem.description = %q{mongoid_spacial simplifies spacial calculations. Adds integration into mongoid so pagination and other function continue to work. It adds symbol extentions to simplify query creation.}
|
8
|
+
gem.summary = %q{A Mongoid Extention that simplifies and adds support for MongoDB Geo Spacial Calculations.}
|
9
|
+
gem.homepage = "https://github.com/ryanong/mongoid_spacial"
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
"LICENSE.txt",
|
17
|
-
"README.md"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
".rspec",
|
22
|
-
"Gemfile",
|
23
|
-
"LICENSE.txt",
|
24
|
-
"README.md",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION",
|
27
|
-
"lib/mongoid_spacial.rb",
|
28
|
-
"lib/mongoid_spacial/contexts/mongo.rb",
|
29
|
-
"lib/mongoid_spacial/criteria.rb",
|
30
|
-
"lib/mongoid_spacial/criterion.rb",
|
31
|
-
"lib/mongoid_spacial/criterion/complex.rb",
|
32
|
-
"lib/mongoid_spacial/criterion/inclusion.rb",
|
33
|
-
"lib/mongoid_spacial/criterion/near_spacial.rb",
|
34
|
-
"lib/mongoid_spacial/criterion/within_spacial.rb",
|
35
|
-
"lib/mongoid_spacial/extentions/hash/criteria_helpers.rb",
|
36
|
-
"lib/mongoid_spacial/extentions/symbol/inflections.rb",
|
37
|
-
"lib/mongoid_spacial/field_option.rb",
|
38
|
-
"lib/mongoid_spacial/finders.rb",
|
39
|
-
"lib/mongoid_spacial/spacial.rb",
|
40
|
-
"lib/mongoid_spacial/spacial/core_ext.rb",
|
41
|
-
"lib/mongoid_spacial/spacial/document.rb",
|
42
|
-
"lib/mongoid_spacial/spacial/formulas.rb",
|
43
|
-
"lib/mongoid_spacial/spacial/geo_near_results.rb",
|
44
|
-
"mongoid_spacial.gemspec",
|
45
|
-
"spec/config/mongod.conf",
|
46
|
-
"spec/config/mongoid.yml",
|
47
|
-
"spec/functional/mongoid/contexts/mongo_spec.rb",
|
48
|
-
"spec/functional/mongoid/criterion/inclusion_spec.rb",
|
49
|
-
"spec/functional/mongoid/spacial/geo_near_results_spec.rb",
|
50
|
-
"spec/functional/mongoid/spacial_spec.rb",
|
51
|
-
"spec/models/account.rb",
|
52
|
-
"spec/models/acolyte.rb",
|
53
|
-
"spec/models/address.rb",
|
54
|
-
"spec/models/address_component.rb",
|
55
|
-
"spec/models/agent.rb",
|
56
|
-
"spec/models/alert.rb",
|
57
|
-
"spec/models/animal.rb",
|
58
|
-
"spec/models/answer.rb",
|
59
|
-
"spec/models/bar.rb",
|
60
|
-
"spec/models/birthday.rb",
|
61
|
-
"spec/models/book.rb",
|
62
|
-
"spec/models/business.rb",
|
63
|
-
"spec/models/callbacks.rb",
|
64
|
-
"spec/models/category.rb",
|
65
|
-
"spec/models/circus.rb",
|
66
|
-
"spec/models/comment.rb",
|
67
|
-
"spec/models/country_code.rb",
|
68
|
-
"spec/models/description.rb",
|
69
|
-
"spec/models/division.rb",
|
70
|
-
"spec/models/drug.rb",
|
71
|
-
"spec/models/employer.rb",
|
72
|
-
"spec/models/entry.rb",
|
73
|
-
"spec/models/event.rb",
|
74
|
-
"spec/models/favorite.rb",
|
75
|
-
"spec/models/fruits.rb",
|
76
|
-
"spec/models/game.rb",
|
77
|
-
"spec/models/ghost.rb",
|
78
|
-
"spec/models/house.rb",
|
79
|
-
"spec/models/inheritance.rb",
|
80
|
-
"spec/models/league.rb",
|
81
|
-
"spec/models/location.rb",
|
82
|
-
"spec/models/login.rb",
|
83
|
-
"spec/models/membership.rb",
|
84
|
-
"spec/models/mixed_drink.rb",
|
85
|
-
"spec/models/name.rb",
|
86
|
-
"spec/models/namespacing.rb",
|
87
|
-
"spec/models/observed.rb",
|
88
|
-
"spec/models/override.rb",
|
89
|
-
"spec/models/owner.rb",
|
90
|
-
"spec/models/page.rb",
|
91
|
-
"spec/models/page_question.rb",
|
92
|
-
"spec/models/paranoid_post.rb",
|
93
|
-
"spec/models/parents.rb",
|
94
|
-
"spec/models/patient.rb",
|
95
|
-
"spec/models/person.rb",
|
96
|
-
"spec/models/pet.rb",
|
97
|
-
"spec/models/pet_owner.rb",
|
98
|
-
"spec/models/phone.rb",
|
99
|
-
"spec/models/player.rb",
|
100
|
-
"spec/models/post.rb",
|
101
|
-
"spec/models/preference.rb",
|
102
|
-
"spec/models/question.rb",
|
103
|
-
"spec/models/quiz.rb",
|
104
|
-
"spec/models/rating.rb",
|
105
|
-
"spec/models/river.rb",
|
106
|
-
"spec/models/role.rb",
|
107
|
-
"spec/models/service.rb",
|
108
|
-
"spec/models/shelf.rb",
|
109
|
-
"spec/models/slave_address_numbers.rb",
|
110
|
-
"spec/models/survey.rb",
|
111
|
-
"spec/models/tag.rb",
|
112
|
-
"spec/models/tracking_id_validation_history.rb",
|
113
|
-
"spec/models/translation.rb",
|
114
|
-
"spec/models/tree.rb",
|
115
|
-
"spec/models/user.rb",
|
116
|
-
"spec/models/user_account.rb",
|
117
|
-
"spec/models/vet_visit.rb",
|
118
|
-
"spec/models/video.rb",
|
119
|
-
"spec/models/wiki_page.rb",
|
120
|
-
"spec/spec_helper.rb",
|
121
|
-
"spec/support/authentication.rb",
|
122
|
-
"spec/unit/mongoid/criterion/complex_spec.rb",
|
123
|
-
"spec/unit/mongoid/criterion/inclusion_spec.rb",
|
124
|
-
"spec/unit/mongoid/criterion/near_spacial_spec.rb",
|
125
|
-
"spec/unit/mongoid/criterion/within_spacial_spec.rb",
|
126
|
-
"spec/unit/mongoid/spacial/formulas_spec.rb",
|
127
|
-
"spec/unit/mongoid/spacial_spec.rb"
|
128
|
-
]
|
129
|
-
s.homepage = %q{http://github.com/ryanong/mongoid_spacial}
|
130
|
-
s.licenses = [%q{MIT}]
|
131
|
-
s.require_paths = [%q{lib}]
|
132
|
-
s.rubygems_version = %q{1.8.6}
|
133
|
-
s.summary = %q{A Mongoid Extention that simplifies and adds support for MongoDB Geo Spacial Calculations.}
|
11
|
+
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
|
+
gem.files = `git ls-files`.split("\n")
|
13
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
14
|
+
gem.name = "mongoid_spacial"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = Mongoid::Spacial::VERSION
|
134
17
|
|
135
|
-
|
136
|
-
|
18
|
+
gem.add_dependency("mongoid", ['>= 2.3.0'])
|
19
|
+
gem.add_dependency('activesupport', ["~> 3.0"])
|
20
|
+
gem.add_development_dependency('yard', ["~>0.6.0"])
|
21
|
+
gem.add_development_dependency('rspec', ['~>2.3'])
|
22
|
+
gem.add_development_dependency('rcov', ['>= 0'])
|
23
|
+
gem.add_development_dependency('mocha', ['>= 0'])
|
24
|
+
gem.add_development_dependency('will_paginate', ['>= 0'])
|
25
|
+
gem.add_development_dependency('kaminari', ['>= 0'])
|
137
26
|
|
138
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
139
|
-
s.add_runtime_dependency(%q<mongoid>, [">= 0"])
|
140
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
141
|
-
s.add_development_dependency(%q<bson>, [">= 1.3"])
|
142
|
-
s.add_development_dependency(%q<bson_ext>, [">= 1.3"])
|
143
|
-
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
144
|
-
s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
|
145
|
-
s.add_development_dependency(%q<bundler>, [">= 0"])
|
146
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
|
147
|
-
s.add_development_dependency(%q<rcov>, [">= 0"])
|
148
|
-
s.add_development_dependency(%q<linecache19>, [">= 0"])
|
149
|
-
s.add_development_dependency(%q<ruby-debug19>, [">= 0"])
|
150
|
-
else
|
151
|
-
s.add_dependency(%q<mongoid>, [">= 0"])
|
152
|
-
s.add_dependency(%q<activesupport>, [">= 0"])
|
153
|
-
s.add_dependency(%q<bson>, [">= 1.3"])
|
154
|
-
s.add_dependency(%q<bson_ext>, [">= 1.3"])
|
155
|
-
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
156
|
-
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
157
|
-
s.add_dependency(%q<bundler>, [">= 0"])
|
158
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
|
159
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
160
|
-
s.add_dependency(%q<linecache19>, [">= 0"])
|
161
|
-
s.add_dependency(%q<ruby-debug19>, [">= 0"])
|
162
|
-
end
|
163
|
-
else
|
164
|
-
s.add_dependency(%q<mongoid>, [">= 0"])
|
165
|
-
s.add_dependency(%q<activesupport>, [">= 0"])
|
166
|
-
s.add_dependency(%q<bson>, [">= 1.3"])
|
167
|
-
s.add_dependency(%q<bson_ext>, [">= 1.3"])
|
168
|
-
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
169
|
-
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
170
|
-
s.add_dependency(%q<bundler>, [">= 0"])
|
171
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
|
172
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
173
|
-
s.add_dependency(%q<linecache19>, [">= 0"])
|
174
|
-
s.add_dependency(%q<ruby-debug19>, [">= 0"])
|
175
|
-
end
|
176
27
|
end
|
177
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_spacial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.16
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,77 +9,55 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-10-05 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mongoid
|
16
|
-
requirement: &
|
16
|
+
requirement: &2160448560 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 2.3.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2160448560
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: activesupport
|
27
|
-
requirement: &
|
27
|
+
requirement: &2160448020 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
|
-
- -
|
30
|
+
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '0'
|
32
|
+
version: '3.0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: bson
|
38
|
-
requirement: &2157846560 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - ! '>='
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: '1.3'
|
44
|
-
type: :development
|
45
|
-
prerelease: false
|
46
|
-
version_requirements: *2157846560
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: bson_ext
|
49
|
-
requirement: &2157846040 !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
|
-
requirements:
|
52
|
-
- - ! '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.3'
|
55
|
-
type: :development
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: *2157846040
|
35
|
+
version_requirements: *2160448020
|
58
36
|
- !ruby/object:Gem::Dependency
|
59
|
-
name:
|
60
|
-
requirement: &
|
37
|
+
name: yard
|
38
|
+
requirement: &2160447500 !ruby/object:Gem::Requirement
|
61
39
|
none: false
|
62
40
|
requirements:
|
63
41
|
- - ~>
|
64
42
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
43
|
+
version: 0.6.0
|
66
44
|
type: :development
|
67
45
|
prerelease: false
|
68
|
-
version_requirements: *
|
46
|
+
version_requirements: *2160447500
|
69
47
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
71
|
-
requirement: &
|
48
|
+
name: rspec
|
49
|
+
requirement: &2160446960 !ruby/object:Gem::Requirement
|
72
50
|
none: false
|
73
51
|
requirements:
|
74
52
|
- - ~>
|
75
53
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
54
|
+
version: '2.3'
|
77
55
|
type: :development
|
78
56
|
prerelease: false
|
79
|
-
version_requirements: *
|
57
|
+
version_requirements: *2160446960
|
80
58
|
- !ruby/object:Gem::Dependency
|
81
|
-
name:
|
82
|
-
requirement: &
|
59
|
+
name: rcov
|
60
|
+
requirement: &2160446480 !ruby/object:Gem::Requirement
|
83
61
|
none: false
|
84
62
|
requirements:
|
85
63
|
- - ! '>='
|
@@ -87,21 +65,10 @@ dependencies:
|
|
87
65
|
version: '0'
|
88
66
|
type: :development
|
89
67
|
prerelease: false
|
90
|
-
version_requirements: *
|
91
|
-
- !ruby/object:Gem::Dependency
|
92
|
-
name: jeweler
|
93
|
-
requirement: &2157843320 !ruby/object:Gem::Requirement
|
94
|
-
none: false
|
95
|
-
requirements:
|
96
|
-
- - ~>
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: 1.6.2
|
99
|
-
type: :development
|
100
|
-
prerelease: false
|
101
|
-
version_requirements: *2157843320
|
68
|
+
version_requirements: *2160446480
|
102
69
|
- !ruby/object:Gem::Dependency
|
103
|
-
name:
|
104
|
-
requirement: &
|
70
|
+
name: mocha
|
71
|
+
requirement: &2160445940 !ruby/object:Gem::Requirement
|
105
72
|
none: false
|
106
73
|
requirements:
|
107
74
|
- - ! '>='
|
@@ -109,10 +76,10 @@ dependencies:
|
|
109
76
|
version: '0'
|
110
77
|
type: :development
|
111
78
|
prerelease: false
|
112
|
-
version_requirements: *
|
79
|
+
version_requirements: *2160445940
|
113
80
|
- !ruby/object:Gem::Dependency
|
114
|
-
name:
|
115
|
-
requirement: &
|
81
|
+
name: will_paginate
|
82
|
+
requirement: &2160445420 !ruby/object:Gem::Requirement
|
116
83
|
none: false
|
117
84
|
requirements:
|
118
85
|
- - ! '>='
|
@@ -120,10 +87,10 @@ dependencies:
|
|
120
87
|
version: '0'
|
121
88
|
type: :development
|
122
89
|
prerelease: false
|
123
|
-
version_requirements: *
|
90
|
+
version_requirements: *2160445420
|
124
91
|
- !ruby/object:Gem::Dependency
|
125
|
-
name:
|
126
|
-
requirement: &
|
92
|
+
name: kaminari
|
93
|
+
requirement: &2160444860 !ruby/object:Gem::Requirement
|
127
94
|
none: false
|
128
95
|
requirements:
|
129
96
|
- - ! '>='
|
@@ -131,23 +98,23 @@ dependencies:
|
|
131
98
|
version: '0'
|
132
99
|
type: :development
|
133
100
|
prerelease: false
|
134
|
-
version_requirements: *
|
135
|
-
description:
|
136
|
-
|
137
|
-
|
101
|
+
version_requirements: *2160444860
|
102
|
+
description: mongoid_spacial simplifies spacial calculations. Adds integration into
|
103
|
+
mongoid so pagination and other function continue to work. It adds symbol extentions
|
104
|
+
to simplify query creation.
|
105
|
+
email:
|
106
|
+
- ryanong@gmail.com
|
138
107
|
executables: []
|
139
108
|
extensions: []
|
140
|
-
extra_rdoc_files:
|
141
|
-
- LICENSE.txt
|
142
|
-
- README.md
|
109
|
+
extra_rdoc_files: []
|
143
110
|
files:
|
144
111
|
- .document
|
112
|
+
- .gitignore
|
145
113
|
- .rspec
|
146
114
|
- Gemfile
|
147
115
|
- LICENSE.txt
|
148
116
|
- README.md
|
149
117
|
- Rakefile
|
150
|
-
- VERSION
|
151
118
|
- lib/mongoid_spacial.rb
|
152
119
|
- lib/mongoid_spacial/contexts/mongo.rb
|
153
120
|
- lib/mongoid_spacial/criteria.rb
|
@@ -165,6 +132,7 @@ files:
|
|
165
132
|
- lib/mongoid_spacial/spacial/document.rb
|
166
133
|
- lib/mongoid_spacial/spacial/formulas.rb
|
167
134
|
- lib/mongoid_spacial/spacial/geo_near_results.rb
|
135
|
+
- lib/mongoid_spacial/spacial/version.rb
|
168
136
|
- mongoid_spacial.gemspec
|
169
137
|
- spec/config/mongod.conf
|
170
138
|
- spec/config/mongoid.yml
|
@@ -249,9 +217,8 @@ files:
|
|
249
217
|
- spec/unit/mongoid/criterion/within_spacial_spec.rb
|
250
218
|
- spec/unit/mongoid/spacial/formulas_spec.rb
|
251
219
|
- spec/unit/mongoid/spacial_spec.rb
|
252
|
-
homepage:
|
253
|
-
licenses:
|
254
|
-
- MIT
|
220
|
+
homepage: https://github.com/ryanong/mongoid_spacial
|
221
|
+
licenses: []
|
255
222
|
post_install_message:
|
256
223
|
rdoc_options: []
|
257
224
|
require_paths:
|
@@ -262,9 +229,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
262
229
|
- - ! '>='
|
263
230
|
- !ruby/object:Gem::Version
|
264
231
|
version: '0'
|
265
|
-
segments:
|
266
|
-
- 0
|
267
|
-
hash: 3709898765510778631
|
268
232
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
269
233
|
none: false
|
270
234
|
requirements:
|
@@ -278,4 +242,87 @@ signing_key:
|
|
278
242
|
specification_version: 3
|
279
243
|
summary: A Mongoid Extention that simplifies and adds support for MongoDB Geo Spacial
|
280
244
|
Calculations.
|
281
|
-
test_files:
|
245
|
+
test_files:
|
246
|
+
- spec/config/mongod.conf
|
247
|
+
- spec/config/mongoid.yml
|
248
|
+
- spec/functional/mongoid/contexts/mongo_spec.rb
|
249
|
+
- spec/functional/mongoid/criterion/inclusion_spec.rb
|
250
|
+
- spec/functional/mongoid/spacial/geo_near_results_spec.rb
|
251
|
+
- spec/functional/mongoid/spacial_spec.rb
|
252
|
+
- spec/models/account.rb
|
253
|
+
- spec/models/acolyte.rb
|
254
|
+
- spec/models/address.rb
|
255
|
+
- spec/models/address_component.rb
|
256
|
+
- spec/models/agent.rb
|
257
|
+
- spec/models/alert.rb
|
258
|
+
- spec/models/animal.rb
|
259
|
+
- spec/models/answer.rb
|
260
|
+
- spec/models/bar.rb
|
261
|
+
- spec/models/birthday.rb
|
262
|
+
- spec/models/book.rb
|
263
|
+
- spec/models/business.rb
|
264
|
+
- spec/models/callbacks.rb
|
265
|
+
- spec/models/category.rb
|
266
|
+
- spec/models/circus.rb
|
267
|
+
- spec/models/comment.rb
|
268
|
+
- spec/models/country_code.rb
|
269
|
+
- spec/models/description.rb
|
270
|
+
- spec/models/division.rb
|
271
|
+
- spec/models/drug.rb
|
272
|
+
- spec/models/employer.rb
|
273
|
+
- spec/models/entry.rb
|
274
|
+
- spec/models/event.rb
|
275
|
+
- spec/models/favorite.rb
|
276
|
+
- spec/models/fruits.rb
|
277
|
+
- spec/models/game.rb
|
278
|
+
- spec/models/ghost.rb
|
279
|
+
- spec/models/house.rb
|
280
|
+
- spec/models/inheritance.rb
|
281
|
+
- spec/models/league.rb
|
282
|
+
- spec/models/location.rb
|
283
|
+
- spec/models/login.rb
|
284
|
+
- spec/models/membership.rb
|
285
|
+
- spec/models/mixed_drink.rb
|
286
|
+
- spec/models/name.rb
|
287
|
+
- spec/models/namespacing.rb
|
288
|
+
- spec/models/observed.rb
|
289
|
+
- spec/models/override.rb
|
290
|
+
- spec/models/owner.rb
|
291
|
+
- spec/models/page.rb
|
292
|
+
- spec/models/page_question.rb
|
293
|
+
- spec/models/paranoid_post.rb
|
294
|
+
- spec/models/parents.rb
|
295
|
+
- spec/models/patient.rb
|
296
|
+
- spec/models/person.rb
|
297
|
+
- spec/models/pet.rb
|
298
|
+
- spec/models/pet_owner.rb
|
299
|
+
- spec/models/phone.rb
|
300
|
+
- spec/models/player.rb
|
301
|
+
- spec/models/post.rb
|
302
|
+
- spec/models/preference.rb
|
303
|
+
- spec/models/question.rb
|
304
|
+
- spec/models/quiz.rb
|
305
|
+
- spec/models/rating.rb
|
306
|
+
- spec/models/river.rb
|
307
|
+
- spec/models/role.rb
|
308
|
+
- spec/models/service.rb
|
309
|
+
- spec/models/shelf.rb
|
310
|
+
- spec/models/slave_address_numbers.rb
|
311
|
+
- spec/models/survey.rb
|
312
|
+
- spec/models/tag.rb
|
313
|
+
- spec/models/tracking_id_validation_history.rb
|
314
|
+
- spec/models/translation.rb
|
315
|
+
- spec/models/tree.rb
|
316
|
+
- spec/models/user.rb
|
317
|
+
- spec/models/user_account.rb
|
318
|
+
- spec/models/vet_visit.rb
|
319
|
+
- spec/models/video.rb
|
320
|
+
- spec/models/wiki_page.rb
|
321
|
+
- spec/spec_helper.rb
|
322
|
+
- spec/support/authentication.rb
|
323
|
+
- spec/unit/mongoid/criterion/complex_spec.rb
|
324
|
+
- spec/unit/mongoid/criterion/inclusion_spec.rb
|
325
|
+
- spec/unit/mongoid/criterion/near_spacial_spec.rb
|
326
|
+
- spec/unit/mongoid/criterion/within_spacial_spec.rb
|
327
|
+
- spec/unit/mongoid/spacial/formulas_spec.rb
|
328
|
+
- spec/unit/mongoid/spacial_spec.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.2.13
|