From 246f5f93ab89fe6ceda179f5f93dbc287937e83b Mon Sep 17 00:00:00 2001 From: Mike Dvorkin Date: Mon, 3 Sep 2012 11:54:32 -0700 Subject: [PATCH] Made [rake spec] run with ruby 1.9.3 --- Gemfile.lock | 2 +- lib/awesome_print.rb | 2 +- spec/spec_helper.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index e097959..8acbb80 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - awesome_print (1.0.0) + awesome_print (1.0.2) GEM remote: http://rubygems.org/ diff --git a/lib/awesome_print.rb b/lib/awesome_print.rb index b2c2b13..2d16f87 100755 --- a/lib/awesome_print.rb +++ b/lib/awesome_print.rb @@ -7,7 +7,7 @@ # AwesomePrint might be loaded implicitly through ~/.irbrc so do nothing # for subsequent requires. # -unless defined?(AwesomePrint) +unless defined?(AwesomePrint::Inspector) %w(array string method object class kernel).each do |file| require File.dirname(__FILE__) + "/awesome_print/core_ext/#{file}" end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 38a4f2e..06d2c5d 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -6,7 +6,7 @@ # # Running specs from the command line: # $ rake spec # Entire spec suite. -# $ rspec spec/logger_spec.rb # Individual spec file. +# $ rspec spec/objects_spec.rb # Individual spec file. # $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))