on_the_map 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +49 -0
- data/.rvmrc +1 -0
- data/Changelog.md +1 -1
- data/Gemfile +5 -28
- data/Gemfile.lock +85 -117
- data/{LICENSE.txt → LICENSE} +0 -0
- data/Rakefile +1 -49
- data/lib/on_the_map/addressable.rb +1 -0
- data/lib/on_the_map/geo_locatable.rb +3 -3
- data/lib/on_the_map/version.rb +3 -0
- data/on_the_map.gemspec +25 -82
- data/spec/on_the_map/mappable_spec.rb +1 -1
- metadata +54 -109
- data/VERSION +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0aa784c0b321681ed623c6392c258c6966a878cd
|
4
|
+
data.tar.gz: f9ee0fada5a89c6066200083a4a36697bd64a34b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4ed5a00200e1d13004391d50580a64401854e57621d949ccfa331c7ce01d59cac0977bbfe3244242d08d7e41397bdd4c3fd90e23ac7703f4006c52a936b730c4
|
7
|
+
data.tar.gz: efcd4f7eb27a5f11770efead87f3c40118a441293205a72153a2e197f06a8988cf44b30beb99ae4a91c07f7f074a41a32868fe8d899c8f9309ff89b82298686f
|
data/.gitignore
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# rcov generated
|
2
|
+
coverage
|
3
|
+
coverage.data
|
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/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm use 2.0.0
|
data/Changelog.md
CHANGED
data/Gemfile
CHANGED
@@ -1,27 +1,14 @@
|
|
1
|
-
source
|
1
|
+
source 'http://rubygems.org'
|
2
2
|
|
3
|
-
gem
|
4
|
-
|
5
|
-
|
6
|
-
gem 'hashie', '~> 1.2'
|
7
|
-
gem 'concerned', '~> 0.1.3'
|
3
|
+
# gem's dependencies are specified in timepan.gemspec
|
4
|
+
gemspec
|
8
5
|
|
9
6
|
gem "rspec", ">= 2.12.0", group: [:test, :development]
|
10
7
|
|
11
8
|
group :test do
|
12
|
-
gem '
|
13
|
-
gem 'geocoder'
|
14
|
-
gem 'mongoid_geospatial'
|
15
|
-
gem 'mongoid_indexing', '~> 0.1.2'
|
16
|
-
|
17
|
-
gem 'gmaps4rails', '>= 2.0.0.pre', github: 'apneadiving/Google-Maps-for-Rails'
|
18
|
-
# gem 'gmaps-autocomplete-rails'
|
19
|
-
|
20
|
-
# time travel
|
21
|
-
# gem 'timecop', '~> 0.3.5', :git => 'git://github.com/change/timecop.git'
|
22
|
-
gem 'delorean', '~> 1.1.1'
|
9
|
+
gem 'delorean', '>= 1.1.1'
|
23
10
|
|
24
|
-
gem 'cutter', '
|
11
|
+
gem 'cutter', '>= 0.8.2'
|
25
12
|
|
26
13
|
# data store
|
27
14
|
gem 'database_cleaner', '>= 0.8'
|
@@ -34,14 +21,4 @@ group :test do
|
|
34
21
|
|
35
22
|
gem 'shoulda'
|
36
23
|
gem 'shoulda-matchers'
|
37
|
-
|
38
|
-
# http://railsapps.github.com/tutorial-rails-mongoid-devise.html
|
39
|
-
# gem 'mongoid-rspec', '>= 1.7', github: 'evansagge/mongoid-rspec'
|
40
|
-
end
|
41
|
-
|
42
|
-
group :development do
|
43
|
-
gem "rdoc", ">= 3.1"
|
44
|
-
gem "bundler", ">= 1.1.0"
|
45
|
-
gem "jeweler", ">= 1.8.4"
|
46
|
-
gem "simplecov",">= 0.5"
|
47
24
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,79 +1,50 @@
|
|
1
|
-
|
2
|
-
remote:
|
3
|
-
revision: 3ff52deb455e1077c9f60660486fcd38f78e737f
|
1
|
+
PATH
|
2
|
+
remote: .
|
4
3
|
specs:
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
sugar-high (0.7.3)
|
12
|
-
|
13
|
-
GIT
|
14
|
-
remote: git://github.com/mongoid/mongoid.git
|
15
|
-
revision: c2170560124b95c11f03f0753b0b9cc89ff80719
|
16
|
-
specs:
|
17
|
-
mongoid (4.0.0)
|
18
|
-
activemodel (~> 4.0.0.beta)
|
19
|
-
moped (~> 1.4.2)
|
20
|
-
origin (~> 1.0)
|
21
|
-
tzinfo (~> 0.3.22)
|
22
|
-
|
23
|
-
GIT
|
24
|
-
remote: git://github.com/rails/rails.git
|
25
|
-
revision: b359c5db9f0e7dfb2cbf34362a9b310cf5aadd3a
|
26
|
-
specs:
|
27
|
-
actionmailer (4.0.0.beta1)
|
28
|
-
actionpack (= 4.0.0.beta1)
|
29
|
-
mail (~> 2.5.3)
|
30
|
-
actionpack (4.0.0.beta1)
|
31
|
-
activesupport (= 4.0.0.beta1)
|
32
|
-
builder (~> 3.1.0)
|
33
|
-
erubis (~> 2.7.0)
|
34
|
-
rack (~> 1.5.2)
|
35
|
-
rack-test (~> 0.6.2)
|
36
|
-
activemodel (4.0.0.beta1)
|
37
|
-
activesupport (= 4.0.0.beta1)
|
38
|
-
builder (~> 3.1.0)
|
39
|
-
activerecord (4.0.0.beta1)
|
40
|
-
activemodel (= 4.0.0.beta1)
|
41
|
-
activerecord-deprecated_finders (~> 0.0.3)
|
42
|
-
activesupport (= 4.0.0.beta1)
|
43
|
-
arel (~> 4.0.0.beta1)
|
44
|
-
activesupport (4.0.0.beta1)
|
45
|
-
i18n (~> 0.6, >= 0.6.4)
|
46
|
-
minitest (~> 4.2)
|
47
|
-
multi_json (~> 1.3)
|
48
|
-
thread_safe (~> 0.1)
|
49
|
-
tzinfo (~> 0.3.33)
|
50
|
-
rails (4.0.0.beta1)
|
51
|
-
actionmailer (= 4.0.0.beta1)
|
52
|
-
actionpack (= 4.0.0.beta1)
|
53
|
-
activerecord (= 4.0.0.beta1)
|
54
|
-
activesupport (= 4.0.0.beta1)
|
55
|
-
bundler (>= 1.3.0, < 2.0)
|
56
|
-
railties (= 4.0.0.beta1)
|
57
|
-
sprockets-rails (~> 2.0.0.rc3)
|
58
|
-
railties (4.0.0.beta1)
|
59
|
-
actionpack (= 4.0.0.beta1)
|
60
|
-
activesupport (= 4.0.0.beta1)
|
61
|
-
rake (>= 0.8.7)
|
62
|
-
rdoc (~> 3.4)
|
63
|
-
thor (>= 0.17.0, < 2.0)
|
4
|
+
on_the_map (0.1.3)
|
5
|
+
concerned (>= 0.1.5)
|
6
|
+
hashie (>= 2.0)
|
7
|
+
mongoid (>= 3.1)
|
8
|
+
rails (>= 3.2)
|
9
|
+
sugar-high (~> 0.7.3)
|
64
10
|
|
65
11
|
GEM
|
66
12
|
remote: http://rubygems.org/
|
67
13
|
specs:
|
68
|
-
|
69
|
-
|
70
|
-
|
14
|
+
actionmailer (3.2.13)
|
15
|
+
actionpack (= 3.2.13)
|
16
|
+
mail (~> 2.5.3)
|
17
|
+
actionpack (3.2.13)
|
18
|
+
activemodel (= 3.2.13)
|
19
|
+
activesupport (= 3.2.13)
|
20
|
+
builder (~> 3.0.0)
|
21
|
+
erubis (~> 2.7.0)
|
22
|
+
journey (~> 1.0.4)
|
23
|
+
rack (~> 1.4.5)
|
24
|
+
rack-cache (~> 1.2)
|
25
|
+
rack-test (~> 0.6.1)
|
26
|
+
sprockets (~> 2.2.1)
|
27
|
+
activemodel (3.2.13)
|
28
|
+
activesupport (= 3.2.13)
|
29
|
+
builder (~> 3.0.0)
|
30
|
+
activerecord (3.2.13)
|
31
|
+
activemodel (= 3.2.13)
|
32
|
+
activesupport (= 3.2.13)
|
33
|
+
arel (~> 3.0.2)
|
34
|
+
tzinfo (~> 0.3.29)
|
35
|
+
activeresource (3.2.13)
|
36
|
+
activemodel (= 3.2.13)
|
37
|
+
activesupport (= 3.2.13)
|
38
|
+
activesupport (3.2.13)
|
39
|
+
i18n (= 0.6.1)
|
40
|
+
multi_json (~> 1.0)
|
41
|
+
arel (3.0.2)
|
71
42
|
bourne (1.1.2)
|
72
43
|
mocha (= 0.10.5)
|
73
|
-
builder (3.
|
44
|
+
builder (3.0.4)
|
74
45
|
chronic (0.9.1)
|
75
46
|
colorize (0.5.8)
|
76
|
-
concerned (0.1.
|
47
|
+
concerned (0.1.6)
|
77
48
|
cutter (0.8.9)
|
78
49
|
colorize (>= 0.5)
|
79
50
|
database_cleaner (0.9.1)
|
@@ -85,41 +56,51 @@ GEM
|
|
85
56
|
activesupport (>= 3.0.0)
|
86
57
|
fakeweb (1.3.0)
|
87
58
|
ffaker (1.15.0)
|
88
|
-
|
89
|
-
git (1.2.5)
|
90
|
-
hashie (1.2.0)
|
59
|
+
hashie (2.0.3)
|
91
60
|
hike (1.2.1)
|
92
|
-
i18n (0.6.
|
93
|
-
|
94
|
-
bundler (~> 1.0)
|
95
|
-
git (>= 1.2.5)
|
96
|
-
rake
|
97
|
-
rdoc
|
61
|
+
i18n (0.6.1)
|
62
|
+
journey (1.0.4)
|
98
63
|
json (1.7.7)
|
99
64
|
mail (2.5.3)
|
100
65
|
i18n (>= 0.4.0)
|
101
66
|
mime-types (~> 1.16)
|
102
67
|
treetop (~> 1.4.8)
|
103
68
|
metaclass (0.0.1)
|
104
|
-
mime-types (1.
|
105
|
-
minitest (4.6.2)
|
69
|
+
mime-types (1.22)
|
106
70
|
mocha (0.10.5)
|
107
71
|
metaclass (~> 0.0.1)
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
rails (>= 3.1)
|
115
|
-
moped (1.4.3)
|
72
|
+
mongoid (3.1.2)
|
73
|
+
activemodel (~> 3.2)
|
74
|
+
moped (~> 1.4.2)
|
75
|
+
origin (~> 1.0)
|
76
|
+
tzinfo (~> 0.3.22)
|
77
|
+
moped (1.4.5)
|
116
78
|
multi_json (1.6.1)
|
117
79
|
origin (1.0.11)
|
118
80
|
polyglot (0.3.3)
|
119
|
-
rack (1.5
|
81
|
+
rack (1.4.5)
|
82
|
+
rack-cache (1.2)
|
83
|
+
rack (>= 0.4)
|
84
|
+
rack-ssl (1.3.3)
|
85
|
+
rack
|
120
86
|
rack-test (0.6.2)
|
121
87
|
rack (>= 1.0)
|
122
|
-
|
88
|
+
rails (3.2.13)
|
89
|
+
actionmailer (= 3.2.13)
|
90
|
+
actionpack (= 3.2.13)
|
91
|
+
activerecord (= 3.2.13)
|
92
|
+
activeresource (= 3.2.13)
|
93
|
+
activesupport (= 3.2.13)
|
94
|
+
bundler (~> 1.0)
|
95
|
+
railties (= 3.2.13)
|
96
|
+
railties (3.2.13)
|
97
|
+
actionpack (= 3.2.13)
|
98
|
+
activesupport (= 3.2.13)
|
99
|
+
rack-ssl (~> 1.3.2)
|
100
|
+
rake (>= 0.8.7)
|
101
|
+
rdoc (~> 3.4)
|
102
|
+
thor (>= 0.14.6, < 2.0)
|
103
|
+
rake (10.0.4)
|
123
104
|
rdoc (3.12.2)
|
124
105
|
json (~> 1.4)
|
125
106
|
rspec (2.13.0)
|
@@ -130,6 +111,13 @@ GEM
|
|
130
111
|
rspec-expectations (2.13.0)
|
131
112
|
diff-lcs (>= 1.1.3, < 2.0)
|
132
113
|
rspec-mocks (2.13.0)
|
114
|
+
rspec-rails (2.13.0)
|
115
|
+
actionpack (>= 3.0)
|
116
|
+
activesupport (>= 3.0)
|
117
|
+
railties (>= 3.0)
|
118
|
+
rspec-core (~> 2.13.0)
|
119
|
+
rspec-expectations (~> 2.13.0)
|
120
|
+
rspec-mocks (~> 2.13.0)
|
133
121
|
shoulda (3.3.2)
|
134
122
|
shoulda-context (~> 1.0.1)
|
135
123
|
shoulda-matchers (~> 1.4.1)
|
@@ -137,51 +125,31 @@ GEM
|
|
137
125
|
shoulda-matchers (1.4.2)
|
138
126
|
activesupport (>= 3.0.0)
|
139
127
|
bourne (~> 1.1.2)
|
140
|
-
|
141
|
-
multi_json (~> 1.0)
|
142
|
-
simplecov-html (~> 0.7.1)
|
143
|
-
simplecov-html (0.7.1)
|
144
|
-
sprockets (2.9.0)
|
128
|
+
sprockets (2.2.2)
|
145
129
|
hike (~> 1.2)
|
146
130
|
multi_json (~> 1.0)
|
147
131
|
rack (~> 1.0)
|
148
132
|
tilt (~> 1.1, != 1.3.0)
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
sprockets (~> 2.8)
|
153
|
-
thor (0.17.0)
|
154
|
-
thread_safe (0.1.0)
|
155
|
-
atomic
|
156
|
-
tilt (1.3.4)
|
133
|
+
sugar-high (0.7.3)
|
134
|
+
thor (0.18.1)
|
135
|
+
tilt (1.3.6)
|
157
136
|
treetop (1.4.12)
|
158
137
|
polyglot
|
159
138
|
polyglot (>= 0.3.1)
|
160
|
-
tzinfo (0.3.
|
139
|
+
tzinfo (0.3.37)
|
161
140
|
|
162
141
|
PLATFORMS
|
163
142
|
ruby
|
164
143
|
|
165
144
|
DEPENDENCIES
|
166
|
-
|
167
|
-
concerned (~> 0.1.3)
|
168
|
-
cutter (~> 0.8.2)
|
145
|
+
cutter (>= 0.8.2)
|
169
146
|
database_cleaner (>= 0.8)
|
170
|
-
delorean (
|
147
|
+
delorean (>= 1.1.1)
|
171
148
|
factory_girl
|
172
149
|
fakeweb
|
173
150
|
ffaker (>= 1.14)
|
174
|
-
|
175
|
-
gmaps4rails (>= 2.0.0.pre)!
|
176
|
-
hashie (~> 1.2)
|
177
|
-
jeweler (>= 1.8.4)
|
178
|
-
mongoid (>= 4)!
|
179
|
-
mongoid_geospatial
|
180
|
-
mongoid_indexing (~> 0.1.2)
|
181
|
-
rails (>= 4.0.0.beta1)!
|
182
|
-
rdoc (>= 3.1)
|
151
|
+
on_the_map!
|
183
152
|
rspec (>= 2.12.0)
|
153
|
+
rspec-rails (>= 2.12)
|
184
154
|
shoulda
|
185
155
|
shoulda-matchers
|
186
|
-
simplecov (>= 0.5)
|
187
|
-
sugar-high (~> 0.7.3)!
|
data/{LICENSE.txt → LICENSE}
RENAMED
File without changes
|
data/Rakefile
CHANGED
@@ -1,49 +1 @@
|
|
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 = "on_the_map"
|
18
|
-
gem.homepage = "http://github.com/kristianmandrup/on_the_map"
|
19
|
-
gem.license = "MIT"
|
20
|
-
gem.summary = %Q{Pre-baked Mongoid concerns to put models on the map}
|
21
|
-
gem.description = %Q{Makes it easy to add functionality to models related to geocoding, addressing and placing them as pins on a map}
|
22
|
-
gem.email = "kmandrup@gmail.com"
|
23
|
-
gem.authors = ["Kristian Mandrup"]
|
24
|
-
# dependencies defined in Gemfile
|
25
|
-
end
|
26
|
-
Jeweler::RubygemsDotOrgTasks.new
|
27
|
-
|
28
|
-
require 'rspec/core'
|
29
|
-
require 'rspec/core/rake_task'
|
30
|
-
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
|
-
spec.pattern = FileList['spec/**/*_spec.rb']
|
32
|
-
end
|
33
|
-
|
34
|
-
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
35
|
-
spec.pattern = 'spec/**/*_spec.rb'
|
36
|
-
spec.rcov = true
|
37
|
-
end
|
38
|
-
|
39
|
-
task :default => :spec
|
40
|
-
|
41
|
-
require 'rdoc/task'
|
42
|
-
Rake::RDocTask.new do |rdoc|
|
43
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
44
|
-
|
45
|
-
rdoc.rdoc_dir = 'rdoc'
|
46
|
-
rdoc.title = "on_the_map #{version}"
|
47
|
-
rdoc.rdoc_files.include('README*')
|
48
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
49
|
-
end
|
1
|
+
require "bundler/gem_tasks"
|
@@ -19,10 +19,10 @@ module OnTheMap
|
|
19
19
|
geocoded_by :full_address, coordinates: :position, skip_index: true do |obj,results|
|
20
20
|
if geo = results.first
|
21
21
|
if geo.latitude && geo.longitude
|
22
|
-
obj.
|
22
|
+
obj.geocoding_started!
|
23
23
|
|
24
24
|
Address.geo_address_fields.each do |fname|
|
25
|
-
geo_value = geo.send
|
25
|
+
geo_value = geo.send fname
|
26
26
|
obj.send("#{fname}=", geo_value) unless geo_value.blank?
|
27
27
|
end
|
28
28
|
|
@@ -35,7 +35,7 @@ module OnTheMap
|
|
35
35
|
# obj.gmaps = true
|
36
36
|
# end
|
37
37
|
|
38
|
-
obj.
|
38
|
+
obj.geocoding_done!
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
data/on_the_map.gemspec
CHANGED
@@ -1,88 +1,31 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'on_the_map/version'
|
5
5
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "on_the_map"
|
8
|
+
spec.version = OnTheMap::VERSION
|
9
|
+
spec.authors = ["Kristian Mandrup"]
|
10
|
+
spec.date = "2013-03-13"
|
11
|
+
spec.summary = "Add map, address and geocoding functionality to your Mongoid models"
|
12
|
+
spec.description = "Makes it easy to add functionality to models related to geocoding, addressing and placing them as pins on a map"
|
13
|
+
spec.email = "kmandrup@gmail.com"
|
14
|
+
spec.license = "MIT"
|
9
15
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
s.email = "kmandrup@gmail.com"
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE.txt",
|
17
|
-
"README.md"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
".rspec",
|
22
|
-
"Changelog.md",
|
23
|
-
"Gemfile",
|
24
|
-
"Gemfile.lock",
|
25
|
-
"LICENSE.txt",
|
26
|
-
"README.md",
|
27
|
-
"Rakefile",
|
28
|
-
"VERSION",
|
29
|
-
"lib/address.rb",
|
30
|
-
"lib/on_the_map.rb",
|
31
|
-
"lib/on_the_map/addressable.rb",
|
32
|
-
"lib/on_the_map/geo_locatable.rb",
|
33
|
-
"lib/on_the_map/mappable.rb",
|
34
|
-
"lib/on_the_map/positionable.rb",
|
35
|
-
"on_the_map.gemspec",
|
36
|
-
"spec/address_spec.rb",
|
37
|
-
"spec/on_the_map/addressable_spec.rb",
|
38
|
-
"spec/on_the_map/geo_locatable_spec.rb",
|
39
|
-
"spec/on_the_map/geo_locatable_valid_spec.rb",
|
40
|
-
"spec/on_the_map/mappable_spec.rb",
|
41
|
-
"spec/on_the_map/positionable_spec.rb",
|
42
|
-
"spec/on_the_map_spec.rb",
|
43
|
-
"spec/spec_helper.rb",
|
44
|
-
"spec/support/gmaps_lookup_stubs.rb"
|
45
|
-
]
|
46
|
-
s.homepage = "http://github.com/kristianmandrup/on_the_map"
|
47
|
-
s.licenses = ["MIT"]
|
48
|
-
s.require_paths = ["lib"]
|
49
|
-
s.rubygems_version = "1.8.25"
|
50
|
-
s.summary = "Pre-baked Mongoid concerns to put models on the map"
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
51
20
|
|
52
|
-
|
53
|
-
s.specification_version = 3
|
21
|
+
spec.add_dependency 'rails', '>= 3.2'
|
54
22
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
s.add_development_dependency(%q<bundler>, [">= 1.1.0"])
|
63
|
-
s.add_development_dependency(%q<jeweler>, [">= 1.8.4"])
|
64
|
-
s.add_development_dependency(%q<simplecov>, [">= 0.5"])
|
65
|
-
else
|
66
|
-
s.add_dependency(%q<mongoid>, [">= 4"])
|
67
|
-
s.add_dependency(%q<sugar-high>, ["~> 0.7.3"])
|
68
|
-
s.add_dependency(%q<hashie>, ["~> 1.2"])
|
69
|
-
s.add_dependency(%q<concerned>, ["~> 0.1.3"])
|
70
|
-
s.add_dependency(%q<rspec>, [">= 2.12.0"])
|
71
|
-
s.add_dependency(%q<rdoc>, [">= 3.1"])
|
72
|
-
s.add_dependency(%q<bundler>, [">= 1.1.0"])
|
73
|
-
s.add_dependency(%q<jeweler>, [">= 1.8.4"])
|
74
|
-
s.add_dependency(%q<simplecov>, [">= 0.5"])
|
75
|
-
end
|
76
|
-
else
|
77
|
-
s.add_dependency(%q<mongoid>, [">= 4"])
|
78
|
-
s.add_dependency(%q<sugar-high>, ["~> 0.7.3"])
|
79
|
-
s.add_dependency(%q<hashie>, ["~> 1.2"])
|
80
|
-
s.add_dependency(%q<concerned>, ["~> 0.1.3"])
|
81
|
-
s.add_dependency(%q<rspec>, [">= 2.12.0"])
|
82
|
-
s.add_dependency(%q<rdoc>, [">= 3.1"])
|
83
|
-
s.add_dependency(%q<bundler>, [">= 1.1.0"])
|
84
|
-
s.add_dependency(%q<jeweler>, [">= 1.8.4"])
|
85
|
-
s.add_dependency(%q<simplecov>, [">= 0.5"])
|
86
|
-
end
|
23
|
+
spec.add_dependency 'mongoid', '>= 3.1'
|
24
|
+
|
25
|
+
spec.add_dependency 'sugar-high', '~> 0.7.3'
|
26
|
+
spec.add_dependency 'hashie', '>= 2.0'
|
27
|
+
spec.add_dependency 'concerned', '>= 0.1.5'
|
28
|
+
|
29
|
+
spec.add_development_dependency 'rspec-rails', '>= 2.12'
|
87
30
|
end
|
88
31
|
|
metadata
CHANGED
@@ -1,184 +1,123 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: on_the_map
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Kristian Mandrup
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-13 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
14
|
+
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
19
|
+
version: '3.2'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
26
|
+
version: '3.2'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
28
|
+
name: mongoid
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
33
|
+
version: '3.1'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
40
|
+
version: '3.1'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
42
|
+
name: sugar-high
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
47
|
+
version: 0.7.3
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
54
|
+
version: 0.7.3
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
56
|
+
name: hashie
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - '>='
|
68
60
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0
|
61
|
+
version: '2.0'
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - '>='
|
76
67
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0
|
68
|
+
version: '2.0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ! '>='
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: 2.12.0
|
86
|
-
type: :development
|
87
|
-
prerelease: false
|
88
|
-
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - ! '>='
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: 2.12.0
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: rdoc
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ! '>='
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '3.1'
|
102
|
-
type: :development
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ! '>='
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '3.1'
|
110
|
-
- !ruby/object:Gem::Dependency
|
111
|
-
name: bundler
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
|
-
requirements:
|
115
|
-
- - ! '>='
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 1.1.0
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
|
-
requirements:
|
123
|
-
- - ! '>='
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: 1.1.0
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: jeweler
|
70
|
+
name: concerned
|
128
71
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
72
|
requirements:
|
131
|
-
- -
|
73
|
+
- - '>='
|
132
74
|
- !ruby/object:Gem::Version
|
133
|
-
version: 1.
|
134
|
-
type: :
|
75
|
+
version: 0.1.5
|
76
|
+
type: :runtime
|
135
77
|
prerelease: false
|
136
78
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
79
|
requirements:
|
139
|
-
- -
|
80
|
+
- - '>='
|
140
81
|
- !ruby/object:Gem::Version
|
141
|
-
version: 1.
|
82
|
+
version: 0.1.5
|
142
83
|
- !ruby/object:Gem::Dependency
|
143
|
-
name:
|
84
|
+
name: rspec-rails
|
144
85
|
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
86
|
requirements:
|
147
|
-
- -
|
87
|
+
- - '>='
|
148
88
|
- !ruby/object:Gem::Version
|
149
|
-
version: '
|
89
|
+
version: '2.12'
|
150
90
|
type: :development
|
151
91
|
prerelease: false
|
152
92
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
93
|
requirements:
|
155
|
-
- -
|
94
|
+
- - '>='
|
156
95
|
- !ruby/object:Gem::Version
|
157
|
-
version: '
|
96
|
+
version: '2.12'
|
158
97
|
description: Makes it easy to add functionality to models related to geocoding, addressing
|
159
98
|
and placing them as pins on a map
|
160
99
|
email: kmandrup@gmail.com
|
161
100
|
executables: []
|
162
101
|
extensions: []
|
163
|
-
extra_rdoc_files:
|
164
|
-
- LICENSE.txt
|
165
|
-
- README.md
|
102
|
+
extra_rdoc_files: []
|
166
103
|
files:
|
167
104
|
- .document
|
105
|
+
- .gitignore
|
168
106
|
- .rspec
|
107
|
+
- .rvmrc
|
169
108
|
- Changelog.md
|
170
109
|
- Gemfile
|
171
110
|
- Gemfile.lock
|
172
|
-
- LICENSE
|
111
|
+
- LICENSE
|
173
112
|
- README.md
|
174
113
|
- Rakefile
|
175
|
-
- VERSION
|
176
114
|
- lib/address.rb
|
177
115
|
- lib/on_the_map.rb
|
178
116
|
- lib/on_the_map/addressable.rb
|
179
117
|
- lib/on_the_map/geo_locatable.rb
|
180
118
|
- lib/on_the_map/mappable.rb
|
181
119
|
- lib/on_the_map/positionable.rb
|
120
|
+
- lib/on_the_map/version.rb
|
182
121
|
- on_the_map.gemspec
|
183
122
|
- spec/address_spec.rb
|
184
123
|
- spec/on_the_map/addressable_spec.rb
|
@@ -189,32 +128,38 @@ files:
|
|
189
128
|
- spec/on_the_map_spec.rb
|
190
129
|
- spec/spec_helper.rb
|
191
130
|
- spec/support/gmaps_lookup_stubs.rb
|
192
|
-
homepage:
|
131
|
+
homepage:
|
193
132
|
licenses:
|
194
133
|
- MIT
|
134
|
+
metadata: {}
|
195
135
|
post_install_message:
|
196
136
|
rdoc_options: []
|
197
137
|
require_paths:
|
198
138
|
- lib
|
199
139
|
required_ruby_version: !ruby/object:Gem::Requirement
|
200
|
-
none: false
|
201
140
|
requirements:
|
202
|
-
- -
|
141
|
+
- - '>='
|
203
142
|
- !ruby/object:Gem::Version
|
204
143
|
version: '0'
|
205
|
-
segments:
|
206
|
-
- 0
|
207
|
-
hash: -3810047604221837472
|
208
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
|
-
none: false
|
210
145
|
requirements:
|
211
|
-
- -
|
146
|
+
- - '>='
|
212
147
|
- !ruby/object:Gem::Version
|
213
148
|
version: '0'
|
214
149
|
requirements: []
|
215
150
|
rubyforge_project:
|
216
|
-
rubygems_version:
|
151
|
+
rubygems_version: 2.0.0
|
217
152
|
signing_key:
|
218
|
-
specification_version:
|
219
|
-
summary:
|
220
|
-
test_files:
|
153
|
+
specification_version: 4
|
154
|
+
summary: Add map, address and geocoding functionality to your Mongoid models
|
155
|
+
test_files:
|
156
|
+
- spec/address_spec.rb
|
157
|
+
- spec/on_the_map/addressable_spec.rb
|
158
|
+
- spec/on_the_map/geo_locatable_spec.rb
|
159
|
+
- spec/on_the_map/geo_locatable_valid_spec.rb
|
160
|
+
- spec/on_the_map/mappable_spec.rb
|
161
|
+
- spec/on_the_map/positionable_spec.rb
|
162
|
+
- spec/on_the_map_spec.rb
|
163
|
+
- spec/spec_helper.rb
|
164
|
+
- spec/support/gmaps_lookup_stubs.rb
|
165
|
+
has_rdoc:
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.1.1
|