medivo 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. data/lib/medivo/version.rb +1 -1
  2. data/lib/pdf/medivo/pdf_generator.rb +2 -2
  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/pdf_generator_spec.rb +1 -1
  29. data/spec/lib/pdf_group_spec.rb +1 -1
  30. metadata +19 -21
  31. data/spec/dummy/tmp/pids/server.pid +0 -1
@@ -1,3 +1,3 @@
1
1
  module Medivo
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.13"
3
3
  end
@@ -19,7 +19,7 @@ module Medivo
19
19
  raise "variables #{variables} should be a hash" unless variables.is_a? Hash
20
20
  tmp_pdf do |pdf|
21
21
  fdf = FdfGenerator.file(variables)
22
- system 'pdftk', file_path, 'fill_form', fdf.path, 'output', pdf.path, 'flatten'
22
+ system 'pdftk', file_path, 'fill_form', fdf.path, 'output', pdf.path#, 'flatten'
23
23
  fdf.unlink
24
24
  end
25
25
  end
@@ -37,7 +37,7 @@ module Medivo
37
37
  image_path = Rails.root.join "tmp/image_path_#{SecureRandom.hex(6)}_#{Time.now.to_i}.pdf"
38
38
  img_pdf = Prawn::Document.generate(image_path) do |pdf|
39
39
  images.each do |img_info|
40
- pdf.image img_info[:path], :at=> img_info[:at]
40
+ pdf.image img_info[:path], img_info[:options]
41
41
  end
42
42
  end
43
43
  pdf = tmp_pdf do |pdf|
@@ -100,3 +100,54 @@ Served asset /medivo/markerB.png - 200 OK (3ms)
100
100
 
101
101
  Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-05 23:17:38 -0400
102
102
  Served asset /medivo/arrow.png - 200 OK (3ms)
103
+
104
+
105
+ Started GET "/medivo/labs/lab_data?zip_code=90210" for 127.0.0.1 at 2011-11-06 19:34:29 -0500
106
+ Processing by Medivo::LabsController#lab_data as HTML
107
+ Parameters: {"zip_code"=>"90210"}
108
+ Completed 200 OK in 342ms (Views: 1.1ms)
109
+
110
+
111
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-06 19:34:31 -0500
112
+ Processing by LabsController#lab_search as HTML
113
+ Parameters: {"zip_code"=>"90210"}
114
+ Completed 200 OK in 304ms (Views: 92.4ms)
115
+
116
+
117
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-06 19:34:32 -0500
118
+ Compiled application.css (1ms) (pid 68268)
119
+ Served asset /application.css - 200 OK (8ms)
120
+
121
+
122
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-06 19:34:32 -0500
123
+ Compiled application.js (10ms) (pid 68268)
124
+ Compiled jquery.js (2ms) (pid 68268)
125
+ Compiled jquery_ujs.js (0ms) (pid 68268)
126
+ Compiled medivo/lab_list/application.js (8ms) (pid 68268)
127
+ Compiled medivo/handlebars.js (0ms) (pid 68268)
128
+ Compiled medivo/helpers.js (169ms) (pid 68268)
129
+ Compiled medivo/lab_list/models.js (202ms) (pid 68268)
130
+ Compiled medivo/models.js (264ms) (pid 68268)
131
+ Compiled medivo/lab_list/views.js (202ms) (pid 68268)
132
+ Compiled medivo/views.js (186ms) (pid 68268)
133
+ Compiled medivo/lab_list/handlers.js (181ms) (pid 68268)
134
+ Compiled medivo/lab_list/sample/show_labs.js (164ms) (pid 68268)
135
+ Compiled medivo/lab_appointment/application.js (11ms) (pid 68268)
136
+ Compiled medivo/date.js (0ms) (pid 68268)
137
+ Compiled medivo/lab_appointment/models.js (165ms) (pid 68268)
138
+ Compiled medivo/lab_appointment/views.js (170ms) (pid 68268)
139
+ Compiled medivo/lab_appointment/handlers.js (179ms) (pid 68268)
140
+ Compiled medivo/lab_appointment/sample/show_appointments.js (159ms) (pid 68268)
141
+ Served asset /application.js - 200 OK (2203ms)
142
+
143
+
144
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-06 19:34:34 -0500
145
+ Served asset /medivo/markerA.png - 200 OK (5ms)
146
+
147
+
148
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-06 19:34:34 -0500
149
+ Served asset /medivo/markerB.png - 200 OK (3ms)
150
+
151
+
152
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-06 19:34:34 -0500
153
+ Served asset /medivo/arrow.png - 200 OK (6ms)
@@ -51,7 +51,7 @@ Southeast Region
51
51
  pdf_file = Medivo::PdfGenerator.variable_fields_with_images(
52
52
  path,
53
53
  {:director_name=>md},
54
- [{:path=> img_path, :at=> [30, 120]}]
54
+ [{:path=> img_path, :options=>{:at=> [40, 100], :width=>170, :height=>40}}]
55
55
  )
56
56
  show_me_the_pdf(pdf_file, '/tmp/test.pdf')
57
57
  text = pdf_to_text(pdf_file)
@@ -69,7 +69,7 @@ describe Medivo::PdfGroup do
69
69
  lab_requisition(requisition_id)
70
70
  static_pdf(faq_path)
71
71
  end
72
- # open('/tmp/test.pdf', 'wb+') { |f| f.write pdf.read }
72
+
73
73
  text = pdf_to_text(pdf_group.pdf)
74
74
  text.should match name
75
75
  text.should match "Account #:111111111 Req\/Control #:#{requisition_id}"
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.12
4
+ version: 0.1.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &2156714880 !ruby/object:Gem::Requirement
17
+ requirement: &2161952680 !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: *2156714880
25
+ version_requirements: *2161952680
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: jquery-rails
28
- requirement: &2156711280 !ruby/object:Gem::Requirement
28
+ requirement: &2161952260 !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: *2156711280
36
+ version_requirements: *2161952260
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: coffee-script
39
- requirement: &2156706180 !ruby/object:Gem::Requirement
39
+ requirement: &2161951720 !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: *2156706180
47
+ version_requirements: *2161951720
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: haml-rails
50
- requirement: &2156703620 !ruby/object:Gem::Requirement
50
+ requirement: &2161951300 !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: *2156703620
58
+ version_requirements: *2161951300
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: geocoder
61
- requirement: &2156701340 !ruby/object:Gem::Requirement
61
+ requirement: &2161950880 !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: *2156701340
69
+ version_requirements: *2161950880
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rest-client
72
- requirement: &2156699220 !ruby/object:Gem::Requirement
72
+ requirement: &2161950460 !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: *2156699220
80
+ version_requirements: *2161950460
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: pdfkit
83
- requirement: &2156674140 !ruby/object:Gem::Requirement
83
+ requirement: &2161950040 !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: *2156674140
91
+ version_requirements: *2161950040
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: prawn
94
- requirement: &2156671240 !ruby/object:Gem::Requirement
94
+ requirement: &2161949620 !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: *2156671240
102
+ version_requirements: *2161949620
103
103
  description: Use the medivo platform to find lab locations, make labcorp appointments,
104
104
  place lab orders
105
105
  email:
@@ -259,7 +259,6 @@ files:
259
259
  - spec/dummy/tmp/cache/assets/E32/FC0/sprockets%2Fe55fb2eef11567fe04fdaf7e73af5ba4
260
260
  - spec/dummy/tmp/cache/assets/E59/D50/sprockets%2Fbe1cc4d9b0efb617e58baa16dd1dee58
261
261
  - spec/dummy/tmp/image_path_fb5f3a59200b_1320622886.pdf
262
- - spec/dummy/tmp/pids/server.pid
263
262
  - spec/fixtures/lc_order_with_normal_results.xml
264
263
  - spec/fixtures/lc_order_with_positive_results.xml
265
264
  - spec/fixtures/lc_order_with_requisition.xml
@@ -294,7 +293,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
294
293
  version: '0'
295
294
  segments:
296
295
  - 0
297
- hash: 4020770003589116663
296
+ hash: 1719666100364276602
298
297
  required_rubygems_version: !ruby/object:Gem::Requirement
299
298
  none: false
300
299
  requirements:
@@ -303,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
303
302
  version: '0'
304
303
  segments:
305
304
  - 0
306
- hash: 4020770003589116663
305
+ hash: 1719666100364276602
307
306
  requirements: []
308
307
  rubyforge_project:
309
308
  rubygems_version: 1.6.2
@@ -404,7 +403,6 @@ test_files:
404
403
  - spec/dummy/tmp/cache/assets/E32/FC0/sprockets%2Fe55fb2eef11567fe04fdaf7e73af5ba4
405
404
  - spec/dummy/tmp/cache/assets/E59/D50/sprockets%2Fbe1cc4d9b0efb617e58baa16dd1dee58
406
405
  - spec/dummy/tmp/image_path_fb5f3a59200b_1320622886.pdf
407
- - spec/dummy/tmp/pids/server.pid
408
406
  - spec/fixtures/lc_order_with_normal_results.xml
409
407
  - spec/fixtures/lc_order_with_positive_results.xml
410
408
  - spec/fixtures/lc_order_with_requisition.xml
@@ -1 +0,0 @@
1
- 65439