yellow-brick-road 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. data/README.rst +148 -0
  2. data/Rakefile +37 -0
  3. data/lib/tasks/yellow-brick-road_tasks.rake +4 -0
  4. data/lib/yellow-brick-road.rb +6 -0
  5. data/lib/yellow-brick-road/config.rb +15 -0
  6. data/lib/yellow-brick-road/directive_processor.rb +68 -0
  7. data/lib/yellow-brick-road/engine.rb +22 -0
  8. data/lib/yellow-brick-road/soy_processor.rb +56 -0
  9. data/lib/yellow-brick-road/utils.rb +38 -0
  10. data/lib/yellow-brick-road/version.rb +3 -0
  11. data/test/dummy/Rakefile +7 -0
  12. data/test/dummy/app/assets/javascripts/application.js +12 -0
  13. data/test/dummy/app/assets/javascripts/closure-deps.js +4 -0
  14. data/test/dummy/app/assets/javascripts/my-closure/simple.js.soy +14 -0
  15. data/test/dummy/app/assets/javascripts/my-closure/start.js +25 -0
  16. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  17. data/test/dummy/app/controllers/application_controller.rb +7 -0
  18. data/test/dummy/app/helpers/application_helper.rb +2 -0
  19. data/test/dummy/app/views/application/index.html.erb +0 -0
  20. data/test/dummy/app/views/layouts/application.html.erb +18 -0
  21. data/test/dummy/config.ru +4 -0
  22. data/test/dummy/config/application.rb +51 -0
  23. data/test/dummy/config/boot.rb +10 -0
  24. data/test/dummy/config/environment.rb +5 -0
  25. data/test/dummy/config/environments/development.rb +30 -0
  26. data/test/dummy/config/environments/production.rb +60 -0
  27. data/test/dummy/config/environments/test.rb +39 -0
  28. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  29. data/test/dummy/config/initializers/inflections.rb +10 -0
  30. data/test/dummy/config/initializers/mime_types.rb +5 -0
  31. data/test/dummy/config/initializers/secret_token.rb +7 -0
  32. data/test/dummy/config/initializers/session_store.rb +8 -0
  33. data/test/dummy/config/initializers/wrap_parameters.rb +10 -0
  34. data/test/dummy/config/initializers/yellow_brick_road.rb +2 -0
  35. data/test/dummy/config/locales/en.yml +5 -0
  36. data/test/dummy/config/routes.rb +58 -0
  37. data/test/dummy/log/development.log +13924 -0
  38. data/test/dummy/log/test.log +0 -0
  39. data/test/dummy/public/404.html +26 -0
  40. data/test/dummy/public/422.html +26 -0
  41. data/test/dummy/public/500.html +26 -0
  42. data/test/dummy/public/favicon.ico +0 -0
  43. data/test/dummy/script/rails +6 -0
  44. data/test/dummy/tmp/cache/assets/BE0/120/sprockets%2F751842b8c6750008c7310d182600d173 +142 -0
  45. data/test/dummy/tmp/cache/assets/C19/950/sprockets%2F142437f1d8d9424007b4a882a5429333 +1372 -0
  46. data/test/dummy/tmp/cache/assets/C4B/D00/sprockets%2F400f22c081529179ce3d079457de3009 +806 -0
  47. data/test/dummy/tmp/cache/assets/C5A/EE0/sprockets%2Fb711429ed948c503b718d077037780f8 +0 -0
  48. data/test/dummy/tmp/cache/assets/C5B/A80/sprockets%2F508569b474262724c61a461f7777dab7 +1118 -0
  49. data/test/dummy/tmp/cache/assets/C6C/660/sprockets%2F2c298b3b02232a21527680685a3efc30 +9289 -0
  50. data/test/dummy/tmp/cache/assets/C72/8A0/sprockets%2F167b265129e30d87d253c406db305c60 +293 -0
  51. data/test/dummy/tmp/cache/assets/C7E/9F0/sprockets%2F89862076204c62c4593ac20de32da909 +9 -0
  52. data/test/dummy/tmp/cache/assets/C8B/5F0/sprockets%2Fc6a4470b5c21e285e829a99365839b24 +0 -0
  53. data/test/dummy/tmp/cache/assets/C92/D20/sprockets%2F2e618f7805f445889aec94885a500f03 +457 -0
  54. data/test/dummy/tmp/cache/assets/C98/FD0/sprockets%2Fb11442af041f96e87a43a1dc11231745 +283 -0
  55. data/test/dummy/tmp/cache/assets/CA3/520/sprockets%2F5379d7143c6c52b11b88dc0ab5436133 +277 -0
  56. data/test/dummy/tmp/cache/assets/CA5/450/sprockets%2F6bb727c9312a749134ad67323a317f0d +73 -0
  57. data/test/dummy/tmp/cache/assets/CA5/4F0/sprockets%2Feeb7de7771527700af194c0441d29101 +709 -0
  58. data/test/dummy/tmp/cache/assets/CA6/E90/sprockets%2F611f68180f43c4181f06ae5c5f8201e2 +1546 -0
  59. data/test/dummy/tmp/cache/assets/CA7/310/sprockets%2F45664cf816315200b574e029fde6f10a +0 -0
  60. data/test/dummy/tmp/cache/assets/CA9/9D0/sprockets%2F2672e32464cf7267c4ba3d028f54b153 +224 -0
  61. data/test/dummy/tmp/cache/assets/CAB/5A0/sprockets%2F7f50e0289f150c8636ac9253129bc13c +2556 -0
  62. data/test/dummy/tmp/cache/assets/CB5/7E0/sprockets%2F42ff6672683b2029233a800e7539eeee +474 -0
  63. data/test/dummy/tmp/cache/assets/CB6/DC0/sprockets%2F2f9882155bb2d4d3ab5d708951857c60 +494 -0
  64. data/test/dummy/tmp/cache/assets/CBB/680/sprockets%2F1dc336d96fb52df34b458185559922b5 +1018 -0
  65. data/test/dummy/tmp/cache/assets/CBC/640/sprockets%2F67d2e0d9e5129d237e575d2780c64b47 +1260 -0
  66. data/test/dummy/tmp/cache/assets/CBE/550/sprockets%2Fd680cac830e0b3408ba910f0b0421147 +25 -0
  67. data/test/dummy/tmp/cache/assets/CC7/790/sprockets%2F69941f32a12e4f99d4a57f65386d870d +608 -0
  68. data/test/dummy/tmp/cache/assets/CCB/F80/sprockets%2Fa865701ef2ec41155e524772c31a1a2b +1088 -0
  69. data/test/dummy/tmp/cache/assets/CCE/580/sprockets%2F879411ed27ed1c557d57853d8f579b56 +0 -0
  70. data/test/dummy/tmp/cache/assets/CD0/070/sprockets%2F6748fe8481965f260d9c56b7f9f508a2 +1530 -0
  71. data/test/dummy/tmp/cache/assets/CD4/750/sprockets%2Faf3505141ecb3169ce41ce519d136924 +0 -0
  72. data/test/dummy/tmp/cache/assets/CD6/A90/sprockets%2F3f55ac75b9fb8426312116bcb940a580 +2539 -0
  73. data/test/dummy/tmp/cache/assets/CD9/6C0/sprockets%2F5e2458bc52da90ba349a66035e3b6752 +0 -0
  74. data/test/dummy/tmp/cache/assets/CD9/F50/sprockets%2F9008bf696500cfae1d61f045f209181e +256 -0
  75. data/test/dummy/tmp/cache/assets/CDB/B40/sprockets%2F53529a22c994570a0df4742c0bfe61f4 +0 -0
  76. data/test/dummy/tmp/cache/assets/CDC/D10/sprockets%2F1e775b4ff06b4401c07503ce95a839b5 +75 -0
  77. data/test/dummy/tmp/cache/assets/CDE/CD0/sprockets%2F141066798b4acf07053f7e3a6cb4e555 +1613 -0
  78. data/test/dummy/tmp/cache/assets/CE1/760/sprockets%2F245fe11803630fe30d0cf8a869886ab5 +357 -0
  79. data/test/dummy/tmp/cache/assets/CE1/FA0/sprockets%2F863d1650ef066e4a2168bc57c7c0e096 +0 -0
  80. data/test/dummy/tmp/cache/assets/CE2/310/sprockets%2Fd38075d5592ecaf82e43526c03b467c4 +1545 -0
  81. data/test/dummy/tmp/cache/assets/CE2/420/sprockets%2F30f2e8f30477e80cf6416dfe27307c07 +204 -0
  82. data/test/dummy/tmp/cache/assets/CE2/D70/sprockets%2F467c44b63644e0f44dd06a585f36f1a6 +522 -0
  83. data/test/dummy/tmp/cache/assets/CE3/670/sprockets%2Fddd11860b444cd0f9996be0c46762318 +796 -0
  84. data/test/dummy/tmp/cache/assets/CE4/0B0/sprockets%2Ff11535d785c0d34349c64d673bd4b28f +1105 -0
  85. data/test/dummy/tmp/cache/assets/CE4/590/sprockets%2Fd68edcc87a4ae302794093081b45b819 +10 -0
  86. data/test/dummy/tmp/cache/assets/CE4/D60/sprockets%2F61772e4a60b616f74da91b838a2f4f82 +0 -0
  87. data/test/dummy/tmp/cache/assets/CE6/DD0/sprockets%2F2fe073024a2bf26bd98458388b57af37 +1355 -0
  88. data/test/dummy/tmp/cache/assets/CE7/160/sprockets%2Fba1f9939f031b4356ec1869d40fc2747 +1261 -0
  89. data/test/dummy/tmp/cache/assets/CE8/C70/sprockets%2Fc6c9ba3c677b5e2af8520395192c9445 +173 -0
  90. data/test/dummy/tmp/cache/assets/CEA/8B0/sprockets%2Ff77e549cb6d37604105f35d4e67d8c21 +511 -0
  91. data/test/dummy/tmp/cache/assets/CEA/AA0/sprockets%2F5f816982c86d2e6b72b2f5f65c51d070 +1529 -0
  92. data/test/dummy/tmp/cache/assets/CEA/C10/sprockets%2F9dcd541e67c299ab076a44a2183872f8 +0 -0
  93. data/test/dummy/tmp/cache/assets/CF1/5A0/sprockets%2F1a697695edf2bb7b49a2896904218bc7 +115 -0
  94. data/test/dummy/tmp/cache/assets/CF4/480/sprockets%2F5e99c77e93f4a522c84357e62b25e0f7 +43 -0
  95. data/test/dummy/tmp/cache/assets/CF7/460/sprockets%2Fd12ea9733fe3c92456f57f9145569b9c +0 -0
  96. data/test/dummy/tmp/cache/assets/CF7/470/sprockets%2F2897897a166ca3369fecb88f83f211b5 +435 -0
  97. data/test/dummy/tmp/cache/assets/CFA/760/sprockets%2Fa9024adba14091e0635c6874d1db4e22 +0 -0
  98. data/test/dummy/tmp/cache/assets/D01/F30/sprockets%2Fe639a15b6e0cca37d12443b408e1166f +25 -0
  99. data/test/dummy/tmp/cache/assets/D02/9F0/sprockets%2Fb99eae308897fe88cb9414b96824098b +0 -0
  100. data/test/dummy/tmp/cache/assets/D03/330/sprockets%2F1e003cdb3e7dcc9307e84090ad457127 +454 -0
  101. data/test/dummy/tmp/cache/assets/D03/8B0/sprockets%2Ff74632bddf2c0b2018ca7b736309380e +365 -0
  102. data/test/dummy/tmp/cache/assets/D05/0A0/sprockets%2Fe57658220260db13eb5577aef42cb61b +257 -0
  103. data/test/dummy/tmp/cache/assets/D05/920/sprockets%2F909507434dcc270db4853e4c147f0aac +31 -0
  104. data/test/dummy/tmp/cache/assets/D08/510/sprockets%2Fa567be6cb6d7310096f1739b25a5a3f0 +50 -0
  105. data/test/dummy/tmp/cache/assets/D08/9F0/sprockets%2F1d61d2c89ca50957066bacc5b69011f5 +1424 -0
  106. data/test/dummy/tmp/cache/assets/D0A/790/sprockets%2Feb16913e6504c9b0d3be431de39e4751 +300 -0
  107. data/test/dummy/tmp/cache/assets/D0C/C50/sprockets%2Fd6613bee8b40d50459af6b52a7084f34 +796 -0
  108. data/test/dummy/tmp/cache/assets/D0D/030/sprockets%2Fba3f13b4a444679e8bc2549226ec743b +21 -0
  109. data/test/dummy/tmp/cache/assets/D0D/350/sprockets%2F2670bce036d485e15d059c0f1e98f24a +207 -0
  110. data/test/dummy/tmp/cache/assets/D13/270/sprockets%2F497cb163e6317e3fc1565d832f406cfb +348 -0
  111. data/test/dummy/tmp/cache/assets/D13/380/sprockets%2F786d003c9c7fb759dd26c1030c087cf6 +813 -0
  112. data/test/dummy/tmp/cache/assets/D13/7C0/sprockets%2F528d22310a9ab8e6fba08d82844ce795 +0 -0
  113. data/test/dummy/tmp/cache/assets/D15/F60/sprockets%2Fa28394e3f80365b5bc86794dd46daa22 +0 -0
  114. data/test/dummy/tmp/cache/assets/D18/500/sprockets%2Fd22c2d97d1db2154f2f7592906e957ea +1001 -0
  115. data/test/dummy/tmp/cache/assets/D1B/C70/sprockets%2F1c04848b1e1d6e8e33b8581f8c8128ff +223 -0
  116. data/test/dummy/tmp/cache/assets/D1C/600/sprockets%2Fa0601f99147f59ddd6266e6aff077e14 +0 -0
  117. data/test/dummy/tmp/cache/assets/D1E/470/sprockets%2Fb3933e694547b78bf6fb15f44a4623fe +53 -0
  118. data/test/dummy/tmp/cache/assets/D1F/480/sprockets%2F545164168becf42b289efc8708f1db68 +1278 -0
  119. data/test/dummy/tmp/cache/assets/D21/630/sprockets%2F0a14114729c14637f2e8f122acabd1ab +823 -0
  120. data/test/dummy/tmp/cache/assets/D24/A90/sprockets%2F21c8a0d48c51b8585ba03bc112ecd153 +692 -0
  121. data/test/dummy/tmp/cache/assets/D25/D30/sprockets%2F3b937f4c16d2aa0a28fc02a0e922712b +1441 -0
  122. data/test/dummy/tmp/cache/assets/D25/F30/sprockets%2Fe251527c0c018f4b4ad44b2ad7064fb0 +2255 -0
  123. data/test/dummy/tmp/cache/assets/D26/DE0/sprockets%2F761ac1bdb0739cc56fa0c1224b137b09 +0 -0
  124. data/test/dummy/tmp/cache/assets/D2A/C30/sprockets%2F978fe7268754f451c59b9ccb323ffa56 +0 -0
  125. data/test/dummy/tmp/cache/assets/D2B/0F0/sprockets%2Fbf223af03335cfc08a71e549e10c0e27 +2539 -0
  126. data/test/dummy/tmp/cache/assets/D2E/6D0/sprockets%2F9e7fda3affb389313cc50223f01c0324 +0 -0
  127. data/test/dummy/tmp/cache/assets/D2F/110/sprockets%2F3730ffe2ed34c1219d580bd1615ea7b0 +2239 -0
  128. data/test/dummy/tmp/cache/assets/D2F/F10/sprockets%2F9cac242f0bf5ec00079ea3a463e26552 +153 -0
  129. data/test/dummy/tmp/cache/assets/D30/1D0/sprockets%2Fd690a26a0b0ae138c1c48d257a7674bc +589 -0
  130. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  131. data/test/dummy/tmp/cache/assets/D36/940/sprockets%2Fb4ba462ac9f4aac561c36e60367c1378 +572 -0
  132. data/test/dummy/tmp/cache/assets/D37/090/sprockets%2F2f2e71ebbc240014ebf648f0917e854a +798 -0
  133. data/test/dummy/tmp/cache/assets/D3A/440/sprockets%2F6d332243647c841dea36ed822cdfc23e +165 -0
  134. data/test/dummy/tmp/cache/assets/D3B/5A0/sprockets%2F82e05cf8c88ba8cb1c87e50d51372a03 +0 -0
  135. data/test/dummy/tmp/cache/assets/D41/B30/sprockets%2Fba1b93913dd01d83ac9a96df334456f8 +0 -0
  136. data/test/dummy/tmp/cache/assets/D43/D90/sprockets%2F04f3a5926d5a7672456dc7afa73d0c7f +38 -0
  137. data/test/dummy/tmp/cache/assets/D45/1F0/sprockets%2F1bfa855d9c10ff2431a9a548958cc5e4 +83 -0
  138. data/test/dummy/tmp/cache/assets/D45/B10/sprockets%2F643f3d9b216e48df952b7f150a46a7ec +60 -0
  139. data/test/dummy/tmp/cache/assets/D46/040/sprockets%2F199546844e5939721a5afcbcce4ea43a +143 -0
  140. data/test/dummy/tmp/cache/assets/D49/320/sprockets%2Fd8123eb229e34c9f507f7b1876f1c4ee +506 -0
  141. data/test/dummy/tmp/cache/assets/D49/750/sprockets%2Ff41ef1c0832b7294fb15588ff5c783cb +0 -0
  142. data/test/dummy/tmp/cache/assets/D49/930/sprockets%2F1071926698fa55abc71e1b6fd966dfe1 +72 -0
  143. data/test/dummy/tmp/cache/assets/D49/D10/sprockets%2Fb67b8d7cc7579352a91694f9ae10cdb0 +127 -0
  144. data/test/dummy/tmp/cache/assets/D4A/160/sprockets%2Fcbd8988b5e18d153eff6230d72e9046a +516 -0
  145. data/test/dummy/tmp/cache/assets/D4A/2B0/sprockets%2Ffcdf002d38fd938bf7226b46b76706c8 +1101 -0
  146. data/test/dummy/tmp/cache/assets/D4E/2F0/sprockets%2F77cb87ae57f0d8c25cdaa74181a64997 +1441 -0
  147. data/test/dummy/tmp/cache/assets/D4F/060/sprockets%2Fa9e66b39ada7394a29bf44f3a682f665 +511 -0
  148. data/test/dummy/tmp/cache/assets/D50/BD0/sprockets%2F88650dd57ef64075462e6dae757dbe2c +0 -0
  149. data/test/dummy/tmp/cache/assets/D53/CA0/sprockets%2Fa85032e82709a043fbb2ec00e04f2bbd +0 -0
  150. data/test/dummy/tmp/cache/assets/D54/BF0/sprockets%2F91970514ff528e8d2bfd81f1ec83c9c8 +240 -0
  151. data/test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +10 -0
  152. data/test/dummy/tmp/cache/assets/D56/500/sprockets%2F75ebadd035f1324b194034af92eac3a0 +0 -0
  153. data/test/dummy/tmp/cache/assets/D5A/900/sprockets%2F5729f77d97fdee53b1942cf17f6f05e4 +474 -0
  154. data/test/dummy/tmp/cache/assets/D5A/D50/sprockets%2F81bace3db2c2f1241175ff3c5009d08c +0 -0
  155. data/test/dummy/tmp/cache/assets/D5B/C70/sprockets%2Fe64119a9db7017b7ab3b0da1b6076f0d +44 -0
  156. data/test/dummy/tmp/cache/assets/D5E/4D0/sprockets%2F756f25e4ad861a050cdc41bb8414e4ab +126 -0
  157. data/test/dummy/tmp/cache/assets/D5E/730/sprockets%2Fd30caf70b387c4604326bdda32aeb549 +0 -0
  158. data/test/dummy/tmp/cache/assets/D5E/AA0/sprockets%2F790dd07caaaacb30ceb0174664e90817 +136 -0
  159. data/test/dummy/tmp/cache/assets/D64/D30/sprockets%2Fe4bd8f60a3a446274c3cb2f5d16563ac +590 -0
  160. data/test/dummy/tmp/cache/assets/D66/400/sprockets%2Fecb7401d20daf25605a7afad3a793778 +0 -0
  161. data/test/dummy/tmp/cache/assets/D67/250/sprockets%2F8422eb26855ca9c953a3bf1aeade8004 +0 -0
  162. data/test/dummy/tmp/cache/assets/D69/900/sprockets%2F28ae64f52cb18f77b1a1bd9c51293da4 +0 -0
  163. data/test/dummy/tmp/cache/assets/D6A/870/sprockets%2F1ece6a51b42f9280f4cee9020c94b72e +197 -0
  164. data/test/dummy/tmp/cache/assets/D6B/DD0/sprockets%2F9a0abc735e27fc61dab019788518eba4 +164 -0
  165. data/test/dummy/tmp/cache/assets/D6E/CC0/sprockets%2F8b4fbcec2475e7203b8859baf8e310a3 +0 -0
  166. data/test/dummy/tmp/cache/assets/D72/470/sprockets%2Fbc0c6d850e7c769e83d58eb3e6061b2a +2556 -0
  167. data/test/dummy/tmp/cache/assets/D72/9D0/sprockets%2F9402daf6da6f7eed331a9d78216cb761 +0 -0
  168. data/test/dummy/tmp/cache/assets/D74/070/sprockets%2F91ae68f698a39bd7d0d11150fc46e4cd +418 -0
  169. data/test/dummy/tmp/cache/assets/D74/7F0/sprockets%2F22dad1069ea6a8f29ae757c44e18ec83 +0 -0
  170. data/test/dummy/tmp/cache/assets/D75/3C0/sprockets%2F44e2ae51b97853d8ecda7b264a267c7d +1630 -0
  171. data/test/dummy/tmp/cache/assets/D77/780/sprockets%2Ffa2abdfb0b62867c346f79187b8e42d5 +823 -0
  172. data/test/dummy/tmp/cache/assets/D79/850/sprockets%2F4d540586ed379fd9a70fa0b7ce4f5b27 +306 -0
  173. data/test/dummy/tmp/cache/assets/D7A/B60/sprockets%2F5925c92f48caff053d08853dc69e5bba +0 -0
  174. data/test/dummy/tmp/cache/assets/D81/C90/sprockets%2F19aca5c835efce74878c23e581e2a89e +2239 -0
  175. data/test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +11228 -0
  176. data/test/dummy/tmp/cache/assets/D8B/B10/sprockets%2Fbb7a2305a8f2832631863bbababb67be +301 -0
  177. data/test/dummy/tmp/cache/assets/D92/3B0/sprockets%2F93dc71f411faf72ec8ef0b5d217b51a0 +505 -0
  178. data/test/dummy/tmp/cache/assets/D92/EE0/sprockets%2Ffd051ea0abf6be6970754aa732e40c8b +289 -0
  179. data/test/dummy/tmp/cache/assets/D93/810/sprockets%2F7dc1ac5e1b83ba5144e34cf156d48a8a +471 -0
  180. data/test/dummy/tmp/cache/assets/D94/020/sprockets%2F35cb4ce22488fb5bdd260508ca47a3fb +239 -0
  181. data/test/dummy/tmp/cache/assets/D94/EC0/sprockets%2F8b900fba18f8e046f5f12e6d1f0ac15b +74 -0
  182. data/test/dummy/tmp/cache/assets/D95/470/sprockets%2F5be5d361a52575c433831b5e8cccbace +9273 -0
  183. data/test/dummy/tmp/cache/assets/D97/9D0/sprockets%2F524a2a94a88c1d392dabcba654e365fc +103 -0
  184. data/test/dummy/tmp/cache/assets/D9D/800/sprockets%2Ff8387220eb4dda9b29a37b5deb9f2a40 +54 -0
  185. data/test/dummy/tmp/cache/assets/D9E/DD0/sprockets%2Fb6b4ffad6485eda046b327a196e8c44a +0 -0
  186. data/test/dummy/tmp/cache/assets/DA1/0A0/sprockets%2F359c94aee6ba2e15fc9666aa4de311c8 +166 -0
  187. data/test/dummy/tmp/cache/assets/DA1/0D0/sprockets%2F798de3c28452e164a7fc1a3a6e8cdb4b +652 -0
  188. data/test/dummy/tmp/cache/assets/DA3/CB0/sprockets%2Fdfad6bb1857a8af91f98ba137c18504e +815 -0
  189. data/test/dummy/tmp/cache/assets/DA4/E10/sprockets%2Fbda7705734ace95f12a7d79df9c14af2 +1354 -0
  190. data/test/dummy/tmp/cache/assets/DA5/E30/sprockets%2F2e6707a119e94a784efbadca18d7e8d1 +129 -0
  191. data/test/dummy/tmp/cache/assets/DA6/4B0/sprockets%2F4f7a708b6aa2d42eb577493dea7cef55 +115 -0
  192. data/test/dummy/tmp/cache/assets/DA8/A10/sprockets%2F0ae5bbb4ca200e74db3b64d72c2be120 +0 -0
  193. data/test/dummy/tmp/cache/assets/DA9/3F0/sprockets%2Fdd0af9cfd65fb7d02fe778c8f6015361 +499 -0
  194. data/test/dummy/tmp/cache/assets/DA9/780/sprockets%2Fe3559a635e8f92dec7727a3db2ae7b4c +813 -0
  195. data/test/dummy/tmp/cache/assets/DAC/0E0/sprockets%2F04cef8243a9ef7321846debc977ea8db +607 -0
  196. data/test/dummy/tmp/cache/assets/DB1/260/sprockets%2Fb879ff7530bf8cc175e0c7e70dc4e79b +0 -0
  197. data/test/dummy/tmp/cache/assets/DB4/4C0/sprockets%2F30a76cbd98dedb56742cd8ecaf858757 +0 -0
  198. data/test/dummy/tmp/cache/assets/DBD/7E0/sprockets%2F236fb1ac5ed9f2e3fe32203acc3a842d +0 -0
  199. data/test/dummy/tmp/cache/assets/DC2/DF0/sprockets%2Fe233bcaba8beff15626c35cb5e0e0936 +845 -0
  200. data/test/dummy/tmp/cache/assets/DC4/600/sprockets%2F59c96aa6c1cbebc61bff6c050a5351d7 +225 -0
  201. data/test/dummy/tmp/cache/assets/DC5/030/sprockets%2Fcb2fe864a0177eec19017c43ce9aa4ad +187 -0
  202. data/test/dummy/tmp/cache/assets/DC8/A60/sprockets%2F9fcb9f5c3f679ce749ee4c3f93869ba6 +74 -0
  203. data/test/dummy/tmp/cache/assets/DCB/D40/sprockets%2Ffd5542bfb7660a8d8cac3a2e46fb01f8 +828 -0
  204. data/test/dummy/tmp/cache/assets/DCC/020/sprockets%2F0c129c5f2784c96fa1dc3da6c19c1efc +128 -0
  205. data/test/dummy/tmp/cache/assets/DCF/520/sprockets%2F975162fb97a3ec7033db5f2fdba4fcd3 +70 -0
  206. data/test/dummy/tmp/cache/assets/DD0/000/sprockets%2F0d5d631cce6f0b078bb29cf98b3d78bb +276 -0
  207. data/test/dummy/tmp/cache/assets/DD0/C90/sprockets%2F84eeca4ef8f5eb29b13f7e1ea3c71324 +591 -0
  208. data/test/dummy/tmp/cache/assets/DD6/710/sprockets%2F9e83f2ebbe3e349efca2de390e15d635 +204 -0
  209. data/test/dummy/tmp/cache/assets/DE1/830/sprockets%2Fd23d3cafef2e2a9055bc103dffc1a023 +208 -0
  210. data/test/dummy/tmp/cache/assets/DEB/470/sprockets%2Fae2de0fcbc2214b71d3f2a875d2bc8c3 +2255 -0
  211. data/test/dummy/tmp/cache/assets/DEE/690/sprockets%2F5d824bcadef29060cc13eed71af4b4d0 +550 -0
  212. data/test/dummy/tmp/cache/assets/DF0/5D0/sprockets%2F25a875eb0a5d4c49bcc3fa39ea0adb26 +567 -0
  213. data/test/dummy/tmp/cache/assets/DF3/E20/sprockets%2Fada770c49a5d6b38d1cc43ed4d51c1fc +0 -0
  214. data/test/dummy/tmp/cache/assets/DF5/C80/sprockets%2F03ad7d7b3a8feba9ed9be82ae2083b20 +340 -0
  215. data/test/dummy/tmp/cache/assets/DF6/560/sprockets%2Fafceb2b55eb108efe4446dfb02b519b8 +0 -0
  216. data/test/dummy/tmp/cache/assets/DFC/030/sprockets%2Fcbdd3679eaba219b4e1ff20677af1c6f +1371 -0
  217. data/test/dummy/tmp/cache/assets/E00/970/sprockets%2F8bc6dde8d05c382dd07cbcec70f54e09 +378 -0
  218. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  219. data/test/dummy/tmp/cache/assets/E12/2F0/sprockets%2F5c45062ecfbe512dcba176ba6ddacc00 +523 -0
  220. data/test/dummy/tmp/cache/assets/E21/5D0/sprockets%2Fd4fe6d611bfb0e63c04de5dbfb128a8a +0 -0
  221. data/test/dummy/tmp/cache/assets/E22/770/sprockets%2F2ccebcabfbb9b59159e4b73b3b30a74d +208 -0
  222. data/test/dummy/tmp/cache/assets/E31/A90/sprockets%2F26b98bbbc15eee9b370c7dcde88d16aa +394 -0
  223. data/test/dummy/tmp/cache/assets/E31/E30/sprockets%2Ffbdafcc4e2f44bb9fc653bcf9625b750 +284 -0
  224. data/test/dummy/tmp/cache/assets/E37/1C0/sprockets%2Fa5eb45fc86dafe2bee4e4fa3f53c4785 +0 -0
  225. data/test/dummy/tmp/cache/assets/E4C/960/sprockets%2F13fd6e4bfdf031acb3dedca8d0f407b4 +1277 -0
  226. data/test/dummy/tmp/cache/assets/E88/330/sprockets%2Fe02d0adb5529ffafcea1b9e5ccf69a5b +669 -0
  227. data/test/dummy/tmp/pids/server.pid +1 -0
  228. data/test/dummy/tmp/simple.js.js +20 -0
  229. data/test/dummy/tmp/soy-1325274421.js +20 -0
  230. data/test/dummy/tmp/soy-1325286267.js +20 -0
  231. data/test/test_helper.rb +10 -0
  232. data/test/yellow-brick-road_test.rb +7 -0
  233. metadata +538 -0
@@ -0,0 +1,1018 @@
1
+ o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1325441614.036899: @value{I"
2
+ class:EFI"BundledAsset;
3
+ FI"id;
4
+ F"%88aea4fbe78fd36d4a04339d9f1cbb68I"logical_path;
5
+ FI"closure/goog/uri/utils.js;
6
+ TI"
7
+ F"k/Volumes/Development/dev-web/yellow-brick-road/vendor/assets/closure-library/closure/goog/uri/utils.jsI"content_type;
8
+ FI"application/javascript;
9
+ FI"
10
+ mtime;
11
+ FI"2011-12-30T02:16:25+00:00;
12
+ FI" body;
13
+ FI""�// Copyright 2008 The Closure Library Authors. All Rights Reserved.
14
+ //
15
+ // Licensed under the Apache License, Version 2.0 (the "License");
16
+ // you may not use this file except in compliance with the License.
17
+ // You may obtain a copy of the License at
18
+ //
19
+ // http://www.apache.org/licenses/LICENSE-2.0
20
+ //
21
+ // Unless required by applicable law or agreed to in writing, software
22
+ // distributed under the License is distributed on an "AS-IS" BASIS,
23
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
+ // See the License for the specific language governing permissions and
25
+ // limitations under the License.
26
+
27
+ /**
28
+ * @fileoverview Simple utilities for dealing with URI strings.
29
+ *
30
+ * This is intended to be a lightweight alternative to constructing goog.Uri
31
+ * objects. Whereas goog.Uri adds several kilobytes to the binary regardless
32
+ * of how much of its functionality you use, this is designed to be a set of
33
+ * mostly-independent utilities so that the compiler includes only what is
34
+ * necessary for the task. Estimated savings of porting is 5k pre-gzip and
35
+ * 1.5k post-gzip. To ensure the savings remain, future developers should
36
+ * avoid adding new functionality to existing functions, but instead create
37
+ * new ones and factor out shared code.
38
+ *
39
+ * Many of these utilities have limited functionality, tailored to common
40
+ * cases. The query parameter utilities assume that the parameter keys are
41
+ * already encoded, since most keys are compile-time alphanumeric strings. The
42
+ * query parameter mutation utilities also do not tolerate fragment identifiers.
43
+ *
44
+ * By design, these functions can be slower than goog.Uri equivalents.
45
+ * Repeated calls to some of functions may be quadratic in behavior for IE,
46
+ * although the effect is somewhat limited given the 2kb limit.
47
+ *
48
+ * One advantage of the limited functionality here is that this approach is
49
+ * less sensitive to differences in URI encodings than goog.Uri, since these
50
+ * functions modify the strings in place, rather than decoding and
51
+ * re-encoding.
52
+ *
53
+ * Uses features of RFC 3986 for parsing/formatting URIs:
54
+ * http://gbiv.com/protocols/uri/rfc/rfc3986.html
55
+ *
56
+ * @author gboyer@google.com (Garrett Boyer) - The "lightened" design.
57
+ * @author msamuel@google.com (Mike Samuel) - Domain knowledge and regexes.
58
+ */
59
+
60
+
61
+ goog.provide('goog.uri.utils');
62
+ goog.provide('goog.uri.utils.ComponentIndex');
63
+ goog.provide('goog.uri.utils.QueryArray');
64
+ goog.provide('goog.uri.utils.QueryValue');
65
+ goog.provide('goog.uri.utils.StandardQueryParam');
66
+
67
+ goog.require('goog.asserts');
68
+ goog.require('goog.string');
69
+
70
+
71
+ /**
72
+ * Character codes inlined to avoid object allocations due to charCode.
73
+ * @enum {number}
74
+ * @private
75
+ */
76
+ goog.uri.utils.CharCode_ = {
77
+ AMPERSAND: 38,
78
+ EQUAL: 61,
79
+ HASH: 35,
80
+ QUESTION: 63
81
+ };
82
+
83
+
84
+ /**
85
+ * Builds a URI string from already-encoded parts.
86
+ *
87
+ * No encoding is performed. Any component may be omitted as either null or
88
+ * undefined.
89
+ *
90
+ * @param {?string=} opt_scheme The scheme such as 'http'.
91
+ * @param {?string=} opt_userInfo The user name before the '@'.
92
+ * @param {?string=} opt_domain The domain such as 'www.google.com', already
93
+ * URI-encoded.
94
+ * @param {(string|number|null)=} opt_port The port number.
95
+ * @param {?string=} opt_path The path, already URI-encoded. If it is not
96
+ * empty, it must begin with a slash.
97
+ * @param {?string=} opt_queryData The URI-encoded query data.
98
+ * @param {?string=} opt_fragment The URI-encoded fragment identifier.
99
+ * @return {string} The fully combined URI.
100
+ */
101
+ goog.uri.utils.buildFromEncodedParts = function(opt_scheme, opt_userInfo,
102
+ opt_domain, opt_port, opt_path, opt_queryData, opt_fragment) {
103
+ var out = [];
104
+
105
+ if (opt_scheme) {
106
+ out.push(opt_scheme, ':');
107
+ }
108
+
109
+ if (opt_domain) {
110
+ out.push('//');
111
+
112
+ if (opt_userInfo) {
113
+ out.push(opt_userInfo, '@');
114
+ }
115
+
116
+ out.push(opt_domain);
117
+
118
+ if (opt_port) {
119
+ out.push(':', opt_port);
120
+ }
121
+ }
122
+
123
+ if (opt_path) {
124
+ out.push(opt_path);
125
+ }
126
+
127
+ if (opt_queryData) {
128
+ out.push('?', opt_queryData);
129
+ }
130
+
131
+ if (opt_fragment) {
132
+ out.push('#', opt_fragment);
133
+ }
134
+
135
+ return out.join('');
136
+ };
137
+
138
+
139
+ /**
140
+ * A regular expression for breaking a URI into its component parts.
141
+ *
142
+ * {@link http://www.gbiv.com/protocols/uri/rfc/rfc3986.html#RFC2234} says
143
+ * As the "first-match-wins" algorithm is identical to the "greedy"
144
+ * disambiguation method used by POSIX regular expressions, it is natural and
145
+ * commonplace to use a regular expression for parsing the potential five
146
+ * components of a URI reference.
147
+ *
148
+ * The following line is the regular expression for breaking-down a
149
+ * well-formed URI reference into its components.
150
+ *
151
+ * <pre>
152
+ * ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
153
+ * 12 3 4 5 6 7 8 9
154
+ * </pre>
155
+ *
156
+ * The numbers in the second line above are only to assist readability; they
157
+ * indicate the reference points for each subexpression (i.e., each paired
158
+ * parenthesis). We refer to the value matched for subexpression <n> as $<n>.
159
+ * For example, matching the above expression to
160
+ * <pre>
161
+ * http://www.ics.uci.edu/pub/ietf/uri/#Related
162
+ * </pre>
163
+ * results in the following subexpression matches:
164
+ * <pre>
165
+ * $1 = http:
166
+ * $2 = http
167
+ * $3 = //www.ics.uci.edu
168
+ * $4 = www.ics.uci.edu
169
+ * $5 = /pub/ietf/uri/
170
+ * $6 = <undefined>
171
+ * $7 = <undefined>
172
+ * $8 = #Related
173
+ * $9 = Related
174
+ * </pre>
175
+ * where <undefined> indicates that the component is not present, as is the
176
+ * case for the query component in the above example. Therefore, we can
177
+ * determine the value of the five components as
178
+ * <pre>
179
+ * scheme = $2
180
+ * authority = $4
181
+ * path = $5
182
+ * query = $7
183
+ * fragment = $9
184
+ * </pre>
185
+ *
186
+ * The regular expression has been modified slightly to expose the
187
+ * userInfo, domain, and port separately from the authority.
188
+ * The modified version yields
189
+ * <pre>
190
+ * $1 = http scheme
191
+ * $2 = <undefined> userInfo -\
192
+ * $3 = www.ics.uci.edu domain | authority
193
+ * $4 = <undefined> port -/
194
+ * $5 = /pub/ietf/uri/ path
195
+ * $6 = <undefined> query without ?
196
+ * $7 = Related fragment without #
197
+ * </pre>
198
+ * @type {!RegExp}
199
+ * @private
200
+ */
201
+ goog.uri.utils.splitRe_ = new RegExp(
202
+ '^' +
203
+ '(?:' +
204
+ '([^:/?#.]+)' + // scheme - ignore special characters
205
+ // used by other URL parts such as :,
206
+ // ?, /, #, and .
207
+ ':)?' +
208
+ '(?://' +
209
+ '(?:([^/?#]*)@)?' + // userInfo
210
+ '([\\w\\d\\-\\u0100-\\uffff.%]*)' + // domain - restrict to letters,
211
+ // digits, dashes, dots, percent
212
+ // escapes, and unicode characters.
213
+ '(?::([0-9]+))?' + // port
214
+ ')?' +
215
+ '([^?#]+)?' + // path
216
+ '(?:\\?([^#]*))?' + // query
217
+ '(?:#(.*))?' + // fragment
218
+ '$');
219
+
220
+
221
+ /**
222
+ * The index of each URI component in the return value of goog.uri.utils.split.
223
+ * @enum {number}
224
+ */
225
+ goog.uri.utils.ComponentIndex = {
226
+ SCHEME: 1,
227
+ USER_INFO: 2,
228
+ DOMAIN: 3,
229
+ PORT: 4,
230
+ PATH: 5,
231
+ QUERY_DATA: 6,
232
+ FRAGMENT: 7
233
+ };
234
+
235
+
236
+ /**
237
+ * Splits a URI into its component parts.
238
+ *
239
+ * Each component can be accessed via the component indices; for example:
240
+ * <pre>
241
+ * goog.uri.utils.split(someStr)[goog.uri.utils.CompontentIndex.QUERY_DATA];
242
+ * </pre>
243
+ *
244
+ * @param {string} uri The URI string to examine.
245
+ * @return {!Array.<string|undefined>} Each component still URI-encoded.
246
+ * Each component that is present will contain the encoded value, whereas
247
+ * components that are not present will be undefined or empty, depending
248
+ * on the browser's regular expression implementation. Never null, since
249
+ * arbitrary strings may still look like path names.
250
+ */
251
+ goog.uri.utils.split = function(uri) {
252
+ // See @return comment -- never null.
253
+ return /** @type {!Array.<string|undefined>} */ (
254
+ uri.match(goog.uri.utils.splitRe_));
255
+ };
256
+
257
+
258
+ /**
259
+ * @param {?string} uri A possibly null string.
260
+ * @return {?string} The string URI-decoded, or null if uri is null.
261
+ * @private
262
+ */
263
+ goog.uri.utils.decodeIfPossible_ = function(uri) {
264
+ return uri && decodeURIComponent(uri);
265
+ };
266
+
267
+
268
+ /**
269
+ * Gets a URI component by index.
270
+ *
271
+ * It is preferred to use the getPathEncoded() variety of functions ahead,
272
+ * since they are more readable.
273
+ *
274
+ * @param {goog.uri.utils.ComponentIndex} componentIndex The component index.
275
+ * @param {string} uri The URI to examine.
276
+ * @return {?string} The still-encoded component, or null if the component
277
+ * is not present.
278
+ * @private
279
+ */
280
+ goog.uri.utils.getComponentByIndex_ = function(componentIndex, uri) {
281
+ // Convert undefined, null, and empty string into null.
282
+ return goog.uri.utils.split(uri)[componentIndex] || null;
283
+ };
284
+
285
+
286
+ /**
287
+ * @param {string} uri The URI to examine.
288
+ * @return {?string} The protocol or scheme, or null if none. Does not
289
+ * include trailing colons or slashes.
290
+ */
291
+ goog.uri.utils.getScheme = function(uri) {
292
+ return goog.uri.utils.getComponentByIndex_(
293
+ goog.uri.utils.ComponentIndex.SCHEME, uri);
294
+ };
295
+
296
+
297
+ /**
298
+ * Gets the effective scheme for the URL. If the URL is relative then the
299
+ * scheme is derived from the page's location.
300
+ * @param {string} uri The URI to examine.
301
+ * @return {string} The protocol or scheme, always lower case.
302
+ */
303
+ goog.uri.utils.getEffectiveScheme = function(uri) {
304
+ var scheme = goog.uri.utils.getScheme(uri);
305
+ if (!scheme && self.location) {
306
+ var protocol = self.location.protocol;
307
+ scheme = protocol.substr(0, protocol.length - 1);
308
+ }
309
+ // NOTE: When called from a web worker in Firefox 3.5, location maybe null.
310
+ // All other browsers with web workers support self.location from the worker.
311
+ return scheme ? scheme.toLowerCase() : '';
312
+ };
313
+
314
+
315
+ /**
316
+ * @param {string} uri The URI to examine.
317
+ * @return {?string} The user name still encoded, or null if none.
318
+ */
319
+ goog.uri.utils.getUserInfoEncoded = function(uri) {
320
+ return goog.uri.utils.getComponentByIndex_(
321
+ goog.uri.utils.ComponentIndex.USER_INFO, uri);
322
+ };
323
+
324
+
325
+ /**
326
+ * @param {string} uri The URI to examine.
327
+ * @return {?string} The decoded user info, or null if none.
328
+ */
329
+ goog.uri.utils.getUserInfo = function(uri) {
330
+ return goog.uri.utils.decodeIfPossible_(
331
+ goog.uri.utils.getUserInfoEncoded(uri));
332
+ };
333
+
334
+
335
+ /**
336
+ * @param {string} uri The URI to examine.
337
+ * @return {?string} The domain name still encoded, or null if none.
338
+ */
339
+ goog.uri.utils.getDomainEncoded = function(uri) {
340
+ return goog.uri.utils.getComponentByIndex_(
341
+ goog.uri.utils.ComponentIndex.DOMAIN, uri);
342
+ };
343
+
344
+
345
+ /**
346
+ * @param {string} uri The URI to examine.
347
+ * @return {?string} The decoded domain, or null if none.
348
+ */
349
+ goog.uri.utils.getDomain = function(uri) {
350
+ return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getDomainEncoded(uri));
351
+ };
352
+
353
+
354
+ /**
355
+ * @param {string} uri The URI to examine.
356
+ * @return {?number} The port number, or null if none.
357
+ */
358
+ goog.uri.utils.getPort = function(uri) {
359
+ // Coerce to a number. If the result of getComponentByIndex_ is null or
360
+ // non-numeric, the number coersion yields NaN. This will then return
361
+ // null for all non-numeric cases (though also zero, which isn't a relevant
362
+ // port number).
363
+ return Number(goog.uri.utils.getComponentByIndex_(
364
+ goog.uri.utils.ComponentIndex.PORT, uri)) || null;
365
+ };
366
+
367
+
368
+ /**
369
+ * @param {string} uri The URI to examine.
370
+ * @return {?string} The path still encoded, or null if none. Includes the
371
+ * leading slash, if any.
372
+ */
373
+ goog.uri.utils.getPathEncoded = function(uri) {
374
+ return goog.uri.utils.getComponentByIndex_(
375
+ goog.uri.utils.ComponentIndex.PATH, uri);
376
+ };
377
+
378
+
379
+ /**
380
+ * @param {string} uri The URI to examine.
381
+ * @return {?string} The decoded path, or null if none. Includes the leading
382
+ * slash, if any.
383
+ */
384
+ goog.uri.utils.getPath = function(uri) {
385
+ return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getPathEncoded(uri));
386
+ };
387
+
388
+
389
+ /**
390
+ * @param {string} uri The URI to examine.
391
+ * @return {?string} The query data still encoded, or null if none. Does not
392
+ * include the question mark itself.
393
+ */
394
+ goog.uri.utils.getQueryData = function(uri) {
395
+ return goog.uri.utils.getComponentByIndex_(
396
+ goog.uri.utils.ComponentIndex.QUERY_DATA, uri);
397
+ };
398
+
399
+
400
+ /**
401
+ * @param {string} uri The URI to examine.
402
+ * @return {?string} The fragment identifier, or null if none. Does not
403
+ * include the hash mark itself.
404
+ */
405
+ goog.uri.utils.getFragmentEncoded = function(uri) {
406
+ // The hash mark may not appear in any other part of the URL.
407
+ var hashIndex = uri.indexOf('#');
408
+ return hashIndex < 0 ? null : uri.substr(hashIndex + 1);
409
+ };
410
+
411
+
412
+ /**
413
+ * @param {string} uri The URI to examine.
414
+ * @param {?string} fragment The encoded fragment identifier, or null if none.
415
+ * Does not include the hash mark itself.
416
+ * @return {string} The URI with the fragment set.
417
+ */
418
+ goog.uri.utils.setFragmentEncoded = function(uri, fragment) {
419
+ return goog.uri.utils.removeFragment(uri) + (fragment ? '#' + fragment : '');
420
+ };
421
+
422
+
423
+ /**
424
+ * @param {string} uri The URI to examine.
425
+ * @return {?string} The decoded fragment identifier, or null if none. Does
426
+ * not include the hash mark.
427
+ */
428
+ goog.uri.utils.getFragment = function(uri) {
429
+ return goog.uri.utils.decodeIfPossible_(
430
+ goog.uri.utils.getFragmentEncoded(uri));
431
+ };
432
+
433
+
434
+ /**
435
+ * Extracts everything up to the port of the URI.
436
+ * @param {string} uri The URI string.
437
+ * @return {string} Everything up to and including the port.
438
+ */
439
+ goog.uri.utils.getHost = function(uri) {
440
+ var pieces = goog.uri.utils.split(uri);
441
+ return goog.uri.utils.buildFromEncodedParts(
442
+ pieces[goog.uri.utils.ComponentIndex.SCHEME],
443
+ pieces[goog.uri.utils.ComponentIndex.USER_INFO],
444
+ pieces[goog.uri.utils.ComponentIndex.DOMAIN],
445
+ pieces[goog.uri.utils.ComponentIndex.PORT]);
446
+ };
447
+
448
+
449
+ /**
450
+ * Extracts the path of the URL and everything after.
451
+ * @param {string} uri The URI string.
452
+ * @return {string} The URI, starting at the path and including the query
453
+ * parameters and fragment identifier.
454
+ */
455
+ goog.uri.utils.getPathAndAfter = function(uri) {
456
+ var pieces = goog.uri.utils.split(uri);
457
+ return goog.uri.utils.buildFromEncodedParts(null, null, null, null,
458
+ pieces[goog.uri.utils.ComponentIndex.PATH],
459
+ pieces[goog.uri.utils.ComponentIndex.QUERY_DATA],
460
+ pieces[goog.uri.utils.ComponentIndex.FRAGMENT]);
461
+ };
462
+
463
+
464
+ /**
465
+ * Gets the URI with the fragment identifier removed.
466
+ * @param {string} uri The URI to examine.
467
+ * @return {string} Everything preceding the hash mark.
468
+ */
469
+ goog.uri.utils.removeFragment = function(uri) {
470
+ // The hash mark may not appear in any other part of the URL.
471
+ var hashIndex = uri.indexOf('#');
472
+ return hashIndex < 0 ? uri : uri.substr(0, hashIndex);
473
+ };
474
+
475
+
476
+ /**
477
+ * Ensures that two URI's have the exact same domain, scheme, and port.
478
+ *
479
+ * Unlike the version in goog.Uri, this checks protocol, and therefore is
480
+ * suitable for checking against the browser's same-origin policy.
481
+ *
482
+ * @param {string} uri1 The first URI.
483
+ * @param {string} uri2 The second URI.
484
+ * @return {boolean} Whether they have the same domain and port.
485
+ */
486
+ goog.uri.utils.haveSameDomain = function(uri1, uri2) {
487
+ var pieces1 = goog.uri.utils.split(uri1);
488
+ var pieces2 = goog.uri.utils.split(uri2);
489
+ return pieces1[goog.uri.utils.ComponentIndex.DOMAIN] ==
490
+ pieces2[goog.uri.utils.ComponentIndex.DOMAIN] &&
491
+ pieces1[goog.uri.utils.ComponentIndex.SCHEME] ==
492
+ pieces2[goog.uri.utils.ComponentIndex.SCHEME] &&
493
+ pieces1[goog.uri.utils.ComponentIndex.PORT] ==
494
+ pieces2[goog.uri.utils.ComponentIndex.PORT];
495
+ };
496
+
497
+
498
+ /**
499
+ * Asserts that there are no fragment or query identifiers, only in uncompiled
500
+ * mode.
501
+ * @param {string} uri The URI to examine.
502
+ * @private
503
+ */
504
+ goog.uri.utils.assertNoFragmentsOrQueries_ = function(uri) {
505
+ // NOTE: would use goog.asserts here, but jscompiler doesn't know that
506
+ // indexOf has no side effects.
507
+ if (goog.DEBUG && (uri.indexOf('#') >= 0 || uri.indexOf('?') >= 0)) {
508
+ throw Error('goog.uri.utils: Fragment or query identifiers are not ' +
509
+ 'supported: [' + uri + ']');
510
+ }
511
+ };
512
+
513
+
514
+ /**
515
+ * Supported query parameter values by the parameter serializing utilities.
516
+ *
517
+ * If a value is null or undefined, the key-value pair is skipped, as an easy
518
+ * way to omit parameters conditionally. Non-array parameters are converted
519
+ * to a string and URI encoded. Array values are expanded into multiple
520
+ * &key=value pairs, with each element stringized and URI-encoded.
521
+ *
522
+ * @typedef {*}
523
+ */
524
+ goog.uri.utils.QueryValue;
525
+
526
+
527
+ /**
528
+ * An array representing a set of query parameters with alternating keys
529
+ * and values.
530
+ *
531
+ * Keys are assumed to be URI encoded already and live at even indices. See
532
+ * goog.uri.utils.QueryValue for details on how parameter values are encoded.
533
+ *
534
+ * Example:
535
+ * <pre>
536
+ * var data = [
537
+ * // Simple param: ?name=BobBarker
538
+ * 'name', 'BobBarker',
539
+ * // Conditional param -- may be omitted entirely.
540
+ * 'specialDietaryNeeds', hasDietaryNeeds() ? getDietaryNeeds() : null,
541
+ * // Multi-valued param: &house=LosAngeles&house=NewYork&house=null
542
+ * 'house', ['LosAngeles', 'NewYork', null]
543
+ * ];
544
+ * </pre>
545
+ *
546
+ * @typedef {!Array.<string|goog.uri.utils.QueryValue>}
547
+ */
548
+ goog.uri.utils.QueryArray;
549
+
550
+
551
+ /**
552
+ * Appends a URI and query data in a string buffer with special preconditions.
553
+ *
554
+ * Internal implementation utility, performing very few object allocations.
555
+ *
556
+ * @param {!Array.<string|undefined>} buffer A string buffer. The first element
557
+ * must be the base URI, and may have a fragment identifier. If the array
558
+ * contains more than one element, the second element must be an ampersand,
559
+ * and may be overwritten, depending on the base URI. Undefined elements
560
+ * are treated as empty-string.
561
+ * @return {string} The concatenated URI and query data.
562
+ * @private
563
+ */
564
+ goog.uri.utils.appendQueryData_ = function(buffer) {
565
+ if (buffer[1]) {
566
+ // At least one query parameter was added. We need to check the
567
+ // punctuation mark, which is currently an ampersand, and also make sure
568
+ // there aren't any interfering fragment identifiers.
569
+ var baseUri = /** @type {string} */ (buffer[0]);
570
+ var hashIndex = baseUri.indexOf('#');
571
+ if (hashIndex >= 0) {
572
+ // Move the fragment off the base part of the URI into the end.
573
+ buffer.push(baseUri.substr(hashIndex));
574
+ buffer[0] = baseUri = baseUri.substr(0, hashIndex);
575
+ }
576
+ var questionIndex = baseUri.indexOf('?');
577
+ if (questionIndex < 0) {
578
+ // No question mark, so we need a question mark instead of an ampersand.
579
+ buffer[1] = '?';
580
+ } else if (questionIndex == baseUri.length - 1) {
581
+ // Question mark is the very last character of the existing URI, so don't
582
+ // append an additional delimiter.
583
+ buffer[1] = undefined;
584
+ }
585
+ }
586
+
587
+ return buffer.join('');
588
+ };
589
+
590
+
591
+ /**
592
+ * Appends key=value pairs to an array, supporting multi-valued objects.
593
+ * @param {string} key The key prefix.
594
+ * @param {goog.uri.utils.QueryValue} value The value to serialize.
595
+ * @param {!Array.<string>} pairs The array to which the 'key=value' strings
596
+ * should be appended.
597
+ * @private
598
+ */
599
+ goog.uri.utils.appendKeyValuePairs_ = function(key, value, pairs) {
600
+ if (goog.isArray(value)) {
601
+ // It's an array, so append all elements. Here, we must convince
602
+ // jscompiler that it is, indeed, an array.
603
+ value = /** @type {Array} */ (value);
604
+ for (var j = 0; j < value.length; j++) {
605
+ pairs.push('&', key);
606
+ // Check for empty string, null and undefined get encoded
607
+ // into the url as literal strings
608
+ if (value[j] !== '') {
609
+ pairs.push('=', goog.string.urlEncode(value[j]));
610
+ }
611
+ }
612
+ } else if (value != null) {
613
+ // Not null or undefined, so safe to append.
614
+ pairs.push('&', key);
615
+ // Check for empty string, null and undefined get encoded
616
+ // into the url as literal strings
617
+ if (value !== '') {
618
+ pairs.push('=', goog.string.urlEncode(value));
619
+ }
620
+ }
621
+ };
622
+
623
+
624
+ /**
625
+ * Builds a buffer of query data from a sequence of alternating keys and values.
626
+ *
627
+ * @param {!Array.<string|undefined>} buffer A string buffer to append to. The
628
+ * first element appended will be an '&', and may be replaced by the caller.
629
+ * @param {goog.uri.utils.QueryArray|Arguments} keysAndValues An array with
630
+ * alternating keys and values -- see the typedef.
631
+ * @param {number=} opt_startIndex A start offset into the arary, defaults to 0.
632
+ * @return {!Array.<string|undefined>} The buffer argument.
633
+ * @private
634
+ */
635
+ goog.uri.utils.buildQueryDataBuffer_ = function(
636
+ buffer, keysAndValues, opt_startIndex) {
637
+ goog.asserts.assert(Math.max(keysAndValues.length - (opt_startIndex || 0),
638
+ 0) % 2 == 0, 'goog.uri.utils: Key/value lists must be even in length.');
639
+
640
+ for (var i = opt_startIndex || 0; i < keysAndValues.length; i += 2) {
641
+ goog.uri.utils.appendKeyValuePairs_(
642
+ keysAndValues[i], keysAndValues[i + 1], buffer);
643
+ }
644
+
645
+ return buffer;
646
+ };
647
+
648
+
649
+ /**
650
+ * Builds a query data string from a sequence of alternating keys and values.
651
+ * Currently generates "&key&" for empty args.
652
+ *
653
+ * @param {goog.uri.utils.QueryArray} keysAndValues Alternating keys and
654
+ * values. See the typedef.
655
+ * @param {number=} opt_startIndex A start offset into the arary, defaults to 0.
656
+ * @return {string} The encoded query string, in the for 'a=1&b=2'.
657
+ */
658
+ goog.uri.utils.buildQueryData = function(keysAndValues, opt_startIndex) {
659
+ var buffer = goog.uri.utils.buildQueryDataBuffer_(
660
+ [], keysAndValues, opt_startIndex);
661
+ buffer[0] = ''; // Remove the leading ampersand.
662
+ return buffer.join('');
663
+ };
664
+
665
+
666
+ /**
667
+ * Builds a buffer of query data from a map.
668
+ *
669
+ * @param {!Array.<string|undefined>} buffer A string buffer to append to. The
670
+ * first element appended will be an '&', and may be replaced by the caller.
671
+ * @param {Object.<goog.uri.utils.QueryValue>} map An object where keys are
672
+ * URI-encoded parameter keys, and the values conform to the contract
673
+ * specified in the goog.uri.utils.QueryValue typedef.
674
+ * @return {!Array.<string|undefined>} The buffer argument.
675
+ * @private
676
+ */
677
+ goog.uri.utils.buildQueryDataBufferFromMap_ = function(buffer, map) {
678
+ for (var key in map) {
679
+ goog.uri.utils.appendKeyValuePairs_(key, map[key], buffer);
680
+ }
681
+
682
+ return buffer;
683
+ };
684
+
685
+
686
+ /**
687
+ * Builds a query data string from a map.
688
+ * Currently generates "&key&" for empty args.
689
+ *
690
+ * @param {Object} map An object where keys are URI-encoded parameter keys,
691
+ * and the values are arbitrary types or arrays. Keys with a null value
692
+ * are dropped.
693
+ * @return {string} The encoded query string, in the for 'a=1&b=2'.
694
+ */
695
+ goog.uri.utils.buildQueryDataFromMap = function(map) {
696
+ var buffer = goog.uri.utils.buildQueryDataBufferFromMap_([], map);
697
+ buffer[0] = '';
698
+ return buffer.join('');
699
+ };
700
+
701
+
702
+ /**
703
+ * Appends URI parameters to an existing URI.
704
+ *
705
+ * The variable arguments may contain alternating keys and values. Keys are
706
+ * assumed to be already URI encoded. The values should not be URI-encoded,
707
+ * and will instead be encoded by this function.
708
+ * <pre>
709
+ * appendParams('http://www.foo.com?existing=true',
710
+ * 'key1', 'value1',
711
+ * 'key2', 'value?willBeEncoded',
712
+ * 'key3', ['valueA', 'valueB', 'valueC'],
713
+ * 'key4', null);
714
+ * result: 'http://www.foo.com?existing=true&' +
715
+ * 'key1=value1&' +
716
+ * 'key2=value%3FwillBeEncoded&' +
717
+ * 'key3=valueA&key3=valueB&key3=valueC'
718
+ * </pre>
719
+ *
720
+ * A single call to this function will not exhibit quadratic behavior in IE,
721
+ * whereas multiple repeated calls may, although the effect is limited by
722
+ * fact that URL's generally can't exceed 2kb.
723
+ *
724
+ * @param {string} uri The original URI, which may already have query data.
725
+ * @param {...(goog.uri.utils.QueryArray|string|goog.uri.utils.QueryValue)} var_args
726
+ * An array or argument list conforming to goog.uri.utils.QueryArray.
727
+ * @return {string} The URI with all query parameters added.
728
+ */
729
+ goog.uri.utils.appendParams = function(uri, var_args) {
730
+ return goog.uri.utils.appendQueryData_(
731
+ arguments.length == 2 ?
732
+ goog.uri.utils.buildQueryDataBuffer_([uri], arguments[1], 0) :
733
+ goog.uri.utils.buildQueryDataBuffer_([uri], arguments, 1));
734
+ };
735
+
736
+
737
+ /**
738
+ * Appends query parameters from a map.
739
+ *
740
+ * @param {string} uri The original URI, which may already have query data.
741
+ * @param {Object} map An object where keys are URI-encoded parameter keys,
742
+ * and the values are arbitrary types or arrays. Keys with a null value
743
+ * are dropped.
744
+ * @return {string} The new parameters.
745
+ */
746
+ goog.uri.utils.appendParamsFromMap = function(uri, map) {
747
+ return goog.uri.utils.appendQueryData_(
748
+ goog.uri.utils.buildQueryDataBufferFromMap_([uri], map));
749
+ };
750
+
751
+
752
+ /**
753
+ * Appends a single URI parameter.
754
+ *
755
+ * Repeated calls to this can exhibit quadratic behavior in IE6 due to the
756
+ * way string append works, though it should be limited given the 2kb limit.
757
+ *
758
+ * @param {string} uri The original URI, which may already have query data.
759
+ * @param {string} key The key, which must already be URI encoded.
760
+ * @param {*} value The value, which will be stringized and encoded (assumed
761
+ * not already to be encoded).
762
+ * @return {string} The URI with the query parameter added.
763
+ */
764
+ goog.uri.utils.appendParam = function(uri, key, value) {
765
+ return goog.uri.utils.appendQueryData_(
766
+ [uri, '&', key, '=', goog.string.urlEncode(value)]);
767
+ };
768
+
769
+
770
+ /**
771
+ * Finds the next instance of a query parameter with the specified name.
772
+ *
773
+ * Does not instantiate any objects.
774
+ *
775
+ * @param {string} uri The URI to search. May contain a fragment identifier
776
+ * if opt_hashIndex is specified.
777
+ * @param {number} startIndex The index to begin searching for the key at. A
778
+ * match may be found even if this is one character after the ampersand.
779
+ * @param {string} keyEncoded The URI-encoded key.
780
+ * @param {number} hashOrEndIndex Index to stop looking at. If a hash
781
+ * mark is present, it should be its index, otherwise it should be the
782
+ * length of the string.
783
+ * @return {number} The position of the first character in the key's name,
784
+ * immediately after either a question mark or a dot.
785
+ * @private
786
+ */
787
+ goog.uri.utils.findParam_ = function(
788
+ uri, startIndex, keyEncoded, hashOrEndIndex) {
789
+ var index = startIndex;
790
+ var keyLength = keyEncoded.length;
791
+
792
+ // Search for the key itself and post-filter for surronuding punctuation,
793
+ // rather than expensively building a regexp.
794
+ while ((index = uri.indexOf(keyEncoded, index)) >= 0 &&
795
+ index < hashOrEndIndex) {
796
+ var precedingChar = uri.charCodeAt(index - 1);
797
+ // Ensure that the preceding character is '&' or '?'.
798
+ if (precedingChar == goog.uri.utils.CharCode_.AMPERSAND ||
799
+ precedingChar == goog.uri.utils.CharCode_.QUESTION) {
800
+ // Ensure the following character is '&', '=', '#', or NaN
801
+ // (end of string).
802
+ var followingChar = uri.charCodeAt(index + keyLength);
803
+ if (!followingChar ||
804
+ followingChar == goog.uri.utils.CharCode_.EQUAL ||
805
+ followingChar == goog.uri.utils.CharCode_.AMPERSAND ||
806
+ followingChar == goog.uri.utils.CharCode_.HASH) {
807
+ return index;
808
+ }
809
+ }
810
+ index += keyLength + 1;
811
+ }
812
+
813
+ return -1;
814
+ };
815
+
816
+
817
+ /**
818
+ * Regular expression for finding a hash mark or end of string.
819
+ * @type {RegExp}
820
+ * @private
821
+ */
822
+ goog.uri.utils.hashOrEndRe_ = /#|$/;
823
+
824
+
825
+ /**
826
+ * Determines if the URI contains a specific key.
827
+ *
828
+ * Performs no object instantiations.
829
+ *
830
+ * @param {string} uri The URI to process. May contain a fragment
831
+ * identifier.
832
+ * @param {string} keyEncoded The URI-encoded key. Case-sensitive.
833
+ * @return {boolean} Whether the key is present.
834
+ */
835
+ goog.uri.utils.hasParam = function(uri, keyEncoded) {
836
+ return goog.uri.utils.findParam_(uri, 0, keyEncoded,
837
+ uri.search(goog.uri.utils.hashOrEndRe_)) >= 0;
838
+ };
839
+
840
+
841
+ /**
842
+ * Gets the first value of a query parameter.
843
+ * @param {string} uri The URI to process. May contain a fragment.
844
+ * @param {string} keyEncoded The URI-encoded key. Case-sensitive.
845
+ * @return {?string} The first value of the parameter (URI-decoded), or null
846
+ * if the parameter is not found.
847
+ */
848
+ goog.uri.utils.getParamValue = function(uri, keyEncoded) {
849
+ var hashOrEndIndex = uri.search(goog.uri.utils.hashOrEndRe_);
850
+ var foundIndex = goog.uri.utils.findParam_(
851
+ uri, 0, keyEncoded, hashOrEndIndex);
852
+
853
+ if (foundIndex < 0) {
854
+ return null;
855
+ } else {
856
+ var endPosition = uri.indexOf('&', foundIndex);
857
+ if (endPosition < 0 || endPosition > hashOrEndIndex) {
858
+ endPosition = hashOrEndIndex;
859
+ }
860
+ // Progress forth to the end of the "key=" or "key&" substring.
861
+ foundIndex += keyEncoded.length + 1;
862
+ // Use substr, because it (unlike substring) will return empty string
863
+ // if foundIndex > endPosition.
864
+ return goog.string.urlDecode(
865
+ uri.substr(foundIndex, endPosition - foundIndex));
866
+ }
867
+ };
868
+
869
+
870
+ /**
871
+ * Gets all values of a query parameter.
872
+ * @param {string} uri The URI to process. May contain a framgnet.
873
+ * @param {string} keyEncoded The URI-encoded key. Case-snsitive.
874
+ * @return {!Array.<string>} All URI-decoded values with the given key.
875
+ * If the key is not found, this will have length 0, but never be null.
876
+ */
877
+ goog.uri.utils.getParamValues = function(uri, keyEncoded) {
878
+ var hashOrEndIndex = uri.search(goog.uri.utils.hashOrEndRe_);
879
+ var position = 0;
880
+ var foundIndex;
881
+ var result = [];
882
+
883
+ while ((foundIndex = goog.uri.utils.findParam_(
884
+ uri, position, keyEncoded, hashOrEndIndex)) >= 0) {
885
+ // Find where this parameter ends, either the '&' or the end of the
886
+ // query parameters.
887
+ position = uri.indexOf('&', foundIndex);
888
+ if (position < 0 || position > hashOrEndIndex) {
889
+ position = hashOrEndIndex;
890
+ }
891
+
892
+ // Progress forth to the end of the "key=" or "key&" substring.
893
+ foundIndex += keyEncoded.length + 1;
894
+ // Use substr, because it (unlike substring) will return empty string
895
+ // if foundIndex > position.
896
+ result.push(goog.string.urlDecode(uri.substr(
897
+ foundIndex, position - foundIndex)));
898
+ }
899
+
900
+ return result;
901
+ };
902
+
903
+
904
+ /**
905
+ * Regexp to find trailing question marks and ampersands.
906
+ * @type {RegExp}
907
+ * @private
908
+ */
909
+ goog.uri.utils.trailingQueryPunctuationRe_ = /[?&]($|#)/;
910
+
911
+
912
+ /**
913
+ * Removes all instances of a query parameter.
914
+ * @param {string} uri The URI to process. Must not contain a fragment.
915
+ * @param {string} keyEncoded The URI-encoded key.
916
+ * @return {string} The URI with all instances of the parameter removed.
917
+ */
918
+ goog.uri.utils.removeParam = function(uri, keyEncoded) {
919
+ var hashOrEndIndex = uri.search(goog.uri.utils.hashOrEndRe_);
920
+ var position = 0;
921
+ var foundIndex;
922
+ var buffer = [];
923
+
924
+ // Look for a query parameter.
925
+ while ((foundIndex = goog.uri.utils.findParam_(
926
+ uri, position, keyEncoded, hashOrEndIndex)) >= 0) {
927
+ // Get the portion of the query string up to, but not including, the ?
928
+ // or & starting the parameter.
929
+ buffer.push(uri.substring(position, foundIndex));
930
+ // Progress to immediately after the '&'. If not found, go to the end.
931
+ // Avoid including the hash mark.
932
+ position = Math.min((uri.indexOf('&', foundIndex) + 1) || hashOrEndIndex,
933
+ hashOrEndIndex);
934
+ }
935
+
936
+ // Append everything that is remaining.
937
+ buffer.push(uri.substr(position));
938
+
939
+ // Join the buffer, and remove trailing punctuation that remains.
940
+ return buffer.join('').replace(
941
+ goog.uri.utils.trailingQueryPunctuationRe_, '$1');
942
+ };
943
+
944
+
945
+ /**
946
+ * Replaces all existing definitions of a parameter with a single definition.
947
+ *
948
+ * Repeated calls to this can exhibit quadratic behavior in IE6 due to the
949
+ * way string append works, though it should be limited given the 2kb limit.
950
+ *
951
+ * @param {string} uri The original URI, which may already have query data.
952
+ * @param {string} keyEncoded The key, which must already be URI encoded.
953
+ * @param {*} value The value, which will be stringized and encoded (assumed
954
+ * not already to be encoded).
955
+ * @return {string} The URI with the query parameter added.
956
+ */
957
+ goog.uri.utils.setParam = function(uri, keyEncoded, value) {
958
+ return goog.uri.utils.appendParam(
959
+ goog.uri.utils.removeParam(uri, keyEncoded), keyEncoded, value);
960
+ };
961
+
962
+
963
+ /**
964
+ * Generates a URI path using a given URI and a path with checks to
965
+ * prevent consecutive "//". The baseUri passed in must not contain
966
+ * query or fragment identifiers. The path to append may not contain query or
967
+ * fragment identifiers.
968
+ *
969
+ * @param {string} baseUri URI to use as the base.
970
+ * @param {string} path Path to append.
971
+ * @return {string} Updated URI.
972
+ */
973
+ goog.uri.utils.appendPath = function(baseUri, path) {
974
+ goog.uri.utils.assertNoFragmentsOrQueries_(baseUri);
975
+
976
+ // Remove any trailing '/'
977
+ if (goog.string.endsWith(baseUri, '/')) {
978
+ baseUri = baseUri.substr(0, baseUri.length - 1);
979
+ }
980
+ // Remove any leading '/'
981
+ if (goog.string.startsWith(path, '/')) {
982
+ path = path.substr(1);
983
+ }
984
+ return goog.string.buildString(baseUri, '/', path);
985
+ };
986
+
987
+
988
+ /**
989
+ * Standard supported query parameters.
990
+ * @enum {string}
991
+ */
992
+ goog.uri.utils.StandardQueryParam = {
993
+
994
+ /** Unused parameter for unique-ifying. */
995
+ RANDOM: 'zx'
996
+ };
997
+
998
+
999
+ /**
1000
+ * Sets the zx parameter of a URI to a random value.
1001
+ * @param {string} uri Any URI.
1002
+ * @return {string} That URI with the "zx" parameter added or replaced to
1003
+ * contain a random string.
1004
+ */
1005
+ goog.uri.utils.makeUnique = function(uri) {
1006
+ return goog.uri.utils.setParam(uri,
1007
+ goog.uri.utils.StandardQueryParam.RANDOM, goog.string.getRandomString());
1008
+ };
1009
+ ;
1010
+ FI"asset_paths;
1011
+ F["k/Volumes/Development/dev-web/yellow-brick-road/vendor/assets/closure-library/closure/goog/uri/utils.jsI"dependency_paths;
1012
+ F[{I" path;
1013
+ F"k/Volumes/Development/dev-web/yellow-brick-road/vendor/assets/closure-library/closure/goog/uri/utils.jsI"
1014
+ mtime;
1015
+ FIu: Time
1016
+ T: offsetiI"hexdigest;
1017
+ F"%af9ac7cf03df1565f21321fdf63c594cI"
1018
+ F"%46dde6621c301f4928e3b34efee9e3b5