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,73 +0,0 @@
1
- getJasmineRequireObj().JsApiReporter = function() {
2
-
3
- var noopTimer = {
4
- start: function(){},
5
- elapsed: function(){ return 0; }
6
- };
7
-
8
- function JsApiReporter(options) {
9
- var timer = options.timer || noopTimer,
10
- status = 'loaded';
11
-
12
- this.started = false;
13
- this.finished = false;
14
-
15
- this.jasmineStarted = function() {
16
- this.started = true;
17
- status = 'started';
18
- timer.start();
19
- };
20
-
21
- var executionTime;
22
-
23
- this.jasmineDone = function() {
24
- this.finished = true;
25
- executionTime = timer.elapsed();
26
- status = 'done';
27
- };
28
-
29
- this.status = function() {
30
- return status;
31
- };
32
-
33
- var suites = {};
34
-
35
- this.suiteStarted = function(result) {
36
- storeSuite(result);
37
- };
38
-
39
- this.suiteDone = function(result) {
40
- storeSuite(result);
41
- };
42
-
43
- function storeSuite(result) {
44
- suites[result.id] = result;
45
- }
46
-
47
- this.suites = function() {
48
- return suites;
49
- };
50
-
51
- var specs = [];
52
- this.specStarted = function(result) { };
53
-
54
- this.specDone = function(result) {
55
- specs.push(result);
56
- };
57
-
58
- this.specResults = function(index, length) {
59
- return specs.slice(index, index + length);
60
- };
61
-
62
- this.specs = function() {
63
- return specs;
64
- };
65
-
66
- this.executionTime = function() {
67
- return executionTime;
68
- };
69
-
70
- }
71
-
72
- return JsApiReporter;
73
- };
@@ -1,81 +0,0 @@
1
- getJasmineRequireObj().MockDate = function() {
2
- function MockDate(global) {
3
- var self = this;
4
- var currentTime = 0;
5
-
6
- if (!global || !global.Date) {
7
- self.install = function() {};
8
- self.tick = function() {};
9
- self.uninstall = function() {};
10
- return self;
11
- }
12
-
13
- var GlobalDate = global.Date;
14
-
15
- self.install = function(mockDate) {
16
- if (mockDate instanceof GlobalDate) {
17
- currentTime = mockDate.getTime();
18
- } else {
19
- currentTime = new GlobalDate().getTime();
20
- }
21
-
22
- global.Date = FakeDate;
23
- };
24
-
25
- self.tick = function(millis) {
26
- millis = millis || 0;
27
- currentTime = currentTime + millis;
28
- };
29
-
30
- self.uninstall = function() {
31
- currentTime = 0;
32
- global.Date = GlobalDate;
33
- };
34
-
35
- createDateProperties();
36
-
37
- return self;
38
-
39
- function FakeDate() {
40
- switch(arguments.length) {
41
- case 0:
42
- return new GlobalDate(currentTime);
43
- case 1:
44
- return new GlobalDate(arguments[0]);
45
- case 2:
46
- return new GlobalDate(arguments[0], arguments[1]);
47
- case 3:
48
- return new GlobalDate(arguments[0], arguments[1], arguments[2]);
49
- case 4:
50
- return new GlobalDate(arguments[0], arguments[1], arguments[2], arguments[3]);
51
- case 5:
52
- return new GlobalDate(arguments[0], arguments[1], arguments[2], arguments[3],
53
- arguments[4]);
54
- case 6:
55
- return new GlobalDate(arguments[0], arguments[1], arguments[2], arguments[3],
56
- arguments[4], arguments[5]);
57
- case 7:
58
- return new GlobalDate(arguments[0], arguments[1], arguments[2], arguments[3],
59
- arguments[4], arguments[5], arguments[6]);
60
- }
61
- }
62
-
63
- function createDateProperties() {
64
-
65
- FakeDate.now = function() {
66
- if (GlobalDate.now) {
67
- return currentTime;
68
- } else {
69
- throw new Error('Browser does not support Date.now()');
70
- }
71
- };
72
-
73
- FakeDate.toSource = GlobalDate.toSource;
74
- FakeDate.toString = GlobalDate.toString;
75
- FakeDate.parse = GlobalDate.parse;
76
- FakeDate.UTC = GlobalDate.UTC;
77
- }
78
- }
79
-
80
- return MockDate;
81
- };
@@ -1,34 +0,0 @@
1
- getJasmineRequireObj().ObjectContaining = function(j$) {
2
-
3
- function ObjectContaining(sample) {
4
- this.sample = sample;
5
- }
6
-
7
- ObjectContaining.prototype.jasmineMatches = function(other, mismatchKeys, mismatchValues) {
8
- if (typeof(this.sample) !== 'object') { throw new Error('You must provide an object to objectContaining, not \''+this.sample+'\'.'); }
9
-
10
- mismatchKeys = mismatchKeys || [];
11
- mismatchValues = mismatchValues || [];
12
-
13
- var hasKey = function(obj, keyName) {
14
- return obj !== null && !j$.util.isUndefined(obj[keyName]);
15
- };
16
-
17
- for (var property in this.sample) {
18
- if (!hasKey(other, property) && hasKey(this.sample, property)) {
19
- mismatchKeys.push('expected has key \'' + property + '\', but missing from actual.');
20
- }
21
- else if (!j$.matchersUtil.equals(other[property], this.sample[property])) {
22
- mismatchValues.push('\'' + property + '\' was \'' + (other[property] ? j$.util.htmlEscape(other[property].toString()) : other[property]) + '\' in actual, but was \'' + (this.sample[property] ? j$.util.htmlEscape(this.sample[property].toString()) : this.sample[property]) + '\' in expected.');
23
- }
24
- }
25
-
26
- return (mismatchKeys.length === 0 && mismatchValues.length === 0);
27
- };
28
-
29
- ObjectContaining.prototype.jasmineToString = function() {
30
- return '<jasmine.objectContaining(' + j$.pp(this.sample) + ')>';
31
- };
32
-
33
- return ObjectContaining;
34
- };
@@ -1,137 +0,0 @@
1
- getJasmineRequireObj().pp = function(j$) {
2
-
3
- function PrettyPrinter() {
4
- this.ppNestLevel_ = 0;
5
- this.seen = [];
6
- }
7
-
8
- PrettyPrinter.prototype.format = function(value) {
9
- this.ppNestLevel_++;
10
- try {
11
- if (j$.util.isUndefined(value)) {
12
- this.emitScalar('undefined');
13
- } else if (value === null) {
14
- this.emitScalar('null');
15
- } else if (value === 0 && 1/value === -Infinity) {
16
- this.emitScalar('-0');
17
- } else if (value === j$.getGlobal()) {
18
- this.emitScalar('<global>');
19
- } else if (value.jasmineToString) {
20
- this.emitScalar(value.jasmineToString());
21
- } else if (typeof value === 'string') {
22
- this.emitString(value);
23
- } else if (j$.isSpy(value)) {
24
- this.emitScalar('spy on ' + value.and.identity());
25
- } else if (value instanceof RegExp) {
26
- this.emitScalar(value.toString());
27
- } else if (typeof value === 'function') {
28
- this.emitScalar('Function');
29
- } else if (typeof value.nodeType === 'number') {
30
- this.emitScalar('HTMLNode');
31
- } else if (value instanceof Date) {
32
- this.emitScalar('Date(' + value + ')');
33
- } else if (j$.util.arrayContains(this.seen, value)) {
34
- this.emitScalar('<circular reference: ' + (j$.isArray_(value) ? 'Array' : 'Object') + '>');
35
- } else if (j$.isArray_(value) || j$.isA_('Object', value)) {
36
- this.seen.push(value);
37
- if (j$.isArray_(value)) {
38
- this.emitArray(value);
39
- } else {
40
- this.emitObject(value);
41
- }
42
- this.seen.pop();
43
- } else {
44
- this.emitScalar(value.toString());
45
- }
46
- } finally {
47
- this.ppNestLevel_--;
48
- }
49
- };
50
-
51
- PrettyPrinter.prototype.iterateObject = function(obj, fn) {
52
- for (var property in obj) {
53
- if (!Object.prototype.hasOwnProperty.call(obj, property)) { continue; }
54
- fn(property, obj.__lookupGetter__ ? (!j$.util.isUndefined(obj.__lookupGetter__(property)) &&
55
- obj.__lookupGetter__(property) !== null) : false);
56
- }
57
- };
58
-
59
- PrettyPrinter.prototype.emitArray = j$.unimplementedMethod_;
60
- PrettyPrinter.prototype.emitObject = j$.unimplementedMethod_;
61
- PrettyPrinter.prototype.emitScalar = j$.unimplementedMethod_;
62
- PrettyPrinter.prototype.emitString = j$.unimplementedMethod_;
63
-
64
- function StringPrettyPrinter() {
65
- PrettyPrinter.call(this);
66
-
67
- this.string = '';
68
- }
69
-
70
- j$.util.inherit(StringPrettyPrinter, PrettyPrinter);
71
-
72
- StringPrettyPrinter.prototype.emitScalar = function(value) {
73
- this.append(value);
74
- };
75
-
76
- StringPrettyPrinter.prototype.emitString = function(value) {
77
- this.append('\'' + value + '\'');
78
- };
79
-
80
- StringPrettyPrinter.prototype.emitArray = function(array) {
81
- if (this.ppNestLevel_ > j$.MAX_PRETTY_PRINT_DEPTH) {
82
- this.append('Array');
83
- return;
84
- }
85
- var length = Math.min(array.length, j$.MAX_PRETTY_PRINT_ARRAY_LENGTH);
86
- this.append('[ ');
87
- for (var i = 0; i < length; i++) {
88
- if (i > 0) {
89
- this.append(', ');
90
- }
91
- this.format(array[i]);
92
- }
93
- if(array.length > length){
94
- this.append(', ...');
95
- }
96
- this.append(' ]');
97
- };
98
-
99
- StringPrettyPrinter.prototype.emitObject = function(obj) {
100
- if (this.ppNestLevel_ > j$.MAX_PRETTY_PRINT_DEPTH) {
101
- this.append('Object');
102
- return;
103
- }
104
-
105
- var self = this;
106
- this.append('{ ');
107
- var first = true;
108
-
109
- this.iterateObject(obj, function(property, isGetter) {
110
- if (first) {
111
- first = false;
112
- } else {
113
- self.append(', ');
114
- }
115
-
116
- self.append(property);
117
- self.append(': ');
118
- if (isGetter) {
119
- self.append('<getter>');
120
- } else {
121
- self.format(obj[property]);
122
- }
123
- });
124
-
125
- this.append(' }');
126
- };
127
-
128
- StringPrettyPrinter.prototype.append = function(value) {
129
- this.string += value;
130
- };
131
-
132
- return function(value) {
133
- var stringPrettyPrinter = new StringPrettyPrinter();
134
- stringPrettyPrinter.format(value);
135
- return stringPrettyPrinter.string;
136
- };
137
- };
@@ -1,92 +0,0 @@
1
- getJasmineRequireObj().QueueRunner = function(j$) {
2
-
3
- function once(fn) {
4
- var called = false;
5
- return function() {
6
- if (!called) {
7
- called = true;
8
- fn();
9
- }
10
- };
11
- }
12
-
13
- function QueueRunner(attrs) {
14
- this.fns = attrs.fns || [];
15
- this.onComplete = attrs.onComplete || function() {};
16
- this.clearStack = attrs.clearStack || function(fn) {fn();};
17
- this.onException = attrs.onException || function() {};
18
- this.catchException = attrs.catchException || function() { return true; };
19
- this.enforceTimeout = attrs.enforceTimeout || function() { return false; };
20
- this.userContext = {};
21
- this.timer = attrs.timeout || {setTimeout: setTimeout, clearTimeout: clearTimeout};
22
- }
23
-
24
- QueueRunner.prototype.execute = function() {
25
- this.run(this.fns, 0);
26
- };
27
-
28
- QueueRunner.prototype.run = function(fns, recursiveIndex) {
29
- var length = fns.length,
30
- self = this,
31
- iterativeIndex;
32
-
33
- for(iterativeIndex = recursiveIndex; iterativeIndex < length; iterativeIndex++) {
34
- var fn = fns[iterativeIndex];
35
- if (fn.length > 0) {
36
- return attemptAsync(fn);
37
- } else {
38
- attemptSync(fn);
39
- }
40
- }
41
-
42
- var runnerDone = iterativeIndex >= length;
43
-
44
- if (runnerDone) {
45
- this.clearStack(this.onComplete);
46
- }
47
-
48
- function attemptSync(fn) {
49
- try {
50
- fn.call(self.userContext);
51
- } catch (e) {
52
- handleException(e);
53
- }
54
- }
55
-
56
- function attemptAsync(fn) {
57
- var clearTimeout = function () {
58
- Function.prototype.apply.apply(self.timer.clearTimeout, [j$.getGlobal(), [timeoutId]]);
59
- },
60
- next = once(function () {
61
- clearTimeout(timeoutId);
62
- self.run(fns, iterativeIndex + 1);
63
- }),
64
- timeoutId;
65
-
66
- if (self.enforceTimeout()) {
67
- timeoutId = Function.prototype.apply.apply(self.timer.setTimeout, [j$.getGlobal(), [function() {
68
- self.onException(new Error('Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.'));
69
- next();
70
- }, j$.DEFAULT_TIMEOUT_INTERVAL]]);
71
- }
72
-
73
- try {
74
- fn.call(self.userContext, next);
75
- } catch (e) {
76
- handleException(e);
77
- next();
78
- }
79
- }
80
-
81
- function handleException(e) {
82
- self.onException(e);
83
- if (!self.catchException(e)) {
84
- //TODO: set a var when we catch an exception and
85
- //use a finally block to close the loop in a nice way..
86
- throw e;
87
- }
88
- }
89
- };
90
-
91
- return QueueRunner;
92
- };
@@ -1,35 +0,0 @@
1
- getJasmineRequireObj().ReportDispatcher = function() {
2
- function ReportDispatcher(methods) {
3
-
4
- var dispatchedMethods = methods || [];
5
-
6
- for (var i = 0; i < dispatchedMethods.length; i++) {
7
- var method = dispatchedMethods[i];
8
- this[method] = (function(m) {
9
- return function() {
10
- dispatch(m, arguments);
11
- };
12
- }(method));
13
- }
14
-
15
- var reporters = [];
16
-
17
- this.addReporter = function(reporter) {
18
- reporters.push(reporter);
19
- };
20
-
21
- return this;
22
-
23
- function dispatch(method, args) {
24
- for (var i = 0; i < reporters.length; i++) {
25
- var reporter = reporters[i];
26
- if (reporter[method]) {
27
- reporter[method].apply(reporter, args);
28
- }
29
- }
30
- }
31
- }
32
-
33
- return ReportDispatcher;
34
- };
35
-
@@ -1,126 +0,0 @@
1
- getJasmineRequireObj().Spec = function(j$) {
2
- function Spec(attrs) {
3
- this.expectationFactory = attrs.expectationFactory;
4
- this.resultCallback = attrs.resultCallback || function() {};
5
- this.id = attrs.id;
6
- this.description = attrs.description || '';
7
- this.fn = attrs.fn;
8
- this.beforeFns = attrs.beforeFns || function() { return []; };
9
- this.afterFns = attrs.afterFns || function() { return []; };
10
- this.onStart = attrs.onStart || function() {};
11
- this.exceptionFormatter = attrs.exceptionFormatter || function() {};
12
- this.getSpecName = attrs.getSpecName || function() { return ''; };
13
- this.expectationResultFactory = attrs.expectationResultFactory || function() { };
14
- this.queueRunnerFactory = attrs.queueRunnerFactory || function() {};
15
- this.catchingExceptions = attrs.catchingExceptions || function() { return true; };
16
-
17
- if (!this.fn) {
18
- this.pend();
19
- }
20
-
21
- this.result = {
22
- id: this.id,
23
- description: this.description,
24
- fullName: this.getFullName(),
25
- failedExpectations: [],
26
- passedExpectations: []
27
- };
28
- }
29
-
30
- Spec.prototype.addExpectationResult = function(passed, data) {
31
- var expectationResult = this.expectationResultFactory(data);
32
- if (passed) {
33
- this.result.passedExpectations.push(expectationResult);
34
- } else {
35
- this.result.failedExpectations.push(expectationResult);
36
- }
37
- };
38
-
39
- Spec.prototype.expect = function(actual) {
40
- return this.expectationFactory(actual, this);
41
- };
42
-
43
- Spec.prototype.execute = function(onComplete) {
44
- var self = this;
45
-
46
- this.onStart(this);
47
-
48
- if (this.markedPending || this.disabled) {
49
- complete();
50
- return;
51
- }
52
-
53
- var allFns = this.beforeFns().concat(this.fn).concat(this.afterFns());
54
-
55
- this.queueRunnerFactory({
56
- fns: allFns,
57
- onException: onException,
58
- onComplete: complete,
59
- enforceTimeout: function() { return true; }
60
- });
61
-
62
- function onException(e) {
63
- if (Spec.isPendingSpecException(e)) {
64
- self.pend();
65
- return;
66
- }
67
-
68
- self.addExpectationResult(false, {
69
- matcherName: '',
70
- passed: false,
71
- expected: '',
72
- actual: '',
73
- error: e
74
- });
75
- }
76
-
77
- function complete() {
78
- self.result.status = self.status();
79
- self.resultCallback(self.result);
80
-
81
- if (onComplete) {
82
- onComplete();
83
- }
84
- }
85
- };
86
-
87
- Spec.prototype.disable = function() {
88
- this.disabled = true;
89
- };
90
-
91
- Spec.prototype.pend = function() {
92
- this.markedPending = true;
93
- };
94
-
95
- Spec.prototype.status = function() {
96
- if (this.disabled) {
97
- return 'disabled';
98
- }
99
-
100
- if (this.markedPending) {
101
- return 'pending';
102
- }
103
-
104
- if (this.result.failedExpectations.length > 0) {
105
- return 'failed';
106
- } else {
107
- return 'passed';
108
- }
109
- };
110
-
111
- Spec.prototype.getFullName = function() {
112
- return this.getSpecName(this);
113
- };
114
-
115
- Spec.pendingSpecExceptionMessage = '=> marked Pending';
116
-
117
- Spec.isPendingSpecException = function(e) {
118
- return !!(e && e.toString && e.toString().indexOf(Spec.pendingSpecExceptionMessage) !== -1);
119
- };
120
-
121
- return Spec;
122
- };
123
-
124
- if (typeof window == void 0 && typeof exports == 'object') {
125
- exports.Spec = jasmineRequire.Spec;
126
- }
@@ -1,51 +0,0 @@
1
- getJasmineRequireObj().SpyStrategy = function() {
2
-
3
- function SpyStrategy(options) {
4
- options = options || {};
5
-
6
- var identity = options.name || 'unknown',
7
- originalFn = options.fn || function() {},
8
- getSpy = options.getSpy || function() {},
9
- plan = function() {};
10
-
11
- this.identity = function() {
12
- return identity;
13
- };
14
-
15
- this.exec = function() {
16
- return plan.apply(this, arguments);
17
- };
18
-
19
- this.callThrough = function() {
20
- plan = originalFn;
21
- return getSpy();
22
- };
23
-
24
- this.returnValue = function(value) {
25
- plan = function() {
26
- return value;
27
- };
28
- return getSpy();
29
- };
30
-
31
- this.throwError = function(something) {
32
- var error = (something instanceof Error) ? something : new Error(something);
33
- plan = function() {
34
- throw error;
35
- };
36
- return getSpy();
37
- };
38
-
39
- this.callFake = function(fn) {
40
- plan = fn;
41
- return getSpy();
42
- };
43
-
44
- this.stub = function(fn) {
45
- plan = function() {};
46
- return getSpy();
47
- };
48
- }
49
-
50
- return SpyStrategy;
51
- };