From 117038c8d87354a750608e1792ea60ce38936a47 Mon Sep 17 00:00:00 2001 From: elliottcable Date: Tue, 16 Jun 2009 17:43:00 -0800 Subject: [PATCH] Removed the useless core_ext. Back down to two files for the entire library! Cool! --- .manifest | 2 -- lib/stringray.rb | 1 - lib/stringray/core_ext.rb | 1 - lib/stringray/core_ext/kernel.rb | 6 ------ stringray.gemspec | 4 ++-- 5 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 lib/stringray/core_ext.rb delete mode 100644 lib/stringray/core_ext/kernel.rb diff --git a/.manifest b/.manifest index d12fb8e..43bb303 100644 --- a/.manifest +++ b/.manifest @@ -1,5 +1,3 @@ -lib/stringray/core_ext/kernel.rb -lib/stringray/core_ext.rb lib/stringray/includes.rb lib/stringray.rb Rakefile.rb diff --git a/lib/stringray.rb b/lib/stringray.rb index c733602..c0f4511 100644 --- a/lib/stringray.rb +++ b/lib/stringray.rb @@ -1,4 +1,3 @@ -require 'stringray/core_ext' require 'stringray/includes' class StringRay < Array diff --git a/lib/stringray/core_ext.rb b/lib/stringray/core_ext.rb deleted file mode 100644 index 79105e4..0000000 --- a/lib/stringray/core_ext.rb +++ /dev/null @@ -1 +0,0 @@ -require 'stringray/core_ext/kernel' diff --git a/lib/stringray/core_ext/kernel.rb b/lib/stringray/core_ext/kernel.rb deleted file mode 100644 index 321a8a8..0000000 --- a/lib/stringray/core_ext/kernel.rb +++ /dev/null @@ -1,6 +0,0 @@ -module Kernel - def self.warn message - super "#{caller[-1]}: warning: #{message}" - end -end - diff --git a/stringray.gemspec b/stringray.gemspec index e061b32..d96797b 100644 --- a/stringray.gemspec +++ b/stringray.gemspec @@ -9,8 +9,8 @@ Gem::Specification.new do |s| s.date = %q{2009-06-16} s.description = %q{Combining many of the benefits of Arrays and Strings, StringRay allows you to treat a String as an Array of words in many cases.} s.email = ["stringray@elliottcable.com"] - s.extra_rdoc_files = ["lib/stringray/core_ext/kernel.rb", "lib/stringray/core_ext.rb", "lib/stringray/includes.rb", "lib/stringray.rb", "README.markdown"] - s.files = ["lib/stringray/core_ext/kernel.rb", "lib/stringray/core_ext.rb", "lib/stringray/includes.rb", "lib/stringray.rb", "Rakefile.rb", "README.markdown", "spec/stringray_spec.rb", ".manifest", "stringray.gemspec"] + s.extra_rdoc_files = ["lib/stringray/includes.rb", "lib/stringray.rb", "README.markdown"] + s.files = ["lib/stringray/includes.rb", "lib/stringray.rb", "Rakefile.rb", "README.markdown", "spec/stringray_spec.rb", ".manifest", "stringray.gemspec"] s.has_rdoc = true s.homepage = %q{http://github.com/elliottcable/stringray} s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Stringray", "--main", "README.markdown"] -- 2.11.4.GIT