From c75c058ed627b23dd392de5792c5366cbab117c8 Mon Sep 17 00:00:00 2001 From: Mauro George Date: Thu, 19 Feb 2015 19:36:33 -0200 Subject: [PATCH] Remove the lib/ap.rb This ways we need to require always awesome_print --- lib/ap.rb | 10 ---------- spec/misc_spec.rb | 3 +-- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 lib/ap.rb diff --git a/lib/ap.rb b/lib/ap.rb deleted file mode 100644 index 793a9af..0000000 --- a/lib/ap.rb +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) 2010-2013 Michael Dvorkin -# -# Awesome Print is freely distributable under the terms of MIT license. -# See LICENSE file or http://www.opensource.org/licenses/mit-license.php -#------------------------------------------------------------------------------ -# -# Keeping this for backwards compatibility to allow -# require "ap" -# -require File.dirname(__FILE__) + "/awesome_print" diff --git a/spec/misc_spec.rb b/spec/misc_spec.rb index d9db988..f6be128 100644 --- a/spec/misc_spec.rb +++ b/spec/misc_spec.rb @@ -44,9 +44,8 @@ RSpec.describe "AwesomePrint" do expect(ap object).to eq(object) end - # Require different file name this time (lib/ap.rb vs. lib/awesome_print). it "several require 'awesome_print' should do no harm" do - require File.expand_path(File.dirname(__FILE__) + '/../lib/ap') + require File.expand_path(File.dirname(__FILE__) + '/../lib/awesome_print') expect { rand.ai }.not_to raise_error end