Class: SimplecovUrl::HtmlProcessor
- Inherits:
-
Object
- Object
- SimplecovUrl::HtmlProcessor
- Defined in:
- lib/simplecov_url/html_processor.rb
Constant Summary collapse
- HTML_FILE =
'index.html'- CSS_FILE =
'application.css'- JAVASCRIPT_FILE =
'application.js'
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call ⇒ Object
11 12 13 |
# File 'lib/simplecov_url/html_processor.rb', line 11 def self.call new.html end |
Instance Method Details
#html ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/simplecov_url/html_processor.rb', line 15 def html return if AccessManager.deny? tmp = read_file(HTML_FILE) return unless tmp tmp = (tmp) tmp = (tmp) return frontend_error(CSS_FILE) unless css return frontend_error(JAVASCRIPT_FILE) unless javascript tmp = insert_css_and_javascript_as_inline(tmp) tmp.html_safe rescue StandardError => e general_error(e) end |