exercism-analysis 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (579) hide show
  1. checksums.yaml +7 -0
  2. data/exercism-analysis.gemspec +30 -0
  3. data/lib/exercism-analysis.rb +38 -0
  4. data/lib/exercism-analysis/adapters/adapter.rb +23 -0
  5. data/lib/exercism-analysis/adapters/clojure.rb +13 -0
  6. data/lib/exercism-analysis/adapters/go.rb +19 -0
  7. data/lib/exercism-analysis/adapters/javascript.rb +13 -0
  8. data/lib/exercism-analysis/adapters/python.rb +13 -0
  9. data/lib/exercism-analysis/adapters/ruby.rb +19 -0
  10. data/lib/exercism-analysis/analysis.rb +18 -0
  11. data/lib/exercism-analysis/analyzers/analyzer.rb +54 -0
  12. data/lib/exercism-analysis/analyzers/clojure/kibit.rb +25 -0
  13. data/lib/exercism-analysis/analyzers/go/golint.rb +23 -0
  14. data/lib/exercism-analysis/analyzers/javascript/jslint.rb +24 -0
  15. data/lib/exercism-analysis/analyzers/python/pylint.rb +24 -0
  16. data/lib/exercism-analysis/analyzers/ruby/control_flow.rb +21 -0
  17. data/lib/exercism-analysis/analyzers/ruby/enumerable_condition.rb +21 -0
  18. data/lib/exercism-analysis/analyzers/ruby/for_loop.rb +29 -0
  19. data/lib/exercism-analysis/analyzers/ruby/indentation.rb +21 -0
  20. data/lib/exercism-analysis/analyzers/ruby/iter_mutation.rb +37 -0
  21. data/lib/exercism-analysis/analyzers/ruby/output.rb +20 -0
  22. data/lib/exercism-analysis/analyzers/ruby/range.rb +28 -0
  23. data/lib/exercism-analysis/analyzers/ruby/roodi.rb +19 -0
  24. data/lib/exercism-analysis/analyzers/ruby/send.rb +25 -0
  25. data/lib/exercism-analysis/analyzers/ruby/shebang.rb +23 -0
  26. data/lib/exercism-analysis/analyzers/ruby/tab.rb +38 -0
  27. data/lib/exercism-analysis/processors/call_processor.rb +39 -0
  28. data/lib/exercism-analysis/processors/control_flow_processor.rb +27 -0
  29. data/lib/exercism-analysis/processors/enumerable_condition_processor.rb +31 -0
  30. data/lib/exercism-analysis/processors/for_loop_processor.rb +21 -0
  31. data/lib/exercism-analysis/processors/indentation_processor.rb +69 -0
  32. data/lib/exercism-analysis/processors/iter_mutation_processor.rb +50 -0
  33. data/lib/exercism-analysis/processors/processor.rb +34 -0
  34. data/lib/exercism-analysis/processors/range_processor.rb +23 -0
  35. data/lib/exercism-analysis/processors/send_processor.rb +23 -0
  36. data/lib/exercism-analysis/templates/each_to_map.rb +29 -0
  37. data/lib/exercism-analysis/templates/each_to_select.rb +31 -0
  38. data/lib/exercism-analysis/templates/range_exclusive.rb +19 -0
  39. data/lib/exercism-analysis/templates/template.rb +29 -0
  40. data/vendor/clojure/kibit-runner/LICENSE +214 -0
  41. data/vendor/clojure/kibit-runner/project.clj +10 -0
  42. data/vendor/clojure/kibit-runner/src/kibit_runner/core.clj +17 -0
  43. data/vendor/clojure/kibit-runner/target/kibit-runner-0.1.0-SNAPSHOT-standalone.jar +0 -0
  44. data/vendor/clojure/kibit-runner/target/kibit-runner-0.1.0-SNAPSHOT.jar +0 -0
  45. data/vendor/clojure/kibit-runner/target/stale/extract-native.dependencies +1 -0
  46. data/vendor/go/src/github.com/golang/lint/LICENSE +27 -0
  47. data/vendor/go/src/github.com/golang/lint/README +59 -0
  48. data/vendor/go/src/github.com/golang/lint/golint/golint.go +67 -0
  49. data/vendor/go/src/github.com/golang/lint/lint.go +1061 -0
  50. data/vendor/go/src/runner/golint_runner.go +23 -0
  51. data/vendor/javascript/jshint_runner.js +6 -0
  52. data/vendor/javascript/node_modules/jshint/README.md +47 -0
  53. data/vendor/javascript/node_modules/jshint/bin/apply +6 -0
  54. data/vendor/javascript/node_modules/jshint/bin/build +36 -0
  55. data/vendor/javascript/node_modules/jshint/bin/changelog +36 -0
  56. data/vendor/javascript/node_modules/jshint/bin/jshint +3 -0
  57. data/vendor/javascript/node_modules/jshint/bin/land +34 -0
  58. data/vendor/javascript/node_modules/jshint/data/ascii-identifier-data.js +22 -0
  59. data/vendor/javascript/node_modules/jshint/data/non-ascii-identifier-part-only.js +1570 -0
  60. data/vendor/javascript/node_modules/jshint/data/non-ascii-identifier-start.js +48477 -0
  61. data/vendor/javascript/node_modules/jshint/dist/jshint-rhino.js +60642 -0
  62. data/vendor/javascript/node_modules/jshint/dist/jshint.js +60525 -0
  63. data/vendor/javascript/node_modules/jshint/node_modules/cli/README.md +196 -0
  64. data/vendor/javascript/node_modules/jshint/node_modules/cli/cli.js +1139 -0
  65. data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/cat.js +17 -0
  66. data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/command.js +16 -0
  67. data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/echo.js +54 -0
  68. data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/glob.js +6 -0
  69. data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/long_desc.js +20 -0
  70. data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/progress.js +11 -0
  71. data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/sort.js +18 -0
  72. data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/spinner.js +9 -0
  73. data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/static.coffee +27 -0
  74. data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/static.js +25 -0
  75. data/vendor/javascript/node_modules/jshint/node_modules/cli/index.js +1 -0
  76. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/LICENSE +27 -0
  77. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/README.md +250 -0
  78. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/examples/g.js +9 -0
  79. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/examples/usr-local.js +9 -0
  80. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/glob.js +728 -0
  81. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/node_modules/inherits/LICENSE +16 -0
  82. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/node_modules/inherits/README.md +42 -0
  83. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/node_modules/inherits/inherits.js +1 -0
  84. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/node_modules/inherits/inherits_browser.js +23 -0
  85. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/node_modules/inherits/package.json +51 -0
  86. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/node_modules/inherits/test.js +25 -0
  87. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/package.json +58 -0
  88. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/00-setup.js +176 -0
  89. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/bash-comparison.js +63 -0
  90. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/bash-results.json +351 -0
  91. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/cwd-test.js +55 -0
  92. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/globstar-match.js +19 -0
  93. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/mark.js +118 -0
  94. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/new-glob-optional-options.js +10 -0
  95. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/nocase-nomagic.js +113 -0
  96. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/pause-resume.js +73 -0
  97. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/readme-issue.js +36 -0
  98. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/root-nomount.js +39 -0
  99. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/root.js +46 -0
  100. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/stat.js +32 -0
  101. data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/zz-cleanup.js +11 -0
  102. data/vendor/javascript/node_modules/jshint/node_modules/cli/package.json +70 -0
  103. data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/LICENCE +19 -0
  104. data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/README.md +33 -0
  105. data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/index.js +86 -0
  106. data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/node_modules/date-now/LICENCE +19 -0
  107. data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/node_modules/date-now/README.md +45 -0
  108. data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/node_modules/date-now/index.js +5 -0
  109. data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/node_modules/date-now/package.json +89 -0
  110. data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/node_modules/date-now/seed.js +16 -0
  111. data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/node_modules/date-now/test/index.js +28 -0
  112. data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/node_modules/date-now/test/static/index.html +10 -0
  113. data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/package.json +88 -0
  114. data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/test/index.js +67 -0
  115. data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/test/static/index.html +12 -0
  116. data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/test/static/test-adapter.js +53 -0
  117. data/vendor/javascript/node_modules/jshint/node_modules/exit/Gruntfile.js +48 -0
  118. data/vendor/javascript/node_modules/jshint/node_modules/exit/LICENSE-MIT +22 -0
  119. data/vendor/javascript/node_modules/jshint/node_modules/exit/README.md +75 -0
  120. data/vendor/javascript/node_modules/jshint/node_modules/exit/lib/exit.js +41 -0
  121. data/vendor/javascript/node_modules/jshint/node_modules/exit/package.json +69 -0
  122. data/vendor/javascript/node_modules/jshint/node_modules/exit/test/exit_test.js +121 -0
  123. data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/10-stderr.txt +10 -0
  124. data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/10-stdout-stderr.txt +20 -0
  125. data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/10-stdout.txt +10 -0
  126. data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/100-stderr.txt +100 -0
  127. data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/100-stdout-stderr.txt +200 -0
  128. data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/100-stdout.txt +100 -0
  129. data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/1000-stderr.txt +1000 -0
  130. data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/1000-stdout-stderr.txt +2000 -0
  131. data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/1000-stdout.txt +1000 -0
  132. data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/create-files.sh +8 -0
  133. data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/log-broken.js +23 -0
  134. data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/log.js +25 -0
  135. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/LICENSE +18 -0
  136. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/README.md +83 -0
  137. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/CollectingHandler.js +55 -0
  138. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/FeedHandler.js +95 -0
  139. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/Parser.js +337 -0
  140. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/ProxyHandler.js +27 -0
  141. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/Stream.js +35 -0
  142. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/Tokenizer.js +891 -0
  143. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/WritableStream.js +21 -0
  144. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/index.js +68 -0
  145. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domelementtype/LICENSE +11 -0
  146. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domelementtype/index.js +14 -0
  147. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domelementtype/package.json +40 -0
  148. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domelementtype/readme.md +1 -0
  149. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/LICENSE +11 -0
  150. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/index.js +211 -0
  151. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/package.json +68 -0
  152. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/readme.md +102 -0
  153. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/01-basic.json +57 -0
  154. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/02-single_tag_1.json +21 -0
  155. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/03-single_tag_2.json +21 -0
  156. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/04-unescaped_in_script.json +27 -0
  157. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/05-tags_in_comment.json +18 -0
  158. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/06-comment_in_script.json +18 -0
  159. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/07-unescaped_in_style.json +20 -0
  160. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/08-extra_spaces_in_tag.json +20 -0
  161. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/09-unquoted_attrib.json +20 -0
  162. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/10-singular_attribute.json +15 -0
  163. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/11-text_outside_tags.json +40 -0
  164. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/12-text_only.json +11 -0
  165. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/13-comment_in_text.json +19 -0
  166. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/14-comment_in_text_in_script.json +18 -0
  167. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/15-non-verbose.json +22 -0
  168. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/16-normalize_whitespace.json +47 -0
  169. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/17-xml_namespace.json +18 -0
  170. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/18-enforce_empty_tags.json +16 -0
  171. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/19-ignore_empty_tags.json +20 -0
  172. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/20-template_script_tags.json +20 -0
  173. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/21-conditional_comments.json +15 -0
  174. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/22-lowercase_tags.json +41 -0
  175. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/23-dom-lvl1.json +121 -0
  176. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/tests.js +58 -0
  177. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/LICENSE +11 -0
  178. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/index.js +14 -0
  179. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js +141 -0
  180. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js +87 -0
  181. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js +77 -0
  182. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/lib/querying.js +94 -0
  183. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js +93 -0
  184. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js +24 -0
  185. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/package.json +71 -0
  186. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/readme.md +1 -0
  187. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/test/fixture.js +6 -0
  188. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/test/tests/helpers.js +89 -0
  189. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/test/tests/legacy.js +119 -0
  190. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/test/utils.js +9 -0
  191. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/LICENSE +11 -0
  192. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/index.js +31 -0
  193. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/lib/decode.js +72 -0
  194. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/lib/decode_codepoint.js +26 -0
  195. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/lib/encode.js +48 -0
  196. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/maps/decode.json +1 -0
  197. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/maps/entities.json +1 -0
  198. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/maps/legacy.json +1 -0
  199. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/maps/xml.json +1 -0
  200. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/package.json +79 -0
  201. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/readme.md +31 -0
  202. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/test/mocha.opts +2 -0
  203. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/test/test.js +150 -0
  204. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/LICENSE +18 -0
  205. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/README.md +15 -0
  206. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/duplex.js +1 -0
  207. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/float.patch +923 -0
  208. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_duplex.js +89 -0
  209. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_passthrough.js +46 -0
  210. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_readable.js +944 -0
  211. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_transform.js +209 -0
  212. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_writable.js +472 -0
  213. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/core-util-is/README.md +3 -0
  214. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/core-util-is/float.patch +604 -0
  215. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +107 -0
  216. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/core-util-is/package.json +53 -0
  217. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/core-util-is/util.js +106 -0
  218. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/LICENSE +16 -0
  219. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/README.md +42 -0
  220. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/inherits.js +1 -0
  221. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/inherits_browser.js +23 -0
  222. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/package.json +51 -0
  223. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/test.js +25 -0
  224. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/isarray/README.md +54 -0
  225. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/isarray/build/build.js +209 -0
  226. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/isarray/component.json +19 -0
  227. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/isarray/index.js +3 -0
  228. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/isarray/package.json +54 -0
  229. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/string_decoder/LICENSE +20 -0
  230. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/string_decoder/README.md +7 -0
  231. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/string_decoder/index.js +200 -0
  232. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/string_decoder/package.json +53 -0
  233. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/package.json +68 -0
  234. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/passthrough.js +1 -0
  235. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/readable.js +7 -0
  236. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/transform.js +1 -0
  237. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/writable.js +1 -0
  238. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/package.json +90 -0
  239. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/01-events.js +9 -0
  240. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/02-stream.js +23 -0
  241. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/03-feed.js +19 -0
  242. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Documents/Atom_Example.xml +25 -0
  243. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Documents/Attributes.html +16 -0
  244. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Documents/Basic.html +1 -0
  245. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Documents/RDF_Example.xml +63 -0
  246. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Documents/RSS_Example.xml +48 -0
  247. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/01-simple.json +44 -0
  248. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/02-template.json +63 -0
  249. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/03-lowercase_tags.json +46 -0
  250. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/04-cdata.json +50 -0
  251. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/05-cdata-special.json +35 -0
  252. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/06-leading-lt.json +16 -0
  253. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/07-self-closing.json +67 -0
  254. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/08-implicit-close-tags.json +59 -0
  255. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/09-attributes.json +68 -0
  256. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/10-crazy-attrib.json +52 -0
  257. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/11-script_in_script.json +54 -0
  258. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/12-long-comment-end.json +20 -0
  259. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/13-long-cdata-end.json +22 -0
  260. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/14-implicit-open-tags.json +27 -0
  261. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/15-lt-whitespace.json +16 -0
  262. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/16-double_attribs.json +45 -0
  263. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/17-numeric_entities.json +16 -0
  264. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/18-legacy_entities.json +16 -0
  265. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/19-named_entities.json +16 -0
  266. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/20-xml_entities.json +16 -0
  267. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/21-entity_in_attribute.json +38 -0
  268. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/22-double_brackets.json +41 -0
  269. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/23-legacy_entity_fail.json +16 -0
  270. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/24-special_special.json +133 -0
  271. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/25-empty_tag_name.json +13 -0
  272. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/26-not-quite-closed.json +35 -0
  273. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/27-entities_in_attributes.json +62 -0
  274. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/28-cdata_in_html.json +9 -0
  275. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/29-comment_edge-cases.json +18 -0
  276. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/30-cdata_edge-cases.json +22 -0
  277. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Feeds/01-rss.js +34 -0
  278. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Feeds/02-atom.js +18 -0
  279. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Feeds/03-rdf.js +20 -0
  280. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Stream/01-basic.json +83 -0
  281. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Stream/02-RSS.json +1093 -0
  282. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Stream/03-Atom.json +644 -0
  283. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Stream/04-RDF.json +1399 -0
  284. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Stream/05-Attributes.json +354 -0
  285. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/api.js +63 -0
  286. data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/test-helper.js +83 -0
  287. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/LICENSE +23 -0
  288. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/README.md +218 -0
  289. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/minimatch.js +1061 -0
  290. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/CONTRIBUTORS +14 -0
  291. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/LICENSE +23 -0
  292. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/README.md +97 -0
  293. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/lib/lru-cache.js +252 -0
  294. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/package.json +50 -0
  295. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/test/basic.js +369 -0
  296. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/test/foreach.js +52 -0
  297. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/test/memory-leak.js +50 -0
  298. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/sigmund/LICENSE +27 -0
  299. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/sigmund/README.md +53 -0
  300. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/sigmund/bench.js +283 -0
  301. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/sigmund/package.json +58 -0
  302. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/sigmund/sigmund.js +39 -0
  303. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/sigmund/test/basic.js +24 -0
  304. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/package.json +57 -0
  305. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/test/basic.js +399 -0
  306. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/test/brace-expand.js +33 -0
  307. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/test/caching.js +14 -0
  308. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/test/defaults.js +274 -0
  309. data/vendor/javascript/node_modules/jshint/node_modules/minimatch/test/extglob-ending-with-state-char.js +8 -0
  310. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/LICENSE +26 -0
  311. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/README.md +569 -0
  312. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/bin/shjs +51 -0
  313. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/global.js +3 -0
  314. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/make.js +47 -0
  315. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/package.json +61 -0
  316. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/scripts/generate-docs.js +21 -0
  317. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/scripts/run-tests.js +50 -0
  318. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/shell.js +157 -0
  319. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/cat.js +43 -0
  320. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/cd.js +19 -0
  321. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/chmod.js +208 -0
  322. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/common.js +203 -0
  323. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/cp.js +201 -0
  324. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/dirs.js +191 -0
  325. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/echo.js +20 -0
  326. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/error.js +10 -0
  327. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/exec.js +181 -0
  328. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/find.js +51 -0
  329. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/grep.js +52 -0
  330. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/ln.js +53 -0
  331. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/ls.js +126 -0
  332. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/mkdir.js +68 -0
  333. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/mv.js +80 -0
  334. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/popd.js +1 -0
  335. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/pushd.js +1 -0
  336. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/pwd.js +11 -0
  337. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/rm.js +145 -0
  338. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/sed.js +43 -0
  339. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/tempdir.js +56 -0
  340. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/test.js +85 -0
  341. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/to.js +29 -0
  342. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/toEnd.js +29 -0
  343. data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/which.js +83 -0
  344. data/vendor/javascript/node_modules/jshint/node_modules/strip-json-comments/cli.js +41 -0
  345. data/vendor/javascript/node_modules/jshint/node_modules/strip-json-comments/package.json +76 -0
  346. data/vendor/javascript/node_modules/jshint/node_modules/strip-json-comments/readme.md +74 -0
  347. data/vendor/javascript/node_modules/jshint/node_modules/strip-json-comments/strip-json-comments.js +64 -0
  348. data/vendor/javascript/node_modules/jshint/node_modules/underscore/LICENSE +23 -0
  349. data/vendor/javascript/node_modules/jshint/node_modules/underscore/README.md +22 -0
  350. data/vendor/javascript/node_modules/jshint/node_modules/underscore/package.json +66 -0
  351. data/vendor/javascript/node_modules/jshint/node_modules/underscore/underscore-min.js +6 -0
  352. data/vendor/javascript/node_modules/jshint/node_modules/underscore/underscore.js +1343 -0
  353. data/vendor/javascript/node_modules/jshint/package.json +80 -0
  354. data/vendor/javascript/node_modules/jshint/src/cli.js +731 -0
  355. data/vendor/javascript/node_modules/jshint/src/jshint.js +5023 -0
  356. data/vendor/javascript/node_modules/jshint/src/lex.js +1650 -0
  357. data/vendor/javascript/node_modules/jshint/src/messages.js +223 -0
  358. data/vendor/javascript/node_modules/jshint/src/platforms/rhino.js +115 -0
  359. data/vendor/javascript/node_modules/jshint/src/reg.js +38 -0
  360. data/vendor/javascript/node_modules/jshint/src/reporters/checkstyle.js +81 -0
  361. data/vendor/javascript/node_modules/jshint/src/reporters/default.js +34 -0
  362. data/vendor/javascript/node_modules/jshint/src/reporters/jslint_xml.js +57 -0
  363. data/vendor/javascript/node_modules/jshint/src/reporters/non_error.js +52 -0
  364. data/vendor/javascript/node_modules/jshint/src/state.js +28 -0
  365. data/vendor/javascript/node_modules/jshint/src/style.js +143 -0
  366. data/vendor/javascript/node_modules/jshint/src/vars.js +658 -0
  367. data/vendor/python/astroid/COPYING +339 -0
  368. data/vendor/python/astroid/COPYING.LESSER +510 -0
  369. data/vendor/python/astroid/ChangeLog +574 -0
  370. data/vendor/python/astroid/MANIFEST.in +9 -0
  371. data/vendor/python/astroid/README +56 -0
  372. data/vendor/python/astroid/README.Python3 +26 -0
  373. data/vendor/python/astroid/__init__.py +118 -0
  374. data/vendor/python/astroid/__init__.pyc +0 -0
  375. data/vendor/python/astroid/__pkginfo__.py +48 -0
  376. data/vendor/python/astroid/__pkginfo__.pyc +0 -0
  377. data/vendor/python/astroid/announce.txt +23 -0
  378. data/vendor/python/astroid/as_string.py +496 -0
  379. data/vendor/python/astroid/as_string.pyc +0 -0
  380. data/vendor/python/astroid/bases.py +618 -0
  381. data/vendor/python/astroid/bases.pyc +0 -0
  382. data/vendor/python/astroid/brain/py2gi.py +159 -0
  383. data/vendor/python/astroid/brain/py2gi.pyc +0 -0
  384. data/vendor/python/astroid/brain/py2mechanize.py +20 -0
  385. data/vendor/python/astroid/brain/py2mechanize.pyc +0 -0
  386. data/vendor/python/astroid/brain/py2qt4.py +25 -0
  387. data/vendor/python/astroid/brain/py2qt4.pyc +0 -0
  388. data/vendor/python/astroid/brain/py2stdlib.py +252 -0
  389. data/vendor/python/astroid/brain/py2stdlib.pyc +0 -0
  390. data/vendor/python/astroid/builder.py +238 -0
  391. data/vendor/python/astroid/builder.pyc +0 -0
  392. data/vendor/python/astroid/exceptions.py +51 -0
  393. data/vendor/python/astroid/exceptions.pyc +0 -0
  394. data/vendor/python/astroid/inference.py +393 -0
  395. data/vendor/python/astroid/inference.pyc +0 -0
  396. data/vendor/python/astroid/inspector.py +275 -0
  397. data/vendor/python/astroid/manager.py +336 -0
  398. data/vendor/python/astroid/manager.pyc +0 -0
  399. data/vendor/python/astroid/mixins.py +122 -0
  400. data/vendor/python/astroid/mixins.pyc +0 -0
  401. data/vendor/python/astroid/node_classes.py +928 -0
  402. data/vendor/python/astroid/node_classes.pyc +0 -0
  403. data/vendor/python/astroid/nodes.py +73 -0
  404. data/vendor/python/astroid/nodes.pyc +0 -0
  405. data/vendor/python/astroid/protocols.py +322 -0
  406. data/vendor/python/astroid/protocols.pyc +0 -0
  407. data/vendor/python/astroid/raw_building.py +361 -0
  408. data/vendor/python/astroid/raw_building.pyc +0 -0
  409. data/vendor/python/astroid/rebuilder.py +954 -0
  410. data/vendor/python/astroid/rebuilder.pyc +0 -0
  411. data/vendor/python/astroid/scoped_nodes.py +1118 -0
  412. data/vendor/python/astroid/scoped_nodes.pyc +0 -0
  413. data/vendor/python/astroid/setup.py +184 -0
  414. data/vendor/python/astroid/tox.ini +10 -0
  415. data/vendor/python/astroid/utils.py +236 -0
  416. data/vendor/python/astroid/utils.pyc +0 -0
  417. data/vendor/python/logilab/__init__.py +0 -0
  418. data/vendor/python/logilab/__init__.pyc +0 -0
  419. data/vendor/python/logilab/common/COPYING +339 -0
  420. data/vendor/python/logilab/common/COPYING.LESSER +510 -0
  421. data/vendor/python/logilab/common/ChangeLog +1517 -0
  422. data/vendor/python/logilab/common/MANIFEST.in +13 -0
  423. data/vendor/python/logilab/common/README +185 -0
  424. data/vendor/python/logilab/common/README.Python3 +29 -0
  425. data/vendor/python/logilab/common/__init__.py +171 -0
  426. data/vendor/python/logilab/common/__init__.pyc +0 -0
  427. data/vendor/python/logilab/common/__pkginfo__.py +53 -0
  428. data/vendor/python/logilab/common/__pkginfo__.pyc +0 -0
  429. data/vendor/python/logilab/common/announce.txt +25 -0
  430. data/vendor/python/logilab/common/bin/pytest +7 -0
  431. data/vendor/python/logilab/common/bin/pytest.bat +17 -0
  432. data/vendor/python/logilab/common/cache.py +114 -0
  433. data/vendor/python/logilab/common/changelog.py +236 -0
  434. data/vendor/python/logilab/common/changelog.pyc +0 -0
  435. data/vendor/python/logilab/common/clcommands.py +332 -0
  436. data/vendor/python/logilab/common/cli.py +208 -0
  437. data/vendor/python/logilab/common/compat.py +243 -0
  438. data/vendor/python/logilab/common/compat.pyc +0 -0
  439. data/vendor/python/logilab/common/configuration.py +1094 -0
  440. data/vendor/python/logilab/common/configuration.pyc +0 -0
  441. data/vendor/python/logilab/common/contexts.py +5 -0
  442. data/vendor/python/logilab/common/corbautils.py +117 -0
  443. data/vendor/python/logilab/common/daemon.py +100 -0
  444. data/vendor/python/logilab/common/date.py +333 -0
  445. data/vendor/python/logilab/common/dbf.py +229 -0
  446. data/vendor/python/logilab/common/debugger.py +210 -0
  447. data/vendor/python/logilab/common/decorators.py +281 -0
  448. data/vendor/python/logilab/common/decorators.pyc +0 -0
  449. data/vendor/python/logilab/common/deprecation.py +188 -0
  450. data/vendor/python/logilab/common/deprecation.pyc +0 -0
  451. data/vendor/python/logilab/common/fileutils.py +402 -0
  452. data/vendor/python/logilab/common/graph.py +276 -0
  453. data/vendor/python/logilab/common/graph.pyc +0 -0
  454. data/vendor/python/logilab/common/hg.py +130 -0
  455. data/vendor/python/logilab/common/interface.py +71 -0
  456. data/vendor/python/logilab/common/interface.pyc +0 -0
  457. data/vendor/python/logilab/common/logging_ext.py +193 -0
  458. data/vendor/python/logilab/common/modutils.py +695 -0
  459. data/vendor/python/logilab/common/modutils.pyc +0 -0
  460. data/vendor/python/logilab/common/optik_ext.py +391 -0
  461. data/vendor/python/logilab/common/optik_ext.pyc +0 -0
  462. data/vendor/python/logilab/common/optparser.py +90 -0
  463. data/vendor/python/logilab/common/proc.py +277 -0
  464. data/vendor/python/logilab/common/pyro_ext.py +180 -0
  465. data/vendor/python/logilab/common/pytest.py +1177 -0
  466. data/vendor/python/logilab/common/python-logilab-common.spec +184 -0
  467. data/vendor/python/logilab/common/registry.py +1113 -0
  468. data/vendor/python/logilab/common/setup.cfg +3 -0
  469. data/vendor/python/logilab/common/setup.py +189 -0
  470. data/vendor/python/logilab/common/shellutils.py +455 -0
  471. data/vendor/python/logilab/common/sphinx_ext.py +87 -0
  472. data/vendor/python/logilab/common/sphinxutils.py +122 -0
  473. data/vendor/python/logilab/common/table.py +925 -0
  474. data/vendor/python/logilab/common/tasksqueue.py +100 -0
  475. data/vendor/python/logilab/common/textutils.py +534 -0
  476. data/vendor/python/logilab/common/textutils.pyc +0 -0
  477. data/vendor/python/logilab/common/tree.py +369 -0
  478. data/vendor/python/logilab/common/tree.pyc +0 -0
  479. data/vendor/python/logilab/common/umessage.py +190 -0
  480. data/vendor/python/logilab/common/ureports/__init__.py +174 -0
  481. data/vendor/python/logilab/common/ureports/__init__.pyc +0 -0
  482. data/vendor/python/logilab/common/ureports/docbook_writer.py +139 -0
  483. data/vendor/python/logilab/common/ureports/html_writer.py +131 -0
  484. data/vendor/python/logilab/common/ureports/html_writer.pyc +0 -0
  485. data/vendor/python/logilab/common/ureports/nodes.py +201 -0
  486. data/vendor/python/logilab/common/ureports/nodes.pyc +0 -0
  487. data/vendor/python/logilab/common/ureports/text_writer.py +140 -0
  488. data/vendor/python/logilab/common/ureports/text_writer.pyc +0 -0
  489. data/vendor/python/logilab/common/urllib2ext.py +87 -0
  490. data/vendor/python/logilab/common/vcgutils.py +216 -0
  491. data/vendor/python/logilab/common/visitor.py +107 -0
  492. data/vendor/python/logilab/common/visitor.pyc +0 -0
  493. data/vendor/python/logilab/common/xmlrpcutils.py +131 -0
  494. data/vendor/python/logilab/common/xmlutils.py +61 -0
  495. data/vendor/python/pylint/CONTRIBUTORS.txt +38 -0
  496. data/vendor/python/pylint/COPYING +340 -0
  497. data/vendor/python/pylint/ChangeLog +1437 -0
  498. data/vendor/python/pylint/DEPENDS +3 -0
  499. data/vendor/python/pylint/MANIFEST.in +14 -0
  500. data/vendor/python/pylint/README +50 -0
  501. data/vendor/python/pylint/README.Python3 +37 -0
  502. data/vendor/python/pylint/__init__.py +44 -0
  503. data/vendor/python/pylint/__init__.pyc +0 -0
  504. data/vendor/python/pylint/__main__.py +3 -0
  505. data/vendor/python/pylint/__pkginfo__.py +74 -0
  506. data/vendor/python/pylint/__pkginfo__.pyc +0 -0
  507. data/vendor/python/pylint/bin/epylint +3 -0
  508. data/vendor/python/pylint/bin/epylint.bat +5 -0
  509. data/vendor/python/pylint/bin/pylint +3 -0
  510. data/vendor/python/pylint/bin/pylint-gui +3 -0
  511. data/vendor/python/pylint/bin/pylint-gui.bat +5 -0
  512. data/vendor/python/pylint/bin/pylint.bat +5 -0
  513. data/vendor/python/pylint/bin/pyreverse +3 -0
  514. data/vendor/python/pylint/bin/pyreverse.bat +5 -0
  515. data/vendor/python/pylint/bin/symilar +3 -0
  516. data/vendor/python/pylint/bin/symilar.bat +5 -0
  517. data/vendor/python/pylint/checkers/__init__.py +145 -0
  518. data/vendor/python/pylint/checkers/__init__.pyc +0 -0
  519. data/vendor/python/pylint/checkers/base.py +1141 -0
  520. data/vendor/python/pylint/checkers/base.pyc +0 -0
  521. data/vendor/python/pylint/checkers/classes.py +792 -0
  522. data/vendor/python/pylint/checkers/classes.pyc +0 -0
  523. data/vendor/python/pylint/checkers/design_analysis.py +367 -0
  524. data/vendor/python/pylint/checkers/design_analysis.pyc +0 -0
  525. data/vendor/python/pylint/checkers/exceptions.py +306 -0
  526. data/vendor/python/pylint/checkers/exceptions.pyc +0 -0
  527. data/vendor/python/pylint/checkers/format.py +943 -0
  528. data/vendor/python/pylint/checkers/format.pyc +0 -0
  529. data/vendor/python/pylint/checkers/imports.py +394 -0
  530. data/vendor/python/pylint/checkers/imports.pyc +0 -0
  531. data/vendor/python/pylint/checkers/logging.py +213 -0
  532. data/vendor/python/pylint/checkers/logging.pyc +0 -0
  533. data/vendor/python/pylint/checkers/misc.py +90 -0
  534. data/vendor/python/pylint/checkers/misc.pyc +0 -0
  535. data/vendor/python/pylint/checkers/newstyle.py +151 -0
  536. data/vendor/python/pylint/checkers/newstyle.pyc +0 -0
  537. data/vendor/python/pylint/checkers/raw_metrics.py +129 -0
  538. data/vendor/python/pylint/checkers/raw_metrics.pyc +0 -0
  539. data/vendor/python/pylint/checkers/similar.py +365 -0
  540. data/vendor/python/pylint/checkers/similar.pyc +0 -0
  541. data/vendor/python/pylint/checkers/stdlib.py +69 -0
  542. data/vendor/python/pylint/checkers/stdlib.pyc +0 -0
  543. data/vendor/python/pylint/checkers/strings.py +304 -0
  544. data/vendor/python/pylint/checkers/strings.pyc +0 -0
  545. data/vendor/python/pylint/checkers/typecheck.py +451 -0
  546. data/vendor/python/pylint/checkers/typecheck.pyc +0 -0
  547. data/vendor/python/pylint/checkers/utils.py +416 -0
  548. data/vendor/python/pylint/checkers/utils.pyc +0 -0
  549. data/vendor/python/pylint/checkers/variables.py +741 -0
  550. data/vendor/python/pylint/checkers/variables.pyc +0 -0
  551. data/vendor/python/pylint/config.py +156 -0
  552. data/vendor/python/pylint/config.pyc +0 -0
  553. data/vendor/python/pylint/epylint.py +175 -0
  554. data/vendor/python/pylint/gui.py +508 -0
  555. data/vendor/python/pylint/interfaces.py +72 -0
  556. data/vendor/python/pylint/interfaces.pyc +0 -0
  557. data/vendor/python/pylint/lint.py +1106 -0
  558. data/vendor/python/pylint/lint.pyc +0 -0
  559. data/vendor/python/pylint/pyreverse/__init__.py +5 -0
  560. data/vendor/python/pylint/pyreverse/diadefslib.py +233 -0
  561. data/vendor/python/pylint/pyreverse/diagrams.py +247 -0
  562. data/vendor/python/pylint/pyreverse/main.py +124 -0
  563. data/vendor/python/pylint/pyreverse/utils.py +131 -0
  564. data/vendor/python/pylint/pyreverse/writer.py +199 -0
  565. data/vendor/python/pylint/reporters/__init__.py +138 -0
  566. data/vendor/python/pylint/reporters/__init__.pyc +0 -0
  567. data/vendor/python/pylint/reporters/guireporter.py +28 -0
  568. data/vendor/python/pylint/reporters/guireporter.pyc +0 -0
  569. data/vendor/python/pylint/reporters/html.py +70 -0
  570. data/vendor/python/pylint/reporters/html.pyc +0 -0
  571. data/vendor/python/pylint/reporters/text.py +143 -0
  572. data/vendor/python/pylint/reporters/text.pyc +0 -0
  573. data/vendor/python/pylint/setup.cfg +3 -0
  574. data/vendor/python/pylint/setup.py +203 -0
  575. data/vendor/python/pylint/tox.ini +10 -0
  576. data/vendor/python/pylint/utils.py +744 -0
  577. data/vendor/python/pylint/utils.pyc +0 -0
  578. data/vendor/python/pylint_runner.py +22 -0
  579. metadata +675 -0
@@ -0,0 +1,31 @@
1
+ #entities [![NPM version](http://img.shields.io/npm/v/entities.svg)](https://npmjs.org/package/entities) [![Downloads](https://img.shields.io/npm/dm/entities.svg)](https://npmjs.org/package/entities) [![Build Status](http://img.shields.io/travis/fb55/node-entities.svg)](http://travis-ci.org/fb55/node-entities) [![Coverage](http://img.shields.io/coveralls/fb55/node-entities.svg)](https://coveralls.io/r/fb55/node-entities)
2
+
3
+ En- & decoder for XML/HTML entities.
4
+
5
+ ####Features:
6
+ * Focussed on ___speed___
7
+ * Supports three levels of entities: __XML__, __HTML4__ & __HTML5__
8
+ * Supports _char code_ entities (eg. `U`)
9
+
10
+ ##How to…
11
+
12
+ ###…install `entities`
13
+
14
+ npm i entities
15
+
16
+ ###…use `entities`
17
+
18
+ ```javascript
19
+ //encoding
20
+ require("entities").encode(<str> data[, <int> level]);
21
+ //decoding
22
+ require("entities").decode(<str> data[, <int> level]);
23
+ ```
24
+
25
+ The `level` attribute indicates what level of entities should be decoded (0 = XML, 1 = HTML4 and 2 = HTML5). The default is 0 (read: XML).
26
+
27
+ There are also methods to access the level directly. Just append the name of the level to the action and you're ready to go (e.g. `encodeHTML4(data)`, `decodeXML(data)`).
28
+
29
+ ---
30
+
31
+ License: BSD-like
@@ -0,0 +1,150 @@
1
+ var assert = require("assert"),
2
+ path = require("path"),
3
+ entities = require("../");
4
+
5
+ describe("Encode->decode test", function(){
6
+ var testcases = [
7
+ {
8
+ input: "asdf & ÿ ü '",
9
+ xml: "asdf &amp; &#xFF; &#xFC; &apos;",
10
+ html: "asdf &amp; &yuml; &uuml; &apos;"
11
+ }, {
12
+ input: "&#38;",
13
+ xml: "&amp;#38;",
14
+ html: "&amp;&num;38&semi;"
15
+ },
16
+ ];
17
+ testcases.forEach(function(tc) {
18
+ var encodedXML = entities.encodeXML(tc.input);
19
+ it("should XML encode " + tc.input, function(){
20
+ assert.equal(encodedXML, tc.xml);
21
+ });
22
+ it("should default to XML encode " + tc.input, function(){
23
+ assert.equal(entities.encode(tc.input), tc.xml);
24
+ });
25
+ it("should XML decode " + encodedXML, function(){
26
+ assert.equal(entities.decodeXML(encodedXML), tc.input);
27
+ });
28
+ it("should default to XML encode " + encodedXML, function(){
29
+ assert.equal(entities.decode(encodedXML), tc.input);
30
+ });
31
+ it("should default strict to XML encode " + encodedXML, function(){
32
+ assert.equal(entities.decodeStrict(encodedXML), tc.input);
33
+ });
34
+
35
+ var encodedHTML5 = entities.encodeHTML5(tc.input);
36
+ it("should HTML5 encode " + tc.input, function(){
37
+ assert.equal(encodedHTML5, tc.html);
38
+ });
39
+ it("should HTML5 decode " + encodedHTML5, function(){
40
+ assert.equal(entities.decodeHTML(encodedHTML5), tc.input);
41
+ });
42
+ });
43
+ });
44
+
45
+ describe("Decode test", function(){
46
+ var testcases = [
47
+ { input: "&amp;amp;", output: "&amp;" },
48
+ { input: "&amp;#38;", output: "&#38;" },
49
+ { input: "&amp;#x26;", output: "&#x26;" },
50
+ { input: "&amp;#X26;", output: "&#X26;" },
51
+ { input: "&#38;#38;", output: "&#38;" },
52
+ { input: "&#x26;#38;", output: "&#38;" },
53
+ { input: "&#X26;#38;", output: "&#38;" },
54
+ { input: "&#x3a;", output: ":" },
55
+ { input: "&#x3A;", output: ":" },
56
+ { input: "&#X3a;", output: ":" },
57
+ { input: "&#X3A;", output: ":" }
58
+ ];
59
+ testcases.forEach(function(tc) {
60
+ it("should XML decode " + tc.input, function(){
61
+ assert.equal(entities.decodeXML(tc.input), tc.output);
62
+ });
63
+ it("should HTML4 decode " + tc.input, function(){
64
+ assert.equal(entities.decodeHTML(tc.input), tc.output);
65
+ });
66
+ it("should HTML5 decode " + tc.input, function(){
67
+ assert.equal(entities.decodeHTML(tc.input), tc.output);
68
+ });
69
+ });
70
+ });
71
+
72
+ var levels = ["xml", "entities"];
73
+
74
+ describe("Documents", function(){
75
+ levels
76
+ .map(function(n){ return path.join("..", "maps", n); })
77
+ .map(require)
78
+ .forEach(function(doc, i){
79
+ describe("Decode", function(){
80
+ it(levels[i], function(){
81
+ Object.keys(doc).forEach(function(e){
82
+ for(var l = i; l < levels.length; l++){
83
+ assert.equal(entities.decode("&" + e + ";", l), doc[e]);
84
+ }
85
+ });
86
+ });
87
+ });
88
+
89
+ describe("Decode strict", function(){
90
+ it(levels[i], function(){
91
+ Object.keys(doc).forEach(function(e){
92
+ for(var l = i; l < levels.length; l++){
93
+ assert.equal(entities.decodeStrict("&" + e + ";", l), doc[e]);
94
+ }
95
+ });
96
+ });
97
+ });
98
+
99
+ describe("Encode", function(){
100
+ it(levels[i], function(){
101
+ Object.keys(doc).forEach(function(e){
102
+ for(var l = i; l < levels.length; l++){
103
+ assert.equal(entities.decode(entities.encode(doc[e], l), l), doc[e]);
104
+ }
105
+ });
106
+ });
107
+ });
108
+ });
109
+
110
+ var legacy = require("../maps/legacy.json");
111
+
112
+ describe("Legacy", function(){
113
+ it("should decode", runLegacy);
114
+ });
115
+
116
+ function runLegacy(){
117
+ Object.keys(legacy).forEach(function(e){
118
+ assert.equal(entities.decodeHTML("&" + e), legacy[e]);
119
+ });
120
+ }
121
+ });
122
+
123
+ var astral = {
124
+ "1D306": "\uD834\uDF06",
125
+ "1D11E": "\uD834\uDD1E"
126
+ };
127
+
128
+ var astralSpecial = {
129
+ "80": "\u20AC",
130
+ "110000": "\uFFFD"
131
+ };
132
+
133
+
134
+ describe("Astral entities", function(){
135
+ Object.keys(astral).forEach(function(c){
136
+ it("should decode " + astral[c], function(){
137
+ assert.equal(entities.decode("&#x" + c + ";"), astral[c]);
138
+ });
139
+
140
+ it("should encode " + astral[c], function(){
141
+ assert.equal(entities.encode(astral[c]), "&#x" + c + ";");
142
+ });
143
+ });
144
+
145
+ Object.keys(astralSpecial).forEach(function(c){
146
+ it("special should decode \\u" + c, function(){
147
+ assert.equal(entities.decode("&#x" + c + ";"), astralSpecial[c]);
148
+ });
149
+ });
150
+ });
@@ -0,0 +1,18 @@
1
+ Copyright Joyent, Inc. and other Node contributors. All rights reserved.
2
+ Permission is hereby granted, free of charge, to any person obtaining a copy
3
+ of this software and associated documentation files (the "Software"), to
4
+ deal in the Software without restriction, including without limitation the
5
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
6
+ sell copies of the Software, and to permit persons to whom the Software is
7
+ furnished to do so, subject to the following conditions:
8
+
9
+ The above copyright notice and this permission notice shall be included in
10
+ all copies or substantial portions of the Software.
11
+
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
18
+ IN THE SOFTWARE.
@@ -0,0 +1,15 @@
1
+ # readable-stream
2
+
3
+ ***Node-core streams for userland***
4
+
5
+ [![NPM](https://nodei.co/npm/readable-stream.png?downloads=true)](https://nodei.co/npm/readable-stream/)
6
+ [![NPM](https://nodei.co/npm-dl/readable-stream.png)](https://nodei.co/npm/readable-stream/)
7
+
8
+ This package is a mirror of the Streams2 and Streams3 implementations in Node-core.
9
+
10
+ If you want to guarantee a stable streams base, regardless of what version of Node you, or the users of your libraries are using, use **readable-stream** *only* and avoid the *"stream"* module in Node-core.
11
+
12
+ **readable-stream** comes in two major versions, v1.0.x and v1.1.x. The former tracks the Streams2 implementation in Node 0.10, including bug-fixes and minor improvements as they are added. The latter tracks Streams3 as it develops in Node 0.11; we will likely see a v1.2.x branch for Node 0.12.
13
+
14
+ **readable-stream** uses proper patch-level versioning so if you pin to `"~1.0.0"` you’ll get the latest Node 0.10 Streams2 implementation, including any fixes and minor non-breaking improvements. The patch-level versions of 1.0.x and 1.1.x should mirror the patch-level versions of Node-core releases. You should prefer the **1.0.x** releases for now and when you’re ready to start using Streams3, pin to `"~1.1.0"`
15
+
@@ -0,0 +1 @@
1
+ module.exports = require("./lib/_stream_duplex.js")
@@ -0,0 +1,923 @@
1
+ diff --git a/lib/_stream_duplex.js b/lib/_stream_duplex.js
2
+ index c5a741c..a2e0d8e 100644
3
+ --- a/lib/_stream_duplex.js
4
+ +++ b/lib/_stream_duplex.js
5
+ @@ -26,8 +26,8 @@
6
+
7
+ module.exports = Duplex;
8
+ var util = require('util');
9
+ -var Readable = require('_stream_readable');
10
+ -var Writable = require('_stream_writable');
11
+ +var Readable = require('./_stream_readable');
12
+ +var Writable = require('./_stream_writable');
13
+
14
+ util.inherits(Duplex, Readable);
15
+
16
+ diff --git a/lib/_stream_passthrough.js b/lib/_stream_passthrough.js
17
+ index a5e9864..330c247 100644
18
+ --- a/lib/_stream_passthrough.js
19
+ +++ b/lib/_stream_passthrough.js
20
+ @@ -25,7 +25,7 @@
21
+
22
+ module.exports = PassThrough;
23
+
24
+ -var Transform = require('_stream_transform');
25
+ +var Transform = require('./_stream_transform');
26
+ var util = require('util');
27
+ util.inherits(PassThrough, Transform);
28
+
29
+ diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js
30
+ index 0c3fe3e..90a8298 100644
31
+ --- a/lib/_stream_readable.js
32
+ +++ b/lib/_stream_readable.js
33
+ @@ -23,10 +23,34 @@ module.exports = Readable;
34
+ Readable.ReadableState = ReadableState;
35
+
36
+ var EE = require('events').EventEmitter;
37
+ +if (!EE.listenerCount) EE.listenerCount = function(emitter, type) {
38
+ + return emitter.listeners(type).length;
39
+ +};
40
+ +
41
+ +if (!global.setImmediate) global.setImmediate = function setImmediate(fn) {
42
+ + return setTimeout(fn, 0);
43
+ +};
44
+ +if (!global.clearImmediate) global.clearImmediate = function clearImmediate(i) {
45
+ + return clearTimeout(i);
46
+ +};
47
+ +
48
+ var Stream = require('stream');
49
+ var util = require('util');
50
+ +if (!util.isUndefined) {
51
+ + var utilIs = require('core-util-is');
52
+ + for (var f in utilIs) {
53
+ + util[f] = utilIs[f];
54
+ + }
55
+ +}
56
+ var StringDecoder;
57
+ -var debug = util.debuglog('stream');
58
+ +var debug;
59
+ +if (util.debuglog)
60
+ + debug = util.debuglog('stream');
61
+ +else try {
62
+ + debug = require('debuglog')('stream');
63
+ +} catch (er) {
64
+ + debug = function() {};
65
+ +}
66
+
67
+ util.inherits(Readable, Stream);
68
+
69
+ @@ -380,7 +404,7 @@ function chunkInvalid(state, chunk) {
70
+
71
+
72
+ function onEofChunk(stream, state) {
73
+ - if (state.decoder && !state.ended) {
74
+ + if (state.decoder && !state.ended && state.decoder.end) {
75
+ var chunk = state.decoder.end();
76
+ if (chunk && chunk.length) {
77
+ state.buffer.push(chunk);
78
+ diff --git a/lib/_stream_transform.js b/lib/_stream_transform.js
79
+ index b1f9fcc..b0caf57 100644
80
+ --- a/lib/_stream_transform.js
81
+ +++ b/lib/_stream_transform.js
82
+ @@ -64,8 +64,14 @@
83
+
84
+ module.exports = Transform;
85
+
86
+ -var Duplex = require('_stream_duplex');
87
+ +var Duplex = require('./_stream_duplex');
88
+ var util = require('util');
89
+ +if (!util.isUndefined) {
90
+ + var utilIs = require('core-util-is');
91
+ + for (var f in utilIs) {
92
+ + util[f] = utilIs[f];
93
+ + }
94
+ +}
95
+ util.inherits(Transform, Duplex);
96
+
97
+
98
+ diff --git a/lib/_stream_writable.js b/lib/_stream_writable.js
99
+ index ba2e920..f49288b 100644
100
+ --- a/lib/_stream_writable.js
101
+ +++ b/lib/_stream_writable.js
102
+ @@ -27,6 +27,12 @@ module.exports = Writable;
103
+ Writable.WritableState = WritableState;
104
+
105
+ var util = require('util');
106
+ +if (!util.isUndefined) {
107
+ + var utilIs = require('core-util-is');
108
+ + for (var f in utilIs) {
109
+ + util[f] = utilIs[f];
110
+ + }
111
+ +}
112
+ var Stream = require('stream');
113
+
114
+ util.inherits(Writable, Stream);
115
+ @@ -119,7 +125,7 @@ function WritableState(options, stream) {
116
+ function Writable(options) {
117
+ // Writable ctor is applied to Duplexes, though they're not
118
+ // instanceof Writable, they're instanceof Readable.
119
+ - if (!(this instanceof Writable) && !(this instanceof Stream.Duplex))
120
+ + if (!(this instanceof Writable) && !(this instanceof require('./_stream_duplex')))
121
+ return new Writable(options);
122
+
123
+ this._writableState = new WritableState(options, this);
124
+ diff --git a/test/simple/test-stream-big-push.js b/test/simple/test-stream-big-push.js
125
+ index e3787e4..8cd2127 100644
126
+ --- a/test/simple/test-stream-big-push.js
127
+ +++ b/test/simple/test-stream-big-push.js
128
+ @@ -21,7 +21,7 @@
129
+
130
+ var common = require('../common');
131
+ var assert = require('assert');
132
+ -var stream = require('stream');
133
+ +var stream = require('../../');
134
+ var str = 'asdfasdfasdfasdfasdf';
135
+
136
+ var r = new stream.Readable({
137
+ diff --git a/test/simple/test-stream-end-paused.js b/test/simple/test-stream-end-paused.js
138
+ index bb73777..d40efc7 100644
139
+ --- a/test/simple/test-stream-end-paused.js
140
+ +++ b/test/simple/test-stream-end-paused.js
141
+ @@ -25,7 +25,7 @@ var gotEnd = false;
142
+
143
+ // Make sure we don't miss the end event for paused 0-length streams
144
+
145
+ -var Readable = require('stream').Readable;
146
+ +var Readable = require('../../').Readable;
147
+ var stream = new Readable();
148
+ var calledRead = false;
149
+ stream._read = function() {
150
+ diff --git a/test/simple/test-stream-pipe-after-end.js b/test/simple/test-stream-pipe-after-end.js
151
+ index b46ee90..0be8366 100644
152
+ --- a/test/simple/test-stream-pipe-after-end.js
153
+ +++ b/test/simple/test-stream-pipe-after-end.js
154
+ @@ -22,8 +22,8 @@
155
+ var common = require('../common');
156
+ var assert = require('assert');
157
+
158
+ -var Readable = require('_stream_readable');
159
+ -var Writable = require('_stream_writable');
160
+ +var Readable = require('../../lib/_stream_readable');
161
+ +var Writable = require('../../lib/_stream_writable');
162
+ var util = require('util');
163
+
164
+ util.inherits(TestReadable, Readable);
165
+ diff --git a/test/simple/test-stream-pipe-cleanup.js b/test/simple/test-stream-pipe-cleanup.js
166
+ deleted file mode 100644
167
+ index f689358..0000000
168
+ --- a/test/simple/test-stream-pipe-cleanup.js
169
+ +++ /dev/null
170
+ @@ -1,122 +0,0 @@
171
+ -// Copyright Joyent, Inc. and other Node contributors.
172
+ -//
173
+ -// Permission is hereby granted, free of charge, to any person obtaining a
174
+ -// copy of this software and associated documentation files (the
175
+ -// "Software"), to deal in the Software without restriction, including
176
+ -// without limitation the rights to use, copy, modify, merge, publish,
177
+ -// distribute, sublicense, and/or sell copies of the Software, and to permit
178
+ -// persons to whom the Software is furnished to do so, subject to the
179
+ -// following conditions:
180
+ -//
181
+ -// The above copyright notice and this permission notice shall be included
182
+ -// in all copies or substantial portions of the Software.
183
+ -//
184
+ -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
185
+ -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
186
+ -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
187
+ -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
188
+ -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
189
+ -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
190
+ -// USE OR OTHER DEALINGS IN THE SOFTWARE.
191
+ -
192
+ -// This test asserts that Stream.prototype.pipe does not leave listeners
193
+ -// hanging on the source or dest.
194
+ -
195
+ -var common = require('../common');
196
+ -var stream = require('stream');
197
+ -var assert = require('assert');
198
+ -var util = require('util');
199
+ -
200
+ -function Writable() {
201
+ - this.writable = true;
202
+ - this.endCalls = 0;
203
+ - stream.Stream.call(this);
204
+ -}
205
+ -util.inherits(Writable, stream.Stream);
206
+ -Writable.prototype.end = function() {
207
+ - this.endCalls++;
208
+ -};
209
+ -
210
+ -Writable.prototype.destroy = function() {
211
+ - this.endCalls++;
212
+ -};
213
+ -
214
+ -function Readable() {
215
+ - this.readable = true;
216
+ - stream.Stream.call(this);
217
+ -}
218
+ -util.inherits(Readable, stream.Stream);
219
+ -
220
+ -function Duplex() {
221
+ - this.readable = true;
222
+ - Writable.call(this);
223
+ -}
224
+ -util.inherits(Duplex, Writable);
225
+ -
226
+ -var i = 0;
227
+ -var limit = 100;
228
+ -
229
+ -var w = new Writable();
230
+ -
231
+ -var r;
232
+ -
233
+ -for (i = 0; i < limit; i++) {
234
+ - r = new Readable();
235
+ - r.pipe(w);
236
+ - r.emit('end');
237
+ -}
238
+ -assert.equal(0, r.listeners('end').length);
239
+ -assert.equal(limit, w.endCalls);
240
+ -
241
+ -w.endCalls = 0;
242
+ -
243
+ -for (i = 0; i < limit; i++) {
244
+ - r = new Readable();
245
+ - r.pipe(w);
246
+ - r.emit('close');
247
+ -}
248
+ -assert.equal(0, r.listeners('close').length);
249
+ -assert.equal(limit, w.endCalls);
250
+ -
251
+ -w.endCalls = 0;
252
+ -
253
+ -r = new Readable();
254
+ -
255
+ -for (i = 0; i < limit; i++) {
256
+ - w = new Writable();
257
+ - r.pipe(w);
258
+ - w.emit('close');
259
+ -}
260
+ -assert.equal(0, w.listeners('close').length);
261
+ -
262
+ -r = new Readable();
263
+ -w = new Writable();
264
+ -var d = new Duplex();
265
+ -r.pipe(d); // pipeline A
266
+ -d.pipe(w); // pipeline B
267
+ -assert.equal(r.listeners('end').length, 2); // A.onend, A.cleanup
268
+ -assert.equal(r.listeners('close').length, 2); // A.onclose, A.cleanup
269
+ -assert.equal(d.listeners('end').length, 2); // B.onend, B.cleanup
270
+ -assert.equal(d.listeners('close').length, 3); // A.cleanup, B.onclose, B.cleanup
271
+ -assert.equal(w.listeners('end').length, 0);
272
+ -assert.equal(w.listeners('close').length, 1); // B.cleanup
273
+ -
274
+ -r.emit('end');
275
+ -assert.equal(d.endCalls, 1);
276
+ -assert.equal(w.endCalls, 0);
277
+ -assert.equal(r.listeners('end').length, 0);
278
+ -assert.equal(r.listeners('close').length, 0);
279
+ -assert.equal(d.listeners('end').length, 2); // B.onend, B.cleanup
280
+ -assert.equal(d.listeners('close').length, 2); // B.onclose, B.cleanup
281
+ -assert.equal(w.listeners('end').length, 0);
282
+ -assert.equal(w.listeners('close').length, 1); // B.cleanup
283
+ -
284
+ -d.emit('end');
285
+ -assert.equal(d.endCalls, 1);
286
+ -assert.equal(w.endCalls, 1);
287
+ -assert.equal(r.listeners('end').length, 0);
288
+ -assert.equal(r.listeners('close').length, 0);
289
+ -assert.equal(d.listeners('end').length, 0);
290
+ -assert.equal(d.listeners('close').length, 0);
291
+ -assert.equal(w.listeners('end').length, 0);
292
+ -assert.equal(w.listeners('close').length, 0);
293
+ diff --git a/test/simple/test-stream-pipe-error-handling.js b/test/simple/test-stream-pipe-error-handling.js
294
+ index c5d724b..c7d6b7d 100644
295
+ --- a/test/simple/test-stream-pipe-error-handling.js
296
+ +++ b/test/simple/test-stream-pipe-error-handling.js
297
+ @@ -21,7 +21,7 @@
298
+
299
+ var common = require('../common');
300
+ var assert = require('assert');
301
+ -var Stream = require('stream').Stream;
302
+ +var Stream = require('../../').Stream;
303
+
304
+ (function testErrorListenerCatches() {
305
+ var source = new Stream();
306
+ diff --git a/test/simple/test-stream-pipe-event.js b/test/simple/test-stream-pipe-event.js
307
+ index cb9d5fe..56f8d61 100644
308
+ --- a/test/simple/test-stream-pipe-event.js
309
+ +++ b/test/simple/test-stream-pipe-event.js
310
+ @@ -20,7 +20,7 @@
311
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
312
+
313
+ var common = require('../common');
314
+ -var stream = require('stream');
315
+ +var stream = require('../../');
316
+ var assert = require('assert');
317
+ var util = require('util');
318
+
319
+ diff --git a/test/simple/test-stream-push-order.js b/test/simple/test-stream-push-order.js
320
+ index f2e6ec2..a5c9bf9 100644
321
+ --- a/test/simple/test-stream-push-order.js
322
+ +++ b/test/simple/test-stream-push-order.js
323
+ @@ -20,7 +20,7 @@
324
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
325
+
326
+ var common = require('../common.js');
327
+ -var Readable = require('stream').Readable;
328
+ +var Readable = require('../../').Readable;
329
+ var assert = require('assert');
330
+
331
+ var s = new Readable({
332
+ diff --git a/test/simple/test-stream-push-strings.js b/test/simple/test-stream-push-strings.js
333
+ index 06f43dc..1701a9a 100644
334
+ --- a/test/simple/test-stream-push-strings.js
335
+ +++ b/test/simple/test-stream-push-strings.js
336
+ @@ -22,7 +22,7 @@
337
+ var common = require('../common');
338
+ var assert = require('assert');
339
+
340
+ -var Readable = require('stream').Readable;
341
+ +var Readable = require('../../').Readable;
342
+ var util = require('util');
343
+
344
+ util.inherits(MyStream, Readable);
345
+ diff --git a/test/simple/test-stream-readable-event.js b/test/simple/test-stream-readable-event.js
346
+ index ba6a577..a8e6f7b 100644
347
+ --- a/test/simple/test-stream-readable-event.js
348
+ +++ b/test/simple/test-stream-readable-event.js
349
+ @@ -22,7 +22,7 @@
350
+ var common = require('../common');
351
+ var assert = require('assert');
352
+
353
+ -var Readable = require('stream').Readable;
354
+ +var Readable = require('../../').Readable;
355
+
356
+ (function first() {
357
+ // First test, not reading when the readable is added.
358
+ diff --git a/test/simple/test-stream-readable-flow-recursion.js b/test/simple/test-stream-readable-flow-recursion.js
359
+ index 2891ad6..11689ba 100644
360
+ --- a/test/simple/test-stream-readable-flow-recursion.js
361
+ +++ b/test/simple/test-stream-readable-flow-recursion.js
362
+ @@ -27,7 +27,7 @@ var assert = require('assert');
363
+ // more data continuously, but without triggering a nextTick
364
+ // warning or RangeError.
365
+
366
+ -var Readable = require('stream').Readable;
367
+ +var Readable = require('../../').Readable;
368
+
369
+ // throw an error if we trigger a nextTick warning.
370
+ process.throwDeprecation = true;
371
+ diff --git a/test/simple/test-stream-unshift-empty-chunk.js b/test/simple/test-stream-unshift-empty-chunk.js
372
+ index 0c96476..7827538 100644
373
+ --- a/test/simple/test-stream-unshift-empty-chunk.js
374
+ +++ b/test/simple/test-stream-unshift-empty-chunk.js
375
+ @@ -24,7 +24,7 @@ var assert = require('assert');
376
+
377
+ // This test verifies that stream.unshift(Buffer(0)) or
378
+ // stream.unshift('') does not set state.reading=false.
379
+ -var Readable = require('stream').Readable;
380
+ +var Readable = require('../../').Readable;
381
+
382
+ var r = new Readable();
383
+ var nChunks = 10;
384
+ diff --git a/test/simple/test-stream-unshift-read-race.js b/test/simple/test-stream-unshift-read-race.js
385
+ index 83fd9fa..17c18aa 100644
386
+ --- a/test/simple/test-stream-unshift-read-race.js
387
+ +++ b/test/simple/test-stream-unshift-read-race.js
388
+ @@ -29,7 +29,7 @@ var assert = require('assert');
389
+ // 3. push() after the EOF signaling null is an error.
390
+ // 4. _read() is not called after pushing the EOF null chunk.
391
+
392
+ -var stream = require('stream');
393
+ +var stream = require('../../');
394
+ var hwm = 10;
395
+ var r = stream.Readable({ highWaterMark: hwm });
396
+ var chunks = 10;
397
+ @@ -51,7 +51,14 @@ r._read = function(n) {
398
+
399
+ function push(fast) {
400
+ assert(!pushedNull, 'push() after null push');
401
+ - var c = pos >= data.length ? null : data.slice(pos, pos + n);
402
+ + var c;
403
+ + if (pos >= data.length)
404
+ + c = null;
405
+ + else {
406
+ + if (n + pos > data.length)
407
+ + n = data.length - pos;
408
+ + c = data.slice(pos, pos + n);
409
+ + }
410
+ pushedNull = c === null;
411
+ if (fast) {
412
+ pos += n;
413
+ diff --git a/test/simple/test-stream-writev.js b/test/simple/test-stream-writev.js
414
+ index 5b49e6e..b5321f3 100644
415
+ --- a/test/simple/test-stream-writev.js
416
+ +++ b/test/simple/test-stream-writev.js
417
+ @@ -22,7 +22,7 @@
418
+ var common = require('../common');
419
+ var assert = require('assert');
420
+
421
+ -var stream = require('stream');
422
+ +var stream = require('../../');
423
+
424
+ var queue = [];
425
+ for (var decode = 0; decode < 2; decode++) {
426
+ diff --git a/test/simple/test-stream2-basic.js b/test/simple/test-stream2-basic.js
427
+ index 3814bf0..248c1be 100644
428
+ --- a/test/simple/test-stream2-basic.js
429
+ +++ b/test/simple/test-stream2-basic.js
430
+ @@ -21,7 +21,7 @@
431
+
432
+
433
+ var common = require('../common.js');
434
+ -var R = require('_stream_readable');
435
+ +var R = require('../../lib/_stream_readable');
436
+ var assert = require('assert');
437
+
438
+ var util = require('util');
439
+ diff --git a/test/simple/test-stream2-compatibility.js b/test/simple/test-stream2-compatibility.js
440
+ index 6cdd4e9..f0fa84b 100644
441
+ --- a/test/simple/test-stream2-compatibility.js
442
+ +++ b/test/simple/test-stream2-compatibility.js
443
+ @@ -21,7 +21,7 @@
444
+
445
+
446
+ var common = require('../common.js');
447
+ -var R = require('_stream_readable');
448
+ +var R = require('../../lib/_stream_readable');
449
+ var assert = require('assert');
450
+
451
+ var util = require('util');
452
+ diff --git a/test/simple/test-stream2-finish-pipe.js b/test/simple/test-stream2-finish-pipe.js
453
+ index 39b274f..006a19b 100644
454
+ --- a/test/simple/test-stream2-finish-pipe.js
455
+ +++ b/test/simple/test-stream2-finish-pipe.js
456
+ @@ -20,7 +20,7 @@
457
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
458
+
459
+ var common = require('../common.js');
460
+ -var stream = require('stream');
461
+ +var stream = require('../../');
462
+ var Buffer = require('buffer').Buffer;
463
+
464
+ var r = new stream.Readable();
465
+ diff --git a/test/simple/test-stream2-fs.js b/test/simple/test-stream2-fs.js
466
+ deleted file mode 100644
467
+ index e162406..0000000
468
+ --- a/test/simple/test-stream2-fs.js
469
+ +++ /dev/null
470
+ @@ -1,72 +0,0 @@
471
+ -// Copyright Joyent, Inc. and other Node contributors.
472
+ -//
473
+ -// Permission is hereby granted, free of charge, to any person obtaining a
474
+ -// copy of this software and associated documentation files (the
475
+ -// "Software"), to deal in the Software without restriction, including
476
+ -// without limitation the rights to use, copy, modify, merge, publish,
477
+ -// distribute, sublicense, and/or sell copies of the Software, and to permit
478
+ -// persons to whom the Software is furnished to do so, subject to the
479
+ -// following conditions:
480
+ -//
481
+ -// The above copyright notice and this permission notice shall be included
482
+ -// in all copies or substantial portions of the Software.
483
+ -//
484
+ -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
485
+ -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
486
+ -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
487
+ -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
488
+ -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
489
+ -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
490
+ -// USE OR OTHER DEALINGS IN THE SOFTWARE.
491
+ -
492
+ -
493
+ -var common = require('../common.js');
494
+ -var R = require('_stream_readable');
495
+ -var assert = require('assert');
496
+ -
497
+ -var fs = require('fs');
498
+ -var FSReadable = fs.ReadStream;
499
+ -
500
+ -var path = require('path');
501
+ -var file = path.resolve(common.fixturesDir, 'x1024.txt');
502
+ -
503
+ -var size = fs.statSync(file).size;
504
+ -
505
+ -var expectLengths = [1024];
506
+ -
507
+ -var util = require('util');
508
+ -var Stream = require('stream');
509
+ -
510
+ -util.inherits(TestWriter, Stream);
511
+ -
512
+ -function TestWriter() {
513
+ - Stream.apply(this);
514
+ - this.buffer = [];
515
+ - this.length = 0;
516
+ -}
517
+ -
518
+ -TestWriter.prototype.write = function(c) {
519
+ - this.buffer.push(c.toString());
520
+ - this.length += c.length;
521
+ - return true;
522
+ -};
523
+ -
524
+ -TestWriter.prototype.end = function(c) {
525
+ - if (c) this.buffer.push(c.toString());
526
+ - this.emit('results', this.buffer);
527
+ -}
528
+ -
529
+ -var r = new FSReadable(file);
530
+ -var w = new TestWriter();
531
+ -
532
+ -w.on('results', function(res) {
533
+ - console.error(res, w.length);
534
+ - assert.equal(w.length, size);
535
+ - var l = 0;
536
+ - assert.deepEqual(res.map(function (c) {
537
+ - return c.length;
538
+ - }), expectLengths);
539
+ - console.log('ok');
540
+ -});
541
+ -
542
+ -r.pipe(w);
543
+ diff --git a/test/simple/test-stream2-httpclient-response-end.js b/test/simple/test-stream2-httpclient-response-end.js
544
+ deleted file mode 100644
545
+ index 15cffc2..0000000
546
+ --- a/test/simple/test-stream2-httpclient-response-end.js
547
+ +++ /dev/null
548
+ @@ -1,52 +0,0 @@
549
+ -// Copyright Joyent, Inc. and other Node contributors.
550
+ -//
551
+ -// Permission is hereby granted, free of charge, to any person obtaining a
552
+ -// copy of this software and associated documentation files (the
553
+ -// "Software"), to deal in the Software without restriction, including
554
+ -// without limitation the rights to use, copy, modify, merge, publish,
555
+ -// distribute, sublicense, and/or sell copies of the Software, and to permit
556
+ -// persons to whom the Software is furnished to do so, subject to the
557
+ -// following conditions:
558
+ -//
559
+ -// The above copyright notice and this permission notice shall be included
560
+ -// in all copies or substantial portions of the Software.
561
+ -//
562
+ -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
563
+ -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
564
+ -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
565
+ -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
566
+ -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
567
+ -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
568
+ -// USE OR OTHER DEALINGS IN THE SOFTWARE.
569
+ -
570
+ -var common = require('../common.js');
571
+ -var assert = require('assert');
572
+ -var http = require('http');
573
+ -var msg = 'Hello';
574
+ -var readable_event = false;
575
+ -var end_event = false;
576
+ -var server = http.createServer(function(req, res) {
577
+ - res.writeHead(200, {'Content-Type': 'text/plain'});
578
+ - res.end(msg);
579
+ -}).listen(common.PORT, function() {
580
+ - http.get({port: common.PORT}, function(res) {
581
+ - var data = '';
582
+ - res.on('readable', function() {
583
+ - console.log('readable event');
584
+ - readable_event = true;
585
+ - data += res.read();
586
+ - });
587
+ - res.on('end', function() {
588
+ - console.log('end event');
589
+ - end_event = true;
590
+ - assert.strictEqual(msg, data);
591
+ - server.close();
592
+ - });
593
+ - });
594
+ -});
595
+ -
596
+ -process.on('exit', function() {
597
+ - assert(readable_event);
598
+ - assert(end_event);
599
+ -});
600
+ -
601
+ diff --git a/test/simple/test-stream2-large-read-stall.js b/test/simple/test-stream2-large-read-stall.js
602
+ index 2fbfbca..667985b 100644
603
+ --- a/test/simple/test-stream2-large-read-stall.js
604
+ +++ b/test/simple/test-stream2-large-read-stall.js
605
+ @@ -30,7 +30,7 @@ var PUSHSIZE = 20;
606
+ var PUSHCOUNT = 1000;
607
+ var HWM = 50;
608
+
609
+ -var Readable = require('stream').Readable;
610
+ +var Readable = require('../../').Readable;
611
+ var r = new Readable({
612
+ highWaterMark: HWM
613
+ });
614
+ @@ -39,23 +39,23 @@ var rs = r._readableState;
615
+ r._read = push;
616
+
617
+ r.on('readable', function() {
618
+ - console.error('>> readable');
619
+ + //console.error('>> readable');
620
+ do {
621
+ - console.error(' > read(%d)', READSIZE);
622
+ + //console.error(' > read(%d)', READSIZE);
623
+ var ret = r.read(READSIZE);
624
+ - console.error(' < %j (%d remain)', ret && ret.length, rs.length);
625
+ + //console.error(' < %j (%d remain)', ret && ret.length, rs.length);
626
+ } while (ret && ret.length === READSIZE);
627
+
628
+ - console.error('<< after read()',
629
+ - ret && ret.length,
630
+ - rs.needReadable,
631
+ - rs.length);
632
+ + //console.error('<< after read()',
633
+ + // ret && ret.length,
634
+ + // rs.needReadable,
635
+ + // rs.length);
636
+ });
637
+
638
+ var endEmitted = false;
639
+ r.on('end', function() {
640
+ endEmitted = true;
641
+ - console.error('end');
642
+ + //console.error('end');
643
+ });
644
+
645
+ var pushes = 0;
646
+ @@ -64,11 +64,11 @@ function push() {
647
+ return;
648
+
649
+ if (pushes++ === PUSHCOUNT) {
650
+ - console.error(' push(EOF)');
651
+ + //console.error(' push(EOF)');
652
+ return r.push(null);
653
+ }
654
+
655
+ - console.error(' push #%d', pushes);
656
+ + //console.error(' push #%d', pushes);
657
+ if (r.push(new Buffer(PUSHSIZE)))
658
+ setTimeout(push);
659
+ }
660
+ diff --git a/test/simple/test-stream2-objects.js b/test/simple/test-stream2-objects.js
661
+ index 3e6931d..ff47d89 100644
662
+ --- a/test/simple/test-stream2-objects.js
663
+ +++ b/test/simple/test-stream2-objects.js
664
+ @@ -21,8 +21,8 @@
665
+
666
+
667
+ var common = require('../common.js');
668
+ -var Readable = require('_stream_readable');
669
+ -var Writable = require('_stream_writable');
670
+ +var Readable = require('../../lib/_stream_readable');
671
+ +var Writable = require('../../lib/_stream_writable');
672
+ var assert = require('assert');
673
+
674
+ // tiny node-tap lookalike.
675
+ diff --git a/test/simple/test-stream2-pipe-error-handling.js b/test/simple/test-stream2-pipe-error-handling.js
676
+ index cf7531c..e3f3e4e 100644
677
+ --- a/test/simple/test-stream2-pipe-error-handling.js
678
+ +++ b/test/simple/test-stream2-pipe-error-handling.js
679
+ @@ -21,7 +21,7 @@
680
+
681
+ var common = require('../common');
682
+ var assert = require('assert');
683
+ -var stream = require('stream');
684
+ +var stream = require('../../');
685
+
686
+ (function testErrorListenerCatches() {
687
+ var count = 1000;
688
+ diff --git a/test/simple/test-stream2-pipe-error-once-listener.js b/test/simple/test-stream2-pipe-error-once-listener.js
689
+ index 5e8e3cb..53b2616 100755
690
+ --- a/test/simple/test-stream2-pipe-error-once-listener.js
691
+ +++ b/test/simple/test-stream2-pipe-error-once-listener.js
692
+ @@ -24,7 +24,7 @@ var common = require('../common.js');
693
+ var assert = require('assert');
694
+
695
+ var util = require('util');
696
+ -var stream = require('stream');
697
+ +var stream = require('../../');
698
+
699
+
700
+ var Read = function() {
701
+ diff --git a/test/simple/test-stream2-push.js b/test/simple/test-stream2-push.js
702
+ index b63edc3..eb2b0e9 100644
703
+ --- a/test/simple/test-stream2-push.js
704
+ +++ b/test/simple/test-stream2-push.js
705
+ @@ -20,7 +20,7 @@
706
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
707
+
708
+ var common = require('../common.js');
709
+ -var stream = require('stream');
710
+ +var stream = require('../../');
711
+ var Readable = stream.Readable;
712
+ var Writable = stream.Writable;
713
+ var assert = require('assert');
714
+ diff --git a/test/simple/test-stream2-read-sync-stack.js b/test/simple/test-stream2-read-sync-stack.js
715
+ index e8a7305..9740a47 100644
716
+ --- a/test/simple/test-stream2-read-sync-stack.js
717
+ +++ b/test/simple/test-stream2-read-sync-stack.js
718
+ @@ -21,7 +21,7 @@
719
+
720
+ var common = require('../common');
721
+ var assert = require('assert');
722
+ -var Readable = require('stream').Readable;
723
+ +var Readable = require('../../').Readable;
724
+ var r = new Readable();
725
+ var N = 256 * 1024;
726
+
727
+ diff --git a/test/simple/test-stream2-readable-empty-buffer-no-eof.js b/test/simple/test-stream2-readable-empty-buffer-no-eof.js
728
+ index cd30178..4b1659d 100644
729
+ --- a/test/simple/test-stream2-readable-empty-buffer-no-eof.js
730
+ +++ b/test/simple/test-stream2-readable-empty-buffer-no-eof.js
731
+ @@ -22,10 +22,9 @@
732
+ var common = require('../common');
733
+ var assert = require('assert');
734
+
735
+ -var Readable = require('stream').Readable;
736
+ +var Readable = require('../../').Readable;
737
+
738
+ test1();
739
+ -test2();
740
+
741
+ function test1() {
742
+ var r = new Readable();
743
+ @@ -88,31 +87,3 @@ function test1() {
744
+ console.log('ok');
745
+ });
746
+ }
747
+ -
748
+ -function test2() {
749
+ - var r = new Readable({ encoding: 'base64' });
750
+ - var reads = 5;
751
+ - r._read = function(n) {
752
+ - if (!reads--)
753
+ - return r.push(null); // EOF
754
+ - else
755
+ - return r.push(new Buffer('x'));
756
+ - };
757
+ -
758
+ - var results = [];
759
+ - function flow() {
760
+ - var chunk;
761
+ - while (null !== (chunk = r.read()))
762
+ - results.push(chunk + '');
763
+ - }
764
+ - r.on('readable', flow);
765
+ - r.on('end', function() {
766
+ - results.push('EOF');
767
+ - });
768
+ - flow();
769
+ -
770
+ - process.on('exit', function() {
771
+ - assert.deepEqual(results, [ 'eHh4', 'eHg=', 'EOF' ]);
772
+ - console.log('ok');
773
+ - });
774
+ -}
775
+ diff --git a/test/simple/test-stream2-readable-from-list.js b/test/simple/test-stream2-readable-from-list.js
776
+ index 7c96ffe..04a96f5 100644
777
+ --- a/test/simple/test-stream2-readable-from-list.js
778
+ +++ b/test/simple/test-stream2-readable-from-list.js
779
+ @@ -21,7 +21,7 @@
780
+
781
+ var assert = require('assert');
782
+ var common = require('../common.js');
783
+ -var fromList = require('_stream_readable')._fromList;
784
+ +var fromList = require('../../lib/_stream_readable')._fromList;
785
+
786
+ // tiny node-tap lookalike.
787
+ var tests = [];
788
+ diff --git a/test/simple/test-stream2-readable-legacy-drain.js b/test/simple/test-stream2-readable-legacy-drain.js
789
+ index 675da8e..51fd3d5 100644
790
+ --- a/test/simple/test-stream2-readable-legacy-drain.js
791
+ +++ b/test/simple/test-stream2-readable-legacy-drain.js
792
+ @@ -22,7 +22,7 @@
793
+ var common = require('../common');
794
+ var assert = require('assert');
795
+
796
+ -var Stream = require('stream');
797
+ +var Stream = require('../../');
798
+ var Readable = Stream.Readable;
799
+
800
+ var r = new Readable();
801
+ diff --git a/test/simple/test-stream2-readable-non-empty-end.js b/test/simple/test-stream2-readable-non-empty-end.js
802
+ index 7314ae7..c971898 100644
803
+ --- a/test/simple/test-stream2-readable-non-empty-end.js
804
+ +++ b/test/simple/test-stream2-readable-non-empty-end.js
805
+ @@ -21,7 +21,7 @@
806
+
807
+ var assert = require('assert');
808
+ var common = require('../common.js');
809
+ -var Readable = require('_stream_readable');
810
+ +var Readable = require('../../lib/_stream_readable');
811
+
812
+ var len = 0;
813
+ var chunks = new Array(10);
814
+ diff --git a/test/simple/test-stream2-readable-wrap-empty.js b/test/simple/test-stream2-readable-wrap-empty.js
815
+ index 2e5cf25..fd8a3dc 100644
816
+ --- a/test/simple/test-stream2-readable-wrap-empty.js
817
+ +++ b/test/simple/test-stream2-readable-wrap-empty.js
818
+ @@ -22,7 +22,7 @@
819
+ var common = require('../common');
820
+ var assert = require('assert');
821
+
822
+ -var Readable = require('_stream_readable');
823
+ +var Readable = require('../../lib/_stream_readable');
824
+ var EE = require('events').EventEmitter;
825
+
826
+ var oldStream = new EE();
827
+ diff --git a/test/simple/test-stream2-readable-wrap.js b/test/simple/test-stream2-readable-wrap.js
828
+ index 90eea01..6b177f7 100644
829
+ --- a/test/simple/test-stream2-readable-wrap.js
830
+ +++ b/test/simple/test-stream2-readable-wrap.js
831
+ @@ -22,8 +22,8 @@
832
+ var common = require('../common');
833
+ var assert = require('assert');
834
+
835
+ -var Readable = require('_stream_readable');
836
+ -var Writable = require('_stream_writable');
837
+ +var Readable = require('../../lib/_stream_readable');
838
+ +var Writable = require('../../lib/_stream_writable');
839
+ var EE = require('events').EventEmitter;
840
+
841
+ var testRuns = 0, completedRuns = 0;
842
+ diff --git a/test/simple/test-stream2-set-encoding.js b/test/simple/test-stream2-set-encoding.js
843
+ index 5d2c32a..685531b 100644
844
+ --- a/test/simple/test-stream2-set-encoding.js
845
+ +++ b/test/simple/test-stream2-set-encoding.js
846
+ @@ -22,7 +22,7 @@
847
+
848
+ var common = require('../common.js');
849
+ var assert = require('assert');
850
+ -var R = require('_stream_readable');
851
+ +var R = require('../../lib/_stream_readable');
852
+ var util = require('util');
853
+
854
+ // tiny node-tap lookalike.
855
+ diff --git a/test/simple/test-stream2-transform.js b/test/simple/test-stream2-transform.js
856
+ index 9c9ddd8..a0cacc6 100644
857
+ --- a/test/simple/test-stream2-transform.js
858
+ +++ b/test/simple/test-stream2-transform.js
859
+ @@ -21,8 +21,8 @@
860
+
861
+ var assert = require('assert');
862
+ var common = require('../common.js');
863
+ -var PassThrough = require('_stream_passthrough');
864
+ -var Transform = require('_stream_transform');
865
+ +var PassThrough = require('../../').PassThrough;
866
+ +var Transform = require('../../').Transform;
867
+
868
+ // tiny node-tap lookalike.
869
+ var tests = [];
870
+ diff --git a/test/simple/test-stream2-unpipe-drain.js b/test/simple/test-stream2-unpipe-drain.js
871
+ index d66dc3c..365b327 100644
872
+ --- a/test/simple/test-stream2-unpipe-drain.js
873
+ +++ b/test/simple/test-stream2-unpipe-drain.js
874
+ @@ -22,7 +22,7 @@
875
+
876
+ var common = require('../common.js');
877
+ var assert = require('assert');
878
+ -var stream = require('stream');
879
+ +var stream = require('../../');
880
+ var crypto = require('crypto');
881
+
882
+ var util = require('util');
883
+ diff --git a/test/simple/test-stream2-unpipe-leak.js b/test/simple/test-stream2-unpipe-leak.js
884
+ index 99f8746..17c92ae 100644
885
+ --- a/test/simple/test-stream2-unpipe-leak.js
886
+ +++ b/test/simple/test-stream2-unpipe-leak.js
887
+ @@ -22,7 +22,7 @@
888
+
889
+ var common = require('../common.js');
890
+ var assert = require('assert');
891
+ -var stream = require('stream');
892
+ +var stream = require('../../');
893
+
894
+ var chunk = new Buffer('hallo');
895
+
896
+ diff --git a/test/simple/test-stream2-writable.js b/test/simple/test-stream2-writable.js
897
+ index 704100c..209c3a6 100644
898
+ --- a/test/simple/test-stream2-writable.js
899
+ +++ b/test/simple/test-stream2-writable.js
900
+ @@ -20,8 +20,8 @@
901
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
902
+
903
+ var common = require('../common.js');
904
+ -var W = require('_stream_writable');
905
+ -var D = require('_stream_duplex');
906
+ +var W = require('../../').Writable;
907
+ +var D = require('../../').Duplex;
908
+ var assert = require('assert');
909
+
910
+ var util = require('util');
911
+ diff --git a/test/simple/test-stream3-pause-then-read.js b/test/simple/test-stream3-pause-then-read.js
912
+ index b91bde3..2f72c15 100644
913
+ --- a/test/simple/test-stream3-pause-then-read.js
914
+ +++ b/test/simple/test-stream3-pause-then-read.js
915
+ @@ -22,7 +22,7 @@
916
+ var common = require('../common');
917
+ var assert = require('assert');
918
+
919
+ -var stream = require('stream');
920
+ +var stream = require('../../');
921
+ var Readable = stream.Readable;
922
+ var Writable = stream.Writable;
923
+