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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -1
- data/dist/up.js +138 -81
- data/dist/up.min.js +2 -2
- data/lib/assets/javascripts/up/boot.js.coffee +3 -0
- data/lib/assets/javascripts/up/browser.js.coffee +42 -26
- data/lib/assets/javascripts/up/flow.js.coffee +6 -4
- data/lib/assets/javascripts/up/history.js.coffee +1 -1
- data/lib/assets/javascripts/up/modal.js.coffee +4 -4
- data/lib/assets/javascripts/up/motion.js.coffee +6 -4
- data/lib/assets/javascripts/up/proxy.js.coffee +2 -1
- data/lib/assets/javascripts/up/util.js.coffee +61 -32
- data/lib/assets/javascripts/up.js.coffee +1 -10
- data/lib/upjs/rails/version.rb +1 -1
- data/spec_app/config/environments/development.rb +1 -1
- data/spec_app/spec/javascripts/helpers/reset_path.js.coffee +3 -2
- data/spec_app/spec/javascripts/up/flow_spec.js.coffee +1 -1
- data/spec_app/spec/javascripts/up/history_spec.js.coffee +53 -47
- data/spec_app/spec/javascripts/up/link_spec.js.coffee +1 -1
- data/spec_app/spec/javascripts/up/motion_spec.js.coffee +4 -4
- data/spec_app/spec/javascripts/up/proxy_spec.js.coffee +18 -9
- data/spec_app/vendor/assets/bower_components/jasmine/.bower.json +43 -7
- data/spec_app/vendor/assets/bower_components/jasmine/CONTRIBUTING.md +26 -17
- data/spec_app/vendor/assets/bower_components/jasmine/README.md +27 -18
- data/spec_app/vendor/assets/bower_components/jasmine/RELEASE.md +15 -5
- data/spec_app/vendor/assets/bower_components/jasmine/bower.json +41 -0
- data/spec_app/vendor/assets/bower_components/jasmine/lib/console/console.js +27 -3
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/boot.js +10 -9
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/{src → lib/jasmine_examples}/Player.js +0 -0
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/{src → lib/jasmine_examples}/Song.js +0 -0
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/jasmine-html.js +76 -20
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/jasmine.css +15 -18
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/jasmine.js +1399 -694
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/json2.js +73 -62
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/node_boot.js +1 -1
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core.js +29 -31
- data/spec_app/vendor/assets/bower_components/jasmine/package.json +18 -7
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/.bower.json +11 -13
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/MIT.LICENSE +1 -1
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/README.markdown +198 -125
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/bower.json +9 -10
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/lib/mock-ajax.js +250 -59
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/package.json +9 -4
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/2.0.2.md +50 -0
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/2.99.md +14 -0
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.0.md +28 -0
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.1.0.md +24 -0
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.1.1.md +23 -0
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.2.0.md +20 -0
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/.bower.json +4 -4
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/bower.json +1 -1
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/dist/jasmine-fixture.js +4 -4
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/dist/jasmine-fixture.min.js +2 -2
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/.bower.json +4 -4
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/Gruntfile.js +17 -1
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/{MIT.LICENSE → LICENSE} +0 -0
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/README.md +14 -9
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/bower.json +0 -1
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/lib/jasmine-jquery.js +35 -10
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/package.json +33 -24
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/fixtures/fixture_with_checkbox_with_checked.html +6 -0
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/suites/jasmine-jquery-spec.js +61 -1
- data/spec_app/vendor/assets/bower_components/jquery/.bower.json +5 -4
- data/spec_app/vendor/assets/bower_components/jquery/bower.json +2 -1
- data/spec_app/vendor/assets/bower_components/jquery/dist/jquery.js +9 -4
- data/spec_app/vendor/assets/bower_components/jquery/dist/jquery.min.js +4 -4
- data/spec_app/vendor/assets/bower_components/jquery/dist/jquery.min.map +1 -1
- data/spec_app/vendor/assets/bower_components/jquery/src/core.js +6 -1
- metadata +14 -175
- data/spec_app/vendor/assets/bower_components/jasmine/.gitignore +0 -24
- data/spec_app/vendor/assets/bower_components/jasmine/.gitmodules +0 -3
- data/spec_app/vendor/assets/bower_components/jasmine/.jshintrc +0 -9
- data/spec_app/vendor/assets/bower_components/jasmine/.npmignore +0 -21
- data/spec_app/vendor/assets/bower_components/jasmine/.rspec +0 -1
- data/spec_app/vendor/assets/bower_components/jasmine/.travis.yml +0 -51
- data/spec_app/vendor/assets/bower_components/jasmine/Gemfile +0 -12
- data/spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js +0 -53
- data/spec_app/vendor/assets/bower_components/jasmine/Rakefile +0 -18
- data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.0.0.zip +0 -0
- data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.1.0.zip +0 -0
- data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.2.0.zip +0 -0
- data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.3.0.zip +0 -0
- data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.3.1.zip +0 -0
- data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-2.0.0.zip +0 -0
- data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-2.0.1.zip +0 -0
- data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-2.0.2.zip +0 -0
- data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-2.0.3.zip +0 -0
- data/spec_app/vendor/assets/bower_components/jasmine/grunt/config/compass.js +0 -10
- data/spec_app/vendor/assets/bower_components/jasmine/grunt/config/compress.js +0 -66
- data/spec_app/vendor/assets/bower_components/jasmine/grunt/config/concat.js +0 -61
- data/spec_app/vendor/assets/bower_components/jasmine/grunt/config/jshint.js +0 -11
- data/spec_app/vendor/assets/bower_components/jasmine/grunt/tasks/build_standalone.js +0 -31
- data/spec_app/vendor/assets/bower_components/jasmine/grunt/tasks/version.js +0 -14
- data/spec_app/vendor/assets/bower_components/jasmine/grunt/templates/SpecRunner.html.jst +0 -26
- data/spec_app/vendor/assets/bower_components/jasmine/grunt/templates/licenseBanner.js.jst +0 -22
- data/spec_app/vendor/assets/bower_components/jasmine/grunt/templates/version.rb.jst +0 -9
- data/spec_app/vendor/assets/bower_components/jasmine/images/__init__.py +0 -0
- data/spec_app/vendor/assets/bower_components/jasmine/jasmine-core.gemspec +0 -23
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/__init__.py +0 -1
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/boot/boot.js +0 -120
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/boot/node_boot.js +0 -19
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/core.py +0 -60
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/spec/PlayerSpec.js +0 -60
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/spec/SpecHelper.js +0 -15
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/spec/PlayerSpec.js +0 -58
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/spec/SpecHelper.js +0 -15
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/src/Player.js +0 -22
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/src/Song.js +0 -7
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/version.rb +0 -9
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core.rb +0 -53
- data/spec_app/vendor/assets/bower_components/jasmine/release_notes/2.0.1.md +0 -70
- data/spec_app/vendor/assets/bower_components/jasmine/release_notes/2.0.2.md +0 -25
- data/spec_app/vendor/assets/bower_components/jasmine/release_notes/20.md +0 -179
- data/spec_app/vendor/assets/bower_components/jasmine/setup.py +0 -47
- data/spec_app/vendor/assets/bower_components/jasmine/spec/console/ConsoleReporterSpec.js +0 -239
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/AnySpec.js +0 -46
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/CallTrackerSpec.js +0 -105
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ClockSpec.js +0 -445
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/DelayedFunctionSchedulerSpec.js +0 -246
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/EnvSpec.js +0 -85
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ExceptionFormatterSpec.js +0 -63
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ExceptionsSpec.js +0 -68
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ExpectationResultSpec.js +0 -61
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ExpectationSpec.js +0 -427
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/JsApiReporterSpec.js +0 -214
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/MockDateSpec.js +0 -199
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ObjectContainingSpec.js +0 -70
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/PrettyPrintSpec.js +0 -156
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/QueueRunnerSpec.js +0 -271
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ReportDispatcherSpec.js +0 -40
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/SpecSpec.js +0 -260
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/SpySpec.js +0 -67
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/SpyStrategySpec.js +0 -111
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/SuiteSpec.js +0 -216
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/TimerSpec.js +0 -31
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/UtilSpec.js +0 -28
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/integration/CustomMatchersSpec.js +0 -149
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/integration/EnvSpec.js +0 -506
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/integration/SpecRunningSpec.js +0 -306
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/matchersUtilSpec.js +0 -239
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeCloseToSpec.js +0 -51
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeDefinedSpec.js +0 -18
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeFalsySpec.js +0 -38
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeGreaterThanSpec.js +0 -20
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js +0 -20
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeNaNSpec.js +0 -37
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeNullSpec.js +0 -17
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeSpec.js +0 -17
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeTruthySpec.js +0 -38
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeUndefinedSpec.js +0 -18
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toContainSpec.js +0 -26
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toEqualSpec.js +0 -28
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toHaveBeenCalledSpec.js +0 -47
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toHaveBeenCalledWithSpec.js +0 -66
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toMatchSpec.js +0 -34
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toThrowErrorSpec.js +0 -280
- data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toThrowSpec.js +0 -99
- data/spec_app/vendor/assets/bower_components/jasmine/spec/helpers/BrowserFlags.js +0 -23
- data/spec_app/vendor/assets/bower_components/jasmine/spec/helpers/defineJasmineUnderTest.js +0 -7
- data/spec_app/vendor/assets/bower_components/jasmine/spec/helpers/nodeDefineJasmineUnderTest.js +0 -33
- data/spec_app/vendor/assets/bower_components/jasmine/spec/html/HtmlReporterSpec.js +0 -616
- data/spec_app/vendor/assets/bower_components/jasmine/spec/html/HtmlSpecFilterSpec.js +0 -18
- data/spec_app/vendor/assets/bower_components/jasmine/spec/html/MatchersHtmlSpec.js +0 -37
- data/spec_app/vendor/assets/bower_components/jasmine/spec/html/PrettyPrintHtmlSpec.js +0 -15
- data/spec_app/vendor/assets/bower_components/jasmine/spec/html/QueryStringSpec.js +0 -43
- data/spec_app/vendor/assets/bower_components/jasmine/spec/html/ResultsNodeSpec.js +0 -62
- data/spec_app/vendor/assets/bower_components/jasmine/spec/javascripts/support/jasmine_selenium_runner.yml +0 -16
- data/spec_app/vendor/assets/bower_components/jasmine/spec/performance/large_object_test.js +0 -36
- data/spec_app/vendor/assets/bower_components/jasmine/spec/performance/performance_test.js +0 -10
- data/spec_app/vendor/assets/bower_components/jasmine/spec/support/jasmine-performance.json +0 -9
- data/spec_app/vendor/assets/bower_components/jasmine/spec/support/jasmine-performance.yml +0 -9
- data/spec_app/vendor/assets/bower_components/jasmine/spec/support/jasmine.json +0 -10
- data/spec_app/vendor/assets/bower_components/jasmine/spec/support/jasmine.yml +0 -25
- data/spec_app/vendor/assets/bower_components/jasmine/src/console/ConsoleReporter.js +0 -131
- data/spec_app/vendor/assets/bower_components/jasmine/src/console/requireConsole.js +0 -12
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js +0 -36
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/CallTracker.js +0 -50
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/Clock.js +0 -113
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/DelayedFunctionScheduler.js +0 -145
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/Env.js +0 -341
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js +0 -29
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/Expectation.js +0 -107
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/ExpectationResult.js +0 -45
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js +0 -73
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/MockDate.js +0 -81
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/ObjectContaining.js +0 -34
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/PrettyPrinter.js +0 -137
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/QueueRunner.js +0 -92
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/ReportDispatcher.js +0 -35
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/Spec.js +0 -126
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/SpyStrategy.js +0 -51
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/Suite.js +0 -92
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/Timer.js +0 -22
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/base.js +0 -102
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/matchersUtil.js +0 -181
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/requireMatchers.js +0 -29
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBe.js +0 -13
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeCloseTo.js +0 -18
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeDefined.js +0 -13
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeFalsy.js +0 -13
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeGreaterThan.js +0 -15
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeLessThan.js +0 -14
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeNaN.js +0 -22
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeNull.js +0 -14
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeTruthy.js +0 -14
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeUndefined.js +0 -14
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toContain.js +0 -16
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toEqual.js +0 -20
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toHaveBeenCalled.js +0 -28
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toHaveBeenCalledWith.js +0 -33
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toMatch.js +0 -16
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toThrow.js +0 -46
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toThrowError.js +0 -156
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/requireCore.js +0 -39
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js +0 -59
- data/spec_app/vendor/assets/bower_components/jasmine/src/core/util.js +0 -44
- data/spec_app/vendor/assets/bower_components/jasmine/src/html/HtmlReporter.js +0 -280
- data/spec_app/vendor/assets/bower_components/jasmine/src/html/HtmlSpecFilter.js +0 -12
- data/spec_app/vendor/assets/bower_components/jasmine/src/html/QueryString.js +0 -47
- data/spec_app/vendor/assets/bower_components/jasmine/src/html/ResultsNode.js +0 -19
- data/spec_app/vendor/assets/bower_components/jasmine/src/html/_HTMLReporter.scss +0 -355
- data/spec_app/vendor/assets/bower_components/jasmine/src/html/jasmine.scss +0 -1
- data/spec_app/vendor/assets/bower_components/jasmine/src/html/requireHtml.js +0 -6
- data/spec_app/vendor/assets/bower_components/jasmine/src/templates/example_project_jasmine_tags.html.erb +0 -3
- data/spec_app/vendor/assets/bower_components/jasmine/src/templates/version.js.erb +0 -7
- data/spec_app/vendor/assets/bower_components/jasmine/src/templates/version.rb.erb +0 -6
- data/spec_app/vendor/assets/bower_components/jasmine/src/version.js +0 -3
- data/spec_app/vendor/assets/bower_components/jasmine/travis-core-script.sh +0 -14
- data/spec_app/vendor/assets/bower_components/jasmine/travis-docs-script.sh +0 -5
- data/spec_app/vendor/assets/bower_components/jasmine/travis-node-script.sh +0 -6
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/Gruntfile.js +0 -63
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/boot.js +0 -11
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/fakeRequest.js +0 -262
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/mockAjax.js +0 -45
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/paramParser.js +0 -56
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/requestStub.js +0 -42
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/requestTracker.js +0 -51
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/requireAjax.js +0 -44
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/stubTracker.js +0 -24
@@ -1,13 +1,13 @@
|
|
1
1
|
/*
|
2
2
|
|
3
|
-
Jasmine-Ajax : a set of helpers for testing AJAX requests under the Jasmine
|
3
|
+
Jasmine-Ajax - v3.1.1: a set of helpers for testing AJAX requests under the Jasmine
|
4
4
|
BDD framework for JavaScript.
|
5
5
|
|
6
|
-
http://github.com/
|
6
|
+
http://github.com/jasmine/jasmine-ajax
|
7
7
|
|
8
|
-
Jasmine Home page: http://
|
8
|
+
Jasmine Home page: http://jasmine.github.io/
|
9
9
|
|
10
|
-
Copyright (c) 2008-
|
10
|
+
Copyright (c) 2008-2015 Pivotal Labs
|
11
11
|
|
12
12
|
Permission is hereby granted, free of charge, to any person obtaining
|
13
13
|
a copy of this software and associated documentation files (the
|
@@ -37,13 +37,130 @@ getJasmineRequireObj().ajax = function(jRequire) {
|
|
37
37
|
$ajax.RequestTracker = jRequire.AjaxRequestTracker();
|
38
38
|
$ajax.StubTracker = jRequire.AjaxStubTracker();
|
39
39
|
$ajax.ParamParser = jRequire.AjaxParamParser();
|
40
|
-
$ajax.
|
40
|
+
$ajax.event = jRequire.AjaxEvent();
|
41
|
+
$ajax.eventBus = jRequire.AjaxEventBus($ajax.event);
|
42
|
+
$ajax.fakeRequest = jRequire.AjaxFakeRequest($ajax.eventBus);
|
41
43
|
$ajax.MockAjax = jRequire.MockAjax($ajax);
|
42
44
|
|
43
45
|
return $ajax.MockAjax;
|
44
46
|
};
|
45
47
|
|
46
|
-
getJasmineRequireObj().
|
48
|
+
getJasmineRequireObj().AjaxEvent = function() {
|
49
|
+
function now() {
|
50
|
+
return new Date().getTime();
|
51
|
+
}
|
52
|
+
|
53
|
+
function noop() {
|
54
|
+
}
|
55
|
+
|
56
|
+
// Event object
|
57
|
+
// https://dom.spec.whatwg.org/#concept-event
|
58
|
+
function XMLHttpRequestEvent(xhr, type) {
|
59
|
+
this.type = type;
|
60
|
+
this.bubbles = false;
|
61
|
+
this.cancelable = false;
|
62
|
+
this.timeStamp = now();
|
63
|
+
|
64
|
+
this.isTrusted = false;
|
65
|
+
this.defaultPrevented = false;
|
66
|
+
|
67
|
+
// Event phase should be "AT_TARGET"
|
68
|
+
// https://dom.spec.whatwg.org/#dom-event-at_target
|
69
|
+
this.eventPhase = 2;
|
70
|
+
|
71
|
+
this.target = xhr;
|
72
|
+
this.currentTarget = xhr;
|
73
|
+
}
|
74
|
+
|
75
|
+
XMLHttpRequestEvent.prototype.preventDefault = noop;
|
76
|
+
XMLHttpRequestEvent.prototype.stopPropagation = noop;
|
77
|
+
XMLHttpRequestEvent.prototype.stopImmediatePropagation = noop;
|
78
|
+
|
79
|
+
function XMLHttpRequestProgressEvent() {
|
80
|
+
XMLHttpRequestEvent.apply(this, arguments);
|
81
|
+
|
82
|
+
this.lengthComputable = false;
|
83
|
+
this.loaded = 0;
|
84
|
+
this.total = 0;
|
85
|
+
}
|
86
|
+
|
87
|
+
// Extend prototype
|
88
|
+
XMLHttpRequestProgressEvent.prototype = XMLHttpRequestEvent.prototype;
|
89
|
+
|
90
|
+
return {
|
91
|
+
event: function(xhr, type) {
|
92
|
+
return new XMLHttpRequestEvent(xhr, type);
|
93
|
+
},
|
94
|
+
|
95
|
+
progressEvent: function(xhr, type) {
|
96
|
+
return new XMLHttpRequestProgressEvent(xhr, type);
|
97
|
+
}
|
98
|
+
};
|
99
|
+
};
|
100
|
+
getJasmineRequireObj().AjaxEventBus = function(eventFactory) {
|
101
|
+
function EventBus(source) {
|
102
|
+
this.eventList = {};
|
103
|
+
this.source = source;
|
104
|
+
}
|
105
|
+
|
106
|
+
function ensureEvent(eventList, name) {
|
107
|
+
eventList[name] = eventList[name] || [];
|
108
|
+
return eventList[name];
|
109
|
+
}
|
110
|
+
|
111
|
+
function findIndex(list, thing) {
|
112
|
+
if (list.indexOf) {
|
113
|
+
return list.indexOf(thing);
|
114
|
+
}
|
115
|
+
|
116
|
+
for(var i = 0; i < list.length; i++) {
|
117
|
+
if (thing === list[i]) {
|
118
|
+
return i;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
return -1;
|
123
|
+
}
|
124
|
+
|
125
|
+
EventBus.prototype.addEventListener = function(event, callback) {
|
126
|
+
ensureEvent(this.eventList, event).push(callback);
|
127
|
+
};
|
128
|
+
|
129
|
+
EventBus.prototype.removeEventListener = function(event, callback) {
|
130
|
+
var index = findIndex(this.eventList[event], callback);
|
131
|
+
|
132
|
+
if (index >= 0) {
|
133
|
+
this.eventList[event].splice(index, 1);
|
134
|
+
}
|
135
|
+
};
|
136
|
+
|
137
|
+
EventBus.prototype.trigger = function(event) {
|
138
|
+
var evt;
|
139
|
+
|
140
|
+
// Event 'readystatechange' is should be a simple event.
|
141
|
+
// Others are progress event.
|
142
|
+
// https://xhr.spec.whatwg.org/#events
|
143
|
+
if (event === 'readystatechange') {
|
144
|
+
evt = eventFactory.event(this.source, event);
|
145
|
+
} else {
|
146
|
+
evt = eventFactory.progressEvent(this.source, event);
|
147
|
+
}
|
148
|
+
|
149
|
+
var eventListeners = this.eventList[event];
|
150
|
+
|
151
|
+
if (eventListeners) {
|
152
|
+
for (var i = 0; i < eventListeners.length; i++) {
|
153
|
+
eventListeners[i].call(this.source, evt);
|
154
|
+
}
|
155
|
+
}
|
156
|
+
};
|
157
|
+
|
158
|
+
return function(source) {
|
159
|
+
return new EventBus(source);
|
160
|
+
};
|
161
|
+
};
|
162
|
+
|
163
|
+
getJasmineRequireObj().AjaxFakeRequest = function(eventBusFactory) {
|
47
164
|
function extend(destination, source, propertiesToSkip) {
|
48
165
|
propertiesToSkip = propertiesToSkip || [];
|
49
166
|
for (var property in source) {
|
@@ -66,27 +183,37 @@ getJasmineRequireObj().AjaxFakeRequest = function() {
|
|
66
183
|
function wrapProgressEvent(xhr, eventName) {
|
67
184
|
return function() {
|
68
185
|
if (xhr[eventName]) {
|
69
|
-
xhr[eventName]();
|
186
|
+
xhr[eventName].apply(xhr, arguments);
|
70
187
|
}
|
71
188
|
};
|
72
189
|
}
|
73
190
|
|
74
191
|
function initializeEvents(xhr) {
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
192
|
+
xhr.eventBus.addEventListener('readystatechange', wrapProgressEvent(xhr, 'onreadystatechange'));
|
193
|
+
xhr.eventBus.addEventListener('loadstart', wrapProgressEvent(xhr, 'onloadstart'));
|
194
|
+
xhr.eventBus.addEventListener('load', wrapProgressEvent(xhr, 'onload'));
|
195
|
+
xhr.eventBus.addEventListener('loadend', wrapProgressEvent(xhr, 'onloadend'));
|
196
|
+
xhr.eventBus.addEventListener('progress', wrapProgressEvent(xhr, 'onprogress'));
|
197
|
+
xhr.eventBus.addEventListener('error', wrapProgressEvent(xhr, 'onerror'));
|
198
|
+
xhr.eventBus.addEventListener('abort', wrapProgressEvent(xhr, 'onabort'));
|
199
|
+
xhr.eventBus.addEventListener('timeout', wrapProgressEvent(xhr, 'ontimeout'));
|
200
|
+
}
|
201
|
+
|
202
|
+
function unconvertibleResponseTypeMessage(type) {
|
203
|
+
var msg = [
|
204
|
+
"Can't build XHR.response for XHR.responseType of '",
|
205
|
+
type,
|
206
|
+
"'.",
|
207
|
+
"XHR.response must be explicitly stubbed"
|
208
|
+
];
|
209
|
+
return msg.join(' ');
|
84
210
|
}
|
85
211
|
|
86
212
|
function fakeRequest(global, requestTracker, stubTracker, paramParser) {
|
87
213
|
function FakeXMLHttpRequest() {
|
88
214
|
requestTracker.track(this);
|
89
|
-
this.
|
215
|
+
this.eventBus = eventBusFactory(this);
|
216
|
+
initializeEvents(this);
|
90
217
|
this.requestHeaders = {};
|
91
218
|
this.overriddenMimeType = null;
|
92
219
|
}
|
@@ -151,7 +278,7 @@ getJasmineRequireObj().AjaxFakeRequest = function() {
|
|
151
278
|
this.username = arguments[3];
|
152
279
|
this.password = arguments[4];
|
153
280
|
this.readyState = 1;
|
154
|
-
this.
|
281
|
+
this.eventBus.trigger('readystatechange');
|
155
282
|
},
|
156
283
|
|
157
284
|
setRequestHeader: function(header, value) {
|
@@ -170,10 +297,10 @@ getJasmineRequireObj().AjaxFakeRequest = function() {
|
|
170
297
|
this.readyState = 0;
|
171
298
|
this.status = 0;
|
172
299
|
this.statusText = "abort";
|
173
|
-
this.
|
174
|
-
this.
|
175
|
-
this.
|
176
|
-
this.
|
300
|
+
this.eventBus.trigger('readystatechange');
|
301
|
+
this.eventBus.trigger('progress');
|
302
|
+
this.eventBus.trigger('abort');
|
303
|
+
this.eventBus.trigger('loadend');
|
177
304
|
},
|
178
305
|
|
179
306
|
readyState: 0,
|
@@ -185,31 +312,31 @@ getJasmineRequireObj().AjaxFakeRequest = function() {
|
|
185
312
|
onload: null,
|
186
313
|
ontimeout: null,
|
187
314
|
onloadend: null,
|
315
|
+
onreadystatechange: null,
|
188
316
|
|
189
|
-
|
317
|
+
addEventListener: function() {
|
318
|
+
this.eventBus.addEventListener.apply(this.eventBus, arguments);
|
190
319
|
},
|
191
320
|
|
192
|
-
|
193
|
-
|
194
|
-
self = this;
|
195
|
-
|
196
|
-
this.events[event] = function() {
|
197
|
-
callback.apply(self);
|
198
|
-
existingCallback();
|
199
|
-
};
|
321
|
+
removeEventListener: function(event, callback) {
|
322
|
+
this.eventBus.removeEventListener.apply(this.eventBus, arguments);
|
200
323
|
},
|
201
324
|
|
202
325
|
status: null,
|
203
326
|
|
204
327
|
send: function(data) {
|
205
328
|
this.params = data;
|
206
|
-
this.
|
207
|
-
this.events.loadstart();
|
208
|
-
this.onreadystatechange();
|
329
|
+
this.eventBus.trigger('loadstart');
|
209
330
|
|
210
331
|
var stub = stubTracker.findStub(this.url, data, this.method);
|
211
332
|
if (stub) {
|
212
|
-
|
333
|
+
if (stub.isReturn()) {
|
334
|
+
this.respondWith(stub);
|
335
|
+
} else if (stub.isError()) {
|
336
|
+
this.responseError();
|
337
|
+
} else if (stub.isTimeout()) {
|
338
|
+
this.responseTimeout();
|
339
|
+
}
|
213
340
|
}
|
214
341
|
},
|
215
342
|
|
@@ -247,33 +374,60 @@ getJasmineRequireObj().AjaxFakeRequest = function() {
|
|
247
374
|
responseHeaders.push(this.responseHeaders[i].name + ': ' +
|
248
375
|
this.responseHeaders[i].value);
|
249
376
|
}
|
250
|
-
return responseHeaders.join('\r\n');
|
377
|
+
return responseHeaders.join('\r\n') + '\r\n';
|
251
378
|
},
|
252
379
|
|
253
380
|
responseText: null,
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
381
|
+
response: null,
|
382
|
+
responseType: null,
|
383
|
+
|
384
|
+
responseValue: function() {
|
385
|
+
switch(this.responseType) {
|
386
|
+
case null:
|
387
|
+
case "":
|
388
|
+
case "text":
|
389
|
+
return this.readyState >= 3 ? this.responseText : "";
|
390
|
+
case "json":
|
391
|
+
return JSON.parse(this.responseText);
|
392
|
+
case "arraybuffer":
|
393
|
+
throw unconvertibleResponseTypeMessage('arraybuffer');
|
394
|
+
case "blob":
|
395
|
+
throw unconvertibleResponseTypeMessage('blob');
|
396
|
+
case "document":
|
397
|
+
return this.responseXML;
|
258
398
|
}
|
259
|
-
this.respondWith(response);
|
260
399
|
},
|
261
400
|
|
401
|
+
|
262
402
|
respondWith: function(response) {
|
263
403
|
if (this.readyState === 4) {
|
264
404
|
throw new Error("FakeXMLHttpRequest already completed");
|
265
405
|
}
|
406
|
+
|
266
407
|
this.status = response.status;
|
267
408
|
this.statusText = response.statusText || "";
|
409
|
+
this.responseHeaders = normalizeHeaders(response.responseHeaders, response.contentType);
|
410
|
+
this.readyState = 2;
|
411
|
+
this.eventBus.trigger('readystatechange');
|
412
|
+
|
268
413
|
this.responseText = response.responseText || "";
|
414
|
+
this.responseType = response.responseType || "";
|
269
415
|
this.readyState = 4;
|
270
|
-
this.responseHeaders = normalizeHeaders(response.responseHeaders, response.contentType);
|
271
416
|
this.responseXML = getResponseXml(response.responseText, this.getResponseHeader('content-type') || '');
|
417
|
+
if (this.responseXML) {
|
418
|
+
this.responseType = 'document';
|
419
|
+
}
|
272
420
|
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
421
|
+
if ('response' in response) {
|
422
|
+
this.response = response.response;
|
423
|
+
} else {
|
424
|
+
this.response = this.responseValue();
|
425
|
+
}
|
426
|
+
|
427
|
+
this.eventBus.trigger('readystatechange');
|
428
|
+
this.eventBus.trigger('progress');
|
429
|
+
this.eventBus.trigger('load');
|
430
|
+
this.eventBus.trigger('loadend');
|
277
431
|
},
|
278
432
|
|
279
433
|
responseTimeout: function() {
|
@@ -282,10 +436,10 @@ getJasmineRequireObj().AjaxFakeRequest = function() {
|
|
282
436
|
}
|
283
437
|
this.readyState = 4;
|
284
438
|
jasmine.clock().tick(30000);
|
285
|
-
this.
|
286
|
-
this.
|
287
|
-
this.
|
288
|
-
this.
|
439
|
+
this.eventBus.trigger('readystatechange');
|
440
|
+
this.eventBus.trigger('progress');
|
441
|
+
this.eventBus.trigger('timeout');
|
442
|
+
this.eventBus.trigger('loadend');
|
289
443
|
},
|
290
444
|
|
291
445
|
responseError: function() {
|
@@ -293,10 +447,10 @@ getJasmineRequireObj().AjaxFakeRequest = function() {
|
|
293
447
|
throw new Error("FakeXMLHttpRequest already completed");
|
294
448
|
}
|
295
449
|
this.readyState = 4;
|
296
|
-
this.
|
297
|
-
this.
|
298
|
-
this.
|
299
|
-
this.
|
450
|
+
this.eventBus.trigger('readystatechange');
|
451
|
+
this.eventBus.trigger('progress');
|
452
|
+
this.eventBus.trigger('error');
|
453
|
+
this.eventBus.trigger('loadend');
|
300
454
|
}
|
301
455
|
});
|
302
456
|
|
@@ -315,6 +469,10 @@ getJasmineRequireObj().MockAjax = function($ajax) {
|
|
315
469
|
mockAjaxFunction = $ajax.fakeRequest(global, requestTracker, stubTracker, paramParser);
|
316
470
|
|
317
471
|
this.install = function() {
|
472
|
+
if (global.XMLHttpRequest === mockAjaxFunction) {
|
473
|
+
throw "MockAjax is already installed.";
|
474
|
+
}
|
475
|
+
|
318
476
|
global.XMLHttpRequest = mockAjaxFunction;
|
319
477
|
};
|
320
478
|
|
@@ -410,6 +568,10 @@ getJasmineRequireObj().AjaxParamParser = function() {
|
|
410
568
|
};
|
411
569
|
|
412
570
|
getJasmineRequireObj().AjaxRequestStub = function() {
|
571
|
+
var RETURN = 0,
|
572
|
+
ERROR = 1,
|
573
|
+
TIMEOUT = 2;
|
574
|
+
|
413
575
|
function RequestStub(url, stubData, method) {
|
414
576
|
var normalizeQuery = function(query) {
|
415
577
|
return query ? query.split('&').sort().join('&') : undefined;
|
@@ -424,28 +586,57 @@ getJasmineRequireObj().AjaxRequestStub = function() {
|
|
424
586
|
this.query = split.length > 1 ? normalizeQuery(split[1]) : undefined;
|
425
587
|
}
|
426
588
|
|
427
|
-
this.data = normalizeQuery(stubData);
|
589
|
+
this.data = (stubData instanceof RegExp) ? stubData : normalizeQuery(stubData);
|
428
590
|
this.method = method;
|
429
591
|
|
430
592
|
this.andReturn = function(options) {
|
593
|
+
this.action = RETURN;
|
431
594
|
this.status = options.status || 200;
|
432
595
|
|
433
596
|
this.contentType = options.contentType;
|
597
|
+
this.response = options.response;
|
434
598
|
this.responseText = options.responseText;
|
599
|
+
this.responseHeaders = options.responseHeaders;
|
600
|
+
};
|
601
|
+
|
602
|
+
this.isReturn = function() {
|
603
|
+
return this.action === RETURN;
|
604
|
+
};
|
605
|
+
|
606
|
+
this.andError = function() {
|
607
|
+
this.action = ERROR;
|
608
|
+
};
|
609
|
+
|
610
|
+
this.isError = function() {
|
611
|
+
return this.action === ERROR;
|
612
|
+
};
|
613
|
+
|
614
|
+
this.andTimeout = function() {
|
615
|
+
this.action = TIMEOUT;
|
616
|
+
};
|
617
|
+
|
618
|
+
this.isTimeout = function() {
|
619
|
+
return this.action === TIMEOUT;
|
435
620
|
};
|
436
621
|
|
437
622
|
this.matches = function(fullUrl, data, method) {
|
438
|
-
var
|
623
|
+
var urlMatches = false;
|
439
624
|
fullUrl = fullUrl.toString();
|
440
625
|
if (this.url instanceof RegExp) {
|
441
|
-
|
626
|
+
urlMatches = this.url.test(fullUrl);
|
442
627
|
} else {
|
443
628
|
var urlSplit = fullUrl.split('?'),
|
444
629
|
url = urlSplit[0],
|
445
630
|
query = urlSplit[1];
|
446
|
-
|
631
|
+
urlMatches = this.url === url && this.query === normalizeQuery(query);
|
632
|
+
}
|
633
|
+
var dataMatches = false;
|
634
|
+
if (this.data instanceof RegExp) {
|
635
|
+
dataMatches = this.data.test(data);
|
636
|
+
} else {
|
637
|
+
dataMatches = !this.data || this.data === normalizeQuery(data);
|
447
638
|
}
|
448
|
-
return
|
639
|
+
return urlMatches && dataMatches && (!this.method || this.method === method);
|
449
640
|
};
|
450
641
|
}
|
451
642
|
|
@@ -1,14 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "jasmine-ajax",
|
3
3
|
"description": "A library for faking Ajax responses in your Jasmine suite",
|
4
|
-
"
|
4
|
+
"version": "3.2.0",
|
5
5
|
"main": "lib/mock-ajax.js",
|
6
|
-
"version": "2.99.0",
|
7
|
-
"private": false,
|
8
6
|
"license": "MIT",
|
7
|
+
|
8
|
+
"url": "https://github.com/jasmine/jasmine-ajax",
|
9
|
+
"contributors": [
|
10
|
+
"Gregg Van Hove <gregg@slackersoft.net>",
|
11
|
+
"JR Boyens <jboyens@fooninja.org>"
|
12
|
+
],
|
13
|
+
"private": false,
|
9
14
|
"repository": {
|
10
15
|
"type": "git",
|
11
|
-
"url": "https://github.com/
|
16
|
+
"url": "https://github.com/jasmine/jasmine-ajax"
|
12
17
|
},
|
13
18
|
"dependencies": {},
|
14
19
|
"devDependencies": {
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# Jasmine-Ajax 2.0.2 Release Notes
|
2
|
+
|
3
|
+
## Summary
|
4
|
+
|
5
|
+
Release of jasmine-ajax with many fixes to be more compatible with the full XHR spec.
|
6
|
+
|
7
|
+
## Changes
|
8
|
+
|
9
|
+
- Combine request headers with the same name
|
10
|
+
- Find response case-insensitively
|
11
|
+
- Split into multiple files for development
|
12
|
+
- We use the `getJasmineRequireObj()` for loading dependencies
|
13
|
+
- CI runs specs against both separate and concatenated files
|
14
|
+
|
15
|
+
## Pull Requests and Issues
|
16
|
+
- Allow progress event callbacks to be null instead of just empty functions.
|
17
|
+
- Fixes [#85](http://github.com/pivotal/jasmine-ajax/issues/85)
|
18
|
+
|
19
|
+
- Support listening to XHR progress events via `addEventListener`
|
20
|
+
- Fixes [#79](http://github.com/pivotal/jasmine-ajax/issues/79)
|
21
|
+
|
22
|
+
- Support all XHR events
|
23
|
+
- Fixes [#81](http://github.com/pivotal/jasmine-ajax/issues/81)
|
24
|
+
- Fixes [#82](http://github.com/pivotal/jasmine-ajax/issues/82)
|
25
|
+
|
26
|
+
- Parse `responseText` into a `responseXML` if the contentType is xml-ish
|
27
|
+
- Fixes [#55](http://github.com/pivotal/jasmine-ajax/issues/55)
|
28
|
+
|
29
|
+
- Un-pin jasmine dependency from version 2.0.0
|
30
|
+
- Merges [#76](http://github.com/pivotal/jasmine-ajax/issues/76) from @macroeyes
|
31
|
+
|
32
|
+
- added support for multiple headers with same name
|
33
|
+
- Merges [#72](http://github.com/pivotal/jasmine-ajax/issues/72) from @resident-uhlig
|
34
|
+
|
35
|
+
- Record overridden mime types
|
36
|
+
- Fixes [#74](http://github.com/pivotal/jasmine-ajax/issues/74)
|
37
|
+
|
38
|
+
- Throw an error if response() is called more than once on requests
|
39
|
+
- Fixes [#70](http://github.com/pivotal/jasmine-ajax/issues/70)
|
40
|
+
- Merges [#71](http://github.com/pivotal/jasmine-ajax/issues/71) from @kmontag
|
41
|
+
|
42
|
+
- Allow stubs to match only a particular http method (GET, POST, PUT, etc.)
|
43
|
+
- Fixes [#36](http://github.com/pivotal/jasmine-ajax/issues/36)
|
44
|
+
|
45
|
+
- Add some files to the bower.json ignore list
|
46
|
+
- Merges [#69](http://github.com/pivotal/jasmine-ajax/issues/69 ) from @lencioni
|
47
|
+
|
48
|
+
------
|
49
|
+
|
50
|
+
_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Jasmine-Ajax 2.99 Release Notes
|
2
|
+
|
3
|
+
## Summary
|
4
|
+
|
5
|
+
Release of jasmine-ajax to provide a non-breaking upgrade path as we move to support XHR 2.
|
6
|
+
|
7
|
+
## Changes
|
8
|
+
|
9
|
+
- Deprecate the `response` function on fake request in favor of `respondWith`.
|
10
|
+
|
11
|
+
|
12
|
+
------
|
13
|
+
|
14
|
+
_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Jasmine-Ajax 3.0 Release Notes
|
2
|
+
|
3
|
+
## Summary
|
4
|
+
|
5
|
+
Support XHR 2
|
6
|
+
|
7
|
+
This release contains a breaking change. The `response` method is no longer supported, you should use `respondWith` instead.
|
8
|
+
|
9
|
+
## Changes
|
10
|
+
|
11
|
+
* Add grunt tasks for releasing packages
|
12
|
+
* Bring npm and bower configurations in line with each other
|
13
|
+
* Also test in IE 11 on travis
|
14
|
+
|
15
|
+
## Pull Requests & Issues
|
16
|
+
|
17
|
+
* Include trailing newline in response headers to match browsers.
|
18
|
+
- Fixes [#91](https://github.com/jasmine/jasmine-ajax/issues/91)
|
19
|
+
|
20
|
+
* modify example code 'response' method is deprecated. use 'respondWith' instead
|
21
|
+
- Merges [#87](https://github.com/jasmine/jasmine-ajax/issues/87) from @Mstudio-Ishikawa
|
22
|
+
|
23
|
+
* Support for XHR 2
|
24
|
+
- Merges [#60](https://github.com/jasmine/jasmine-ajax/issues/60) from @albertyw
|
25
|
+
|
26
|
+
------
|
27
|
+
|
28
|
+
_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Jasmine-Ajax 3.1 Release Notes
|
2
|
+
|
3
|
+
## Summary
|
4
|
+
|
5
|
+
This is a maintenance release.
|
6
|
+
|
7
|
+
## Changes
|
8
|
+
|
9
|
+
* Add safari 7 & 8 to browser matrix
|
10
|
+
|
11
|
+
## Pull Requests & Issues
|
12
|
+
|
13
|
+
* Add version number to combined file
|
14
|
+
- Fixes #93
|
15
|
+
|
16
|
+
* Implement `removeEventListener`
|
17
|
+
- Merges #89 from @illiptic
|
18
|
+
|
19
|
+
* Add `responseHeaders` to `andReturn` s options
|
20
|
+
- Merges #94 from @tomalec
|
21
|
+
|
22
|
+
------
|
23
|
+
|
24
|
+
_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Jasmine-Ajax 3.1 Release Notes
|
2
|
+
|
3
|
+
## Pull Requests & Issues
|
4
|
+
|
5
|
+
* Loosen bower dependency on jasmine
|
6
|
+
- Fixes [#106](https://github.com/jasmine/jasmine-ajax/issues/106)
|
7
|
+
|
8
|
+
* Event readystatechange is triggered when headers are available
|
9
|
+
- Merges [#104](https://github.com/jasmine/jasmine-ajax/issues/104) from @mjeanroy
|
10
|
+
- Fixes [#97](https://github.com/jasmine/jasmine-ajax/issues/97)
|
11
|
+
- Fixes [#103](https://github.com/jasmine/jasmine-ajax/issues/103)
|
12
|
+
- Fixes [#102](https://github.com/jasmine/jasmine-ajax/issues/102)
|
13
|
+
|
14
|
+
* Throw error on duplicate calls to MockAjax#install.
|
15
|
+
- Merges [#98](https://github.com/jasmine/jasmine-ajax/issues/98) from @jhamon
|
16
|
+
- Fixes [#96](https://github.com/jasmine/jasmine-ajax/issues/96)
|
17
|
+
|
18
|
+
* Readme tweaks and updated links
|
19
|
+
- Merges [#99](https://github.com/jasmine/jasmine-ajax/issues/99) from @jhamon
|
20
|
+
|
21
|
+
------
|
22
|
+
|
23
|
+
_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Jasmine-Ajax 3.2.0 Release Notes
|
2
|
+
|
3
|
+
## Pull Requests & Issues
|
4
|
+
|
5
|
+
* Set the `this` context for event handler to the current XHR and pass proper ProgressEvent arguments
|
6
|
+
- Merges [#114](https://github.com/jasmine/jasmine-ajax/issues/114) from @mjeanroy
|
7
|
+
- Fixes [#108](https://github.com/jasmine/jasmine-ajax/issues/108)
|
8
|
+
|
9
|
+
* added feature to match data/query against RegExp
|
10
|
+
- Merges [#116](https://github.com/jasmine/jasmine-ajax/issues/116) from @SunboX
|
11
|
+
- Fixes [#115](https://github.com/jasmine/jasmine-ajax/issues/115)
|
12
|
+
|
13
|
+
* Allow error and timeout using RequestStub
|
14
|
+
- Merges [#112](https://github.com/jasmine/jasmine-ajax/issues/112) from @Mordred
|
15
|
+
- Fixes [#111](https://github.com/jasmine/jasmine-ajax/issues/111)
|
16
|
+
|
17
|
+
|
18
|
+
------
|
19
|
+
|
20
|
+
_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "jasmine-fixture",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.3.3",
|
4
4
|
"main": "dist/jasmine-fixture.js",
|
5
5
|
"ignore": [
|
6
6
|
"app",
|
@@ -15,11 +15,11 @@
|
|
15
15
|
"dependencies": {},
|
16
16
|
"devDependencies": {},
|
17
17
|
"homepage": "https://github.com/searls/jasmine-fixture",
|
18
|
-
"_release": "1.
|
18
|
+
"_release": "1.3.3",
|
19
19
|
"_resolution": {
|
20
20
|
"type": "version",
|
21
|
-
"tag": "1.
|
22
|
-
"commit": "
|
21
|
+
"tag": "1.3.3",
|
22
|
+
"commit": "688c26fd5f56d7c843ae18f45f8cf87e4ebd7cb8"
|
23
23
|
},
|
24
24
|
"_source": "git://github.com/searls/jasmine-fixture.git",
|
25
25
|
"_target": "*",
|