From 11a5fa538b8a3bb0ef7b4ca7a0ad710fd04967de Mon Sep 17 00:00:00 2001 From: Evan Battaglia Date: Thu, 17 May 2012 17:05:58 -0700 Subject: [PATCH] Super-minor changes based on Myron's comments --- lib/interpol/documentation_app.rb | 2 +- spec/simplecov_setup.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/interpol/documentation_app.rb b/lib/interpol/documentation_app.rb index f7600fd..d2205d7 100644 --- a/lib/interpol/documentation_app.rb +++ b/lib/interpol/documentation_app.rb @@ -93,7 +93,7 @@ def initialize(config) helpers Helpers get('/') do - erb :layout, :locals => { :endpoints => endpoints, \ + erb :layout, :locals => { :endpoints => endpoints, :current_endpoint => current_endpoint } end end diff --git a/spec/simplecov_setup.rb b/spec/simplecov_setup.rb index b149f26..f841ab7 100644 --- a/spec/simplecov_setup.rb +++ b/spec/simplecov_setup.rb @@ -1,4 +1,5 @@ -if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby' # MRI only +# MRI only +if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby' && RUBY_VERSION.to_f >= 1.9 require 'simplecov' SimpleCov.start do