campfire_logic 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -8
- data/Gemfile.local +3 -7
- data/README.rdoc +2 -2
- data/Rakefile +3 -9
- data/VERSION +1 -1
- data/app/views/layouts/application.html.erb +0 -1
- data/campfire_logic.gemspec +16 -38
- data/config/application.rb +2 -35
- data/config/boot.rb +1 -3
- data/config/cucumber.yml +1 -1
- data/config/environment.rb +1 -4
- data/config/environments/test.rb +1 -26
- data/config/initializers/campfire_logic.rb +1 -1
- data/config/initializers/metric_fu.rb +3 -3
- data/config/initializers/secret_token.rb +1 -7
- data/config/initializers/session_store.rb +1 -8
- data/config/mongoid.yml +1 -20
- data/config/routes.rb +8 -62
- data/config.ru +1 -3
- data/db/seeds.rb +1 -2
- data/features/support/env.rb +37 -17
- data/lib/tasks/cucumber.rake +13 -19
- data/spec/controllers/directory_controller_spec.rb +1 -1
- data/spec/controllers/services_controller_spec.rb +1 -3
- data/spec/models/locale_spec.rb +1 -1
- data/spec/models/location_import_spec.rb +1 -1
- data/spec/models/location_spec.rb +1 -1
- metadata +16 -47
- data/Capfile +0 -4
- data/app/models/google_maps_geocoder.rb +0 -108
- data/config/deploy.rb +0 -40
- data/config/environments/development.rb +0 -28
- data/config/environments/production.rb +0 -49
- data/doc/google_maps_response.rb +0 -56
- data/init.rb +0 -1
- data/public/404.html +0 -26
- data/public/422.html +0 -26
- data/public/500.html +0 -26
- data/public/favicon.ico +0 -0
- data/public/javascripts/application.js +0 -2
- data/public/javascripts/controls.js +0 -965
- data/public/javascripts/dragdrop.js +0 -974
- data/public/javascripts/effects.js +0 -1123
- data/public/javascripts/prototype.js +0 -6001
- data/public/javascripts/rails.js +0 -175
- data/public/robots.txt +0 -6
- data/spec/models/google_maps_geocoder_spec.rb +0 -62
data/lib/tasks/cucumber.rake
CHANGED
@@ -1,22 +1,8 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
#
|
4
|
-
#
|
5
|
-
#
|
6
|
-
#
|
7
|
-
# If you use these step definitions as basis for your features you will quickly end up
|
8
|
-
# with features that are:
|
9
|
-
#
|
10
|
-
# * Hard to maintain
|
11
|
-
# * Verbose to read
|
12
|
-
#
|
13
|
-
# A much better approach is to write your own higher level step definitions, following
|
14
|
-
# the advice in the following blog posts:
|
15
|
-
#
|
16
|
-
# * http://benmabey.com/2008/05/19/imperative-vs-declarative-scenarios-in-user-stories.html
|
17
|
-
# * http://dannorth.net/2011/01/31/whose-domain-is-it-anyway/
|
18
|
-
# * http://elabs.se/blog/15-you-re-cuking-it-wrong
|
19
|
-
#
|
1
|
+
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
|
2
|
+
# It is recommended to regenerate this file in the future when you upgrade to a
|
3
|
+
# newer version of cucumber-rails. Consider adding your own code to a new file
|
4
|
+
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
|
5
|
+
# files.
|
20
6
|
|
21
7
|
|
22
8
|
unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:* tasks
|
@@ -48,6 +34,12 @@ begin
|
|
48
34
|
|
49
35
|
desc 'Run all features'
|
50
36
|
task :all => [:ok, :wip]
|
37
|
+
|
38
|
+
task :statsetup do
|
39
|
+
require 'rails/code_statistics'
|
40
|
+
::STATS_DIRECTORIES << %w(Cucumber\ features features) if File.exist?('features')
|
41
|
+
::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features')
|
42
|
+
end
|
51
43
|
end
|
52
44
|
desc 'Alias for cucumber:ok'
|
53
45
|
task :cucumber => 'cucumber:ok'
|
@@ -61,6 +53,8 @@ begin
|
|
61
53
|
# In case we don't have ActiveRecord, append a no-op task that we can depend upon.
|
62
54
|
task 'db:test:prepare' do
|
63
55
|
end
|
56
|
+
|
57
|
+
task :stats => 'cucumber:statsetup'
|
64
58
|
rescue LoadError
|
65
59
|
desc 'cucumber rake task not available (cucumber not installed)'
|
66
60
|
task :cucumber do
|
data/spec/models/locale_spec.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: campfire_logic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 8
|
10
|
+
version: 1.1.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Roderick Monje
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-11-30 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bson_ext
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
type: :runtime
|
47
47
|
version_requirements: *id002
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
|
-
name:
|
49
|
+
name: google_maps_geocoder
|
50
50
|
prerelease: false
|
51
51
|
requirement: &id003 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
type: :runtime
|
61
61
|
version_requirements: *id003
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
63
|
+
name: mongoid-tree
|
64
64
|
prerelease: false
|
65
65
|
requirement: &id004 !ruby/object:Gem::Requirement
|
66
66
|
none: false
|
@@ -79,13 +79,14 @@ dependencies:
|
|
79
79
|
requirement: &id005 !ruby/object:Gem::Requirement
|
80
80
|
none: false
|
81
81
|
requirements:
|
82
|
-
- - "
|
82
|
+
- - "="
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
hash:
|
84
|
+
hash: 19
|
85
85
|
segments:
|
86
86
|
- 3
|
87
87
|
- 0
|
88
|
-
|
88
|
+
- 10
|
89
|
+
version: 3.0.10
|
89
90
|
type: :runtime
|
90
91
|
version_requirements: *id005
|
91
92
|
- !ruby/object:Gem::Dependency
|
@@ -130,24 +131,10 @@ dependencies:
|
|
130
131
|
version: "0"
|
131
132
|
type: :runtime
|
132
133
|
version_requirements: *id008
|
133
|
-
- !ruby/object:Gem::Dependency
|
134
|
-
name: SystemTimer
|
135
|
-
prerelease: false
|
136
|
-
requirement: &id009 !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
|
-
requirements:
|
139
|
-
- - ">="
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
hash: 3
|
142
|
-
segments:
|
143
|
-
- 0
|
144
|
-
version: "0"
|
145
|
-
type: :runtime
|
146
|
-
version_requirements: *id009
|
147
134
|
- !ruby/object:Gem::Dependency
|
148
135
|
name: jeweler
|
149
136
|
prerelease: false
|
150
|
-
requirement: &
|
137
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
151
138
|
none: false
|
152
139
|
requirements:
|
153
140
|
- - ">="
|
@@ -157,11 +144,11 @@ dependencies:
|
|
157
144
|
- 0
|
158
145
|
version: "0"
|
159
146
|
type: :development
|
160
|
-
version_requirements: *
|
147
|
+
version_requirements: *id009
|
161
148
|
- !ruby/object:Gem::Dependency
|
162
149
|
name: rspec
|
163
150
|
prerelease: false
|
164
|
-
requirement: &
|
151
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
165
152
|
none: false
|
166
153
|
requirements:
|
167
154
|
- - ">="
|
@@ -173,7 +160,7 @@ dependencies:
|
|
173
160
|
- 9
|
174
161
|
version: 1.2.9
|
175
162
|
type: :development
|
176
|
-
version_requirements: *
|
163
|
+
version_requirements: *id010
|
177
164
|
description: Users can browse locations by country, city, and state and search locations by string or zip code. Administrators can manage locations and the services they offer.
|
178
165
|
email: rod@seologic.com
|
179
166
|
executables: []
|
@@ -183,7 +170,6 @@ extensions: []
|
|
183
170
|
extra_rdoc_files:
|
184
171
|
- README.rdoc
|
185
172
|
files:
|
186
|
-
- Capfile
|
187
173
|
- Gemfile
|
188
174
|
- Gemfile.local
|
189
175
|
- README.rdoc
|
@@ -194,7 +180,6 @@ files:
|
|
194
180
|
- app/controllers/locations_controller.rb
|
195
181
|
- app/controllers/services_controller.rb
|
196
182
|
- app/helpers/application_helper.rb
|
197
|
-
- app/models/google_maps_geocoder.rb
|
198
183
|
- app/models/locale.rb
|
199
184
|
- app/models/location.rb
|
200
185
|
- app/models/location_import.rb
|
@@ -228,10 +213,7 @@ files:
|
|
228
213
|
- config/application.rb
|
229
214
|
- config/boot.rb
|
230
215
|
- config/cucumber.yml
|
231
|
-
- config/deploy.rb
|
232
216
|
- config/environment.rb
|
233
|
-
- config/environments/development.rb
|
234
|
-
- config/environments/production.rb
|
235
217
|
- config/environments/test.rb
|
236
218
|
- config/initializers/campfire_logic.rb
|
237
219
|
- config/initializers/metric_fu.rb
|
@@ -242,7 +224,6 @@ files:
|
|
242
224
|
- config/routes.rb
|
243
225
|
- db/seeds.rb
|
244
226
|
- db/zip_codes.txt
|
245
|
-
- doc/google_maps_response.rb
|
246
227
|
- features/admin_manages_locations.feature
|
247
228
|
- features/customer_browses_directory.feature
|
248
229
|
- features/customer_searches_directory.feature
|
@@ -252,16 +233,11 @@ files:
|
|
252
233
|
- features/support/env.rb
|
253
234
|
- features/support/paths.rb
|
254
235
|
- features/support/selectors.rb
|
255
|
-
- init.rb
|
256
236
|
- lib/campfire_logic.rb
|
257
237
|
- lib/campfire_logic/engine.rb
|
258
238
|
- lib/campfire_logic/railtie.rb
|
259
239
|
- lib/tasks/campfire_logic.rake
|
260
240
|
- lib/tasks/cucumber.rake
|
261
|
-
- public/404.html
|
262
|
-
- public/422.html
|
263
|
-
- public/500.html
|
264
|
-
- public/favicon.ico
|
265
241
|
- public/images/icons/collapsed.gif
|
266
242
|
- public/images/icons/delete.png
|
267
243
|
- public/images/icons/drag.png
|
@@ -300,13 +276,6 @@ files:
|
|
300
276
|
- public/images/layout/th_bg_selected.png
|
301
277
|
- public/images/rails.png
|
302
278
|
- public/index.html
|
303
|
-
- public/javascripts/application.js
|
304
|
-
- public/javascripts/controls.js
|
305
|
-
- public/javascripts/dragdrop.js
|
306
|
-
- public/javascripts/effects.js
|
307
|
-
- public/javascripts/prototype.js
|
308
|
-
- public/javascripts/rails.js
|
309
|
-
- public/robots.txt
|
310
279
|
- public/sample-locations.xls
|
311
280
|
- public/stylesheets/.gitkeep
|
312
281
|
- public/stylesheets/application.css
|
@@ -317,7 +286,6 @@ files:
|
|
317
286
|
- script/rails
|
318
287
|
- spec/controllers/directory_controller_spec.rb
|
319
288
|
- spec/controllers/services_controller_spec.rb
|
320
|
-
- spec/models/google_maps_geocoder_spec.rb
|
321
289
|
- spec/models/locale_spec.rb
|
322
290
|
- spec/models/location_import_spec.rb
|
323
291
|
- spec/models/location_spec.rb
|
@@ -353,9 +321,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
353
321
|
requirements: []
|
354
322
|
|
355
323
|
rubyforge_project:
|
356
|
-
rubygems_version: 1.8.
|
324
|
+
rubygems_version: 1.8.10
|
357
325
|
signing_key:
|
358
326
|
specification_version: 3
|
359
327
|
summary: Rails engine that adds a location directory to your web app
|
360
328
|
test_files: []
|
361
329
|
|
330
|
+
has_rdoc:
|
data/Capfile
DELETED
@@ -1,108 +0,0 @@
|
|
1
|
-
require 'net/http'
|
2
|
-
|
3
|
-
class GoogleMapsGeocoder
|
4
|
-
# Returns the complete formatted address with standardized abbreviations.
|
5
|
-
attr_reader :formatted_address
|
6
|
-
# Returns the formatted street address with standardized abbreviations.
|
7
|
-
attr_reader :formatted_street_address
|
8
|
-
# Self-explanatory
|
9
|
-
attr_reader :city, :country_long_name, :country_short_name, :county, :lat, :lng, :postal_code, :state_long_name, :state_short_name
|
10
|
-
|
11
|
-
# Instance Methods: Overrides ====================================================================
|
12
|
-
|
13
|
-
# Geocodes the specified address and wraps the results in a geocoder object.
|
14
|
-
#
|
15
|
-
# ==== Attributes
|
16
|
-
#
|
17
|
-
# * +address+ - a geocodable address
|
18
|
-
#
|
19
|
-
# ==== Examples
|
20
|
-
#
|
21
|
-
# white_house = GoogleMapsGeocoder.new('1600 Pennsylvania Washington')
|
22
|
-
# white_house.formatted_address
|
23
|
-
# => "1600 Pennsylvania Ave NW, Washington D.C., DC 20500, USA"
|
24
|
-
def initialize(address)
|
25
|
-
response = Net::HTTP.get_response(URI.parse("http://maps.googleapis.com/maps/api/geocode/json?address=#{Rack::Utils.escape(address)}&sensor=false"))
|
26
|
-
@json = ActiveSupport::JSON.decode(response.body)
|
27
|
-
raise "Geocoding \"#{address}\" exceeded query limit! Google returned...\n#{@json.inspect}" if @json.blank? || @json['status'] != 'OK'
|
28
|
-
|
29
|
-
Rails.logger.info "Geocoded \"#{address}\" and Google returned...\n#{@json.inspect}"
|
30
|
-
|
31
|
-
@city, @country_short_name, @country_long_name, @county, @formatted_address, @formatted_street_address, @lat, @lng, @postal_code, @state_long_name, @state_short_name = parse_city, parse_country_short_name, parse_country_long_name, parse_county, parse_formatted_address, parse_formatted_street_address, parse_lat, parse_lng, parse_postal_code, parse_state_long_name, parse_state_short_name
|
32
|
-
end
|
33
|
-
|
34
|
-
# Instance Methods ===============================================================================
|
35
|
-
|
36
|
-
# Returns true if the address Google returns is an exact match.
|
37
|
-
#
|
38
|
-
# ==== Examples
|
39
|
-
#
|
40
|
-
# white_house = GoogleMapsGeocoder.new('1600 Pennsylvania Ave')
|
41
|
-
# white_house.exact_match?
|
42
|
-
# => true
|
43
|
-
def exact_match?
|
44
|
-
! self.partial_match?
|
45
|
-
end
|
46
|
-
|
47
|
-
# Returns true if the address Google returns isn't an exact match.
|
48
|
-
#
|
49
|
-
# ==== Examples
|
50
|
-
#
|
51
|
-
# white_house = GoogleMapsGeocoder.new('1600 Pennsylvania Washington')
|
52
|
-
# white_house.exact_match?
|
53
|
-
# => false
|
54
|
-
def partial_match?
|
55
|
-
@json['results'][0]['partial_match'] == true
|
56
|
-
end
|
57
|
-
|
58
|
-
private
|
59
|
-
|
60
|
-
def parse_address_component_type(type, name='long_name')
|
61
|
-
_address_component = @json['results'][0]['address_components'].detect{ |ac| ac['types'] && ac['types'].include?(type) }
|
62
|
-
_address_component && _address_component[name]
|
63
|
-
end
|
64
|
-
|
65
|
-
def parse_city
|
66
|
-
parse_address_component_type('sublocality') || parse_address_component_type('locality')
|
67
|
-
end
|
68
|
-
|
69
|
-
def parse_country_long_name
|
70
|
-
parse_address_component_type('country')
|
71
|
-
end
|
72
|
-
|
73
|
-
def parse_country_short_name
|
74
|
-
parse_address_component_type('country', 'short_name')
|
75
|
-
end
|
76
|
-
|
77
|
-
def parse_county
|
78
|
-
parse_address_component_type('administrative_area_level_2')
|
79
|
-
end
|
80
|
-
|
81
|
-
def parse_formatted_address
|
82
|
-
@json['results'][0]['formatted_address']
|
83
|
-
end
|
84
|
-
|
85
|
-
def parse_formatted_street_address
|
86
|
-
"#{parse_address_component_type('street_number')} #{parse_address_component_type('route')}"
|
87
|
-
end
|
88
|
-
|
89
|
-
def parse_lat
|
90
|
-
@json['results'][0]['geometry']['location']['lat']
|
91
|
-
end
|
92
|
-
|
93
|
-
def parse_lng
|
94
|
-
@json['results'][0]['geometry']['location']['lng']
|
95
|
-
end
|
96
|
-
|
97
|
-
def parse_postal_code
|
98
|
-
parse_address_component_type('postal_code')
|
99
|
-
end
|
100
|
-
|
101
|
-
def parse_state_long_name
|
102
|
-
parse_address_component_type('administrative_area_level_1')
|
103
|
-
end
|
104
|
-
|
105
|
-
def parse_state_short_name
|
106
|
-
parse_address_component_type('administrative_area_level_1', 'short_name')
|
107
|
-
end
|
108
|
-
end
|
data/config/deploy.rb
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
# Deploy this gem to the gem server.
|
2
|
-
#
|
3
|
-
# Usage for a gem already on the gem server:
|
4
|
-
#
|
5
|
-
# cap deploy
|
6
|
-
#
|
7
|
-
# For a new gem:
|
8
|
-
#
|
9
|
-
# cap deploy:new
|
10
|
-
|
11
|
-
# Global Variables =================================================================================
|
12
|
-
default_run_options[:pty] = true
|
13
|
-
role :app, 'jose.seologic.com'
|
14
|
-
set :deploy_to, '/home/containers/rails/system/campfire_logic'
|
15
|
-
set :repository, 'git@github.com:ivanoblomov/campfire_logic.git'
|
16
|
-
set :scm, :git
|
17
|
-
set :use_sudo, false
|
18
|
-
set :user, 'cnewton'
|
19
|
-
|
20
|
-
namespace :deploy do
|
21
|
-
desc "Clone a new gem's repository on the gem server."
|
22
|
-
task :new do
|
23
|
-
run "git clone -q #{repository} #{deploy_to}"
|
24
|
-
end
|
25
|
-
|
26
|
-
task :install do
|
27
|
-
run "cd #{deploy_to}; rm -f Gemfile.lock; sudo bundle; sudo rake install"
|
28
|
-
end
|
29
|
-
|
30
|
-
# disable default behavior
|
31
|
-
task :restart do
|
32
|
-
end
|
33
|
-
|
34
|
-
task :update do
|
35
|
-
run "cd #{deploy_to}; git pull"
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
after 'deploy', 'deploy:install'
|
40
|
-
after 'deploy:new', 'deploy:install'
|
@@ -1,28 +0,0 @@
|
|
1
|
-
CampfireLogic::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/environment.rb
|
3
|
-
|
4
|
-
# In the development environment your application's code is reloaded on
|
5
|
-
# every request. This slows down response time but is perfect for development
|
6
|
-
# since you don't have to restart the webserver when you make code changes.
|
7
|
-
config.cache_classes = false
|
8
|
-
|
9
|
-
# Log error messages when you accidentally call methods on nil.
|
10
|
-
config.whiny_nils = true
|
11
|
-
|
12
|
-
# Show full error reports and disable caching
|
13
|
-
config.consider_all_requests_local = true
|
14
|
-
config.action_view.debug_rjs = true
|
15
|
-
config.action_controller.perform_caching = false
|
16
|
-
|
17
|
-
# Don't care if the mailer can't send
|
18
|
-
config.action_mailer.raise_delivery_errors = false
|
19
|
-
|
20
|
-
# Print deprecation notices to the Rails logger
|
21
|
-
config.active_support.deprecation = :log
|
22
|
-
|
23
|
-
# Only use best-standards-support built into browsers
|
24
|
-
config.action_dispatch.best_standards_support = :builtin
|
25
|
-
|
26
|
-
# Custom settings
|
27
|
-
config.feature_results_path = "#{Rails.root}/tmp/feature_results.txt"
|
28
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
CampfireLogic::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/environment.rb
|
3
|
-
|
4
|
-
# The production environment is meant for finished, "live" apps.
|
5
|
-
# Code is not reloaded between requests
|
6
|
-
config.cache_classes = true
|
7
|
-
|
8
|
-
# Full error reports are disabled and caching is turned on
|
9
|
-
config.consider_all_requests_local = false
|
10
|
-
config.action_controller.perform_caching = true
|
11
|
-
|
12
|
-
# Specifies the header that your server uses for sending files
|
13
|
-
config.action_dispatch.x_sendfile_header = "X-Sendfile"
|
14
|
-
|
15
|
-
# For nginx:
|
16
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
|
17
|
-
|
18
|
-
# If you have no front-end server that supports something like X-Sendfile,
|
19
|
-
# just comment this out and Rails will serve the files
|
20
|
-
|
21
|
-
# See everything in the log (default is :info)
|
22
|
-
# config.log_level = :debug
|
23
|
-
|
24
|
-
# Use a different logger for distributed setups
|
25
|
-
# config.logger = SyslogLogger.new
|
26
|
-
|
27
|
-
# Use a different cache store in production
|
28
|
-
# config.cache_store = :mem_cache_store
|
29
|
-
|
30
|
-
# Disable Rails's static asset server
|
31
|
-
# In production, Apache or nginx will already do this
|
32
|
-
config.serve_static_assets = false
|
33
|
-
|
34
|
-
# Enable serving of images, stylesheets, and javascripts from an asset server
|
35
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
36
|
-
|
37
|
-
# Disable delivery errors, bad email addresses will be ignored
|
38
|
-
# config.action_mailer.raise_delivery_errors = false
|
39
|
-
|
40
|
-
# Enable threaded mode
|
41
|
-
# config.threadsafe!
|
42
|
-
|
43
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
44
|
-
# the I18n.default_locale when a translation can not be found)
|
45
|
-
config.i18n.fallbacks = true
|
46
|
-
|
47
|
-
# Send deprecation notices to registered listeners
|
48
|
-
config.active_support.deprecation = :notify
|
49
|
-
end
|
data/doc/google_maps_response.rb
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
'837 Union St Brooklyn NY'=>{
|
2
|
-
"results"=>[
|
3
|
-
{
|
4
|
-
"address_components"=>[
|
5
|
-
{"long_name"=>"837", "types"=>["street_number"], "short_name"=>"837"},
|
6
|
-
{"long_name"=>"Union St", "types"=>["route"], "short_name"=>"Union St"},
|
7
|
-
{"long_name"=>"Brooklyn", "types"=>["sublocality", "political"], "short_name"=>"Brooklyn"},
|
8
|
-
{"long_name"=>"New York", "types"=>["locality", "political"], "short_name"=>"New York"},
|
9
|
-
{"long_name"=>"Kings", "types"=>["administrative_area_level_2", "political"], "short_name"=>"Kings"},
|
10
|
-
{"long_name"=>"New York", "types"=>["administrative_area_level_1", "political"], "short_name"=>"NY"},
|
11
|
-
{"long_name"=>"United States", "types"=>["country", "political"], "short_name"=>"US"},
|
12
|
-
{"long_name"=>"11217", "types"=>["postal_code"], "short_name"=>"11217"}
|
13
|
-
],
|
14
|
-
"geometry"=>{
|
15
|
-
"location"=>{
|
16
|
-
"lng"=>-73.9760302, "lat"=>40.6748151
|
17
|
-
},
|
18
|
-
"location_type"=>"ROOFTOP",
|
19
|
-
"viewport"=>{
|
20
|
-
"northeast"=>{"lng"=>-73.9728826, "lat"=>40.6779627},
|
21
|
-
"southwest"=>{"lng"=>-73.9791778, "lat"=>40.6716675}
|
22
|
-
}
|
23
|
-
},
|
24
|
-
"types"=>["street_address"],
|
25
|
-
"formatted_address"=>"837 Union St, Brooklyn, NY 11217, USA"
|
26
|
-
}
|
27
|
-
],
|
28
|
-
"status"=>"OK"
|
29
|
-
}
|
30
|
-
'1600 Pennsylvania Washington'=>{
|
31
|
-
"results"=>[
|
32
|
-
{
|
33
|
-
"address_components"=>[
|
34
|
-
{"long_name"=>"1600", "types"=>["street_number"], "short_name"=>"1600"},
|
35
|
-
{"long_name"=>"Pennsylvania Ave NW", "types"=>["route"], "short_name"=>"Pennsylvania Ave NW"},
|
36
|
-
{"long_name"=>"Washington", "types"=>["locality", "political"], "short_name"=>"Washington"},
|
37
|
-
{"long_name"=>"Washington", "types"=>["administrative_area_level_3", "political"], "short_name"=>"Washington"},
|
38
|
-
{"long_name"=>"District of Columbia", "types"=>["administrative_area_level_2", "political"], "short_name"=>"District of Columbia"},
|
39
|
-
{"long_name"=>"District of Columbia", "types"=>["administrative_area_level_1", "political"], "short_name"=>"DC"},
|
40
|
-
{"long_name"=>"United States", "types"=>["country", "political"], "short_name"=>"US"},
|
41
|
-
{"long_name"=>"20500", "types"=>["postal_code"], "short_name"=>"20500"}
|
42
|
-
],
|
43
|
-
"partial_match"=>true,
|
44
|
-
"geometry"=>{
|
45
|
-
"location"=>{"lng"=>-77.0365191, "lat"=>38.8976964},
|
46
|
-
"location_type"=>"ROOFTOP",
|
47
|
-
"viewport"=>{
|
48
|
-
"northeast"=>{"lng"=>-77.0333715, "lat"=>38.900844},
|
49
|
-
"southwest"=>{"lng"=>-77.0396667, "lat"=>38.8945488}}
|
50
|
-
},
|
51
|
-
"types"=>["street_address"],
|
52
|
-
"formatted_address"=>"1600 Pennsylvania Ave NW, Washington, DC 20500, USA"
|
53
|
-
}
|
54
|
-
],
|
55
|
-
"status"=>"OK"
|
56
|
-
}
|
data/init.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'campfire_logic'
|
data/public/404.html
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<style type="text/css">
|
6
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
-
div.dialog {
|
8
|
-
width: 25em;
|
9
|
-
padding: 0 4em;
|
10
|
-
margin: 4em auto 0 auto;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
border-right-color: #999;
|
13
|
-
border-bottom-color: #999;
|
14
|
-
}
|
15
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
-
</style>
|
17
|
-
</head>
|
18
|
-
|
19
|
-
<body>
|
20
|
-
<!-- This file lives in public/404.html -->
|
21
|
-
<div class="dialog">
|
22
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
-
</div>
|
25
|
-
</body>
|
26
|
-
</html>
|
data/public/422.html
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<style type="text/css">
|
6
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
-
div.dialog {
|
8
|
-
width: 25em;
|
9
|
-
padding: 0 4em;
|
10
|
-
margin: 4em auto 0 auto;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
border-right-color: #999;
|
13
|
-
border-bottom-color: #999;
|
14
|
-
}
|
15
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
-
</style>
|
17
|
-
</head>
|
18
|
-
|
19
|
-
<body>
|
20
|
-
<!-- This file lives in public/422.html -->
|
21
|
-
<div class="dialog">
|
22
|
-
<h1>The change you wanted was rejected.</h1>
|
23
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
-
</div>
|
25
|
-
</body>
|
26
|
-
</html>
|
data/public/500.html
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<style type="text/css">
|
6
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
-
div.dialog {
|
8
|
-
width: 25em;
|
9
|
-
padding: 0 4em;
|
10
|
-
margin: 4em auto 0 auto;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
border-right-color: #999;
|
13
|
-
border-bottom-color: #999;
|
14
|
-
}
|
15
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
-
</style>
|
17
|
-
</head>
|
18
|
-
|
19
|
-
<body>
|
20
|
-
<!-- This file lives in public/500.html -->
|
21
|
-
<div class="dialog">
|
22
|
-
<h1>We're sorry, but something went wrong.</h1>
|
23
|
-
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
-
</div>
|
25
|
-
</body>
|
26
|
-
</html>
|
data/public/favicon.ico
DELETED
File without changes
|