Permalink
Browse files

Unvendor envjs, make gem dep

Latest changes have been released, no more need for specific envjs
commit.
  • Loading branch information...
1 parent 39eb720 commit b7528e28abc1aa29557746bf50854e15fe67d105 @mynyml committed Feb 13, 2010
Showing with 2 additions and 36,236 deletions.
  1. +0 −104 Manifest
  2. +1 −0 harmony.gemspec
  3. +1 −1 lib/harmony/page.rb
  4. +0 −1 vendor/README
  5. +0 −36 vendor/envjs/README
  6. +0 −255 vendor/envjs/bin/envjsrb
  7. +0 −33 vendor/envjs/bin/jquery-1.2.6-test.js
  8. +0 −33 vendor/envjs/bin/jquery-1.3.1-test.js
  9. +0 −106 vendor/envjs/bin/jquery-1.3.2-test.js
  10. +0 −82 vendor/envjs/bin/prototype-1.6.0.3-test.js
  11. +0 −27 vendor/envjs/bin/prototype_1.6.0.3_tmpl.txt
  12. +0 −58 vendor/envjs/bin/test-jquery.sh
  13. +0 −54 vendor/envjs/bin/test-prototype.sh
  14. BIN vendor/envjs/bin/tidy
  15. +0 −23 vendor/envjs/lib/envjs.rb
  16. +0 −21,665 vendor/envjs/lib/envjs/env.js
  17. +0 −3 vendor/envjs/lib/envjs/net.rb
  18. +0 −94 vendor/envjs/lib/envjs/net/cgi.rb
  19. +0 −75 vendor/envjs/lib/envjs/net/file.rb
  20. +0 −11 vendor/envjs/lib/envjs/options.rb
  21. +0 −351 vendor/envjs/lib/envjs/runtime.rb
  22. +0 −24 vendor/envjs/lib/envjs/tempfile.rb
  23. +0 −80 vendor/envjs/test/base64.js
  24. +0 −15 vendor/envjs/test/call-load-test.js
  25. +0 −45 vendor/envjs/test/data.js
  26. +0 −53 vendor/envjs/test/debug.js
  27. BIN vendor/envjs/test/firebug/errorIcon.png
  28. +0 −209 vendor/envjs/test/firebug/firebug.css
  29. +0 −23 vendor/envjs/test/firebug/firebug.html
  30. +0 −672 vendor/envjs/test/firebug/firebug.js
  31. +0 −10 vendor/envjs/test/firebug/firebugx.js
  32. BIN vendor/envjs/test/firebug/infoIcon.png
  33. BIN vendor/envjs/test/firebug/warningIcon.png
  34. +0 −171 vendor/envjs/test/fixtures/html/events.html
  35. +0 −46 vendor/envjs/test/fixtures/html/iframe1.html
  36. +0 −46 vendor/envjs/test/fixtures/html/iframe1a.html
  37. +0 −45 vendor/envjs/test/fixtures/html/iframe2.html
  38. +0 −28 vendor/envjs/test/fixtures/html/iframe3.html
  39. +0 −57 vendor/envjs/test/fixtures/html/iframeN.html
  40. +0 −181 vendor/envjs/test/fixtures/html/malformed.html
  41. +0 −81 vendor/envjs/test/fixtures/html/scope.html
  42. +0 −19 vendor/envjs/test/fixtures/html/trivial.html
  43. +0 −26 vendor/envjs/test/fixtures/html/with_js.html
  44. BIN vendor/envjs/test/fixtures/images/icon-blue.png
  45. +0 −1 vendor/envjs/test/fixtures/js/external_script.js
  46. +0 −1 vendor/envjs/test/fixtures/js/script.js
  47. +0 −2 vendor/envjs/test/fixtures/js/script_error.js
  48. +0 −171 vendor/envjs/test/html/events.html
  49. +0 −46 vendor/envjs/test/html/iframe1.html
  50. +0 −46 vendor/envjs/test/html/iframe1a.html
  51. +0 −45 vendor/envjs/test/html/iframe2.html
  52. +0 −30 vendor/envjs/test/html/iframe3.html
  53. +0 −57 vendor/envjs/test/html/iframeN.html
  54. +0 −181 vendor/envjs/test/html/malformed.html
  55. +0 −87 vendor/envjs/test/html/scope.html
  56. +0 −1 vendor/envjs/test/html/script.js
  57. +0 −19 vendor/envjs/test/html/trivial.html
  58. +0 −26 vendor/envjs/test/html/with_js.html
  59. +0 −328 vendor/envjs/test/index.html
  60. +0 −9 vendor/envjs/test/java-prototype.js
  61. +0 −24 vendor/envjs/test/primary-tests.js
  62. +0 −13 vendor/envjs/test/prototype-test.js
  63. +0 −61 vendor/envjs/test/qunit.js
  64. +0 −17 vendor/envjs/test/qunit/qunit/qunit.css
  65. +0 −997 vendor/envjs/test/qunit/qunit/qunit.js
  66. +0 −25 vendor/envjs/test/scope.rb
  67. +0 −1,534 vendor/envjs/test/specs/dist/env.spec.js
  68. +0 −46 vendor/envjs/test/specs/envjs.spec.css
  69. +0 −31 vendor/envjs/test/specs/parser/html.js
  70. +0 −40 vendor/envjs/test/specs/parser/spec.html
  71. +0 −31 vendor/envjs/test/specs/parser/xml.js
  72. +0 −210 vendor/envjs/test/specs/qunit.bdd.js
  73. +0 −17 vendor/envjs/test/specs/qunit.css
  74. +0 −997 vendor/envjs/test/specs/qunit.js
  75. +0 −31 vendor/envjs/test/specs/template/spec-0.js
  76. +0 −31 vendor/envjs/test/specs/template/spec-1.js
  77. +0 −40 vendor/envjs/test/specs/template/spec.html
  78. +0 −23 vendor/envjs/test/specs/window/css.js
  79. +0 −25 vendor/envjs/test/specs/window/dialog.js
  80. +0 −23 vendor/envjs/test/specs/window/document.js
  81. +0 −25 vendor/envjs/test/specs/window/event.js
  82. +0 −34 vendor/envjs/test/specs/window/history.js
  83. +0 −34 vendor/envjs/test/specs/window/location.js
  84. +0 −71 vendor/envjs/test/specs/window/navigator.js
  85. +0 −42 vendor/envjs/test/specs/window/screen.js
  86. +0 −48 vendor/envjs/test/specs/window/spec.html
  87. +0 −26 vendor/envjs/test/specs/window/timer.js
  88. +0 −53 vendor/envjs/test/specs/window/window.js
  89. +0 −47 vendor/envjs/test/specs/xhr/spec.html
  90. +0 −31 vendor/envjs/test/specs/xhr/xhr.js
  91. +0 −10 vendor/envjs/test/test.js
  92. +0 −44 vendor/envjs/test/unit/dom.js
  93. +0 −60 vendor/envjs/test/unit/elementmembers.js
  94. +0 −195 vendor/envjs/test/unit/events.js
  95. +0 −1 vendor/envjs/test/unit/fixtures/external_script.js
  96. +0 −234 vendor/envjs/test/unit/iframe.js
  97. +0 −212 vendor/envjs/test/unit/multi-window.js
  98. +0 −34 vendor/envjs/test/unit/nu.validator.js
  99. +0 −90 vendor/envjs/test/unit/onload.js
  100. +0 −121 vendor/envjs/test/unit/parser.js
  101. +0 −22 vendor/envjs/test/unit/prototypecompat.js
  102. +0 −6 vendor/envjs/test/unit/proxy.js
  103. +0 −209 vendor/envjs/test/unit/scope.js
  104. +0 −115 vendor/envjs/test/unit/timer.js
  105. +0 −41 vendor/envjs/test/unit/window.js
  106. +0 −2 vendor/envjs/test/vendor/jQuery/README
  107. +0 −4,320 vendor/envjs/test/vendor/prototype-1.6.0.3.js
View
@@ -11,107 +11,3 @@ specs.watchr
test/harmony_test.rb
test/page_test.rb
test/test_helper.rb
-vendor/README
-vendor/envjs/README
-vendor/envjs/bin/envjsrb
-vendor/envjs/bin/jquery-1.2.6-test.js
-vendor/envjs/bin/jquery-1.3.1-test.js
-vendor/envjs/bin/jquery-1.3.2-test.js
-vendor/envjs/bin/prototype-1.6.0.3-test.js
-vendor/envjs/bin/prototype_1.6.0.3_tmpl.txt
-vendor/envjs/bin/test-jquery.sh
-vendor/envjs/bin/test-prototype.sh
-vendor/envjs/bin/tidy
-vendor/envjs/lib/envjs.rb
-vendor/envjs/lib/envjs/env.js
-vendor/envjs/lib/envjs/net.rb
-vendor/envjs/lib/envjs/net/cgi.rb
-vendor/envjs/lib/envjs/net/file.rb
-vendor/envjs/lib/envjs/options.rb
-vendor/envjs/lib/envjs/runtime.rb
-vendor/envjs/lib/envjs/tempfile.rb
-vendor/envjs/test/base64.js
-vendor/envjs/test/call-load-test.js
-vendor/envjs/test/data.js
-vendor/envjs/test/debug.js
-vendor/envjs/test/firebug/errorIcon.png
-vendor/envjs/test/firebug/firebug.css
-vendor/envjs/test/firebug/firebug.html
-vendor/envjs/test/firebug/firebug.js
-vendor/envjs/test/firebug/firebugx.js
-vendor/envjs/test/firebug/infoIcon.png
-vendor/envjs/test/firebug/warningIcon.png
-vendor/envjs/test/fixtures/html/events.html
-vendor/envjs/test/fixtures/html/iframe1.html
-vendor/envjs/test/fixtures/html/iframe1a.html
-vendor/envjs/test/fixtures/html/iframe2.html
-vendor/envjs/test/fixtures/html/iframe3.html
-vendor/envjs/test/fixtures/html/iframeN.html
-vendor/envjs/test/fixtures/html/malformed.html
-vendor/envjs/test/fixtures/html/scope.html
-vendor/envjs/test/fixtures/html/trivial.html
-vendor/envjs/test/fixtures/html/with_js.html
-vendor/envjs/test/fixtures/images/icon-blue.png
-vendor/envjs/test/fixtures/js/external_script.js
-vendor/envjs/test/fixtures/js/script.js
-vendor/envjs/test/fixtures/js/script_error.js
-vendor/envjs/test/html/events.html
-vendor/envjs/test/html/iframe1.html
-vendor/envjs/test/html/iframe1a.html
-vendor/envjs/test/html/iframe2.html
-vendor/envjs/test/html/iframe3.html
-vendor/envjs/test/html/iframeN.html
-vendor/envjs/test/html/malformed.html
-vendor/envjs/test/html/scope.html
-vendor/envjs/test/html/script.js
-vendor/envjs/test/html/trivial.html
-vendor/envjs/test/html/with_js.html
-vendor/envjs/test/index.html
-vendor/envjs/test/java-prototype.js
-vendor/envjs/test/primary-tests.js
-vendor/envjs/test/prototype-test.js
-vendor/envjs/test/qunit.js
-vendor/envjs/test/qunit/qunit/qunit.css
-vendor/envjs/test/qunit/qunit/qunit.js
-vendor/envjs/test/scope.rb
-vendor/envjs/test/specs/dist/env.spec.js
-vendor/envjs/test/specs/envjs.spec.css
-vendor/envjs/test/specs/parser/html.js
-vendor/envjs/test/specs/parser/spec.html
-vendor/envjs/test/specs/parser/xml.js
-vendor/envjs/test/specs/qunit.bdd.js
-vendor/envjs/test/specs/qunit.css
-vendor/envjs/test/specs/qunit.js
-vendor/envjs/test/specs/template/spec-0.js
-vendor/envjs/test/specs/template/spec-1.js
-vendor/envjs/test/specs/template/spec.html
-vendor/envjs/test/specs/window/css.js
-vendor/envjs/test/specs/window/dialog.js
-vendor/envjs/test/specs/window/document.js
-vendor/envjs/test/specs/window/event.js
-vendor/envjs/test/specs/window/history.js
-vendor/envjs/test/specs/window/location.js
-vendor/envjs/test/specs/window/navigator.js
-vendor/envjs/test/specs/window/screen.js
-vendor/envjs/test/specs/window/spec.html
-vendor/envjs/test/specs/window/timer.js
-vendor/envjs/test/specs/window/window.js
-vendor/envjs/test/specs/xhr/spec.html
-vendor/envjs/test/specs/xhr/xhr.js
-vendor/envjs/test/test.js
-vendor/envjs/test/unit/dom.js
-vendor/envjs/test/unit/elementmembers.js
-vendor/envjs/test/unit/events.js
-vendor/envjs/test/unit/fixtures/external_script.js
-vendor/envjs/test/unit/iframe.js
-vendor/envjs/test/unit/multi-window.js
-vendor/envjs/test/unit/nu.validator.js
-vendor/envjs/test/unit/onload.js
-vendor/envjs/test/unit/parser.js
-vendor/envjs/test/unit/prototypecompat.js
-vendor/envjs/test/unit/proxy.js
-vendor/envjs/test/unit/scope.js
-vendor/envjs/test/unit/timer.js
-vendor/envjs/test/unit/window.js
-vendor/envjs/test/vendor/jQuery/README
-vendor/envjs/test/vendor/prototype-1.6.0.3.js
View
@@ -13,5 +13,6 @@ Gem::Specification.new do |s|
s.files = File.read("Manifest").strip.split("\n")
s.add_dependency 'johnson', '2.0.0.pre1'
+ s.add_dependency 'envjs', '0.1.2'
s.add_development_dependency 'minitest'
end
View
@@ -2,7 +2,7 @@
require 'tempfile'
require 'johnson/tracemonkey'
-require Pathname(__FILE__).dirname.parent.parent + 'vendor/envjs/lib/envjs/runtime'
+require 'envjs/runtime'
module Harmony
class Page
View
@@ -1 +0,0 @@
-vendoring specific envjs version (built from source) until changes are released
View
@@ -1,36 +0,0 @@
-This is a fork of the env.js project (http://github.com/thatcher/env-js/). See that link for env.js details.
-
-This fork is based on the Johnson Ruby gem (http://github.com/jbarnette/johnson) and will become obsolete when the Johnson support has been reintegrated into the master repo.
-
-For now, you can install the envjs gem by installing Johnson:
-
- gem install johnson --prerelease
-
-(You'll need to manually install any prerequisites it asks for) and then installing the envjs gem with
-
- gem install envjs
-
-The envjs gem provides the envjsrb command, which functions as an extended version of the Johnson javascript shell. For example:
-
-mbp:env-js smparkes$ envjsrb
-js> this
-=> [object Window 0]
-js> window.location
-=> about:blank
-js> document.innerHTML
-=> "<html><head><title></title></head><body></body></html>"
-js>
-
-It's also possible to embed the envjs interpreter similar to the way it's done in Johnson, e.g.,
-
-require 'rubygems' # if necessary
-require 'johnson/tramonkey'
-require 'envjs/runtime'
-
-envjs = Johnson::Runtime.new
-envjs.extend Envjs::Runtime
-window = envjs.evaluate("")
-puts window.location.to_s # == "about:blank"
-puts window.document.innerHTML # == "<html><head><title></title></head><body></body></html>"
-
-Comments to http://groups.google.com/group/envjs or #envjs on freenode.
Oops, something went wrong. Retry.

0 comments on commit b7528e2

Please sign in to comment.