medivo 0.0.4 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. data/app/assets/images/medivo/markerA.png +0 -0
  2. data/app/assets/images/medivo/markerB.png +0 -0
  3. data/app/assets/images/medivo/markerC.png +0 -0
  4. data/app/assets/images/medivo/markerD.png +0 -0
  5. data/app/assets/images/medivo/markerE.png +0 -0
  6. data/app/assets/images/medivo/markerF.png +0 -0
  7. data/app/assets/images/medivo/markerG.png +0 -0
  8. data/app/assets/images/medivo/markerH.png +0 -0
  9. data/app/assets/images/medivo/markerI.png +0 -0
  10. data/app/assets/images/medivo/markerJ.png +0 -0
  11. data/app/assets/images/medivo/markerK.png +0 -0
  12. data/app/assets/javascripts/medivo/models.coffee +60 -20
  13. data/app/assets/javascripts/medivo/show_labs.coffee +1 -0
  14. data/app/assets/javascripts/medivo/views.coffee +4 -2
  15. data/app/models/medivo/lab.rb +4 -4
  16. data/app/models/medivo/resource.rb +1 -1
  17. data/lib/generators/medivo/install/install_generator.rb +3 -4
  18. data/{spec/dummy/config/medivo.yml → lib/generators/medivo/install/templates/medivo_resource.yml} +0 -0
  19. data/lib/medivo.rb +2 -1
  20. data/lib/medivo/version.rb +1 -1
  21. data/spec/dummy/app/views/labs/search.html.haml +11 -11
  22. data/spec/dummy/config/application.rb +7 -1
  23. data/spec/dummy/config/medivo_resource.yml +9 -0
  24. data/spec/dummy/log/development.log +3530 -0
  25. data/spec/dummy/log/test.log +52 -0
  26. data/spec/dummy/tmp/cache/assets/C46/F00/sprockets%2F2281d588b540056c5a7306c32a3761b9 +0 -0
  27. data/spec/dummy/tmp/cache/assets/CAB/970/sprockets%2F6aa4308273851c94a14158394d4dcdc4 +0 -0
  28. data/spec/dummy/tmp/cache/assets/CC3/EF0/sprockets%2F453b504c1f8f374578636f699eaa455d +0 -0
  29. data/spec/dummy/tmp/cache/assets/CE4/E70/sprockets%2F091ec16b8699113092ce35de93ca1d87 +0 -0
  30. data/spec/dummy/tmp/cache/assets/CEE/250/sprockets%2F96688f33f2f8aa261bf6701c1d6d7575 +0 -0
  31. data/spec/dummy/tmp/cache/assets/CFF/7F0/sprockets%2F4007fd53da973506c55bc273a05c5c0d +0 -0
  32. data/spec/dummy/tmp/cache/assets/D19/310/sprockets%2F110931639fc185699ea1aaaf87dd488b +0 -0
  33. data/spec/dummy/tmp/cache/assets/D1B/820/sprockets%2F92a83e15913997b3d9ac7ed437b1e44c +0 -0
  34. data/spec/dummy/tmp/cache/assets/D29/000/sprockets%2F61a10ddf57f1129c02a1049bfed6e007 +0 -0
  35. data/spec/dummy/tmp/cache/assets/D30/920/sprockets%2Fcc4603fc6441ca421a7d02886a81ab9d +0 -0
  36. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  37. data/spec/dummy/tmp/cache/assets/D36/870/sprockets%2Fce9e887568de873b133ae43d7c977f68 +0 -0
  38. data/spec/dummy/tmp/cache/assets/D45/320/sprockets%2Fc50ff379a1bdf1dd4d22249058749cf6 +0 -0
  39. data/spec/dummy/tmp/cache/assets/D53/910/sprockets%2F9c83ce0cd69a6919e4b54e59d27e4d70 +0 -0
  40. data/spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
  41. data/spec/dummy/tmp/cache/assets/D55/ED0/sprockets%2F0f673e42e816c6fe5b66a5c96f896f1a +0 -0
  42. data/spec/dummy/tmp/cache/assets/D5D/3E0/sprockets%2F63fea6cc142b5f02da93bf81e70b2116 +0 -0
  43. data/spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
  44. data/spec/dummy/tmp/cache/assets/D9C/F50/sprockets%2F224e78bb9e1c414a2d518a3aaffd6f77 +0 -0
  45. data/spec/dummy/tmp/cache/assets/DA2/040/sprockets%2F6ab79dcced8cc9933b734e7b21c3a183 +0 -0
  46. data/spec/dummy/tmp/cache/assets/DD1/FD0/sprockets%2Fa531f33dc9c5852d39d64a9eda44dacf +0 -0
  47. data/spec/dummy/tmp/cache/assets/DD2/A50/sprockets%2Fecb5dd9066b50eb678cd8c9dbb21d229 +0 -0
  48. data/spec/dummy/tmp/cache/assets/DD4/2B0/sprockets%2Fef214a63f29afe7f3cbffc65af943108 +0 -0
  49. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  50. data/spec/dummy/tmp/cache/assets/E59/D50/sprockets%2Fbe1cc4d9b0efb617e58baa16dd1dee58 +0 -0
  51. data/spec/dummy/tmp/pids/server.pid +1 -1
  52. data/spec/models/labs_spec.rb +1 -1
  53. data/spec/requests/labs_spec.rb +1 -1
  54. data/spec/spec_helper.rb +1 -1
  55. data/spec/support/blueprints.rb +9 -9
  56. metadata +49 -42
  57. data/app/models/medivo/zip_code.rb +0 -10
  58. data/db/zip_codes.sqlite3 +0 -0
  59. data/spec/dummy/config/database.yml +0 -25
  60. data/spec/dummy/db/development.sqlite3 +0 -0
  61. data/spec/dummy/db/test.sqlite3 +0 -0
@@ -966,3 +966,55 @@ Compiled medivo/views.js (217ms) (pid 59241)
966
966
  Compiled medivo/models.js (181ms) (pid 59241)
967
967
  Compiled medivo/show_labs.js (171ms) (pid 59241)
968
968
  Served asset /application.js - 200 OK (609ms)
969
+
970
+
971
+ Started GET "/medivo/labs/data?zip_code=90210" for 127.0.0.1 at 2011-10-14 16:54:02 +0200
972
+ Processing by Medivo::LabsController#data as HTML
973
+ Parameters: {"zip_code"=>"90210"}
974
+ Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.0ms)
975
+
976
+
977
+ Started GET "/labs/search?zip_code=90210" for 127.0.0.1 at 2011-10-14 16:54:04 +0200
978
+ Processing by LabsController#search as HTML
979
+ Parameters: {"zip_code"=>"90210"}
980
+ Completed 200 OK in 78ms (Views: 77.4ms | ActiveRecord: 0.0ms)
981
+
982
+
983
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-10-14 16:54:04 +0200
984
+ Served asset /application.css - 200 OK (4ms)
985
+
986
+
987
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-10-14 16:54:04 +0200
988
+ Served asset /application.js - 200 OK (7ms)
989
+
990
+
991
+ Started GET "/medivo/labs/data?zip_code=90210" for 127.0.0.1 at 2011-10-25 17:22:14 +0100
992
+ Processing by Medivo::LabsController#data as HTML
993
+ Parameters: {"zip_code"=>"90210"}
994
+ Completed 200 OK in 1ms (Views: 0.8ms)
995
+
996
+
997
+ Started GET "/labs/search?zip_code=90210" for 127.0.0.1 at 2011-10-25 17:22:15 +0100
998
+ Processing by LabsController#search as HTML
999
+ Parameters: {"zip_code"=>"90210"}
1000
+ Completed 200 OK in 105ms (Views: 104.6ms)
1001
+
1002
+
1003
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-10-25 17:22:15 +0100
1004
+ Compiled application.css (3ms) (pid 91166)
1005
+ Served asset /application.css - 200 OK (8ms)
1006
+
1007
+
1008
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-10-25 17:22:15 +0100
1009
+ Compiled application.js (8ms) (pid 91166)
1010
+ Compiled jquery.js (1ms) (pid 91166)
1011
+ Compiled jquery_ujs.js (0ms) (pid 91166)
1012
+ Compiled medivo/handlebars.js (0ms) (pid 91166)
1013
+ Compiled medivo/views.js (256ms) (pid 91166)
1014
+ Compiled medivo/models.js (189ms) (pid 91166)
1015
+ Compiled medivo/show_labs.js (168ms) (pid 91166)
1016
+ Served asset /application.js - 200 OK (658ms)
1017
+
1018
+
1019
+ Started GET "/assets/medivo/lab.png" for 127.0.0.1 at 2011-10-25 17:22:16 +0100
1020
+ Served asset /medivo/lab.png - 200 OK (5ms)
@@ -1 +1 @@
1
- 59208
1
+ 92027
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ erequire 'spec_helper'
2
2
 
3
3
  describe Medivo::Lab do
4
4
 
@@ -10,7 +10,7 @@ describe 'LabController' do
10
10
 
11
11
  before do
12
12
  @zip_code = "90210"
13
- stub(Medivo::ZipCode).find_by_zip_code(@zip_code) { BeverlyHillsZipCode }
13
+ #stub(Medivo::ZipCode).find_by_zip_code(@zip_code) { BeverlyHillsZipCode }
14
14
  stub(Medivo::Lab).findLabs(@zip_code) { [BeverlyHillsLab1, BeverlyHillsLab2] }
15
15
  end
16
16
 
data/spec/spec_helper.rb CHANGED
@@ -16,7 +16,7 @@ Spork.prefork do
16
16
 
17
17
  RSpec.configure do |config|
18
18
  config.mock_with :rr
19
- config.use_transactional_fixtures = true
19
+ #config.use_transactional_fixtures = true
20
20
  config.include Medivo::Engine.routes.url_helpers
21
21
  config.before(:each) { Machinist.reset_before_test }
22
22
  end
@@ -1,12 +1,12 @@
1
- BeverlyHillsZipCode = Medivo::ZipCode.new(
2
- {
3
- :city => "Beverly Hills",
4
- :state_short => "CA",
5
- :zip_code => "90210",
6
- :lat => 34.0901,
7
- :lng => -118.4065
8
- }
9
- )
1
+ #BeverlyHillsZipCode = Medivo::ZipCode.new(
2
+ # {
3
+ # :city => "Beverly Hills",
4
+ # :state_short => "CA",
5
+ # :zip_code => "90210",
6
+ # :lat => 34.0901,
7
+ # :lng => -118.4065
8
+ # }
9
+ #)
10
10
 
11
11
  BeverlyHillsLab1 = Medivo::Lab.new(
12
12
  {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: medivo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-14 00:00:00.000000000 +02:00
12
+ date: 2011-10-25 00:00:00.000000000 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &2157318080 !ruby/object:Gem::Requirement
17
+ requirement: &2181411200 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.1.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2157318080
25
+ version_requirements: *2181411200
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: jquery-rails
28
- requirement: &2157317160 !ruby/object:Gem::Requirement
28
+ requirement: &2181410780 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2157317160
36
+ version_requirements: *2181410780
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: coffee-script
39
- requirement: &2157316040 !ruby/object:Gem::Requirement
39
+ requirement: &2181410320 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2157316040
47
+ version_requirements: *2181410320
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: haml-rails
50
- requirement: &2157314620 !ruby/object:Gem::Requirement
50
+ requirement: &2181409900 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,40 +55,29 @@ dependencies:
55
55
  version: '0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *2157314620
58
+ version_requirements: *2181409900
59
59
  - !ruby/object:Gem::Dependency
60
- name: sqlite3
61
- requirement: &2157312920 !ruby/object:Gem::Requirement
60
+ name: mysql2
61
+ requirement: &2181409400 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
- - - ! '>='
64
+ - - ~>
65
65
  - !ruby/object:Gem::Version
66
- version: '0'
66
+ version: 0.3.7
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *2157312920
69
+ version_requirements: *2181409400
70
70
  - !ruby/object:Gem::Dependency
71
- name: webmock
72
- requirement: &2157307620 !ruby/object:Gem::Requirement
71
+ name: geocoder
72
+ requirement: &2181408980 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
- type: :development
79
- prerelease: false
80
- version_requirements: *2157307620
81
- - !ruby/object:Gem::Dependency
82
- name: capybara
83
- requirement: &2157305500 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
86
- - - ! '>='
87
- - !ruby/object:Gem::Version
88
- version: '0'
89
- type: :development
78
+ type: :runtime
90
79
  prerelease: false
91
- version_requirements: *2157305500
80
+ version_requirements: *2181408980
92
81
  description: Use the medivo platform to make a lab order or find a lab location
93
82
  email:
94
83
  - dsudol@medivo.com
@@ -98,6 +87,17 @@ extra_rdoc_files: []
98
87
  files:
99
88
  - app/assets/images/medivo/arrow.png
100
89
  - app/assets/images/medivo/lab.png
90
+ - app/assets/images/medivo/markerA.png
91
+ - app/assets/images/medivo/markerB.png
92
+ - app/assets/images/medivo/markerC.png
93
+ - app/assets/images/medivo/markerD.png
94
+ - app/assets/images/medivo/markerE.png
95
+ - app/assets/images/medivo/markerF.png
96
+ - app/assets/images/medivo/markerG.png
97
+ - app/assets/images/medivo/markerH.png
98
+ - app/assets/images/medivo/markerI.png
99
+ - app/assets/images/medivo/markerJ.png
100
+ - app/assets/images/medivo/markerK.png
101
101
  - app/assets/javascripts/medivo/application.js
102
102
  - app/assets/javascripts/medivo/handlebars.js
103
103
  - app/assets/javascripts/medivo/models.coffee
@@ -110,11 +110,10 @@ files:
110
110
  - app/models/medivo/lab.rb
111
111
  - app/models/medivo/order.rb
112
112
  - app/models/medivo/resource.rb
113
- - app/models/medivo/zip_code.rb
114
113
  - app/views/layouts/medivo/application.html.erb
115
114
  - config/routes.rb
116
- - db/zip_codes.sqlite3
117
115
  - lib/generators/medivo/install/install_generator.rb
116
+ - lib/generators/medivo/install/templates/medivo_resource.yml
118
117
  - lib/medivo/engine.rb
119
118
  - lib/medivo/validators.rb
120
119
  - lib/medivo/version.rb
@@ -133,7 +132,6 @@ files:
133
132
  - spec/dummy/app/views/layouts/application.html.haml
134
133
  - spec/dummy/config/application.rb
135
134
  - spec/dummy/config/boot.rb
136
- - spec/dummy/config/database.yml
137
135
  - spec/dummy/config/environment.rb
138
136
  - spec/dummy/config/environments/development.rb
139
137
  - spec/dummy/config/environments/production.rb
@@ -145,11 +143,9 @@ files:
145
143
  - spec/dummy/config/initializers/session_store.rb
146
144
  - spec/dummy/config/initializers/wrap_parameters.rb
147
145
  - spec/dummy/config/locales/en.yml
148
- - spec/dummy/config/medivo.yml
146
+ - spec/dummy/config/medivo_resource.yml
149
147
  - spec/dummy/config/routes.rb
150
148
  - spec/dummy/config.ru
151
- - spec/dummy/db/development.sqlite3
152
- - spec/dummy/db/test.sqlite3
153
149
  - spec/dummy/log/development.log
154
150
  - spec/dummy/log/test.log
155
151
  - spec/dummy/public/404.html
@@ -167,9 +163,16 @@ files:
167
163
  - spec/dummy/tmp/cache/assets/CFF/7F0/sprockets%2F4007fd53da973506c55bc273a05c5c0d
168
164
  - spec/dummy/tmp/cache/assets/CFF/8D0/sprockets%2Fc1053414055bf81a6d316dc14f12f9fd
169
165
  - spec/dummy/tmp/cache/assets/D19/310/sprockets%2F110931639fc185699ea1aaaf87dd488b
166
+ - spec/dummy/tmp/cache/assets/D1B/820/sprockets%2F92a83e15913997b3d9ac7ed437b1e44c
167
+ - spec/dummy/tmp/cache/assets/D29/000/sprockets%2F61a10ddf57f1129c02a1049bfed6e007
168
+ - spec/dummy/tmp/cache/assets/D30/920/sprockets%2Fcc4603fc6441ca421a7d02886a81ab9d
170
169
  - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
170
+ - spec/dummy/tmp/cache/assets/D36/870/sprockets%2Fce9e887568de873b133ae43d7c977f68
171
171
  - spec/dummy/tmp/cache/assets/D45/320/sprockets%2Fc50ff379a1bdf1dd4d22249058749cf6
172
+ - spec/dummy/tmp/cache/assets/D53/910/sprockets%2F9c83ce0cd69a6919e4b54e59d27e4d70
172
173
  - spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
174
+ - spec/dummy/tmp/cache/assets/D55/ED0/sprockets%2F0f673e42e816c6fe5b66a5c96f896f1a
175
+ - spec/dummy/tmp/cache/assets/D5D/3E0/sprockets%2F63fea6cc142b5f02da93bf81e70b2116
173
176
  - spec/dummy/tmp/cache/assets/D62/380/sprockets%2F712d93afe40570cc939133bddca13bc7
174
177
  - spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
175
178
  - spec/dummy/tmp/cache/assets/D9C/F50/sprockets%2F224e78bb9e1c414a2d518a3aaffd6f77
@@ -201,7 +204,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
204
  version: '0'
202
205
  segments:
203
206
  - 0
204
- hash: 1928678680820684886
207
+ hash: 3140999031638763511
205
208
  required_rubygems_version: !ruby/object:Gem::Requirement
206
209
  none: false
207
210
  requirements:
@@ -210,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
213
  version: '0'
211
214
  segments:
212
215
  - 0
213
- hash: 1928678680820684886
216
+ hash: 3140999031638763511
214
217
  requirements: []
215
218
  rubyforge_project:
216
219
  rubygems_version: 1.6.2
@@ -227,7 +230,6 @@ test_files:
227
230
  - spec/dummy/app/views/layouts/application.html.haml
228
231
  - spec/dummy/config/application.rb
229
232
  - spec/dummy/config/boot.rb
230
- - spec/dummy/config/database.yml
231
233
  - spec/dummy/config/environment.rb
232
234
  - spec/dummy/config/environments/development.rb
233
235
  - spec/dummy/config/environments/production.rb
@@ -239,11 +241,9 @@ test_files:
239
241
  - spec/dummy/config/initializers/session_store.rb
240
242
  - spec/dummy/config/initializers/wrap_parameters.rb
241
243
  - spec/dummy/config/locales/en.yml
242
- - spec/dummy/config/medivo.yml
244
+ - spec/dummy/config/medivo_resource.yml
243
245
  - spec/dummy/config/routes.rb
244
246
  - spec/dummy/config.ru
245
- - spec/dummy/db/development.sqlite3
246
- - spec/dummy/db/test.sqlite3
247
247
  - spec/dummy/log/development.log
248
248
  - spec/dummy/log/test.log
249
249
  - spec/dummy/public/404.html
@@ -261,9 +261,16 @@ test_files:
261
261
  - spec/dummy/tmp/cache/assets/CFF/7F0/sprockets%2F4007fd53da973506c55bc273a05c5c0d
262
262
  - spec/dummy/tmp/cache/assets/CFF/8D0/sprockets%2Fc1053414055bf81a6d316dc14f12f9fd
263
263
  - spec/dummy/tmp/cache/assets/D19/310/sprockets%2F110931639fc185699ea1aaaf87dd488b
264
+ - spec/dummy/tmp/cache/assets/D1B/820/sprockets%2F92a83e15913997b3d9ac7ed437b1e44c
265
+ - spec/dummy/tmp/cache/assets/D29/000/sprockets%2F61a10ddf57f1129c02a1049bfed6e007
266
+ - spec/dummy/tmp/cache/assets/D30/920/sprockets%2Fcc4603fc6441ca421a7d02886a81ab9d
264
267
  - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
268
+ - spec/dummy/tmp/cache/assets/D36/870/sprockets%2Fce9e887568de873b133ae43d7c977f68
265
269
  - spec/dummy/tmp/cache/assets/D45/320/sprockets%2Fc50ff379a1bdf1dd4d22249058749cf6
270
+ - spec/dummy/tmp/cache/assets/D53/910/sprockets%2F9c83ce0cd69a6919e4b54e59d27e4d70
266
271
  - spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
272
+ - spec/dummy/tmp/cache/assets/D55/ED0/sprockets%2F0f673e42e816c6fe5b66a5c96f896f1a
273
+ - spec/dummy/tmp/cache/assets/D5D/3E0/sprockets%2F63fea6cc142b5f02da93bf81e70b2116
267
274
  - spec/dummy/tmp/cache/assets/D62/380/sprockets%2F712d93afe40570cc939133bddca13bc7
268
275
  - spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
269
276
  - spec/dummy/tmp/cache/assets/D9C/F50/sprockets%2F224e78bb9e1c414a2d518a3aaffd6f77
@@ -1,10 +0,0 @@
1
- module Medivo
2
- class ZipCode < ActiveRecord::Base
3
- ActiveRecord::Base.establish_connection({:adapter=>'sqlite3', :database=>"#{Medivo::Engine.config.root}/db/zip_codes.sqlite3"})
4
- self.table_name = :zip_codes
5
-
6
- def center_info
7
- {:title=> "#{city}, #{state_short}, #{zip_code}", :lat=>lat, lng: lng}
8
- end
9
- end
10
- end
data/db/zip_codes.sqlite3 DELETED
Binary file
@@ -1,25 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
7
- adapter: sqlite3
8
- database: db/development.sqlite3
9
- pool: 5
10
- timeout: 5000
11
-
12
- # Warning: The database defined as "test" will be erased and
13
- # re-generated from your development database when you run "rake".
14
- # Do not set this db to the same as development or production.
15
- test:
16
- adapter: sqlite3
17
- database: db/test.sqlite3
18
- pool: 5
19
- timeout: 5000
20
-
21
- production:
22
- adapter: sqlite3
23
- database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
File without changes
File without changes