envjs 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. data/README +113 -0
  2. data/bin/envjsrb +239 -0
  3. data/bin/jquery-1.2.6-test.js +33 -0
  4. data/bin/jquery-1.3.1-test.js +33 -0
  5. data/bin/jquery-1.3.2-test.js +106 -0
  6. data/bin/prototype-1.6.0.3-test.js +82 -0
  7. data/bin/prototype_1.6.0.3_tmpl.txt +27 -0
  8. data/bin/test-jquery.sh +58 -0
  9. data/bin/test-prototype.sh +54 -0
  10. data/bin/tidy +0 -0
  11. data/lib/envjs/env.js +21549 -0
  12. data/lib/envjs/net/cgi.rb +94 -0
  13. data/lib/envjs/net/file.rb +75 -0
  14. data/lib/envjs/net.rb +3 -0
  15. data/lib/envjs/options.rb +11 -0
  16. data/lib/envjs/runtime.rb +280 -0
  17. data/lib/envjs/tempfile.rb +24 -0
  18. data/lib/envjs.rb +23 -0
  19. data/test/call-load-test.js +15 -0
  20. data/test/debug.js +53 -0
  21. data/test/firebug/errorIcon.png +0 -0
  22. data/test/firebug/firebug.css +209 -0
  23. data/test/firebug/firebug.html +23 -0
  24. data/test/firebug/firebug.js +672 -0
  25. data/test/firebug/firebugx.js +10 -0
  26. data/test/firebug/infoIcon.png +0 -0
  27. data/test/firebug/warningIcon.png +0 -0
  28. data/test/fixtures/html/events.html +171 -0
  29. data/test/fixtures/html/iframe1.html +46 -0
  30. data/test/fixtures/html/iframe1a.html +46 -0
  31. data/test/fixtures/html/iframe2.html +45 -0
  32. data/test/fixtures/html/iframe3.html +28 -0
  33. data/test/fixtures/html/iframeN.html +57 -0
  34. data/test/fixtures/html/malformed.html +181 -0
  35. data/test/fixtures/html/scope.html +81 -0
  36. data/test/fixtures/html/trivial.html +19 -0
  37. data/test/fixtures/html/with_js.html +26 -0
  38. data/test/fixtures/images/icon-blue.png +0 -0
  39. data/test/fixtures/js/external_script.js +1 -0
  40. data/test/fixtures/js/script.js +1 -0
  41. data/test/fixtures/js/script_error.js +2 -0
  42. data/test/html/events.html +171 -0
  43. data/test/html/iframe1.html +46 -0
  44. data/test/html/iframe1a.html +46 -0
  45. data/test/html/iframe2.html +45 -0
  46. data/test/html/iframe3.html +30 -0
  47. data/test/html/iframeN.html +57 -0
  48. data/test/html/malformed.html +181 -0
  49. data/test/html/scope.html +87 -0
  50. data/test/html/script.js +1 -0
  51. data/test/html/trivial.html +19 -0
  52. data/test/html/with_js.html +26 -0
  53. data/test/index.html +328 -0
  54. data/test/java-prototype.js +9 -0
  55. data/test/primary-tests.js +24 -0
  56. data/test/prototype-test.js +13 -0
  57. data/test/qunit/qunit/qunit.css +17 -0
  58. data/test/qunit/qunit/qunit.js +997 -0
  59. data/test/qunit.js +61 -0
  60. data/test/specs/dist/env.spec.js +1534 -0
  61. data/test/specs/envjs.spec.css +46 -0
  62. data/test/specs/parser/html.js +31 -0
  63. data/test/specs/parser/spec.html +40 -0
  64. data/test/specs/parser/xml.js +31 -0
  65. data/test/specs/qunit.bdd.js +210 -0
  66. data/test/specs/qunit.css +17 -0
  67. data/test/specs/qunit.js +997 -0
  68. data/test/specs/template/spec-0.js +31 -0
  69. data/test/specs/template/spec-1.js +31 -0
  70. data/test/specs/template/spec.html +40 -0
  71. data/test/specs/window/css.js +23 -0
  72. data/test/specs/window/dialog.js +25 -0
  73. data/test/specs/window/document.js +23 -0
  74. data/test/specs/window/event.js +25 -0
  75. data/test/specs/window/history.js +34 -0
  76. data/test/specs/window/location.js +34 -0
  77. data/test/specs/window/navigator.js +71 -0
  78. data/test/specs/window/screen.js +42 -0
  79. data/test/specs/window/spec.html +48 -0
  80. data/test/specs/window/timer.js +26 -0
  81. data/test/specs/window/window.js +53 -0
  82. data/test/specs/xhr/spec.html +47 -0
  83. data/test/specs/xhr/xhr.js +31 -0
  84. data/test/test.js +10 -0
  85. data/test/unit/dom.js +44 -0
  86. data/test/unit/elementmembers.js +60 -0
  87. data/test/unit/events.js +195 -0
  88. data/test/unit/fixtures/external_script.js +1 -0
  89. data/test/unit/iframe.js +234 -0
  90. data/test/unit/multi-window.js +212 -0
  91. data/test/unit/nu.validator.js +34 -0
  92. data/test/unit/onload.js +90 -0
  93. data/test/unit/parser.js +121 -0
  94. data/test/unit/prototypecompat.js +22 -0
  95. data/test/unit/proxy.js +6 -0
  96. data/test/unit/scope.js +209 -0
  97. data/test/unit/timer.js +115 -0
  98. data/test/unit/window.js +41 -0
  99. data/test/vendor/jQuery/README +2 -0
  100. data/test/vendor/prototype-1.6.0.3.js +4320 -0
  101. metadata +164 -0
metadata ADDED
@@ -0,0 +1,164 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: envjs
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - John Resig
8
+ - Chris Thatcher
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2010-01-25 00:00:00 -08:00
14
+ default_executable: envjsrb
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: johnson
18
+ type: :runtime
19
+ version_requirement:
20
+ version_requirements: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: 2.0.0.pre0
25
+ version:
26
+ description: Browser environment for javascript interpreters
27
+ email: smparkes@smparkes.net
28
+ executables:
29
+ - envjsrb
30
+ extensions: []
31
+
32
+ extra_rdoc_files:
33
+ - README
34
+ files:
35
+ - bin/envjsrb
36
+ - bin/jquery-1.2.6-test.js
37
+ - bin/jquery-1.3.1-test.js
38
+ - bin/jquery-1.3.2-test.js
39
+ - bin/prototype-1.6.0.3-test.js
40
+ - bin/prototype_1.6.0.3_tmpl.txt
41
+ - bin/test-jquery.sh
42
+ - bin/test-prototype.sh
43
+ - bin/tidy
44
+ - lib/envjs.rb
45
+ - lib/envjs/env.js
46
+ - lib/envjs/net.rb
47
+ - lib/envjs/net/cgi.rb
48
+ - lib/envjs/net/file.rb
49
+ - lib/envjs/options.rb
50
+ - lib/envjs/runtime.rb
51
+ - lib/envjs/tempfile.rb
52
+ - test/call-load-test.js
53
+ - test/debug.js
54
+ - test/firebug/errorIcon.png
55
+ - test/firebug/firebug.css
56
+ - test/firebug/firebug.html
57
+ - test/firebug/firebug.js
58
+ - test/firebug/firebugx.js
59
+ - test/firebug/infoIcon.png
60
+ - test/firebug/warningIcon.png
61
+ - test/fixtures/html/events.html
62
+ - test/fixtures/html/iframe1.html
63
+ - test/fixtures/html/iframe1a.html
64
+ - test/fixtures/html/iframe2.html
65
+ - test/fixtures/html/iframe3.html
66
+ - test/fixtures/html/iframeN.html
67
+ - test/fixtures/html/malformed.html
68
+ - test/fixtures/html/scope.html
69
+ - test/fixtures/html/trivial.html
70
+ - test/fixtures/html/with_js.html
71
+ - test/fixtures/images/icon-blue.png
72
+ - test/fixtures/js/external_script.js
73
+ - test/fixtures/js/script.js
74
+ - test/fixtures/js/script_error.js
75
+ - test/html/events.html
76
+ - test/html/iframe1.html
77
+ - test/html/iframe1a.html
78
+ - test/html/iframe2.html
79
+ - test/html/iframe3.html
80
+ - test/html/iframeN.html
81
+ - test/html/malformed.html
82
+ - test/html/scope.html
83
+ - test/html/script.js
84
+ - test/html/trivial.html
85
+ - test/html/with_js.html
86
+ - test/index.html
87
+ - test/java-prototype.js
88
+ - test/primary-tests.js
89
+ - test/prototype-test.js
90
+ - test/qunit.js
91
+ - test/qunit/qunit/qunit.css
92
+ - test/qunit/qunit/qunit.js
93
+ - test/specs/dist/env.spec.js
94
+ - test/specs/envjs.spec.css
95
+ - test/specs/parser/html.js
96
+ - test/specs/parser/spec.html
97
+ - test/specs/parser/xml.js
98
+ - test/specs/qunit.bdd.js
99
+ - test/specs/qunit.css
100
+ - test/specs/qunit.js
101
+ - test/specs/template/spec-0.js
102
+ - test/specs/template/spec-1.js
103
+ - test/specs/template/spec.html
104
+ - test/specs/window/css.js
105
+ - test/specs/window/dialog.js
106
+ - test/specs/window/document.js
107
+ - test/specs/window/event.js
108
+ - test/specs/window/history.js
109
+ - test/specs/window/location.js
110
+ - test/specs/window/navigator.js
111
+ - test/specs/window/screen.js
112
+ - test/specs/window/spec.html
113
+ - test/specs/window/timer.js
114
+ - test/specs/window/window.js
115
+ - test/specs/xhr/spec.html
116
+ - test/specs/xhr/xhr.js
117
+ - test/test.js
118
+ - test/unit/dom.js
119
+ - test/unit/elementmembers.js
120
+ - test/unit/events.js
121
+ - test/unit/fixtures/external_script.js
122
+ - test/unit/iframe.js
123
+ - test/unit/multi-window.js
124
+ - test/unit/nu.validator.js
125
+ - test/unit/onload.js
126
+ - test/unit/parser.js
127
+ - test/unit/prototypecompat.js
128
+ - test/unit/proxy.js
129
+ - test/unit/scope.js
130
+ - test/unit/timer.js
131
+ - test/unit/window.js
132
+ - test/vendor/jQuery/README
133
+ - test/vendor/prototype-1.6.0.3.js
134
+ - README
135
+ has_rdoc: true
136
+ homepage: http://github.com/thatcher/env-js
137
+ licenses: []
138
+
139
+ post_install_message:
140
+ rdoc_options:
141
+ - --charset=UTF-8
142
+ require_paths:
143
+ - lib
144
+ required_ruby_version: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ version: "0"
149
+ version:
150
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: "0"
155
+ version:
156
+ requirements: []
157
+
158
+ rubyforge_project:
159
+ rubygems_version: 1.3.5
160
+ signing_key:
161
+ specification_version: 3
162
+ summary: Browser environment for javascript interpreters
163
+ test_files: []
164
+