medivo 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. data/app/models/medivo/appointment.rb +1 -1
  2. data/lib/medivo/version.rb +1 -1
  3. data/spec/dummy/log/test.log +51 -0
  4. data/spec/dummy/tmp/cache/assets/C46/F00/sprockets%2F2281d588b540056c5a7306c32a3761b9 +0 -0
  5. data/spec/dummy/tmp/cache/assets/C81/D00/sprockets%2F64f056bd752d271308a86a6f865b1911 +0 -0
  6. data/spec/dummy/tmp/cache/assets/CB4/BD0/sprockets%2F3378f27c0d4f5e6d708665b22707a31f +0 -0
  7. data/spec/dummy/tmp/cache/assets/CC3/EF0/sprockets%2F453b504c1f8f374578636f699eaa455d +0 -0
  8. data/spec/dummy/tmp/cache/assets/CDD/820/sprockets%2Fb28231960c7ac62eff9048e702a29c70 +0 -0
  9. data/spec/dummy/tmp/cache/assets/CEC/EF0/sprockets%2F4b24a74018f693c06088bd52f8cc9f86 +0 -0
  10. data/spec/dummy/tmp/cache/assets/CEE/250/sprockets%2F96688f33f2f8aa261bf6701c1d6d7575 +0 -0
  11. data/spec/dummy/tmp/cache/assets/D20/F10/sprockets%2Fb2e907e4faa85fe755f4439e3b229088 +0 -0
  12. data/spec/dummy/tmp/cache/assets/D29/000/sprockets%2F61a10ddf57f1129c02a1049bfed6e007 +0 -0
  13. data/spec/dummy/tmp/cache/assets/D2C/F80/sprockets%2F399f6d5eb273936af7ff8f35a77c5037 +0 -0
  14. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  15. data/spec/dummy/tmp/cache/assets/D36/870/sprockets%2Fce9e887568de873b133ae43d7c977f68 +0 -0
  16. data/spec/dummy/tmp/cache/assets/D45/320/sprockets%2Fc50ff379a1bdf1dd4d22249058749cf6 +0 -0
  17. data/spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
  18. data/spec/dummy/tmp/cache/assets/D55/ED0/sprockets%2F0f673e42e816c6fe5b66a5c96f896f1a +0 -0
  19. data/spec/dummy/tmp/cache/assets/D5D/3E0/sprockets%2F63fea6cc142b5f02da93bf81e70b2116 +0 -0
  20. data/spec/dummy/tmp/cache/assets/D60/030/sprockets%2Ffc9485f617fc5e9b8918755d2e08ecc6 +0 -0
  21. data/spec/dummy/tmp/cache/assets/D64/C50/sprockets%2F22ee6fb2ab1ea9694ac7f0f41a406094 +0 -0
  22. data/spec/dummy/tmp/cache/assets/D74/9A0/sprockets%2F0ca4e6e833c72156fc7e7d5f007d9ce3 +0 -0
  23. data/spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
  24. data/spec/dummy/tmp/cache/assets/D88/2C0/sprockets%2F452ab3ebb1912cf1c2ba617eec52a718 +0 -0
  25. data/spec/dummy/tmp/cache/assets/DCE/E80/sprockets%2Fc71ec62157b9cc7aabfc030955cef87b +0 -0
  26. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  27. data/spec/dummy/tmp/cache/assets/E32/FC0/sprockets%2Fe55fb2eef11567fe04fdaf7e73af5ba4 +0 -0
  28. data/spec/lib/fdf_generator_spec.rb +2 -2
  29. data/spec/models/orders_spec.rb +0 -17
  30. data/spec/support/helper.rb +2 -1
  31. metadata +20 -20
@@ -10,7 +10,7 @@ module Medivo
10
10
  private
11
11
  def self.resource
12
12
  @resource ||= begin
13
- config = ResourceConfig.find 'lab_resource.yml'
13
+ config = ResourceConfig.find 'appointment_resource.yml'
14
14
  RestClient::Resource.new config.href, :timeout => (config.timeout || 12)
15
15
  rescue => e
16
16
  p e
@@ -1,3 +1,3 @@
1
1
  module Medivo
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
@@ -49,3 +49,54 @@ Served asset /medivo/markerB.png - 200 OK (5ms)
49
49
 
50
50
  Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-05 16:56:43 -0400
51
51
  Served asset /medivo/arrow.png - 200 OK (4ms)
52
+
53
+
54
+ Started GET "/medivo/labs/lab_data?zip_code=90210" for 127.0.0.1 at 2011-11-05 23:17:33 -0400
55
+ Processing by Medivo::LabsController#lab_data as HTML
56
+ Parameters: {"zip_code"=>"90210"}
57
+ Completed 200 OK in 412ms (Views: 1.1ms)
58
+
59
+
60
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-05 23:17:35 -0400
61
+ Processing by LabsController#lab_search as HTML
62
+ Parameters: {"zip_code"=>"90210"}
63
+ Completed 200 OK in 296ms (Views: 104.6ms)
64
+
65
+
66
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-05 23:17:35 -0400
67
+ Compiled application.css (3ms) (pid 63517)
68
+ Served asset /application.css - 200 OK (8ms)
69
+
70
+
71
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-05 23:17:35 -0400
72
+ Compiled application.js (12ms) (pid 63517)
73
+ Compiled jquery.js (2ms) (pid 63517)
74
+ Compiled jquery_ujs.js (0ms) (pid 63517)
75
+ Compiled medivo/lab_list/application.js (69ms) (pid 63517)
76
+ Compiled medivo/handlebars.js (0ms) (pid 63517)
77
+ Compiled medivo/helpers.js (173ms) (pid 63517)
78
+ Compiled medivo/lab_list/models.js (181ms) (pid 63517)
79
+ Compiled medivo/models.js (170ms) (pid 63517)
80
+ Compiled medivo/lab_list/views.js (178ms) (pid 63517)
81
+ Compiled medivo/views.js (166ms) (pid 63517)
82
+ Compiled medivo/lab_list/handlers.js (164ms) (pid 63517)
83
+ Compiled medivo/lab_list/sample/show_labs.js (160ms) (pid 63517)
84
+ Compiled medivo/lab_appointment/application.js (12ms) (pid 63517)
85
+ Compiled medivo/date.js (0ms) (pid 63517)
86
+ Compiled medivo/lab_appointment/models.js (163ms) (pid 63517)
87
+ Compiled medivo/lab_appointment/views.js (163ms) (pid 63517)
88
+ Compiled medivo/lab_appointment/handlers.js (169ms) (pid 63517)
89
+ Compiled medivo/lab_appointment/sample/show_appointments.js (208ms) (pid 63517)
90
+ Served asset /application.js - 200 OK (2117ms)
91
+
92
+
93
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-05 23:17:38 -0400
94
+ Served asset /medivo/markerA.png - 200 OK (8ms)
95
+
96
+
97
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-05 23:17:38 -0400
98
+ Served asset /medivo/markerB.png - 200 OK (3ms)
99
+
100
+
101
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-05 23:17:38 -0400
102
+ Served asset /medivo/arrow.png - 200 OK (3ms)
@@ -20,8 +20,8 @@ describe Medivo::FdfGenerator do
20
20
  pdf_path = medivo_fixture_path "negative_results.pdf"
21
21
  pdf_output = `pdftk #{pdf_path} fill_form #{@fdf.path} output - flatten`
22
22
  text = pdf_stream_to_text(pdf_output)
23
- @fields.values.each do |value|
24
- text.should match value
23
+ @fields.each do |key,value|
24
+ text.should match value unless key == :missing
25
25
  end
26
26
  end
27
27
  end
@@ -1,22 +1,5 @@
1
1
  require 'spec_helper'
2
2
 
3
- module Medivo::Spec
4
- def pdf_to_text(file)
5
- pdf = PDF::Toolkit.open(file)
6
- pdf.to_text.read.force_encoding('ascii-8bit')
7
- end
8
-
9
- def pdf_stream_to_text(bytes)
10
- pdf = Tempfile.new('pdf', :encoding => 'ascii-8bit')
11
- pdf.write bytes
12
- pdf.close
13
- text = pdf_to_text pdf
14
- pdf.unlink
15
- text
16
- end
17
- end
18
-
19
-
20
3
  describe Medivo::Order do
21
4
 
22
5
  it "requires fields to be present" do
@@ -14,8 +14,9 @@ module Medivo::Spec
14
14
  pdf = Tempfile.new('pdf', :encoding => 'ascii-8bit')
15
15
  pdf.write bytes
16
16
  pdf.close
17
- pdf_to_text pdf
17
+ text = pdf_to_text pdf
18
18
  pdf.unlink
19
+ text
19
20
  end
20
21
 
21
22
  FIXTURE_PATH = File.expand_path('../../fixtures', __FILE__) unless defined? FIXTURE_PATH
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.1.10
4
+ version: 0.1.11
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-05 00:00:00.000000000 -04:00
12
+ date: 2011-11-06 01:00:00.000000000 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &2165385840 !ruby/object:Gem::Requirement
17
+ requirement: &2152623820 !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: *2165385840
25
+ version_requirements: *2152623820
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: jquery-rails
28
- requirement: &2165385420 !ruby/object:Gem::Requirement
28
+ requirement: &2152623400 !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: *2165385420
36
+ version_requirements: *2152623400
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: coffee-script
39
- requirement: &2165384880 !ruby/object:Gem::Requirement
39
+ requirement: &2152622940 !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: *2165384880
47
+ version_requirements: *2152622940
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: haml-rails
50
- requirement: &2165384440 !ruby/object:Gem::Requirement
50
+ requirement: &2152622520 !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: *2165384440
58
+ version_requirements: *2152622520
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: geocoder
61
- requirement: &2165384020 !ruby/object:Gem::Requirement
61
+ requirement: &2152622020 !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: *2165384020
69
+ version_requirements: *2152622020
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rest-client
72
- requirement: &2165383600 !ruby/object:Gem::Requirement
72
+ requirement: &2152621600 !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: *2165383600
80
+ version_requirements: *2152621600
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: pdfkit
83
- requirement: &2165383160 !ruby/object:Gem::Requirement
83
+ requirement: &2152621180 !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: *2165383160
91
+ version_requirements: *2152621180
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: prawn
94
- requirement: &2165382740 !ruby/object:Gem::Requirement
94
+ requirement: &2152620760 !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: *2165382740
102
+ version_requirements: *2152620760
103
103
  description: Use the medivo platform to find lab locations, make labcorp appointments,
104
104
  place lab orders
105
105
  email:
@@ -292,7 +292,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
292
292
  version: '0'
293
293
  segments:
294
294
  - 0
295
- hash: 4582220980121328817
295
+ hash: 2347708548636800452
296
296
  required_rubygems_version: !ruby/object:Gem::Requirement
297
297
  none: false
298
298
  requirements:
@@ -301,7 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
301
301
  version: '0'
302
302
  segments:
303
303
  - 0
304
- hash: 4582220980121328817
304
+ hash: 2347708548636800452
305
305
  requirements: []
306
306
  rubyforge_project:
307
307
  rubygems_version: 1.6.2