diff --git a/Gemfile b/Gemfile index d65e2a6..fa75df1 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,3 @@ -source 'http://rubygems.org' +source 'https://rubygems.org' gemspec diff --git a/Gemfile.lock b/Gemfile.lock index eff3539..00a76ba 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,14 +1,17 @@ PATH remote: . specs: - nokogiri-plist (0.4.1) + nokogiri-plist (0.5.0) nokogiri GEM - remote: http://rubygems.org/ + remote: https://rubygems.org/ specs: + mini_portile (0.6.2) mocha (0.9.12) - nokogiri (1.4.4) + nokogiri (1.6.6.2) + mini_portile (~> 0.6.0) + rake (0.9.6) shoulda (2.11.3) PLATFORMS @@ -17,4 +20,8 @@ PLATFORMS DEPENDENCIES mocha nokogiri-plist! + rake shoulda + +BUNDLED WITH + 1.10.6 diff --git a/Rakefile b/Rakefile index ba605a2..b32dd7f 100644 --- a/Rakefile +++ b/Rakefile @@ -1,7 +1,6 @@ require 'rake/testtask' Rake::TestTask.new :test do |t| - require 'redgreen' if Gem.available?('redgreen') t.libs << 'lib' t.pattern = 'test/**/test_*.rb' t.verbose = true diff --git a/lib/core_ext/string.rb b/lib/core_ext/string.rb deleted file mode 100644 index a3b23d5..0000000 --- a/lib/core_ext/string.rb +++ /dev/null @@ -1,7 +0,0 @@ -String.class_eval do - - define_method :to_plist do - Nokogiri::PList(self) - end - -end diff --git a/lib/nokogiri-plist.rb b/lib/nokogiri-plist.rb index d4bebe7..2a0226e 100644 --- a/lib/nokogiri-plist.rb +++ b/lib/nokogiri-plist.rb @@ -14,6 +14,4 @@ require 'nokogiri-plist/node' require 'nokogiri-plist/plist' -require 'core_ext/string' - -Nokogiri::XML::Node.send :include, NokogiriPList::Node \ No newline at end of file +Nokogiri::XML::Node.send :include, NokogiriPList::Node diff --git a/nokogiri-plist.gemspec b/nokogiri-plist.gemspec index de70391..37bac18 100644 --- a/nokogiri-plist.gemspec +++ b/nokogiri-plist.gemspec @@ -15,8 +15,9 @@ Gem::Specification.new do |s| s.required_rubygems_version = ">= 1.3.6" - s.add_development_dependency 'shoulda' s.add_development_dependency 'mocha' + s.add_development_dependency 'rake' + s.add_development_dependency 'shoulda' s.add_dependency 'nokogiri' diff --git a/test/nokogiri-plist/test_generator.rb b/test/nokogiri-plist/test_generator.rb index 22f83af..1990834 100644 --- a/test/nokogiri-plist/test_generator.rb +++ b/test/nokogiri-plist/test_generator.rb @@ -1,4 +1,4 @@ -require 'test/test_helper' +require_relative '../test_helper' class NokogiriPList::GeneratorTest < Test::Unit::TestCase diff --git a/test/test_helper.rb b/test/test_helper.rb index 8c1e158..d5b7580 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -5,4 +5,4 @@ ROOT = File.join(File.expand_path(File.dirname(__FILE__)), '..') $LOAD_PATH.unshift(ROOT) -require File.join('nokogiri-plist.rb') \ No newline at end of file +require File.join('nokogiri-plist.rb') diff --git a/test/test_string.rb b/test/test_string.rb deleted file mode 100644 index 4f18aca..0000000 --- a/test/test_string.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'test/test_helper' - -class StringTest < Test::Unit::TestCase - - context ".to_plist" do - - should "calls PList parser with itself" do - Nokogiri.expects(:PList).with("this is a test") - - "this is a test".to_plist - end - - end - -end \ No newline at end of file