medivo 0.2.3 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,8 +4,9 @@ module Medivo
4
4
 
5
5
  def set_pdf_headers
6
6
  if request.env['HTTP_USER_AGENT'] =~ /msie/i
7
- headers['Pragma'] = nil
8
- headers['Cache-Control'] = nil
7
+ # source: http://in2.php.net/manual/en/function.header.php#83219
8
+ headers['Pragma'] = 'public'
9
+ headers['Cache-Control'] = 'maxage=1'
9
10
  else
10
11
  headers['Cache-Control'] = 'no-store'
11
12
  end
@@ -3,7 +3,7 @@ module Medivo
3
3
  include ActiveModel::Validations
4
4
  include ActiveModel::Serializers::Xml
5
5
 
6
- validates_presence_of :relationship, :company_name, :policy_number, :group_number
6
+ validates_presence_of :relationship, :company_name, :policy_number
7
7
  validates :relationship, :inclusion => {:in => 1..2}
8
8
 
9
9
  def initialize(attributes = {})
@@ -29,4 +29,4 @@ module Medivo
29
29
  end
30
30
  end
31
31
  end
32
- end
32
+ end
@@ -1,3 +1,3 @@
1
1
  module Medivo
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.5"
3
3
  end
@@ -7692,3 +7692,11 @@ Started GET "/medivo/labs/appointment_data?utf8=%E2%9C%93&date=11%2F14%2F2011&la
7692
7692
  Processing by Medivo::LabsController#appointment_data as JS
7693
7693
  Parameters: {"utf8"=>"✓", "date"=>"11/14/2011", "lab_code"=>"20060", "commit"=>"Search for appointments"}
7694
7694
  Completed 200 OK in 12ms (Views: 4.6ms)
7695
+
7696
+
7697
+ Started GET "/members/verify_identity?set_test_data=true" for 192.168.0.21 at 2011-11-11 13:33:06 -0500
7698
+
7699
+ ActionController::RoutingError (No route matches [GET] "/members/verify_identity"):
7700
+
7701
+
7702
+ Rendered /Users/danielsudol/.rvm/gems/ruby-1.9.2-p290@medivo_resource/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.8ms)
@@ -1757,3 +1757,53 @@ Started GET "/medivo/labs/appointment_data?date=11%2F01%2F2011&lab_code=20060" f
1757
1757
  Processing by Medivo::LabsController#appointment_data as HTML
1758
1758
  Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
1759
1759
  Completed 200 OK in 1ms (Views: 0.4ms)
1760
+ Processing by OrdersController#download_requisition as HTML
1761
+ Rendered text template (0.0ms)
1762
+ Sent data unitedhealthcare_requisition.pdf (106.9ms)
1763
+ Completed 200 OK in 1054ms (Views: 105.9ms)
1764
+ Processing by OrdersController#download_result as HTML
1765
+ Sent data unitedhealthcare_result.pdf (2.7ms)
1766
+ Completed 200 OK in 711ms (Views: 1.9ms)
1767
+
1768
+
1769
+ Started GET "/medivo/labs/lab_data?zip_code=90210" for 127.0.0.1 at 2011-11-12 11:11:23 -0500
1770
+ Processing by Medivo::LabsController#lab_data as HTML
1771
+ Parameters: {"zip_code"=>"90210"}
1772
+ Completed 200 OK in 413ms (Views: 2.1ms)
1773
+
1774
+
1775
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-12 11:11:26 -0500
1776
+ Processing by LabsController#lab_search as HTML
1777
+ Parameters: {"zip_code"=>"90210"}
1778
+ Completed 200 OK in 274ms (Views: 57.9ms)
1779
+
1780
+
1781
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-12 11:11:26 -0500
1782
+ Served asset /application.css - 200 OK (5ms)
1783
+
1784
+
1785
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-12 11:11:26 -0500
1786
+ Cache for Asset (application.js) is stale
1787
+ /Users/danielsudol/.rvm/gems/ruby-1.9.2-p290@medivo_resource/gems/jquery-rails-1.0.16/vendor/assets/javascripts/jquery.js isn't in paths: /Users/danielsudol/projects/medivo/medivo_resource/spec/dummy/app/assets/images, /Users/danielsudol/projects/medivo/medivo_resource/spec/dummy/app/assets/javascripts, /Users/danielsudol/projects/medivo/medivo_resource/spec/dummy/app/assets/stylesheets, /Users/danielsudol/.rvm/gems/ruby-1.9.2-p290@medivo_resource/gems/jquery-rails-1.0.17/vendor/assets/javascripts, /Users/danielsudol/projects/medivo/medivo_resource/app/assets/images, /Users/danielsudol/projects/medivo/medivo_resource/app/assets/javascripts, /Users/danielsudol/projects/medivo/medivo_resource/app/assets/stylesheets
1788
+ Compiled application.js (10ms) (pid 64939)
1789
+ Compiled jquery.js (5ms) (pid 64939)
1790
+ Compiled jquery_ujs.js (0ms) (pid 64939)
1791
+ Served asset /application.js - 200 OK (66ms)
1792
+
1793
+
1794
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-12 11:11:27 -0500
1795
+ Served asset /medivo/markerA.png - 200 OK (2ms)
1796
+
1797
+
1798
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-12 11:11:27 -0500
1799
+ Served asset /medivo/markerB.png - 200 OK (2ms)
1800
+
1801
+
1802
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-12 11:11:27 -0500
1803
+ Served asset /medivo/arrow.png - 200 OK (2ms)
1804
+
1805
+
1806
+ Started GET "/medivo/labs/appointment_data?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-12 11:11:27 -0500
1807
+ Processing by Medivo::LabsController#appointment_data as HTML
1808
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
1809
+ Completed 200 OK in 1ms (Views: 0.3ms)
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.2.3
4
+ version: 0.2.5
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-11-11 00:00:00.000000000 -05:00
12
+ date: 2011-11-12 00:00:00.000000000 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &2153066860 !ruby/object:Gem::Requirement
17
+ requirement: &2185470960 !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: *2153066860
25
+ version_requirements: *2185470960
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: jquery-rails
28
- requirement: &2153066420 !ruby/object:Gem::Requirement
28
+ requirement: &2185470540 !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: *2153066420
36
+ version_requirements: *2185470540
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: coffee-script
39
- requirement: &2153065960 !ruby/object:Gem::Requirement
39
+ requirement: &2185470060 !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: *2153065960
47
+ version_requirements: *2185470060
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: haml-rails
50
- requirement: &2153065520 !ruby/object:Gem::Requirement
50
+ requirement: &2185466320 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *2153065520
58
+ version_requirements: *2185466320
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: geocoder
61
- requirement: &2153065100 !ruby/object:Gem::Requirement
61
+ requirement: &2185465900 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: '0'
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *2153065100
69
+ version_requirements: *2185465900
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rest-client
72
- requirement: &2153064660 !ruby/object:Gem::Requirement
72
+ requirement: &2185465480 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: '0'
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *2153064660
80
+ version_requirements: *2185465480
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: pdfkit
83
- requirement: &2153064240 !ruby/object:Gem::Requirement
83
+ requirement: &2185465060 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :runtime
90
90
  prerelease: false
91
- version_requirements: *2153064240
91
+ version_requirements: *2185465060
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: prawn
94
- requirement: &2153063740 !ruby/object:Gem::Requirement
94
+ requirement: &2185464640 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,7 +99,7 @@ dependencies:
99
99
  version: '0'
100
100
  type: :runtime
101
101
  prerelease: false
102
- version_requirements: *2153063740
102
+ version_requirements: *2185464640
103
103
  description: Use the medivo platform to find lab locations, make labcorp appointments,
104
104
  place lab orders
105
105
  email:
@@ -204,6 +204,7 @@ files:
204
204
  - spec/dummy/script/rails
205
205
  - spec/dummy/tmp/cache/assets/C36/810/sprockets%2F5159467797298fb14cdd1716691362d5
206
206
  - spec/dummy/tmp/cache/assets/C46/F00/sprockets%2F2281d588b540056c5a7306c32a3761b9
207
+ - spec/dummy/tmp/cache/assets/C53/C80/sprockets%2F9297b5f504687910109d311f03f8a7b3
207
208
  - spec/dummy/tmp/cache/assets/C69/500/sprockets%2F140b56780716711c2b6eb1028f042ca6
208
209
  - spec/dummy/tmp/cache/assets/C6C/8D0/sprockets%2F2f423a28516973330a94ad121151f3bf
209
210
  - spec/dummy/tmp/cache/assets/C6E/760/sprockets%2F657954e57920845a5893956e7d32dd2d
@@ -253,6 +254,7 @@ files:
253
254
  - spec/dummy/tmp/cache/assets/DA1/640/sprockets%2F91874cbba5e63cd19d6a7bd3c8362dc4
254
255
  - spec/dummy/tmp/cache/assets/DA2/040/sprockets%2F6ab79dcced8cc9933b734e7b21c3a183
255
256
  - spec/dummy/tmp/cache/assets/DC1/230/sprockets%2F3a36cd467bdce1914a2b7af4ed4114cf
257
+ - spec/dummy/tmp/cache/assets/DCA/B80/sprockets%2Fb4aad54185f42b1b871997ef2dc2fabb
256
258
  - spec/dummy/tmp/cache/assets/DCE/E80/sprockets%2Fc71ec62157b9cc7aabfc030955cef87b
257
259
  - spec/dummy/tmp/cache/assets/DD1/FD0/sprockets%2Fa531f33dc9c5852d39d64a9eda44dacf
258
260
  - spec/dummy/tmp/cache/assets/DD2/A50/sprockets%2Fecb5dd9066b50eb678cd8c9dbb21d229
@@ -263,7 +265,6 @@ files:
263
265
  - spec/dummy/tmp/cache/assets/E32/FC0/sprockets%2Fe55fb2eef11567fe04fdaf7e73af5ba4
264
266
  - spec/dummy/tmp/cache/assets/E59/D50/sprockets%2Fbe1cc4d9b0efb617e58baa16dd1dee58
265
267
  - spec/dummy/tmp/image_path_fb5f3a59200b_1320622886.pdf
266
- - spec/dummy/tmp/pids/server.pid
267
268
  - spec/fixtures/images/southeast.jpg
268
269
  - spec/fixtures/pdfs/hepc_negative_results.pdf
269
270
  - spec/fixtures/pdfs/hepc_result_faq.pdf
@@ -301,7 +302,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
301
302
  version: '0'
302
303
  segments:
303
304
  - 0
304
- hash: 56929817900109279
305
+ hash: -3818122201458021750
305
306
  required_rubygems_version: !ruby/object:Gem::Requirement
306
307
  none: false
307
308
  requirements:
@@ -310,7 +311,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
310
311
  version: '0'
311
312
  segments:
312
313
  - 0
313
- hash: 56929817900109279
314
+ hash: -3818122201458021750
314
315
  requirements: []
315
316
  rubyforge_project:
316
317
  rubygems_version: 1.6.2
@@ -354,6 +355,7 @@ test_files:
354
355
  - spec/dummy/script/rails
355
356
  - spec/dummy/tmp/cache/assets/C36/810/sprockets%2F5159467797298fb14cdd1716691362d5
356
357
  - spec/dummy/tmp/cache/assets/C46/F00/sprockets%2F2281d588b540056c5a7306c32a3761b9
358
+ - spec/dummy/tmp/cache/assets/C53/C80/sprockets%2F9297b5f504687910109d311f03f8a7b3
357
359
  - spec/dummy/tmp/cache/assets/C69/500/sprockets%2F140b56780716711c2b6eb1028f042ca6
358
360
  - spec/dummy/tmp/cache/assets/C6C/8D0/sprockets%2F2f423a28516973330a94ad121151f3bf
359
361
  - spec/dummy/tmp/cache/assets/C6E/760/sprockets%2F657954e57920845a5893956e7d32dd2d
@@ -403,6 +405,7 @@ test_files:
403
405
  - spec/dummy/tmp/cache/assets/DA1/640/sprockets%2F91874cbba5e63cd19d6a7bd3c8362dc4
404
406
  - spec/dummy/tmp/cache/assets/DA2/040/sprockets%2F6ab79dcced8cc9933b734e7b21c3a183
405
407
  - spec/dummy/tmp/cache/assets/DC1/230/sprockets%2F3a36cd467bdce1914a2b7af4ed4114cf
408
+ - spec/dummy/tmp/cache/assets/DCA/B80/sprockets%2Fb4aad54185f42b1b871997ef2dc2fabb
406
409
  - spec/dummy/tmp/cache/assets/DCE/E80/sprockets%2Fc71ec62157b9cc7aabfc030955cef87b
407
410
  - spec/dummy/tmp/cache/assets/DD1/FD0/sprockets%2Fa531f33dc9c5852d39d64a9eda44dacf
408
411
  - spec/dummy/tmp/cache/assets/DD2/A50/sprockets%2Fecb5dd9066b50eb678cd8c9dbb21d229
@@ -413,7 +416,6 @@ test_files:
413
416
  - spec/dummy/tmp/cache/assets/E32/FC0/sprockets%2Fe55fb2eef11567fe04fdaf7e73af5ba4
414
417
  - spec/dummy/tmp/cache/assets/E59/D50/sprockets%2Fbe1cc4d9b0efb617e58baa16dd1dee58
415
418
  - spec/dummy/tmp/image_path_fb5f3a59200b_1320622886.pdf
416
- - spec/dummy/tmp/pids/server.pid
417
419
  - spec/fixtures/images/southeast.jpg
418
420
  - spec/fixtures/pdfs/hepc_negative_results.pdf
419
421
  - spec/fixtures/pdfs/hepc_result_faq.pdf
@@ -1 +0,0 @@
1
- 56055