freezerwatch 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (314) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/CODE_OF_CONDUCT.md +13 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +40 -0
  7. data/Rakefile +1 -0
  8. data/bin/console +14 -0
  9. data/bin/freezerwatch +9 -0
  10. data/bin/setup +7 -0
  11. data/freezerwatch.gemspec +23 -0
  12. data/lib/freezerwatch.rb +5 -0
  13. data/lib/freezerwatch/version.rb +3 -0
  14. data/node_modules/.bin/freezerwatch +139 -0
  15. data/node_modules/freezerwatch/.npmignore +3 -0
  16. data/node_modules/freezerwatch/.ruby-version +1 -0
  17. data/node_modules/freezerwatch/Gemfile +4 -0
  18. data/node_modules/freezerwatch/Gemfile.lock +79 -0
  19. data/node_modules/freezerwatch/LICENSE +23 -0
  20. data/node_modules/freezerwatch/README.md +41 -0
  21. data/node_modules/freezerwatch/Rakefile +13 -0
  22. data/node_modules/freezerwatch/freezerwatch.js +139 -0
  23. data/node_modules/freezerwatch/metrics/bigfiles_high_water_mark +1 -0
  24. data/node_modules/freezerwatch/metrics/cane_high_water_mark +1 -0
  25. data/node_modules/freezerwatch/metrics/flay_high_water_mark +1 -0
  26. data/node_modules/freezerwatch/metrics/flog_high_water_mark +1 -0
  27. data/node_modules/freezerwatch/metrics/punchlist_high_water_mark +2 -0
  28. data/node_modules/freezerwatch/metrics/reek_high_water_mark +1 -0
  29. data/node_modules/freezerwatch/metrics/rubocop_high_water_mark +1 -0
  30. data/node_modules/freezerwatch/node_modules/async/.jshintrc +25 -0
  31. data/node_modules/freezerwatch/node_modules/async/.travis.yml +6 -0
  32. data/node_modules/freezerwatch/node_modules/async/CHANGELOG.md +65 -0
  33. data/node_modules/freezerwatch/node_modules/async/LICENSE +19 -0
  34. data/node_modules/freezerwatch/node_modules/async/README.md +1803 -0
  35. data/node_modules/freezerwatch/node_modules/async/bower.json +43 -0
  36. data/node_modules/freezerwatch/node_modules/async/component.json +17 -0
  37. data/node_modules/freezerwatch/node_modules/async/coverage/base.css +182 -0
  38. data/node_modules/freezerwatch/node_modules/async/coverage/index.html +73 -0
  39. data/node_modules/freezerwatch/node_modules/async/coverage/lcov-report/base.css +182 -0
  40. data/node_modules/freezerwatch/node_modules/async/coverage/lcov-report/index.html +73 -0
  41. data/node_modules/freezerwatch/node_modules/async/coverage/lcov-report/lib/async.js.html +3900 -0
  42. data/node_modules/freezerwatch/node_modules/async/coverage/lcov-report/lib/index.html +73 -0
  43. data/node_modules/freezerwatch/node_modules/async/coverage/lcov-report/prettify.css +1 -0
  44. data/node_modules/freezerwatch/node_modules/async/coverage/lcov-report/prettify.js +1 -0
  45. data/node_modules/freezerwatch/node_modules/async/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  46. data/node_modules/freezerwatch/node_modules/async/coverage/lcov-report/sorter.js +156 -0
  47. data/node_modules/freezerwatch/node_modules/async/coverage/lcov.info +1452 -0
  48. data/node_modules/freezerwatch/node_modules/async/coverage/lib/async.js.html +3597 -0
  49. data/node_modules/freezerwatch/node_modules/async/coverage/lib/index.html +73 -0
  50. data/node_modules/freezerwatch/node_modules/async/coverage/prettify.css +1 -0
  51. data/node_modules/freezerwatch/node_modules/async/coverage/prettify.js +1 -0
  52. data/node_modules/freezerwatch/node_modules/async/coverage/sort-arrow-sprite.png +0 -0
  53. data/node_modules/freezerwatch/node_modules/async/coverage/sorter.js +156 -0
  54. data/node_modules/freezerwatch/node_modules/async/lib/async.js +1191 -0
  55. data/node_modules/freezerwatch/node_modules/async/nyc_output/5074.json +1 -0
  56. data/node_modules/freezerwatch/node_modules/async/package.json +96 -0
  57. data/node_modules/freezerwatch/node_modules/async/support/sync-package-managers.js +53 -0
  58. data/node_modules/freezerwatch/node_modules/lacrosse/.npmignore +15 -0
  59. data/node_modules/freezerwatch/node_modules/lacrosse/Client.js +60 -0
  60. data/node_modules/freezerwatch/node_modules/lacrosse/Device.js +38 -0
  61. data/node_modules/freezerwatch/node_modules/lacrosse/DeviceRawReadStream.js +36 -0
  62. data/node_modules/freezerwatch/node_modules/lacrosse/DeviceSingleRawReadStream.js +29 -0
  63. data/node_modules/freezerwatch/node_modules/lacrosse/DeviceStream.js +35 -0
  64. data/node_modules/freezerwatch/node_modules/lacrosse/LICENSE +23 -0
  65. data/node_modules/freezerwatch/node_modules/lacrosse/README.md +25 -0
  66. data/node_modules/freezerwatch/node_modules/lacrosse/index.js +1 -0
  67. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/.npmignore +2 -0
  68. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/.travis.yml +12 -0
  69. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/LICENSE +55 -0
  70. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/README.md +364 -0
  71. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/index.js +156 -0
  72. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/lib/copy.js +8 -0
  73. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/lib/debug.js +7 -0
  74. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/lib/getSafe.js +34 -0
  75. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/lib/optional.js +5 -0
  76. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/.bin/uuid +26 -0
  77. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/aws-sign2/LICENSE +55 -0
  78. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/aws-sign2/README.md +4 -0
  79. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/aws-sign2/index.js +202 -0
  80. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/aws-sign2/package.json +46 -0
  81. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/forever-agent/LICENSE +55 -0
  82. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/forever-agent/README.md +4 -0
  83. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/forever-agent/index.js +119 -0
  84. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/forever-agent/package.json +45 -0
  85. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/License +19 -0
  86. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/Readme.md +175 -0
  87. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/lib/form_data.js +351 -0
  88. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/async/.travis.yml +5 -0
  89. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/async/LICENSE +19 -0
  90. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/async/README.md +1647 -0
  91. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/async/bower.json +38 -0
  92. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/async/component.json +16 -0
  93. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js +1123 -0
  94. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/async/package.json +84 -0
  95. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js +53 -0
  96. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/License +19 -0
  97. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/Readme.md +132 -0
  98. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/lib/combined_stream.js +188 -0
  99. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/.npmignore +2 -0
  100. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/License +19 -0
  101. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Makefile +7 -0
  102. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Readme.md +154 -0
  103. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js +99 -0
  104. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/package.json +42 -0
  105. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/common.js +6 -0
  106. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js +38 -0
  107. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream-auto-pause.js +21 -0
  108. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream-pause.js +14 -0
  109. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream.js +48 -0
  110. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js +15 -0
  111. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-max-data-size.js +18 -0
  112. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-pipe-resumes.js +13 -0
  113. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-proxy-readable.js +13 -0
  114. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/run.js +7 -0
  115. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/node_modules/combined-stream/package.json +60 -0
  116. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/form-data/package.json +80 -0
  117. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/.npmignore +18 -0
  118. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/.travis.yml +5 -0
  119. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/LICENSE +24 -0
  120. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/Makefile +10 -0
  121. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/README.md +627 -0
  122. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/example/usage.js +78 -0
  123. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/images/hawk.png +0 -0
  124. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/images/logo.png +0 -0
  125. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/index.js +1 -0
  126. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/lib/browser.js +485 -0
  127. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/lib/client.js +367 -0
  128. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/lib/crypto.js +111 -0
  129. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/lib/index.js +15 -0
  130. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/lib/server.js +524 -0
  131. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/lib/utils.js +183 -0
  132. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/.npmignore +18 -0
  133. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/.travis.yml +5 -0
  134. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/LICENSE +24 -0
  135. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/Makefile +11 -0
  136. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/README.md +6 -0
  137. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png +0 -0
  138. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/index.js +1 -0
  139. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js +207 -0
  140. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/package.json +64 -0
  141. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/boom/test/index.js +245 -0
  142. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/.npmignore +18 -0
  143. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/.travis.yml +5 -0
  144. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/LICENSE +24 -0
  145. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/Makefile +11 -0
  146. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/README.md +6 -0
  147. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/index.js +1 -0
  148. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/lib/index.js +68 -0
  149. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/package.json +65 -0
  150. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/cryptiles/test/index.js +101 -0
  151. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/.npmignore +18 -0
  152. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/.travis.yml +5 -0
  153. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/LICENSE +33 -0
  154. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/Makefile +10 -0
  155. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/README.md +436 -0
  156. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png +0 -0
  157. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/index.js +1 -0
  158. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/lib/escape.js +132 -0
  159. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/lib/index.js +585 -0
  160. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/package.json +70 -0
  161. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/test/escaper.js +86 -0
  162. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/test/index.js +1078 -0
  163. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test1.js +1 -0
  164. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test2.js +1 -0
  165. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test3.js +1 -0
  166. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/.npmignore +18 -0
  167. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/.travis.yml +5 -0
  168. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/LICENSE +24 -0
  169. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/Makefile +11 -0
  170. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/README.md +68 -0
  171. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/examples/offset.js +16 -0
  172. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/examples/time.js +25 -0
  173. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/index.js +1 -0
  174. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/lib/index.js +409 -0
  175. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/package.json +65 -0
  176. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/node_modules/sntp/test/index.js +359 -0
  177. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/package.json +70 -0
  178. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/browser.js +771 -0
  179. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/client.js +206 -0
  180. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/crypto.js +86 -0
  181. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/index.js +316 -0
  182. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/message.js +246 -0
  183. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/readme.js +98 -0
  184. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/server.js +686 -0
  185. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/uri.js +456 -0
  186. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/hawk/test/utils.js +120 -0
  187. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/.dir-locals.el +6 -0
  188. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/.npmignore +7 -0
  189. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/LICENSE +18 -0
  190. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/README.md +79 -0
  191. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/http_signing.md +296 -0
  192. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/lib/index.js +26 -0
  193. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/lib/parser.js +304 -0
  194. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/lib/signer.js +178 -0
  195. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/lib/util.js +304 -0
  196. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/lib/verify.js +42 -0
  197. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/.npmignore +2 -0
  198. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/LICENSE +19 -0
  199. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/README.md +50 -0
  200. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/errors.js +13 -0
  201. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/index.js +27 -0
  202. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/reader.js +267 -0
  203. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/types.js +36 -0
  204. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/writer.js +317 -0
  205. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/index.js +20 -0
  206. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/package.json +63 -0
  207. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/tst/ber/reader.test.js +172 -0
  208. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/asn1/tst/ber/writer.test.js +296 -0
  209. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/assert-plus/README.md +126 -0
  210. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/assert-plus/assert.js +245 -0
  211. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/assert-plus/package.json +45 -0
  212. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/.npmignore +1 -0
  213. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/CHANGELOG +78 -0
  214. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/LICENSE +24 -0
  215. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/README +82 -0
  216. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/README.old +298 -0
  217. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/ctf.js +245 -0
  218. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/ctio.js +1485 -0
  219. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/ctype.js +944 -0
  220. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/man/man3ctype/ctio.3ctype +241 -0
  221. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/package.json +42 -0
  222. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/tools/jsl.conf +129 -0
  223. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/node_modules/ctype/tools/jsstyle +839 -0
  224. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/http-signature/package.json +72 -0
  225. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/.npmignore +1 -0
  226. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/CHANGELOG.md +14 -0
  227. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/LICENSE +15 -0
  228. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/Makefile +35 -0
  229. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/README.md +52 -0
  230. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/package.json +68 -0
  231. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/stringify.js +27 -0
  232. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/test/mocha.opts +2 -0
  233. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/json-stringify-safe/test/stringify_test.js +246 -0
  234. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/mime/LICENSE +19 -0
  235. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/mime/README.md +66 -0
  236. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/mime/mime.js +114 -0
  237. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/mime/package.json +57 -0
  238. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/mime/test.js +84 -0
  239. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/mime/types/mime.types +1588 -0
  240. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/mime/types/node.types +77 -0
  241. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/.npmignore +2 -0
  242. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/LICENSE.md +21 -0
  243. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/README.md +243 -0
  244. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/benchmark/README.md +53 -0
  245. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/benchmark/bench.gnu +174 -0
  246. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/benchmark/bench.sh +34 -0
  247. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/benchmark/benchmark-native.c +34 -0
  248. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/benchmark/benchmark.js +84 -0
  249. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/bin/uuid +26 -0
  250. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/bower.json +23 -0
  251. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/component.json +18 -0
  252. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/package.json +65 -0
  253. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/test/compare_v1.js +63 -0
  254. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/test/test.html +17 -0
  255. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/test/test.js +228 -0
  256. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/node-uuid/uuid.js +247 -0
  257. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/oauth-sign/LICENSE +55 -0
  258. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/oauth-sign/README.md +4 -0
  259. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/oauth-sign/index.js +43 -0
  260. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/oauth-sign/package.json +48 -0
  261. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/oauth-sign/test.js +49 -0
  262. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/qs/.gitmodules +6 -0
  263. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/qs/.npmignore +7 -0
  264. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/qs/Readme.md +58 -0
  265. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/qs/index.js +366 -0
  266. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/qs/package.json +55 -0
  267. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/.jshintrc +72 -0
  268. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/.npmignore +3 -0
  269. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/LICENSE +78 -0
  270. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/README.md +380 -0
  271. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/generate-pubsuffix.js +230 -0
  272. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/lib/cookie.js +947 -0
  273. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/lib/memstore.js +102 -0
  274. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/lib/pubsuffix.js +69 -0
  275. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/node_modules/punycode/LICENSE-MIT.txt +20 -0
  276. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/node_modules/punycode/README.md +176 -0
  277. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/node_modules/punycode/package.json +81 -0
  278. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/node_modules/punycode/punycode.js +530 -0
  279. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/package.json +63 -0
  280. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/public-suffix.txt +5229 -0
  281. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tough-cookie/test.js +1340 -0
  282. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tunnel-agent/LICENSE +55 -0
  283. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tunnel-agent/README.md +4 -0
  284. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tunnel-agent/index.js +227 -0
  285. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/node_modules/tunnel-agent/package.json +45 -0
  286. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/package.json +74 -0
  287. data/node_modules/freezerwatch/node_modules/lacrosse/node_modules/request/request.js +1244 -0
  288. data/node_modules/freezerwatch/node_modules/lacrosse/package.json +34 -0
  289. data/node_modules/freezerwatch/node_modules/optparse/README.md +163 -0
  290. data/node_modules/freezerwatch/node_modules/optparse/TODO +1 -0
  291. data/node_modules/freezerwatch/node_modules/optparse/examples/browser-test.html +75 -0
  292. data/node_modules/freezerwatch/node_modules/optparse/examples/nodejs-test.js +86 -0
  293. data/node_modules/freezerwatch/node_modules/optparse/lib/optparse.js +309 -0
  294. data/node_modules/freezerwatch/node_modules/optparse/package.json +46 -0
  295. data/node_modules/freezerwatch/node_modules/optparse/seed.yml +5 -0
  296. data/node_modules/freezerwatch/node_modules/osenv/.npmignore +13 -0
  297. data/node_modules/freezerwatch/node_modules/osenv/.travis.yml +9 -0
  298. data/node_modules/freezerwatch/node_modules/osenv/LICENSE +15 -0
  299. data/node_modules/freezerwatch/node_modules/osenv/README.md +63 -0
  300. data/node_modules/freezerwatch/node_modules/osenv/node_modules/os-homedir/index.js +24 -0
  301. data/node_modules/freezerwatch/node_modules/osenv/node_modules/os-homedir/license +21 -0
  302. data/node_modules/freezerwatch/node_modules/osenv/node_modules/os-homedir/package.json +70 -0
  303. data/node_modules/freezerwatch/node_modules/osenv/node_modules/os-homedir/readme.md +33 -0
  304. data/node_modules/freezerwatch/node_modules/osenv/node_modules/os-tmpdir/index.js +25 -0
  305. data/node_modules/freezerwatch/node_modules/osenv/node_modules/os-tmpdir/license +21 -0
  306. data/node_modules/freezerwatch/node_modules/osenv/node_modules/os-tmpdir/package.json +70 -0
  307. data/node_modules/freezerwatch/node_modules/osenv/node_modules/os-tmpdir/readme.md +36 -0
  308. data/node_modules/freezerwatch/node_modules/osenv/osenv.js +72 -0
  309. data/node_modules/freezerwatch/node_modules/osenv/package.json +76 -0
  310. data/node_modules/freezerwatch/node_modules/osenv/test/unix.js +71 -0
  311. data/node_modules/freezerwatch/node_modules/osenv/test/windows.js +74 -0
  312. data/node_modules/freezerwatch/node_modules/osenv/x.tap +39 -0
  313. data/node_modules/freezerwatch/package.json +37 -0
  314. metadata +384 -0
@@ -0,0 +1,34 @@
1
+ #!/bin/bash
2
+
3
+ # for a given node version run:
4
+ # for i in {0..9}; do node benchmark.js >> bench_0.6.2.log; done;
5
+
6
+ PATTERNS=('nodeuuid.v1()' "nodeuuid.v1('binary'," 'nodeuuid.v4()' "nodeuuid.v4('binary'," "uuid()" "uuid('binary')" 'uuidjs.create(1)' 'uuidjs.create(4)' '140byte')
7
+ FILES=(node_uuid_v1_string node_uuid_v1_buf node_uuid_v4_string node_uuid_v4_buf libuuid_v4_string libuuid_v4_binary uuidjs_v1_string uuidjs_v4_string 140byte_es)
8
+ INDICES=(2 3 2 3 2 2 2 2 2)
9
+ VERSIONS=$( ls bench_*.log | sed -e 's/^bench_\([0-9\.]*\)\.log/\1/' | tr "\\n" " " )
10
+ TMPJOIN="tmp_join"
11
+ OUTPUT="bench_results.txt"
12
+
13
+ for I in ${!FILES[*]}; do
14
+ F=${FILES[$I]}
15
+ P=${PATTERNS[$I]}
16
+ INDEX=${INDICES[$I]}
17
+ echo "version $F" > $F
18
+ for V in $VERSIONS; do
19
+ (VAL=$( grep "$P" bench_$V.log | LC_ALL=en_US awk '{ sum += $'$INDEX' } END { print sum/NR }' ); echo $V $VAL) >> $F
20
+ done
21
+ if [ $I == 0 ]; then
22
+ cat $F > $TMPJOIN
23
+ else
24
+ join $TMPJOIN $F > $OUTPUT
25
+ cp $OUTPUT $TMPJOIN
26
+ fi
27
+ rm $F
28
+ done
29
+
30
+ rm $TMPJOIN
31
+
32
+ gnuplot bench.gnu
33
+ convert -density 200 -resize 800x560 -flatten bench.eps bench.png
34
+ rm bench.eps
@@ -0,0 +1,34 @@
1
+ /*
2
+ Test performance of native C UUID generation
3
+
4
+ To Compile: cc -luuid benchmark-native.c -o benchmark-native
5
+ */
6
+
7
+ #include <stdio.h>
8
+ #include <unistd.h>
9
+ #include <sys/time.h>
10
+ #include <uuid/uuid.h>
11
+
12
+ int main() {
13
+ uuid_t myid;
14
+ char buf[36+1];
15
+ int i;
16
+ struct timeval t;
17
+ double start, finish;
18
+
19
+ gettimeofday(&t, NULL);
20
+ start = t.tv_sec + t.tv_usec/1e6;
21
+
22
+ int n = 2e5;
23
+ for (i = 0; i < n; i++) {
24
+ uuid_generate(myid);
25
+ uuid_unparse(myid, buf);
26
+ }
27
+
28
+ gettimeofday(&t, NULL);
29
+ finish = t.tv_sec + t.tv_usec/1e6;
30
+ double dur = finish - start;
31
+
32
+ printf("%d uuids/sec", (int)(n/dur));
33
+ return 0;
34
+ }
@@ -0,0 +1,84 @@
1
+ try {
2
+ var nodeuuid = require('../uuid');
3
+ } catch (e) {
4
+ console.error('node-uuid require failed - skipping tests');
5
+ }
6
+
7
+ try {
8
+ var uuid = require('uuid');
9
+ } catch (e) {
10
+ console.error('uuid require failed - skipping tests');
11
+ }
12
+
13
+ try {
14
+ var uuidjs = require('uuid-js');
15
+ } catch (e) {
16
+ console.error('uuid-js require failed - skipping tests');
17
+ }
18
+
19
+ var N = 5e5;
20
+
21
+ function rate(msg, t) {
22
+ console.log(msg + ': ' +
23
+ (N / (Date.now() - t) * 1e3 | 0) +
24
+ ' uuids/second');
25
+ }
26
+
27
+ console.log('# v4');
28
+
29
+ // node-uuid - string form
30
+ if (nodeuuid) {
31
+ for (var i = 0, t = Date.now(); i < N; i++) nodeuuid.v4();
32
+ rate('nodeuuid.v4() - using node.js crypto RNG', t);
33
+
34
+ for (var i = 0, t = Date.now(); i < N; i++) nodeuuid.v4({rng: nodeuuid.mathRNG});
35
+ rate('nodeuuid.v4() - using Math.random() RNG', t);
36
+
37
+ for (var i = 0, t = Date.now(); i < N; i++) nodeuuid.v4('binary');
38
+ rate('nodeuuid.v4(\'binary\')', t);
39
+
40
+ var buffer = new nodeuuid.BufferClass(16);
41
+ for (var i = 0, t = Date.now(); i < N; i++) nodeuuid.v4('binary', buffer);
42
+ rate('nodeuuid.v4(\'binary\', buffer)', t);
43
+ }
44
+
45
+ // libuuid - string form
46
+ if (uuid) {
47
+ for (var i = 0, t = Date.now(); i < N; i++) uuid();
48
+ rate('uuid()', t);
49
+
50
+ for (var i = 0, t = Date.now(); i < N; i++) uuid('binary');
51
+ rate('uuid(\'binary\')', t);
52
+ }
53
+
54
+ // uuid-js - string form
55
+ if (uuidjs) {
56
+ for (var i = 0, t = Date.now(); i < N; i++) uuidjs.create(4);
57
+ rate('uuidjs.create(4)', t);
58
+ }
59
+
60
+ // 140byte.es
61
+ for (var i = 0, t = Date.now(); i < N; i++) 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(s,r){r=Math.random()*16|0;return (s=='x'?r:r&0x3|0x8).toString(16)});
62
+ rate('140byte.es_v4', t);
63
+
64
+ console.log('');
65
+ console.log('# v1');
66
+
67
+ // node-uuid - v1 string form
68
+ if (nodeuuid) {
69
+ for (var i = 0, t = Date.now(); i < N; i++) nodeuuid.v1();
70
+ rate('nodeuuid.v1()', t);
71
+
72
+ for (var i = 0, t = Date.now(); i < N; i++) nodeuuid.v1('binary');
73
+ rate('nodeuuid.v1(\'binary\')', t);
74
+
75
+ var buffer = new nodeuuid.BufferClass(16);
76
+ for (var i = 0, t = Date.now(); i < N; i++) nodeuuid.v1('binary', buffer);
77
+ rate('nodeuuid.v1(\'binary\', buffer)', t);
78
+ }
79
+
80
+ // uuid-js - v1 string form
81
+ if (uuidjs) {
82
+ for (var i = 0, t = Date.now(); i < N; i++) uuidjs.create(1);
83
+ rate('uuidjs.create(1)', t);
84
+ }
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+
3
+ var path = require('path');
4
+ var uuid = require(path.join(__dirname, '..'));
5
+
6
+ var arg = process.argv[2];
7
+
8
+ if ('--help' === arg) {
9
+ console.log('\n USAGE: uuid [version] [options]\n\n');
10
+ console.log(' options:\n');
11
+ console.log(' --help Display this message and exit\n');
12
+ process.exit(0);
13
+ }
14
+
15
+ if (null == arg) {
16
+ console.log(uuid());
17
+ process.exit(0);
18
+ }
19
+
20
+ if ('v1' !== arg && 'v4' !== arg) {
21
+ console.error('Version must be RFC4122 version 1 or version 4, denoted as "v1" or "v4"');
22
+ process.exit(1);
23
+ }
24
+
25
+ console.log(uuid[arg]());
26
+ process.exit(0);
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "node-uuid",
3
+ "version": "1.4.3",
4
+ "homepage": "https://github.com/broofa/node-uuid",
5
+ "authors": [
6
+ "Robert Kieffer <robert@broofa.com>"
7
+ ],
8
+ "description": "Rigorous implementation of RFC4122 (v1 and v4) UUIDs.",
9
+ "main": "uuid.js",
10
+ "keywords": [
11
+ "uuid",
12
+ "gid",
13
+ "rfc4122"
14
+ ],
15
+ "license": "MIT",
16
+ "ignore": [
17
+ "**/.*",
18
+ "node_modules",
19
+ "bower_components",
20
+ "test",
21
+ "tests"
22
+ ]
23
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "node-uuid",
3
+ "repo": "broofa/node-uuid",
4
+ "description": "Rigorous implementation of RFC4122 (v1 and v4) UUIDs.",
5
+ "version": "1.4.3",
6
+ "author": "Robert Kieffer <robert@broofa.com>",
7
+ "contributors": [
8
+ {"name": "Christoph Tavan <dev@tavan.de>", "github": "https://github.com/ctavan"}
9
+ ],
10
+ "keywords": ["uuid", "guid", "rfc4122"],
11
+ "dependencies": {},
12
+ "development": {},
13
+ "main": "uuid.js",
14
+ "scripts": [
15
+ "uuid.js"
16
+ ],
17
+ "license": "MIT"
18
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "node-uuid",
3
+ "description": "Rigorous implementation of RFC4122 (v1 and v4) UUIDs.",
4
+ "url": "http://github.com/broofa/node-uuid",
5
+ "keywords": [
6
+ "uuid",
7
+ "guid",
8
+ "rfc4122"
9
+ ],
10
+ "author": {
11
+ "name": "Robert Kieffer",
12
+ "email": "robert@broofa.com"
13
+ },
14
+ "contributors": [
15
+ {
16
+ "name": "Christoph Tavan",
17
+ "email": "dev@tavan.de"
18
+ }
19
+ ],
20
+ "bin": {
21
+ "uuid": "./bin/uuid"
22
+ },
23
+ "scripts": {
24
+ "test": "node test/test.js"
25
+ },
26
+ "lib": ".",
27
+ "main": "./uuid.js",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/broofa/node-uuid.git"
31
+ },
32
+ "version": "1.4.3",
33
+ "licenses": [
34
+ {
35
+ "type": "MIT",
36
+ "url": "https://raw.github.com/broofa/node-uuid/master/LICENSE.md"
37
+ }
38
+ ],
39
+ "gitHead": "886463c660a095dfebfa69603921a8d156fdb12c",
40
+ "bugs": {
41
+ "url": "https://github.com/broofa/node-uuid/issues"
42
+ },
43
+ "homepage": "https://github.com/broofa/node-uuid",
44
+ "_id": "node-uuid@1.4.3",
45
+ "_shasum": "319bb7a56e7cb63f00b5c0cd7851cd4b4ddf1df9",
46
+ "_from": "node-uuid@>=1.4.0 <1.5.0",
47
+ "_npmVersion": "1.4.28",
48
+ "_npmUser": {
49
+ "name": "broofa",
50
+ "email": "robert@broofa.com"
51
+ },
52
+ "maintainers": [
53
+ {
54
+ "name": "broofa",
55
+ "email": "robert@broofa.com"
56
+ }
57
+ ],
58
+ "dist": {
59
+ "shasum": "319bb7a56e7cb63f00b5c0cd7851cd4b4ddf1df9",
60
+ "tarball": "http://registry.npmjs.org/node-uuid/-/node-uuid-1.4.3.tgz"
61
+ },
62
+ "directories": {},
63
+ "_resolved": "https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.3.tgz",
64
+ "readme": "ERROR: No README data found!"
65
+ }
@@ -0,0 +1,63 @@
1
+ var assert = require('assert'),
2
+ nodeuuid = require('../uuid'),
3
+ uuidjs = require('uuid-js'),
4
+ libuuid = require('uuid').generate,
5
+ util = require('util'),
6
+ exec = require('child_process').exec,
7
+ os = require('os');
8
+
9
+ // On Mac Os X / macports there's only the ossp-uuid package that provides uuid
10
+ // On Linux there's uuid-runtime which provides uuidgen
11
+ var uuidCmd = os.type() === 'Darwin' ? 'uuid -1' : 'uuidgen -t';
12
+
13
+ function compare(ids) {
14
+ console.log(ids);
15
+ for (var i = 0; i < ids.length; i++) {
16
+ var id = ids[i].split('-');
17
+ id = [id[2], id[1], id[0]].join('');
18
+ ids[i] = id;
19
+ }
20
+ var sorted = ([].concat(ids)).sort();
21
+
22
+ if (sorted.toString() !== ids.toString()) {
23
+ console.log('Warning: sorted !== ids');
24
+ } else {
25
+ console.log('everything in order!');
26
+ }
27
+ }
28
+
29
+ // Test time order of v1 uuids
30
+ var ids = [];
31
+ while (ids.length < 10e3) ids.push(nodeuuid.v1());
32
+
33
+ var max = 10;
34
+ console.log('node-uuid:');
35
+ ids = [];
36
+ for (var i = 0; i < max; i++) ids.push(nodeuuid.v1());
37
+ compare(ids);
38
+
39
+ console.log('');
40
+ console.log('uuidjs:');
41
+ ids = [];
42
+ for (var i = 0; i < max; i++) ids.push(uuidjs.create(1).toString());
43
+ compare(ids);
44
+
45
+ console.log('');
46
+ console.log('libuuid:');
47
+ ids = [];
48
+ var count = 0;
49
+ var last = function() {
50
+ compare(ids);
51
+ }
52
+ var cb = function(err, stdout, stderr) {
53
+ ids.push(stdout.substring(0, stdout.length-1));
54
+ count++;
55
+ if (count < max) {
56
+ return next();
57
+ }
58
+ last();
59
+ };
60
+ var next = function() {
61
+ exec(uuidCmd, cb);
62
+ };
63
+ next();
@@ -0,0 +1,17 @@
1
+ <html>
2
+ <head>
3
+ <style>
4
+ div {
5
+ font-family: monospace;
6
+ font-size: 8pt;
7
+ }
8
+ div.log {color: #444;}
9
+ div.warn {color: #550;}
10
+ div.error {color: #800; font-weight: bold;}
11
+ </style>
12
+ <script src="../uuid.js"></script>
13
+ </head>
14
+ <body>
15
+ <script src="./test.js"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,228 @@
1
+ if (!this.uuid) {
2
+ // node.js
3
+ uuid = require('../uuid');
4
+ }
5
+
6
+ //
7
+ // x-platform log/assert shims
8
+ //
9
+
10
+ function _log(msg, type) {
11
+ type = type || 'log';
12
+
13
+ if (typeof(document) != 'undefined') {
14
+ document.write('<div class="' + type + '">' + msg.replace(/\n/g, '<br />') + '</div>');
15
+ }
16
+ if (typeof(console) != 'undefined') {
17
+ var color = {
18
+ log: '\033[39m',
19
+ warn: '\033[33m',
20
+ error: '\033[31m'
21
+ };
22
+ console[type](color[type] + msg + color.log);
23
+ }
24
+ }
25
+
26
+ function log(msg) {_log(msg, 'log');}
27
+ function warn(msg) {_log(msg, 'warn');}
28
+ function error(msg) {_log(msg, 'error');}
29
+
30
+ function assert(res, msg) {
31
+ if (!res) {
32
+ error('FAIL: ' + msg);
33
+ } else {
34
+ log('Pass: ' + msg);
35
+ }
36
+ }
37
+
38
+ //
39
+ // Unit tests
40
+ //
41
+
42
+ // Verify ordering of v1 ids created with explicit times
43
+ var TIME = 1321644961388; // 2011-11-18 11:36:01.388-08:00
44
+
45
+ function compare(name, ids) {
46
+ ids = ids.map(function(id) {
47
+ return id.split('-').reverse().join('-');
48
+ }).sort();
49
+ var sorted = ([].concat(ids)).sort();
50
+
51
+ assert(sorted.toString() == ids.toString(), name + ' have expected order');
52
+ }
53
+
54
+ // Verify ordering of v1 ids created using default behavior
55
+ compare('uuids with current time', [
56
+ uuid.v1(),
57
+ uuid.v1(),
58
+ uuid.v1(),
59
+ uuid.v1(),
60
+ uuid.v1()
61
+ ]);
62
+
63
+ // Verify ordering of v1 ids created with explicit times
64
+ compare('uuids with time option', [
65
+ uuid.v1({msecs: TIME - 10*3600*1000}),
66
+ uuid.v1({msecs: TIME - 1}),
67
+ uuid.v1({msecs: TIME}),
68
+ uuid.v1({msecs: TIME + 1}),
69
+ uuid.v1({msecs: TIME + 28*24*3600*1000})
70
+ ]);
71
+
72
+ assert(
73
+ uuid.v1({msecs: TIME}) != uuid.v1({msecs: TIME}),
74
+ 'IDs created at same msec are different'
75
+ );
76
+
77
+ // Verify throw if too many ids created
78
+ var thrown = false;
79
+ try {
80
+ uuid.v1({msecs: TIME, nsecs: 10000});
81
+ } catch (e) {
82
+ thrown = true;
83
+ }
84
+ assert(thrown, 'Exception thrown when > 10K ids created in 1 ms');
85
+
86
+ // Verify clock regression bumps clockseq
87
+ var uidt = uuid.v1({msecs: TIME});
88
+ var uidtb = uuid.v1({msecs: TIME - 1});
89
+ assert(
90
+ parseInt(uidtb.split('-')[3], 16) - parseInt(uidt.split('-')[3], 16) === 1,
91
+ 'Clock regression by msec increments the clockseq'
92
+ );
93
+
94
+ // Verify clock regression bumps clockseq
95
+ var uidtn = uuid.v1({msecs: TIME, nsecs: 10});
96
+ var uidtnb = uuid.v1({msecs: TIME, nsecs: 9});
97
+ assert(
98
+ parseInt(uidtnb.split('-')[3], 16) - parseInt(uidtn.split('-')[3], 16) === 1,
99
+ 'Clock regression by nsec increments the clockseq'
100
+ );
101
+
102
+ // Verify explicit options produce expected id
103
+ var id = uuid.v1({
104
+ msecs: 1321651533573,
105
+ nsecs: 5432,
106
+ clockseq: 0x385c,
107
+ node: [ 0x61, 0xcd, 0x3c, 0xbb, 0x32, 0x10 ]
108
+ });
109
+ assert(id == 'd9428888-122b-11e1-b85c-61cd3cbb3210', 'Explicit options produce expected id');
110
+
111
+ // Verify adjacent ids across a msec boundary are 1 time unit apart
112
+ var u0 = uuid.v1({msecs: TIME, nsecs: 9999});
113
+ var u1 = uuid.v1({msecs: TIME + 1, nsecs: 0});
114
+
115
+ var before = u0.split('-')[0], after = u1.split('-')[0];
116
+ var dt = parseInt(after, 16) - parseInt(before, 16);
117
+ assert(dt === 1, 'Ids spanning 1ms boundary are 100ns apart');
118
+
119
+ //
120
+ // Test parse/unparse
121
+ //
122
+
123
+ id = '00112233445566778899aabbccddeeff';
124
+ assert(uuid.unparse(uuid.parse(id.substr(0,10))) ==
125
+ '00112233-4400-0000-0000-000000000000', 'Short parse');
126
+ assert(uuid.unparse(uuid.parse('(this is the uuid -> ' + id + id)) ==
127
+ '00112233-4455-6677-8899-aabbccddeeff', 'Dirty parse');
128
+
129
+ //
130
+ // Perf tests
131
+ //
132
+
133
+ var generators = {
134
+ v1: uuid.v1,
135
+ v4: uuid.v4
136
+ };
137
+
138
+ var UUID_FORMAT = {
139
+ v1: /[0-9a-f]{8}-[0-9a-f]{4}-1[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/i,
140
+ v4: /[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/i
141
+ };
142
+
143
+ var N = 1e4;
144
+
145
+ // Get %'age an actual value differs from the ideal value
146
+ function divergence(actual, ideal) {
147
+ return Math.round(100*100*(actual - ideal)/ideal)/100;
148
+ }
149
+
150
+ function rate(msg, t) {
151
+ log(msg + ': ' + (N / (Date.now() - t) * 1e3 | 0) + ' uuids\/second');
152
+ }
153
+
154
+ for (var version in generators) {
155
+ var counts = {}, max = 0;
156
+ var generator = generators[version];
157
+ var format = UUID_FORMAT[version];
158
+
159
+ log('\nSanity check ' + N + ' ' + version + ' uuids');
160
+ for (var i = 0, ok = 0; i < N; i++) {
161
+ id = generator();
162
+ if (!format.test(id)) {
163
+ throw Error(id + ' is not a valid UUID string');
164
+ }
165
+
166
+ if (id != uuid.unparse(uuid.parse(id))) {
167
+ assert(fail, id + ' is not a valid id');
168
+ }
169
+
170
+ // Count digits for our randomness check
171
+ if (version == 'v4') {
172
+ var digits = id.replace(/-/g, '').split('');
173
+ for (var j = digits.length-1; j >= 0; j--) {
174
+ var c = digits[j];
175
+ max = Math.max(max, counts[c] = (counts[c] || 0) + 1);
176
+ }
177
+ }
178
+ }
179
+
180
+ // Check randomness for v4 UUIDs
181
+ if (version == 'v4') {
182
+ // Limit that we get worried about randomness. (Purely empirical choice, this!)
183
+ var limit = 2*100*Math.sqrt(1/N);
184
+
185
+ log('\nChecking v4 randomness. Distribution of Hex Digits (% deviation from ideal)');
186
+
187
+ for (var i = 0; i < 16; i++) {
188
+ var c = i.toString(16);
189
+ var bar = '', n = counts[c], p = Math.round(n/max*100|0);
190
+
191
+ // 1-3,5-8, and D-F: 1:16 odds over 30 digits
192
+ var ideal = N*30/16;
193
+ if (i == 4) {
194
+ // 4: 1:1 odds on 1 digit, plus 1:16 odds on 30 digits
195
+ ideal = N*(1 + 30/16);
196
+ } else if (i >= 8 && i <= 11) {
197
+ // 8-B: 1:4 odds on 1 digit, plus 1:16 odds on 30 digits
198
+ ideal = N*(1/4 + 30/16);
199
+ } else {
200
+ // Otherwise: 1:16 odds on 30 digits
201
+ ideal = N*30/16;
202
+ }
203
+ var d = divergence(n, ideal);
204
+
205
+ // Draw bar using UTF squares (just for grins)
206
+ var s = n/max*50 | 0;
207
+ while (s--) bar += '=';
208
+
209
+ assert(Math.abs(d) < limit, c + ' |' + bar + '| ' + counts[c] + ' (' + d + '% < ' + limit + '%)');
210
+ }
211
+ }
212
+ }
213
+
214
+ // Perf tests
215
+ for (var version in generators) {
216
+ log('\nPerformance testing ' + version + ' UUIDs');
217
+ var generator = generators[version];
218
+ var buf = new uuid.BufferClass(16);
219
+
220
+ for (var i = 0, t = Date.now(); i < N; i++) generator();
221
+ rate('uuid.' + version + '()', t);
222
+
223
+ for (var i = 0, t = Date.now(); i < N; i++) generator('binary');
224
+ rate('uuid.' + version + '(\'binary\')', t);
225
+
226
+ for (var i = 0, t = Date.now(); i < N; i++) generator('binary', buf);
227
+ rate('uuid.' + version + '(\'binary\', buffer)', t);
228
+ }