Permalink
Browse files

Removing bits not directly related to the runtime.

I'm deleting a lot of good stuff here, including Johnson.Template,
Yehuda's work on page DOM, and the jQuery tests. I don't think they
belong in Johnson proper. We'll likely move a lot of the page DOM
stuff to Aaron's work on Taka.
  • Loading branch information...
1 parent bccd2d2 commit 00580d94e451ecb90f56f947e4a69a12ab76d287 @jbarnette committed Mar 26, 2009
View
@@ -1,6 +1,6 @@
require "rubygems"
-require "hoe"
require "erb"
+require "hoe"
require "./lib/johnson/version.rb"
abort "Need Ruby version 1.8.x!" unless RUBY_VERSION > "1.8"
@@ -48,42 +48,11 @@ namespace :gem do
end
end
-namespace :test do
- task :jspec => :extensions do
- $LOAD_PATH << File.expand_path(File.dirname(__FILE__) + "/lib")
- Johnson.send(:remove_const, :VERSION)
- require "johnson"
-
- Dir["test/jspec/**/*_spec.js"].each do |file|
- Johnson::Runtime.new.load(file)
- end
- end
-
- task :jquery => :extensions do
- $LOAD_PATH << File.expand_path(File.dirname(__FILE__) + "/lib")
- $LOAD_PATH << File.expand_path(File.dirname(__FILE__) + "/../taka/lib")
- Johnson.send(:remove_const, :VERSION)
- require 'johnson'
- Johnson::Runtime.new.load('test/jquery_units/test.js')
- end
-end
-
# make sure the C bits are up-to-date when testing
Rake::Task[:test].prerequisites << :extensions
Rake::Task[:check_manifest].prerequisites << GENERATED_NODE
-task :install_expat do
- Dir.chdir("./srcs") do
- `tar -xf xmlparser-0.6.8.tar`
- Dir.chdir("xmlparser") do
- puts `#{Gem.ruby} extconf.rb`
- puts `#{MAKE}`
- puts `sudo #{MAKE} install`
- end
- end
-end
-
task :build => :extensions
task :extension => :build # FIXME: why is this here?
File renamed without changes.
View
@@ -1,9 +0,0 @@
-Ruby.require('net/http');
-Johnson.require("johnson/browser/xmlw3cdom");
-Johnson.require("johnson/browser/xmlsax");
-Johnson.require("johnson/browser/env");
-
-DOMElement.prototype.toString = function() {
- return "<" + this.tagName + (this.className !== "" ? " class='" + this.className + "'" : "") +
- (this.id !== "" ? " id='" + this.id + "'" : "") + ">";
-};
Oops, something went wrong.

0 comments on commit 00580d9

Please sign in to comment.