upjs-rails 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (239) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -1
  3. data/dist/up.js +138 -81
  4. data/dist/up.min.js +2 -2
  5. data/lib/assets/javascripts/up/boot.js.coffee +3 -0
  6. data/lib/assets/javascripts/up/browser.js.coffee +42 -26
  7. data/lib/assets/javascripts/up/flow.js.coffee +6 -4
  8. data/lib/assets/javascripts/up/history.js.coffee +1 -1
  9. data/lib/assets/javascripts/up/modal.js.coffee +4 -4
  10. data/lib/assets/javascripts/up/motion.js.coffee +6 -4
  11. data/lib/assets/javascripts/up/proxy.js.coffee +2 -1
  12. data/lib/assets/javascripts/up/util.js.coffee +61 -32
  13. data/lib/assets/javascripts/up.js.coffee +1 -10
  14. data/lib/upjs/rails/version.rb +1 -1
  15. data/spec_app/config/environments/development.rb +1 -1
  16. data/spec_app/spec/javascripts/helpers/reset_path.js.coffee +3 -2
  17. data/spec_app/spec/javascripts/up/flow_spec.js.coffee +1 -1
  18. data/spec_app/spec/javascripts/up/history_spec.js.coffee +53 -47
  19. data/spec_app/spec/javascripts/up/link_spec.js.coffee +1 -1
  20. data/spec_app/spec/javascripts/up/motion_spec.js.coffee +4 -4
  21. data/spec_app/spec/javascripts/up/proxy_spec.js.coffee +18 -9
  22. data/spec_app/vendor/assets/bower_components/jasmine/.bower.json +43 -7
  23. data/spec_app/vendor/assets/bower_components/jasmine/CONTRIBUTING.md +26 -17
  24. data/spec_app/vendor/assets/bower_components/jasmine/README.md +27 -18
  25. data/spec_app/vendor/assets/bower_components/jasmine/RELEASE.md +15 -5
  26. data/spec_app/vendor/assets/bower_components/jasmine/bower.json +41 -0
  27. data/spec_app/vendor/assets/bower_components/jasmine/lib/console/console.js +27 -3
  28. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/boot.js +10 -9
  29. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/{src → lib/jasmine_examples}/Player.js +0 -0
  30. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/{src → lib/jasmine_examples}/Song.js +0 -0
  31. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/jasmine-html.js +76 -20
  32. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/jasmine.css +15 -18
  33. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/jasmine.js +1399 -694
  34. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/json2.js +73 -62
  35. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/node_boot.js +1 -1
  36. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core.js +29 -31
  37. data/spec_app/vendor/assets/bower_components/jasmine/package.json +18 -7
  38. data/spec_app/vendor/assets/bower_components/jasmine-ajax/.bower.json +11 -13
  39. data/spec_app/vendor/assets/bower_components/jasmine-ajax/MIT.LICENSE +1 -1
  40. data/spec_app/vendor/assets/bower_components/jasmine-ajax/README.markdown +198 -125
  41. data/spec_app/vendor/assets/bower_components/jasmine-ajax/bower.json +9 -10
  42. data/spec_app/vendor/assets/bower_components/jasmine-ajax/lib/mock-ajax.js +250 -59
  43. data/spec_app/vendor/assets/bower_components/jasmine-ajax/package.json +9 -4
  44. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/2.0.2.md +50 -0
  45. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/2.99.md +14 -0
  46. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.0.md +28 -0
  47. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.1.0.md +24 -0
  48. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.1.1.md +23 -0
  49. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.2.0.md +20 -0
  50. data/spec_app/vendor/assets/bower_components/jasmine-fixture/.bower.json +4 -4
  51. data/spec_app/vendor/assets/bower_components/jasmine-fixture/bower.json +1 -1
  52. data/spec_app/vendor/assets/bower_components/jasmine-fixture/dist/jasmine-fixture.js +4 -4
  53. data/spec_app/vendor/assets/bower_components/jasmine-fixture/dist/jasmine-fixture.min.js +2 -2
  54. data/spec_app/vendor/assets/bower_components/jasmine-jquery/.bower.json +4 -4
  55. data/spec_app/vendor/assets/bower_components/jasmine-jquery/Gruntfile.js +17 -1
  56. data/spec_app/vendor/assets/bower_components/jasmine-jquery/{MIT.LICENSE → LICENSE} +0 -0
  57. data/spec_app/vendor/assets/bower_components/jasmine-jquery/README.md +14 -9
  58. data/spec_app/vendor/assets/bower_components/jasmine-jquery/bower.json +0 -1
  59. data/spec_app/vendor/assets/bower_components/jasmine-jquery/lib/jasmine-jquery.js +35 -10
  60. data/spec_app/vendor/assets/bower_components/jasmine-jquery/package.json +33 -24
  61. data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/fixtures/fixture_with_checkbox_with_checked.html +6 -0
  62. data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/suites/jasmine-jquery-spec.js +61 -1
  63. data/spec_app/vendor/assets/bower_components/jquery/.bower.json +5 -4
  64. data/spec_app/vendor/assets/bower_components/jquery/bower.json +2 -1
  65. data/spec_app/vendor/assets/bower_components/jquery/dist/jquery.js +9 -4
  66. data/spec_app/vendor/assets/bower_components/jquery/dist/jquery.min.js +4 -4
  67. data/spec_app/vendor/assets/bower_components/jquery/dist/jquery.min.map +1 -1
  68. data/spec_app/vendor/assets/bower_components/jquery/src/core.js +6 -1
  69. metadata +14 -175
  70. data/spec_app/vendor/assets/bower_components/jasmine/.gitignore +0 -24
  71. data/spec_app/vendor/assets/bower_components/jasmine/.gitmodules +0 -3
  72. data/spec_app/vendor/assets/bower_components/jasmine/.jshintrc +0 -9
  73. data/spec_app/vendor/assets/bower_components/jasmine/.npmignore +0 -21
  74. data/spec_app/vendor/assets/bower_components/jasmine/.rspec +0 -1
  75. data/spec_app/vendor/assets/bower_components/jasmine/.travis.yml +0 -51
  76. data/spec_app/vendor/assets/bower_components/jasmine/Gemfile +0 -12
  77. data/spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js +0 -53
  78. data/spec_app/vendor/assets/bower_components/jasmine/Rakefile +0 -18
  79. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.0.0.zip +0 -0
  80. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.1.0.zip +0 -0
  81. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.2.0.zip +0 -0
  82. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.3.0.zip +0 -0
  83. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.3.1.zip +0 -0
  84. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-2.0.0.zip +0 -0
  85. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-2.0.1.zip +0 -0
  86. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-2.0.2.zip +0 -0
  87. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-2.0.3.zip +0 -0
  88. data/spec_app/vendor/assets/bower_components/jasmine/grunt/config/compass.js +0 -10
  89. data/spec_app/vendor/assets/bower_components/jasmine/grunt/config/compress.js +0 -66
  90. data/spec_app/vendor/assets/bower_components/jasmine/grunt/config/concat.js +0 -61
  91. data/spec_app/vendor/assets/bower_components/jasmine/grunt/config/jshint.js +0 -11
  92. data/spec_app/vendor/assets/bower_components/jasmine/grunt/tasks/build_standalone.js +0 -31
  93. data/spec_app/vendor/assets/bower_components/jasmine/grunt/tasks/version.js +0 -14
  94. data/spec_app/vendor/assets/bower_components/jasmine/grunt/templates/SpecRunner.html.jst +0 -26
  95. data/spec_app/vendor/assets/bower_components/jasmine/grunt/templates/licenseBanner.js.jst +0 -22
  96. data/spec_app/vendor/assets/bower_components/jasmine/grunt/templates/version.rb.jst +0 -9
  97. data/spec_app/vendor/assets/bower_components/jasmine/images/__init__.py +0 -0
  98. data/spec_app/vendor/assets/bower_components/jasmine/jasmine-core.gemspec +0 -23
  99. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/__init__.py +0 -1
  100. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/boot/boot.js +0 -120
  101. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/boot/node_boot.js +0 -19
  102. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/core.py +0 -60
  103. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/spec/PlayerSpec.js +0 -60
  104. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/spec/SpecHelper.js +0 -15
  105. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/spec/PlayerSpec.js +0 -58
  106. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/spec/SpecHelper.js +0 -15
  107. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/src/Player.js +0 -22
  108. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/src/Song.js +0 -7
  109. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/version.rb +0 -9
  110. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core.rb +0 -53
  111. data/spec_app/vendor/assets/bower_components/jasmine/release_notes/2.0.1.md +0 -70
  112. data/spec_app/vendor/assets/bower_components/jasmine/release_notes/2.0.2.md +0 -25
  113. data/spec_app/vendor/assets/bower_components/jasmine/release_notes/20.md +0 -179
  114. data/spec_app/vendor/assets/bower_components/jasmine/setup.py +0 -47
  115. data/spec_app/vendor/assets/bower_components/jasmine/spec/console/ConsoleReporterSpec.js +0 -239
  116. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/AnySpec.js +0 -46
  117. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/CallTrackerSpec.js +0 -105
  118. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ClockSpec.js +0 -445
  119. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/DelayedFunctionSchedulerSpec.js +0 -246
  120. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/EnvSpec.js +0 -85
  121. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ExceptionFormatterSpec.js +0 -63
  122. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ExceptionsSpec.js +0 -68
  123. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ExpectationResultSpec.js +0 -61
  124. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ExpectationSpec.js +0 -427
  125. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/JsApiReporterSpec.js +0 -214
  126. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/MockDateSpec.js +0 -199
  127. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ObjectContainingSpec.js +0 -70
  128. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/PrettyPrintSpec.js +0 -156
  129. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/QueueRunnerSpec.js +0 -271
  130. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ReportDispatcherSpec.js +0 -40
  131. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/SpecSpec.js +0 -260
  132. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/SpySpec.js +0 -67
  133. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/SpyStrategySpec.js +0 -111
  134. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/SuiteSpec.js +0 -216
  135. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/TimerSpec.js +0 -31
  136. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/UtilSpec.js +0 -28
  137. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/integration/CustomMatchersSpec.js +0 -149
  138. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/integration/EnvSpec.js +0 -506
  139. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/integration/SpecRunningSpec.js +0 -306
  140. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/matchersUtilSpec.js +0 -239
  141. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeCloseToSpec.js +0 -51
  142. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeDefinedSpec.js +0 -18
  143. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeFalsySpec.js +0 -38
  144. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeGreaterThanSpec.js +0 -20
  145. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js +0 -20
  146. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeNaNSpec.js +0 -37
  147. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeNullSpec.js +0 -17
  148. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeSpec.js +0 -17
  149. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeTruthySpec.js +0 -38
  150. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeUndefinedSpec.js +0 -18
  151. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toContainSpec.js +0 -26
  152. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toEqualSpec.js +0 -28
  153. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toHaveBeenCalledSpec.js +0 -47
  154. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toHaveBeenCalledWithSpec.js +0 -66
  155. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toMatchSpec.js +0 -34
  156. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toThrowErrorSpec.js +0 -280
  157. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toThrowSpec.js +0 -99
  158. data/spec_app/vendor/assets/bower_components/jasmine/spec/helpers/BrowserFlags.js +0 -23
  159. data/spec_app/vendor/assets/bower_components/jasmine/spec/helpers/defineJasmineUnderTest.js +0 -7
  160. data/spec_app/vendor/assets/bower_components/jasmine/spec/helpers/nodeDefineJasmineUnderTest.js +0 -33
  161. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/HtmlReporterSpec.js +0 -616
  162. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/HtmlSpecFilterSpec.js +0 -18
  163. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/MatchersHtmlSpec.js +0 -37
  164. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/PrettyPrintHtmlSpec.js +0 -15
  165. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/QueryStringSpec.js +0 -43
  166. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/ResultsNodeSpec.js +0 -62
  167. data/spec_app/vendor/assets/bower_components/jasmine/spec/javascripts/support/jasmine_selenium_runner.yml +0 -16
  168. data/spec_app/vendor/assets/bower_components/jasmine/spec/performance/large_object_test.js +0 -36
  169. data/spec_app/vendor/assets/bower_components/jasmine/spec/performance/performance_test.js +0 -10
  170. data/spec_app/vendor/assets/bower_components/jasmine/spec/support/jasmine-performance.json +0 -9
  171. data/spec_app/vendor/assets/bower_components/jasmine/spec/support/jasmine-performance.yml +0 -9
  172. data/spec_app/vendor/assets/bower_components/jasmine/spec/support/jasmine.json +0 -10
  173. data/spec_app/vendor/assets/bower_components/jasmine/spec/support/jasmine.yml +0 -25
  174. data/spec_app/vendor/assets/bower_components/jasmine/src/console/ConsoleReporter.js +0 -131
  175. data/spec_app/vendor/assets/bower_components/jasmine/src/console/requireConsole.js +0 -12
  176. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js +0 -36
  177. data/spec_app/vendor/assets/bower_components/jasmine/src/core/CallTracker.js +0 -50
  178. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Clock.js +0 -113
  179. data/spec_app/vendor/assets/bower_components/jasmine/src/core/DelayedFunctionScheduler.js +0 -145
  180. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Env.js +0 -341
  181. data/spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js +0 -29
  182. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Expectation.js +0 -107
  183. data/spec_app/vendor/assets/bower_components/jasmine/src/core/ExpectationResult.js +0 -45
  184. data/spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js +0 -73
  185. data/spec_app/vendor/assets/bower_components/jasmine/src/core/MockDate.js +0 -81
  186. data/spec_app/vendor/assets/bower_components/jasmine/src/core/ObjectContaining.js +0 -34
  187. data/spec_app/vendor/assets/bower_components/jasmine/src/core/PrettyPrinter.js +0 -137
  188. data/spec_app/vendor/assets/bower_components/jasmine/src/core/QueueRunner.js +0 -92
  189. data/spec_app/vendor/assets/bower_components/jasmine/src/core/ReportDispatcher.js +0 -35
  190. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Spec.js +0 -126
  191. data/spec_app/vendor/assets/bower_components/jasmine/src/core/SpyStrategy.js +0 -51
  192. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Suite.js +0 -92
  193. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Timer.js +0 -22
  194. data/spec_app/vendor/assets/bower_components/jasmine/src/core/base.js +0 -102
  195. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/matchersUtil.js +0 -181
  196. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/requireMatchers.js +0 -29
  197. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBe.js +0 -13
  198. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeCloseTo.js +0 -18
  199. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeDefined.js +0 -13
  200. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeFalsy.js +0 -13
  201. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeGreaterThan.js +0 -15
  202. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeLessThan.js +0 -14
  203. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeNaN.js +0 -22
  204. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeNull.js +0 -14
  205. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeTruthy.js +0 -14
  206. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeUndefined.js +0 -14
  207. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toContain.js +0 -16
  208. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toEqual.js +0 -20
  209. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toHaveBeenCalled.js +0 -28
  210. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toHaveBeenCalledWith.js +0 -33
  211. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toMatch.js +0 -16
  212. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toThrow.js +0 -46
  213. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toThrowError.js +0 -156
  214. data/spec_app/vendor/assets/bower_components/jasmine/src/core/requireCore.js +0 -39
  215. data/spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js +0 -59
  216. data/spec_app/vendor/assets/bower_components/jasmine/src/core/util.js +0 -44
  217. data/spec_app/vendor/assets/bower_components/jasmine/src/html/HtmlReporter.js +0 -280
  218. data/spec_app/vendor/assets/bower_components/jasmine/src/html/HtmlSpecFilter.js +0 -12
  219. data/spec_app/vendor/assets/bower_components/jasmine/src/html/QueryString.js +0 -47
  220. data/spec_app/vendor/assets/bower_components/jasmine/src/html/ResultsNode.js +0 -19
  221. data/spec_app/vendor/assets/bower_components/jasmine/src/html/_HTMLReporter.scss +0 -355
  222. data/spec_app/vendor/assets/bower_components/jasmine/src/html/jasmine.scss +0 -1
  223. data/spec_app/vendor/assets/bower_components/jasmine/src/html/requireHtml.js +0 -6
  224. data/spec_app/vendor/assets/bower_components/jasmine/src/templates/example_project_jasmine_tags.html.erb +0 -3
  225. data/spec_app/vendor/assets/bower_components/jasmine/src/templates/version.js.erb +0 -7
  226. data/spec_app/vendor/assets/bower_components/jasmine/src/templates/version.rb.erb +0 -6
  227. data/spec_app/vendor/assets/bower_components/jasmine/src/version.js +0 -3
  228. data/spec_app/vendor/assets/bower_components/jasmine/travis-core-script.sh +0 -14
  229. data/spec_app/vendor/assets/bower_components/jasmine/travis-docs-script.sh +0 -5
  230. data/spec_app/vendor/assets/bower_components/jasmine/travis-node-script.sh +0 -6
  231. data/spec_app/vendor/assets/bower_components/jasmine-ajax/Gruntfile.js +0 -63
  232. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/boot.js +0 -11
  233. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/fakeRequest.js +0 -262
  234. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/mockAjax.js +0 -45
  235. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/paramParser.js +0 -56
  236. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/requestStub.js +0 -42
  237. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/requestTracker.js +0 -51
  238. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/requireAjax.js +0 -44
  239. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/stubTracker.js +0 -24
@@ -1,16 +0,0 @@
1
- getJasmineRequireObj().toMatch = function() {
2
-
3
- function toMatch() {
4
- return {
5
- compare: function(actual, expected) {
6
- var regexp = new RegExp(expected);
7
-
8
- return {
9
- pass: regexp.test(actual)
10
- };
11
- }
12
- };
13
- }
14
-
15
- return toMatch;
16
- };
@@ -1,46 +0,0 @@
1
- getJasmineRequireObj().toThrow = function(j$) {
2
-
3
- function toThrow(util) {
4
- return {
5
- compare: function(actual, expected) {
6
- var result = { pass: false },
7
- threw = false,
8
- thrown;
9
-
10
- if (typeof actual != 'function') {
11
- throw new Error('Actual is not a Function');
12
- }
13
-
14
- try {
15
- actual();
16
- } catch (e) {
17
- threw = true;
18
- thrown = e;
19
- }
20
-
21
- if (!threw) {
22
- result.message = 'Expected function to throw an exception.';
23
- return result;
24
- }
25
-
26
- if (arguments.length == 1) {
27
- result.pass = true;
28
- result.message = function() { return 'Expected function not to throw, but it threw ' + j$.pp(thrown) + '.'; };
29
-
30
- return result;
31
- }
32
-
33
- if (util.equals(thrown, expected)) {
34
- result.pass = true;
35
- result.message = function() { return 'Expected function not to throw ' + j$.pp(expected) + '.'; };
36
- } else {
37
- result.message = function() { return 'Expected function to throw ' + j$.pp(expected) + ', but it threw ' + j$.pp(thrown) + '.'; };
38
- }
39
-
40
- return result;
41
- }
42
- };
43
- }
44
-
45
- return toThrow;
46
- };
@@ -1,156 +0,0 @@
1
- getJasmineRequireObj().toThrowError = function(j$) {
2
- function toThrowError (util) {
3
- return {
4
- compare: function(actual) {
5
- var threw = false,
6
- pass = {pass: true},
7
- fail = {pass: false},
8
- thrown,
9
- errorType,
10
- message,
11
- regexp,
12
- name,
13
- constructorName;
14
-
15
- if (typeof actual != 'function') {
16
- throw new Error('Actual is not a Function');
17
- }
18
-
19
- extractExpectedParams.apply(null, arguments);
20
-
21
- try {
22
- actual();
23
- } catch (e) {
24
- threw = true;
25
- thrown = e;
26
- }
27
-
28
- if (!threw) {
29
- fail.message = 'Expected function to throw an Error.';
30
- return fail;
31
- }
32
-
33
- if (!(thrown instanceof Error)) {
34
- fail.message = function() { return 'Expected function to throw an Error, but it threw ' + j$.pp(thrown) + '.'; };
35
- return fail;
36
- }
37
-
38
- if (arguments.length == 1) {
39
- pass.message = 'Expected function not to throw an Error, but it threw ' + fnNameFor(thrown) + '.';
40
- return pass;
41
- }
42
-
43
- if (errorType) {
44
- name = fnNameFor(errorType);
45
- constructorName = fnNameFor(thrown.constructor);
46
- }
47
-
48
- if (errorType && message) {
49
- if (thrown.constructor == errorType && util.equals(thrown.message, message)) {
50
- pass.message = function() { return 'Expected function not to throw ' + name + ' with message ' + j$.pp(message) + '.'; };
51
- return pass;
52
- } else {
53
- fail.message = function() { return 'Expected function to throw ' + name + ' with message ' + j$.pp(message) +
54
- ', but it threw ' + constructorName + ' with message ' + j$.pp(thrown.message) + '.'; };
55
- return fail;
56
- }
57
- }
58
-
59
- if (errorType && regexp) {
60
- if (thrown.constructor == errorType && regexp.test(thrown.message)) {
61
- pass.message = function() { return 'Expected function not to throw ' + name + ' with message matching ' + j$.pp(regexp) + '.'; };
62
- return pass;
63
- } else {
64
- fail.message = function() { return 'Expected function to throw ' + name + ' with message matching ' + j$.pp(regexp) +
65
- ', but it threw ' + constructorName + ' with message ' + j$.pp(thrown.message) + '.'; };
66
- return fail;
67
- }
68
- }
69
-
70
- if (errorType) {
71
- if (thrown.constructor == errorType) {
72
- pass.message = 'Expected function not to throw ' + name + '.';
73
- return pass;
74
- } else {
75
- fail.message = 'Expected function to throw ' + name + ', but it threw ' + constructorName + '.';
76
- return fail;
77
- }
78
- }
79
-
80
- if (message) {
81
- if (thrown.message == message) {
82
- pass.message = function() { return 'Expected function not to throw an exception with message ' + j$.pp(message) + '.'; };
83
- return pass;
84
- } else {
85
- fail.message = function() { return 'Expected function to throw an exception with message ' + j$.pp(message) +
86
- ', but it threw an exception with message ' + j$.pp(thrown.message) + '.'; };
87
- return fail;
88
- }
89
- }
90
-
91
- if (regexp) {
92
- if (regexp.test(thrown.message)) {
93
- pass.message = function() { return 'Expected function not to throw an exception with a message matching ' + j$.pp(regexp) + '.'; };
94
- return pass;
95
- } else {
96
- fail.message = function() { return 'Expected function to throw an exception with a message matching ' + j$.pp(regexp) +
97
- ', but it threw an exception with message ' + j$.pp(thrown.message) + '.'; };
98
- return fail;
99
- }
100
- }
101
-
102
- function fnNameFor(func) {
103
- return func.name || func.toString().match(/^\s*function\s*(\w*)\s*\(/)[1];
104
- }
105
-
106
- function extractExpectedParams() {
107
- if (arguments.length == 1) {
108
- return;
109
- }
110
-
111
- if (arguments.length == 2) {
112
- var expected = arguments[1];
113
-
114
- if (expected instanceof RegExp) {
115
- regexp = expected;
116
- } else if (typeof expected == 'string') {
117
- message = expected;
118
- } else if (checkForAnErrorType(expected)) {
119
- errorType = expected;
120
- }
121
-
122
- if (!(errorType || message || regexp)) {
123
- throw new Error('Expected is not an Error, string, or RegExp.');
124
- }
125
- } else {
126
- if (checkForAnErrorType(arguments[1])) {
127
- errorType = arguments[1];
128
- } else {
129
- throw new Error('Expected error type is not an Error.');
130
- }
131
-
132
- if (arguments[2] instanceof RegExp) {
133
- regexp = arguments[2];
134
- } else if (typeof arguments[2] == 'string') {
135
- message = arguments[2];
136
- } else {
137
- throw new Error('Expected error message is not a string or RegExp.');
138
- }
139
- }
140
- }
141
-
142
- function checkForAnErrorType(type) {
143
- if (typeof type !== 'function') {
144
- return false;
145
- }
146
-
147
- var Surrogate = function() {};
148
- Surrogate.prototype = type.prototype;
149
- return (new Surrogate()) instanceof Error;
150
- }
151
- }
152
- };
153
- }
154
-
155
- return toThrowError;
156
- };
@@ -1,39 +0,0 @@
1
- function getJasmineRequireObj() {
2
- if (typeof module !== 'undefined' && module.exports) {
3
- return exports;
4
- } else {
5
- window.jasmineRequire = window.jasmineRequire || {};
6
- return window.jasmineRequire;
7
- }
8
- }
9
-
10
- getJasmineRequireObj().core = function(jRequire) {
11
- var j$ = {};
12
-
13
- jRequire.base(j$);
14
- j$.util = jRequire.util();
15
- j$.Any = jRequire.Any();
16
- j$.CallTracker = jRequire.CallTracker();
17
- j$.MockDate = jRequire.MockDate();
18
- j$.Clock = jRequire.Clock();
19
- j$.DelayedFunctionScheduler = jRequire.DelayedFunctionScheduler();
20
- j$.Env = jRequire.Env(j$);
21
- j$.ExceptionFormatter = jRequire.ExceptionFormatter();
22
- j$.Expectation = jRequire.Expectation();
23
- j$.buildExpectationResult = jRequire.buildExpectationResult();
24
- j$.JsApiReporter = jRequire.JsApiReporter();
25
- j$.matchersUtil = jRequire.matchersUtil(j$);
26
- j$.ObjectContaining = jRequire.ObjectContaining(j$);
27
- j$.pp = jRequire.pp(j$);
28
- j$.QueueRunner = jRequire.QueueRunner(j$);
29
- j$.ReportDispatcher = jRequire.ReportDispatcher();
30
- j$.Spec = jRequire.Spec(j$);
31
- j$.SpyStrategy = jRequire.SpyStrategy();
32
- j$.Suite = jRequire.Suite();
33
- j$.Timer = jRequire.Timer();
34
- j$.version = jRequire.version();
35
-
36
- j$.matchers = jRequire.requireMatchers(jRequire, j$);
37
-
38
- return j$;
39
- };
@@ -1,59 +0,0 @@
1
- getJasmineRequireObj().interface = function(jasmine, env) {
2
- var jasmineInterface = {
3
- describe: function(description, specDefinitions) {
4
- return env.describe(description, specDefinitions);
5
- },
6
-
7
- xdescribe: function(description, specDefinitions) {
8
- return env.xdescribe(description, specDefinitions);
9
- },
10
-
11
- it: function(desc, func) {
12
- return env.it(desc, func);
13
- },
14
-
15
- xit: function(desc, func) {
16
- return env.xit(desc, func);
17
- },
18
-
19
- beforeEach: function(beforeEachFunction) {
20
- return env.beforeEach(beforeEachFunction);
21
- },
22
-
23
- afterEach: function(afterEachFunction) {
24
- return env.afterEach(afterEachFunction);
25
- },
26
-
27
- expect: function(actual) {
28
- return env.expect(actual);
29
- },
30
-
31
- pending: function() {
32
- return env.pending();
33
- },
34
-
35
- spyOn: function(obj, methodName) {
36
- return env.spyOn(obj, methodName);
37
- },
38
-
39
- jsApiReporter: new jasmine.JsApiReporter({
40
- timer: new jasmine.Timer()
41
- }),
42
-
43
- jasmine: jasmine
44
- };
45
-
46
- jasmine.addCustomEqualityTester = function(tester) {
47
- env.addCustomEqualityTester(tester);
48
- };
49
-
50
- jasmine.addMatchers = function(matchers) {
51
- return env.addMatchers(matchers);
52
- };
53
-
54
- jasmine.clock = function() {
55
- return env.clock;
56
- };
57
-
58
- return jasmineInterface;
59
- };
@@ -1,44 +0,0 @@
1
- getJasmineRequireObj().util = function() {
2
-
3
- var util = {};
4
-
5
- util.inherit = function(childClass, parentClass) {
6
- var Subclass = function() {
7
- };
8
- Subclass.prototype = parentClass.prototype;
9
- childClass.prototype = new Subclass();
10
- };
11
-
12
- util.htmlEscape = function(str) {
13
- if (!str) {
14
- return str;
15
- }
16
- return str.replace(/&/g, '&')
17
- .replace(/</g, '&lt;')
18
- .replace(/>/g, '&gt;');
19
- };
20
-
21
- util.argsToArray = function(args) {
22
- var arrayOfArgs = [];
23
- for (var i = 0; i < args.length; i++) {
24
- arrayOfArgs.push(args[i]);
25
- }
26
- return arrayOfArgs;
27
- };
28
-
29
- util.isUndefined = function(obj) {
30
- return obj === void 0;
31
- };
32
-
33
- util.arrayContains = function(array, search) {
34
- var i = array.length;
35
- while (i--) {
36
- if (array[i] == search) {
37
- return true;
38
- }
39
- }
40
- return false;
41
- };
42
-
43
- return util;
44
- };
@@ -1,280 +0,0 @@
1
- jasmineRequire.HtmlReporter = function(j$) {
2
-
3
- var noopTimer = {
4
- start: function() {},
5
- elapsed: function() { return 0; }
6
- };
7
-
8
- function HtmlReporter(options) {
9
- var env = options.env || {},
10
- getContainer = options.getContainer,
11
- createElement = options.createElement,
12
- createTextNode = options.createTextNode,
13
- onRaiseExceptionsClick = options.onRaiseExceptionsClick || function() {},
14
- timer = options.timer || noopTimer,
15
- results = [],
16
- specsExecuted = 0,
17
- failureCount = 0,
18
- pendingSpecCount = 0,
19
- htmlReporterMain,
20
- symbols;
21
-
22
- this.initialize = function() {
23
- clearPrior();
24
- htmlReporterMain = createDom('div', {className: 'jasmine_html-reporter'},
25
- createDom('div', {className: 'banner'},
26
- createDom('a', {className: 'title', href: 'http://jasmine.github.io/', target: '_blank'}),
27
- createDom('span', {className: 'version'}, j$.version)
28
- ),
29
- createDom('ul', {className: 'symbol-summary'}),
30
- createDom('div', {className: 'alert'}),
31
- createDom('div', {className: 'results'},
32
- createDom('div', {className: 'failures'})
33
- )
34
- );
35
- getContainer().appendChild(htmlReporterMain);
36
-
37
- symbols = find('.symbol-summary');
38
- };
39
-
40
- var totalSpecsDefined;
41
- this.jasmineStarted = function(options) {
42
- totalSpecsDefined = options.totalSpecsDefined || 0;
43
- timer.start();
44
- };
45
-
46
- var summary = createDom('div', {className: 'summary'});
47
-
48
- var topResults = new j$.ResultsNode({}, '', null),
49
- currentParent = topResults;
50
-
51
- this.suiteStarted = function(result) {
52
- currentParent.addChild(result, 'suite');
53
- currentParent = currentParent.last();
54
- };
55
-
56
- this.suiteDone = function(result) {
57
- if (currentParent == topResults) {
58
- return;
59
- }
60
-
61
- currentParent = currentParent.parent;
62
- };
63
-
64
- this.specStarted = function(result) {
65
- currentParent.addChild(result, 'spec');
66
- };
67
-
68
- var failures = [];
69
- this.specDone = function(result) {
70
- if(noExpectations(result) && console && console.error) {
71
- console.error('Spec \'' + result.fullName + '\' has no expectations.');
72
- }
73
-
74
- if (result.status != 'disabled') {
75
- specsExecuted++;
76
- }
77
-
78
- symbols.appendChild(createDom('li', {
79
- className: noExpectations(result) ? 'empty' : result.status,
80
- id: 'spec_' + result.id,
81
- title: result.fullName
82
- }
83
- ));
84
-
85
- if (result.status == 'failed') {
86
- failureCount++;
87
-
88
- var failure =
89
- createDom('div', {className: 'spec-detail failed'},
90
- createDom('div', {className: 'description'},
91
- createDom('a', {title: result.fullName, href: specHref(result)}, result.fullName)
92
- ),
93
- createDom('div', {className: 'messages'})
94
- );
95
- var messages = failure.childNodes[1];
96
-
97
- for (var i = 0; i < result.failedExpectations.length; i++) {
98
- var expectation = result.failedExpectations[i];
99
- messages.appendChild(createDom('div', {className: 'result-message'}, expectation.message));
100
- messages.appendChild(createDom('div', {className: 'stack-trace'}, expectation.stack));
101
- }
102
-
103
- failures.push(failure);
104
- }
105
-
106
- if (result.status == 'pending') {
107
- pendingSpecCount++;
108
- }
109
- };
110
-
111
- this.jasmineDone = function() {
112
- var banner = find('.banner');
113
- banner.appendChild(createDom('span', {className: 'duration'}, 'finished in ' + timer.elapsed() / 1000 + 's'));
114
-
115
- var alert = find('.alert');
116
-
117
- alert.appendChild(createDom('span', { className: 'exceptions' },
118
- createDom('label', { className: 'label', 'for': 'raise-exceptions' }, 'raise exceptions'),
119
- createDom('input', {
120
- className: 'raise',
121
- id: 'raise-exceptions',
122
- type: 'checkbox'
123
- })
124
- ));
125
- var checkbox = find('#raise-exceptions');
126
-
127
- checkbox.checked = !env.catchingExceptions();
128
- checkbox.onclick = onRaiseExceptionsClick;
129
-
130
- if (specsExecuted < totalSpecsDefined) {
131
- var skippedMessage = 'Ran ' + specsExecuted + ' of ' + totalSpecsDefined + ' specs - run all';
132
- alert.appendChild(
133
- createDom('span', {className: 'bar skipped'},
134
- createDom('a', {href: '?', title: 'Run all specs'}, skippedMessage)
135
- )
136
- );
137
- }
138
- var statusBarMessage = '';
139
- var statusBarClassName = 'bar ';
140
-
141
- if (totalSpecsDefined > 0) {
142
- statusBarMessage += pluralize('spec', specsExecuted) + ', ' + pluralize('failure', failureCount);
143
- if (pendingSpecCount) { statusBarMessage += ', ' + pluralize('pending spec', pendingSpecCount); }
144
- statusBarClassName += (failureCount > 0) ? 'failed' : 'passed';
145
- } else {
146
- statusBarClassName += 'skipped';
147
- statusBarMessage += 'No specs found';
148
- }
149
-
150
- alert.appendChild(createDom('span', {className: statusBarClassName}, statusBarMessage));
151
-
152
- var results = find('.results');
153
- results.appendChild(summary);
154
-
155
- summaryList(topResults, summary);
156
-
157
- function summaryList(resultsTree, domParent) {
158
- var specListNode;
159
- for (var i = 0; i < resultsTree.children.length; i++) {
160
- var resultNode = resultsTree.children[i];
161
- if (resultNode.type == 'suite') {
162
- var suiteListNode = createDom('ul', {className: 'suite', id: 'suite-' + resultNode.result.id},
163
- createDom('li', {className: 'suite-detail'},
164
- createDom('a', {href: specHref(resultNode.result)}, resultNode.result.description)
165
- )
166
- );
167
-
168
- summaryList(resultNode, suiteListNode);
169
- domParent.appendChild(suiteListNode);
170
- }
171
- if (resultNode.type == 'spec') {
172
- if (domParent.getAttribute('class') != 'specs') {
173
- specListNode = createDom('ul', {className: 'specs'});
174
- domParent.appendChild(specListNode);
175
- }
176
- var specDescription = resultNode.result.description;
177
- if(noExpectations(resultNode.result)) {
178
- specDescription = 'SPEC HAS NO EXPECTATIONS ' + specDescription;
179
- }
180
- specListNode.appendChild(
181
- createDom('li', {
182
- className: resultNode.result.status,
183
- id: 'spec-' + resultNode.result.id
184
- },
185
- createDom('a', {href: specHref(resultNode.result)}, specDescription)
186
- )
187
- );
188
- }
189
- }
190
- }
191
-
192
- if (failures.length) {
193
- alert.appendChild(
194
- createDom('span', {className: 'menu bar spec-list'},
195
- createDom('span', {}, 'Spec List | '),
196
- createDom('a', {className: 'failures-menu', href: '#'}, 'Failures')));
197
- alert.appendChild(
198
- createDom('span', {className: 'menu bar failure-list'},
199
- createDom('a', {className: 'spec-list-menu', href: '#'}, 'Spec List'),
200
- createDom('span', {}, ' | Failures ')));
201
-
202
- find('.failures-menu').onclick = function() {
203
- setMenuModeTo('failure-list');
204
- };
205
- find('.spec-list-menu').onclick = function() {
206
- setMenuModeTo('spec-list');
207
- };
208
-
209
- setMenuModeTo('failure-list');
210
-
211
- var failureNode = find('.failures');
212
- for (var i = 0; i < failures.length; i++) {
213
- failureNode.appendChild(failures[i]);
214
- }
215
- }
216
- };
217
-
218
- return this;
219
-
220
- function find(selector) {
221
- return getContainer().querySelector('.jasmine_html-reporter ' + selector);
222
- }
223
-
224
- function clearPrior() {
225
- // return the reporter
226
- var oldReporter = find('');
227
-
228
- if(oldReporter) {
229
- getContainer().removeChild(oldReporter);
230
- }
231
- }
232
-
233
- function createDom(type, attrs, childrenVarArgs) {
234
- var el = createElement(type);
235
-
236
- for (var i = 2; i < arguments.length; i++) {
237
- var child = arguments[i];
238
-
239
- if (typeof child === 'string') {
240
- el.appendChild(createTextNode(child));
241
- } else {
242
- if (child) {
243
- el.appendChild(child);
244
- }
245
- }
246
- }
247
-
248
- for (var attr in attrs) {
249
- if (attr == 'className') {
250
- el[attr] = attrs[attr];
251
- } else {
252
- el.setAttribute(attr, attrs[attr]);
253
- }
254
- }
255
-
256
- return el;
257
- }
258
-
259
- function pluralize(singular, count) {
260
- var word = (count == 1 ? singular : singular + 's');
261
-
262
- return '' + count + ' ' + word;
263
- }
264
-
265
- function specHref(result) {
266
- return '?spec=' + encodeURIComponent(result.fullName);
267
- }
268
-
269
- function setMenuModeTo(mode) {
270
- htmlReporterMain.setAttribute('class', 'jasmine_html-reporter ' + mode);
271
- }
272
-
273
- function noExpectations(result) {
274
- return (result.failedExpectations.length + result.passedExpectations.length) === 0 &&
275
- result.status === 'passed';
276
- }
277
- }
278
-
279
- return HtmlReporter;
280
- };
@@ -1,12 +0,0 @@
1
- jasmineRequire.HtmlSpecFilter = function() {
2
- function HtmlSpecFilter(options) {
3
- var filterString = options && options.filterString() && options.filterString().replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
4
- var filterPattern = new RegExp(filterString);
5
-
6
- this.matches = function(specName) {
7
- return filterPattern.test(specName);
8
- };
9
- }
10
-
11
- return HtmlSpecFilter;
12
- };