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,43 +0,0 @@
|
|
1
|
-
describe("QueryString", function() {
|
2
|
-
|
3
|
-
describe("#setParam", function() {
|
4
|
-
|
5
|
-
it("sets the query string to include the given key/value pair", function() {
|
6
|
-
var windowLocation = {
|
7
|
-
search: ""
|
8
|
-
},
|
9
|
-
queryString = new j$.QueryString({
|
10
|
-
getWindowLocation: function() { return windowLocation }
|
11
|
-
});
|
12
|
-
|
13
|
-
queryString.setParam("foo", "bar baz");
|
14
|
-
|
15
|
-
expect(windowLocation.search).toMatch(/foo=bar%20baz/);
|
16
|
-
});
|
17
|
-
});
|
18
|
-
|
19
|
-
describe("#getParam", function() {
|
20
|
-
|
21
|
-
it("returns the value of the requested key", function() {
|
22
|
-
var windowLocation = {
|
23
|
-
search: "?baz=quux%20corge"
|
24
|
-
},
|
25
|
-
queryString = new j$.QueryString({
|
26
|
-
getWindowLocation: function() { return windowLocation }
|
27
|
-
});
|
28
|
-
|
29
|
-
expect(queryString.getParam("baz")).toEqual("quux corge");
|
30
|
-
});
|
31
|
-
|
32
|
-
it("returns null if the key is not present", function() {
|
33
|
-
var windowLocation = {
|
34
|
-
search: ""
|
35
|
-
},
|
36
|
-
queryString = new j$.QueryString({
|
37
|
-
getWindowLocation: function() { return windowLocation }
|
38
|
-
});
|
39
|
-
|
40
|
-
expect(queryString.getParam("baz")).toBeFalsy();
|
41
|
-
});
|
42
|
-
});
|
43
|
-
});
|
@@ -1,62 +0,0 @@
|
|
1
|
-
describe("ResultsNode", function() {
|
2
|
-
it("wraps a result", function() {
|
3
|
-
var fakeResult = {
|
4
|
-
id: 123,
|
5
|
-
message: "foo"
|
6
|
-
},
|
7
|
-
node = new j$.ResultsNode(fakeResult, "suite", null);
|
8
|
-
|
9
|
-
expect(node.result).toBe(fakeResult);
|
10
|
-
expect(node.type).toEqual("suite");
|
11
|
-
});
|
12
|
-
|
13
|
-
it("can add children with a type", function() {
|
14
|
-
var fakeResult = {
|
15
|
-
id: 123,
|
16
|
-
message: "foo"
|
17
|
-
},
|
18
|
-
fakeChildResult = {
|
19
|
-
id: 456,
|
20
|
-
message: "bar"
|
21
|
-
},
|
22
|
-
node = new j$.ResultsNode(fakeResult, "suite", null);
|
23
|
-
|
24
|
-
node.addChild(fakeChildResult, "spec");
|
25
|
-
|
26
|
-
expect(node.children.length).toEqual(1);
|
27
|
-
expect(node.children[0].result).toEqual(fakeChildResult);
|
28
|
-
expect(node.children[0].type).toEqual("spec");
|
29
|
-
});
|
30
|
-
|
31
|
-
it("has a pointer back to its parent ResultNode", function() {
|
32
|
-
var fakeResult = {
|
33
|
-
id: 123,
|
34
|
-
message: "foo"
|
35
|
-
},
|
36
|
-
fakeChildResult = {
|
37
|
-
id: 456,
|
38
|
-
message: "bar"
|
39
|
-
},
|
40
|
-
node = new j$.ResultsNode(fakeResult, "suite", null);
|
41
|
-
|
42
|
-
node.addChild(fakeChildResult, "spec");
|
43
|
-
|
44
|
-
expect(node.children[0].parent).toBe(node);
|
45
|
-
});
|
46
|
-
|
47
|
-
it("can provide the most recent child", function() {
|
48
|
-
var fakeResult = {
|
49
|
-
id: 123,
|
50
|
-
message: "foo"
|
51
|
-
},
|
52
|
-
fakeChildResult = {
|
53
|
-
id: 456,
|
54
|
-
message: "bar"
|
55
|
-
},
|
56
|
-
node = new j$.ResultsNode(fakeResult, "suite", null);
|
57
|
-
|
58
|
-
node.addChild(fakeChildResult, "spec");
|
59
|
-
|
60
|
-
expect(node.last()).toBe(node.children[node.children.length - 1]);
|
61
|
-
});
|
62
|
-
});
|
@@ -1,16 +0,0 @@
|
|
1
|
-
---
|
2
|
-
use_sauce: <%= ENV['USE_SAUCE'] %>
|
3
|
-
browser: <%= ENV['JASMINE_BROWSER'] %>
|
4
|
-
sauce:
|
5
|
-
name: jasmine-core <%= Time.now.to_s %>
|
6
|
-
username: <%= ENV['SAUCE_USERNAME'] %>
|
7
|
-
access_key: <%= ENV['SAUCE_ACCESS_KEY'] %>
|
8
|
-
build: <%= ENV['TRAVIS_BUILD_NUMBER'] || 'Ran locally' %>
|
9
|
-
tags:
|
10
|
-
- <%= ENV['TRAVIS_RUBY_VERSION'] || RUBY_VERSION %>
|
11
|
-
- CI
|
12
|
-
tunnel_identifier: <%= ENV['TRAVIS_JOB_NUMBER'] ? %Q("#{ENV['TRAVIS_JOB_NUMBER']}") : nil %>
|
13
|
-
os: <%= ENV['SAUCE_OS'] %>
|
14
|
-
browser_version: <%= ENV['SAUCE_BROWSER_VERSION'] %>
|
15
|
-
|
16
|
-
|
@@ -1,36 +0,0 @@
|
|
1
|
-
describe('Printing a big object', function(){
|
2
|
-
var bigObject;
|
3
|
-
function rand(upper) {
|
4
|
-
return Math.round(upper * Math.random());
|
5
|
-
}
|
6
|
-
|
7
|
-
function generateObject(level) {
|
8
|
-
var object = {};
|
9
|
-
|
10
|
-
for (var i = 0; i < 50; i++) {
|
11
|
-
var decide = rand(2);
|
12
|
-
switch (decide) {
|
13
|
-
case 0:
|
14
|
-
object["cycle" + i] = object;
|
15
|
-
break;
|
16
|
-
case 1:
|
17
|
-
object["number" + i] = rand(100);
|
18
|
-
break;
|
19
|
-
case 2:
|
20
|
-
if (level < 3) {
|
21
|
-
object["nesting" + i] = generateObject(level + 1);
|
22
|
-
}
|
23
|
-
break;
|
24
|
-
}
|
25
|
-
|
26
|
-
}
|
27
|
-
|
28
|
-
return object;
|
29
|
-
}
|
30
|
-
|
31
|
-
it('takes a resonable amount of time', function(){
|
32
|
-
bigObject = generateObject(0);
|
33
|
-
expect(j$.pp(bigObject)).toMatch(/cycle/);
|
34
|
-
});
|
35
|
-
});
|
36
|
-
|
@@ -1,25 +0,0 @@
|
|
1
|
-
#This 'magic' inclusion order allows the travis build to pass.
|
2
|
-
#TODO: search for the correct files to include to prevent
|
3
|
-
src_dir:
|
4
|
-
- 'src'
|
5
|
-
src_files:
|
6
|
-
- 'core/base.js'
|
7
|
-
- 'core/util.js'
|
8
|
-
#end of known dependencies
|
9
|
-
- 'core/Spec.js'
|
10
|
-
- 'core/Env.js'
|
11
|
-
- 'core/JsApiReporter.js'
|
12
|
-
- 'core/PrettyPrinter.js'
|
13
|
-
- 'core/Suite.js'
|
14
|
-
- 'core/**/*.js'
|
15
|
-
- 'html/**.js'
|
16
|
-
- '**/*.js'
|
17
|
-
stylesheets:
|
18
|
-
helpers:
|
19
|
-
- 'helpers/BrowserFlags.js'
|
20
|
-
- 'helpers/defineJasmineUnderTest.js'
|
21
|
-
spec_files:
|
22
|
-
- '**/*[Ss]pec.js'
|
23
|
-
spec_dir: spec
|
24
|
-
|
25
|
-
|
@@ -1,131 +0,0 @@
|
|
1
|
-
getJasmineRequireObj().ConsoleReporter = function() {
|
2
|
-
|
3
|
-
var noopTimer = {
|
4
|
-
start: function(){},
|
5
|
-
elapsed: function(){ return 0; }
|
6
|
-
};
|
7
|
-
|
8
|
-
function ConsoleReporter(options) {
|
9
|
-
var print = options.print,
|
10
|
-
showColors = options.showColors || false,
|
11
|
-
onComplete = options.onComplete || function() {},
|
12
|
-
timer = options.timer || noopTimer,
|
13
|
-
specCount,
|
14
|
-
failureCount,
|
15
|
-
failedSpecs = [],
|
16
|
-
pendingCount,
|
17
|
-
ansi = {
|
18
|
-
green: '\x1B[32m',
|
19
|
-
red: '\x1B[31m',
|
20
|
-
yellow: '\x1B[33m',
|
21
|
-
none: '\x1B[0m'
|
22
|
-
};
|
23
|
-
|
24
|
-
this.jasmineStarted = function() {
|
25
|
-
specCount = 0;
|
26
|
-
failureCount = 0;
|
27
|
-
pendingCount = 0;
|
28
|
-
print('Started');
|
29
|
-
printNewline();
|
30
|
-
timer.start();
|
31
|
-
};
|
32
|
-
|
33
|
-
this.jasmineDone = function() {
|
34
|
-
printNewline();
|
35
|
-
for (var i = 0; i < failedSpecs.length; i++) {
|
36
|
-
specFailureDetails(failedSpecs[i]);
|
37
|
-
}
|
38
|
-
|
39
|
-
if(specCount > 0) {
|
40
|
-
printNewline();
|
41
|
-
|
42
|
-
var specCounts = specCount + ' ' + plural('spec', specCount) + ', ' +
|
43
|
-
failureCount + ' ' + plural('failure', failureCount);
|
44
|
-
|
45
|
-
if (pendingCount) {
|
46
|
-
specCounts += ', ' + pendingCount + ' pending ' + plural('spec', pendingCount);
|
47
|
-
}
|
48
|
-
|
49
|
-
print(specCounts);
|
50
|
-
} else {
|
51
|
-
print('No specs found');
|
52
|
-
}
|
53
|
-
|
54
|
-
printNewline();
|
55
|
-
var seconds = timer.elapsed() / 1000;
|
56
|
-
print('Finished in ' + seconds + ' ' + plural('second', seconds));
|
57
|
-
|
58
|
-
printNewline();
|
59
|
-
|
60
|
-
onComplete(failureCount === 0);
|
61
|
-
};
|
62
|
-
|
63
|
-
this.specDone = function(result) {
|
64
|
-
specCount++;
|
65
|
-
|
66
|
-
if (result.status == 'pending') {
|
67
|
-
pendingCount++;
|
68
|
-
print(colored('yellow', '*'));
|
69
|
-
return;
|
70
|
-
}
|
71
|
-
|
72
|
-
if (result.status == 'passed') {
|
73
|
-
print(colored('green', '.'));
|
74
|
-
return;
|
75
|
-
}
|
76
|
-
|
77
|
-
if (result.status == 'failed') {
|
78
|
-
failureCount++;
|
79
|
-
failedSpecs.push(result);
|
80
|
-
print(colored('red', 'F'));
|
81
|
-
}
|
82
|
-
};
|
83
|
-
|
84
|
-
return this;
|
85
|
-
|
86
|
-
function printNewline() {
|
87
|
-
print('\n');
|
88
|
-
}
|
89
|
-
|
90
|
-
function colored(color, str) {
|
91
|
-
return showColors ? (ansi[color] + str + ansi.none) : str;
|
92
|
-
}
|
93
|
-
|
94
|
-
function plural(str, count) {
|
95
|
-
return count == 1 ? str : str + 's';
|
96
|
-
}
|
97
|
-
|
98
|
-
function repeat(thing, times) {
|
99
|
-
var arr = [];
|
100
|
-
for (var i = 0; i < times; i++) {
|
101
|
-
arr.push(thing);
|
102
|
-
}
|
103
|
-
return arr;
|
104
|
-
}
|
105
|
-
|
106
|
-
function indent(str, spaces) {
|
107
|
-
var lines = (str || '').split('\n');
|
108
|
-
var newArr = [];
|
109
|
-
for (var i = 0; i < lines.length; i++) {
|
110
|
-
newArr.push(repeat(' ', spaces).join('') + lines[i]);
|
111
|
-
}
|
112
|
-
return newArr.join('\n');
|
113
|
-
}
|
114
|
-
|
115
|
-
function specFailureDetails(result) {
|
116
|
-
printNewline();
|
117
|
-
print(result.fullName);
|
118
|
-
|
119
|
-
for (var i = 0; i < result.failedExpectations.length; i++) {
|
120
|
-
var failedExpectation = result.failedExpectations[i];
|
121
|
-
printNewline();
|
122
|
-
print(indent(failedExpectation.message, 2));
|
123
|
-
print(indent(failedExpectation.stack, 2));
|
124
|
-
}
|
125
|
-
|
126
|
-
printNewline();
|
127
|
-
}
|
128
|
-
}
|
129
|
-
|
130
|
-
return ConsoleReporter;
|
131
|
-
};
|
@@ -1,12 +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().console = function(jRequire, j$) {
|
11
|
-
j$.ConsoleReporter = jRequire.ConsoleReporter();
|
12
|
-
};
|
@@ -1,36 +0,0 @@
|
|
1
|
-
getJasmineRequireObj().Any = function() {
|
2
|
-
|
3
|
-
function Any(expectedObject) {
|
4
|
-
this.expectedObject = expectedObject;
|
5
|
-
}
|
6
|
-
|
7
|
-
Any.prototype.jasmineMatches = function(other) {
|
8
|
-
if (this.expectedObject == String) {
|
9
|
-
return typeof other == 'string' || other instanceof String;
|
10
|
-
}
|
11
|
-
|
12
|
-
if (this.expectedObject == Number) {
|
13
|
-
return typeof other == 'number' || other instanceof Number;
|
14
|
-
}
|
15
|
-
|
16
|
-
if (this.expectedObject == Function) {
|
17
|
-
return typeof other == 'function' || other instanceof Function;
|
18
|
-
}
|
19
|
-
|
20
|
-
if (this.expectedObject == Object) {
|
21
|
-
return typeof other == 'object';
|
22
|
-
}
|
23
|
-
|
24
|
-
if (this.expectedObject == Boolean) {
|
25
|
-
return typeof other == 'boolean';
|
26
|
-
}
|
27
|
-
|
28
|
-
return other instanceof this.expectedObject;
|
29
|
-
};
|
30
|
-
|
31
|
-
Any.prototype.jasmineToString = function() {
|
32
|
-
return '<jasmine.any(' + this.expectedObject + ')>';
|
33
|
-
};
|
34
|
-
|
35
|
-
return Any;
|
36
|
-
};
|
@@ -1,50 +0,0 @@
|
|
1
|
-
getJasmineRequireObj().CallTracker = function() {
|
2
|
-
|
3
|
-
function CallTracker() {
|
4
|
-
var calls = [];
|
5
|
-
|
6
|
-
this.track = function(context) {
|
7
|
-
calls.push(context);
|
8
|
-
};
|
9
|
-
|
10
|
-
this.any = function() {
|
11
|
-
return !!calls.length;
|
12
|
-
};
|
13
|
-
|
14
|
-
this.count = function() {
|
15
|
-
return calls.length;
|
16
|
-
};
|
17
|
-
|
18
|
-
this.argsFor = function(index) {
|
19
|
-
var call = calls[index];
|
20
|
-
return call ? call.args : [];
|
21
|
-
};
|
22
|
-
|
23
|
-
this.all = function() {
|
24
|
-
return calls;
|
25
|
-
};
|
26
|
-
|
27
|
-
this.allArgs = function() {
|
28
|
-
var callArgs = [];
|
29
|
-
for(var i = 0; i < calls.length; i++){
|
30
|
-
callArgs.push(calls[i].args);
|
31
|
-
}
|
32
|
-
|
33
|
-
return callArgs;
|
34
|
-
};
|
35
|
-
|
36
|
-
this.first = function() {
|
37
|
-
return calls[0];
|
38
|
-
};
|
39
|
-
|
40
|
-
this.mostRecent = function() {
|
41
|
-
return calls[calls.length - 1];
|
42
|
-
};
|
43
|
-
|
44
|
-
this.reset = function() {
|
45
|
-
calls = [];
|
46
|
-
};
|
47
|
-
}
|
48
|
-
|
49
|
-
return CallTracker;
|
50
|
-
};
|
@@ -1,113 +0,0 @@
|
|
1
|
-
getJasmineRequireObj().Clock = function() {
|
2
|
-
function Clock(global, delayedFunctionScheduler, mockDate) {
|
3
|
-
var self = this,
|
4
|
-
realTimingFunctions = {
|
5
|
-
setTimeout: global.setTimeout,
|
6
|
-
clearTimeout: global.clearTimeout,
|
7
|
-
setInterval: global.setInterval,
|
8
|
-
clearInterval: global.clearInterval
|
9
|
-
},
|
10
|
-
fakeTimingFunctions = {
|
11
|
-
setTimeout: setTimeout,
|
12
|
-
clearTimeout: clearTimeout,
|
13
|
-
setInterval: setInterval,
|
14
|
-
clearInterval: clearInterval
|
15
|
-
},
|
16
|
-
installed = false,
|
17
|
-
timer;
|
18
|
-
|
19
|
-
|
20
|
-
self.install = function() {
|
21
|
-
replace(global, fakeTimingFunctions);
|
22
|
-
timer = fakeTimingFunctions;
|
23
|
-
installed = true;
|
24
|
-
|
25
|
-
return self;
|
26
|
-
};
|
27
|
-
|
28
|
-
self.uninstall = function() {
|
29
|
-
delayedFunctionScheduler.reset();
|
30
|
-
mockDate.uninstall();
|
31
|
-
replace(global, realTimingFunctions);
|
32
|
-
|
33
|
-
timer = realTimingFunctions;
|
34
|
-
installed = false;
|
35
|
-
};
|
36
|
-
|
37
|
-
self.mockDate = function(initialDate) {
|
38
|
-
mockDate.install(initialDate);
|
39
|
-
};
|
40
|
-
|
41
|
-
self.setTimeout = function(fn, delay, params) {
|
42
|
-
if (legacyIE()) {
|
43
|
-
if (arguments.length > 2) {
|
44
|
-
throw new Error('IE < 9 cannot support extra params to setTimeout without a polyfill');
|
45
|
-
}
|
46
|
-
return timer.setTimeout(fn, delay);
|
47
|
-
}
|
48
|
-
return Function.prototype.apply.apply(timer.setTimeout, [global, arguments]);
|
49
|
-
};
|
50
|
-
|
51
|
-
self.setInterval = function(fn, delay, params) {
|
52
|
-
if (legacyIE()) {
|
53
|
-
if (arguments.length > 2) {
|
54
|
-
throw new Error('IE < 9 cannot support extra params to setInterval without a polyfill');
|
55
|
-
}
|
56
|
-
return timer.setInterval(fn, delay);
|
57
|
-
}
|
58
|
-
return Function.prototype.apply.apply(timer.setInterval, [global, arguments]);
|
59
|
-
};
|
60
|
-
|
61
|
-
self.clearTimeout = function(id) {
|
62
|
-
return Function.prototype.call.apply(timer.clearTimeout, [global, id]);
|
63
|
-
};
|
64
|
-
|
65
|
-
self.clearInterval = function(id) {
|
66
|
-
return Function.prototype.call.apply(timer.clearInterval, [global, id]);
|
67
|
-
};
|
68
|
-
|
69
|
-
self.tick = function(millis) {
|
70
|
-
if (installed) {
|
71
|
-
mockDate.tick(millis);
|
72
|
-
delayedFunctionScheduler.tick(millis);
|
73
|
-
} else {
|
74
|
-
throw new Error('Mock clock is not installed, use jasmine.clock().install()');
|
75
|
-
}
|
76
|
-
};
|
77
|
-
|
78
|
-
return self;
|
79
|
-
|
80
|
-
function legacyIE() {
|
81
|
-
//if these methods are polyfilled, apply will be present
|
82
|
-
return !(realTimingFunctions.setTimeout || realTimingFunctions.setInterval).apply;
|
83
|
-
}
|
84
|
-
|
85
|
-
function replace(dest, source) {
|
86
|
-
for (var prop in source) {
|
87
|
-
dest[prop] = source[prop];
|
88
|
-
}
|
89
|
-
}
|
90
|
-
|
91
|
-
function setTimeout(fn, delay) {
|
92
|
-
return delayedFunctionScheduler.scheduleFunction(fn, delay, argSlice(arguments, 2));
|
93
|
-
}
|
94
|
-
|
95
|
-
function clearTimeout(id) {
|
96
|
-
return delayedFunctionScheduler.removeFunctionWithId(id);
|
97
|
-
}
|
98
|
-
|
99
|
-
function setInterval(fn, interval) {
|
100
|
-
return delayedFunctionScheduler.scheduleFunction(fn, interval, argSlice(arguments, 2), true);
|
101
|
-
}
|
102
|
-
|
103
|
-
function clearInterval(id) {
|
104
|
-
return delayedFunctionScheduler.removeFunctionWithId(id);
|
105
|
-
}
|
106
|
-
|
107
|
-
function argSlice(argsObj, n) {
|
108
|
-
return Array.prototype.slice.call(argsObj, n);
|
109
|
-
}
|
110
|
-
}
|
111
|
-
|
112
|
-
return Clock;
|
113
|
-
};
|