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,6 +1,6 @@
|
|
1
1
|
/*
|
2
|
-
|
3
|
-
|
2
|
+
json2.js
|
3
|
+
2014-02-04
|
4
4
|
|
5
5
|
Public Domain.
|
6
6
|
|
@@ -8,6 +8,14 @@
|
|
8
8
|
|
9
9
|
See http://www.JSON.org/js.html
|
10
10
|
|
11
|
+
|
12
|
+
This code should be minified before deployment.
|
13
|
+
See http://javascript.crockford.com/jsmin.html
|
14
|
+
|
15
|
+
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
|
16
|
+
NOT CONTROL.
|
17
|
+
|
18
|
+
|
11
19
|
This file creates a global JSON object containing two methods: stringify
|
12
20
|
and parse.
|
13
21
|
|
@@ -136,15 +144,9 @@
|
|
136
144
|
|
137
145
|
This is a reference implementation. You are free to copy, modify, or
|
138
146
|
redistribute.
|
139
|
-
|
140
|
-
This code should be minified before deployment.
|
141
|
-
See http://javascript.crockford.com/jsmin.html
|
142
|
-
|
143
|
-
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
|
144
|
-
NOT CONTROL.
|
145
147
|
*/
|
146
148
|
|
147
|
-
/*jslint evil: true */
|
149
|
+
/*jslint evil: true, regexp: true */
|
148
150
|
|
149
151
|
/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
|
150
152
|
call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
|
@@ -153,16 +155,16 @@
|
|
153
155
|
test, toJSON, toString, valueOf
|
154
156
|
*/
|
155
157
|
|
156
|
-
"use strict";
|
157
158
|
|
158
159
|
// Create a JSON object only if one does not already exist. We create the
|
159
160
|
// methods in a closure to avoid creating global variables.
|
160
161
|
|
161
|
-
if (
|
162
|
-
|
162
|
+
if (typeof JSON !== 'object') {
|
163
|
+
JSON = {};
|
163
164
|
}
|
164
165
|
|
165
166
|
(function () {
|
167
|
+
'use strict';
|
166
168
|
|
167
169
|
function f(n) {
|
168
170
|
// Format integers to have at least two digits.
|
@@ -171,37 +173,30 @@ if (!this.JSON) {
|
|
171
173
|
|
172
174
|
if (typeof Date.prototype.toJSON !== 'function') {
|
173
175
|
|
174
|
-
Date.prototype.toJSON = function (
|
176
|
+
Date.prototype.toJSON = function () {
|
175
177
|
|
176
|
-
return isFinite(this.valueOf())
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
178
|
+
return isFinite(this.valueOf())
|
179
|
+
? this.getUTCFullYear() + '-' +
|
180
|
+
f(this.getUTCMonth() + 1) + '-' +
|
181
|
+
f(this.getUTCDate()) + 'T' +
|
182
|
+
f(this.getUTCHours()) + ':' +
|
183
|
+
f(this.getUTCMinutes()) + ':' +
|
184
|
+
f(this.getUTCSeconds()) + 'Z'
|
185
|
+
: null;
|
183
186
|
};
|
184
187
|
|
185
|
-
String.prototype.toJSON
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
188
|
+
String.prototype.toJSON =
|
189
|
+
Number.prototype.toJSON =
|
190
|
+
Boolean.prototype.toJSON = function () {
|
191
|
+
return this.valueOf();
|
192
|
+
};
|
190
193
|
}
|
191
194
|
|
192
|
-
var cx
|
193
|
-
escapable
|
195
|
+
var cx,
|
196
|
+
escapable,
|
194
197
|
gap,
|
195
198
|
indent,
|
196
|
-
meta
|
197
|
-
'\b': '\\b',
|
198
|
-
'\t': '\\t',
|
199
|
-
'\n': '\\n',
|
200
|
-
'\f': '\\f',
|
201
|
-
'\r': '\\r',
|
202
|
-
'"' : '\\"',
|
203
|
-
'\\': '\\\\'
|
204
|
-
},
|
199
|
+
meta,
|
205
200
|
rep;
|
206
201
|
|
207
202
|
|
@@ -213,17 +208,17 @@ if (!this.JSON) {
|
|
213
208
|
// sequences.
|
214
209
|
|
215
210
|
escapable.lastIndex = 0;
|
216
|
-
return escapable.test(string) ?
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
'"' + string + '"';
|
211
|
+
return escapable.test(string) ? '"' + string.replace(escapable, function (a) {
|
212
|
+
var c = meta[a];
|
213
|
+
return typeof c === 'string'
|
214
|
+
? c
|
215
|
+
: '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
|
216
|
+
}) + '"' : '"' + string + '"';
|
223
217
|
}
|
224
218
|
|
225
219
|
|
226
220
|
function str(key, holder) {
|
221
|
+
|
227
222
|
// Produce a string from holder[key].
|
228
223
|
|
229
224
|
var i, // The loop counter.
|
@@ -301,11 +296,11 @@ if (!this.JSON) {
|
|
301
296
|
// Join all of the elements together, separated with commas, and wrap them in
|
302
297
|
// brackets.
|
303
298
|
|
304
|
-
v = partial.length === 0
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
299
|
+
v = partial.length === 0
|
300
|
+
? '[]'
|
301
|
+
: gap
|
302
|
+
? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']'
|
303
|
+
: '[' + partial.join(',') + ']';
|
309
304
|
gap = mind;
|
310
305
|
return v;
|
311
306
|
}
|
@@ -315,8 +310,8 @@ if (!this.JSON) {
|
|
315
310
|
if (rep && typeof rep === 'object') {
|
316
311
|
length = rep.length;
|
317
312
|
for (i = 0; i < length; i += 1) {
|
318
|
-
|
319
|
-
|
313
|
+
if (typeof rep[i] === 'string') {
|
314
|
+
k = rep[i];
|
320
315
|
v = str(k, value);
|
321
316
|
if (v) {
|
322
317
|
partial.push(quote(k) + (gap ? ': ' : ':') + v);
|
@@ -328,7 +323,7 @@ if (!this.JSON) {
|
|
328
323
|
// Otherwise, iterate through all of the keys in the object.
|
329
324
|
|
330
325
|
for (k in value) {
|
331
|
-
if (Object.hasOwnProperty.call(value, k)) {
|
326
|
+
if (Object.prototype.hasOwnProperty.call(value, k)) {
|
332
327
|
v = str(k, value);
|
333
328
|
if (v) {
|
334
329
|
partial.push(quote(k) + (gap ? ': ' : ':') + v);
|
@@ -340,9 +335,11 @@ if (!this.JSON) {
|
|
340
335
|
// Join all of the member texts together, separated with commas,
|
341
336
|
// and wrap them in braces.
|
342
337
|
|
343
|
-
v = partial.length === 0
|
344
|
-
|
345
|
-
|
338
|
+
v = partial.length === 0
|
339
|
+
? '{}'
|
340
|
+
: gap
|
341
|
+
? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}'
|
342
|
+
: '{' + partial.join(',') + '}';
|
346
343
|
gap = mind;
|
347
344
|
return v;
|
348
345
|
}
|
@@ -351,7 +348,18 @@ if (!this.JSON) {
|
|
351
348
|
// If the JSON object does not yet have a stringify method, give it one.
|
352
349
|
|
353
350
|
if (typeof JSON.stringify !== 'function') {
|
351
|
+
escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
|
352
|
+
meta = { // table of character substitutions
|
353
|
+
'\b': '\\b',
|
354
|
+
'\t': '\\t',
|
355
|
+
'\n': '\\n',
|
356
|
+
'\f': '\\f',
|
357
|
+
'\r': '\\r',
|
358
|
+
'"' : '\\"',
|
359
|
+
'\\': '\\\\'
|
360
|
+
};
|
354
361
|
JSON.stringify = function (value, replacer, space) {
|
362
|
+
|
355
363
|
// The stringify method takes a value and an optional replacer, and an optional
|
356
364
|
// space parameter, and returns a JSON text. The replacer can be a function
|
357
365
|
// that can replace values, or an array of strings that will select the keys.
|
@@ -382,7 +390,7 @@ if (!this.JSON) {
|
|
382
390
|
rep = replacer;
|
383
391
|
if (replacer && typeof replacer !== 'function' &&
|
384
392
|
(typeof replacer !== 'object' ||
|
385
|
-
|
393
|
+
typeof replacer.length !== 'number')) {
|
386
394
|
throw new Error('JSON.stringify');
|
387
395
|
}
|
388
396
|
|
@@ -397,6 +405,7 @@ if (!this.JSON) {
|
|
397
405
|
// If the JSON object does not yet have a parse method, give it one.
|
398
406
|
|
399
407
|
if (typeof JSON.parse !== 'function') {
|
408
|
+
cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
|
400
409
|
JSON.parse = function (text, reviver) {
|
401
410
|
|
402
411
|
// The parse method takes a text and an optional reviver function, and returns
|
@@ -412,7 +421,7 @@ if (!this.JSON) {
|
|
412
421
|
var k, v, value = holder[key];
|
413
422
|
if (value && typeof value === 'object') {
|
414
423
|
for (k in value) {
|
415
|
-
if (Object.hasOwnProperty.call(value, k)) {
|
424
|
+
if (Object.prototype.hasOwnProperty.call(value, k)) {
|
416
425
|
v = walk(value, k);
|
417
426
|
if (v !== undefined) {
|
418
427
|
value[k] = v;
|
@@ -430,6 +439,7 @@ if (!this.JSON) {
|
|
430
439
|
// Unicode characters with escape sequences. JavaScript handles many characters
|
431
440
|
// incorrectly, either silently deleting them, or treating them as line endings.
|
432
441
|
|
442
|
+
text = String(text);
|
433
443
|
cx.lastIndex = 0;
|
434
444
|
if (cx.test(text)) {
|
435
445
|
text = text.replace(cx, function (a) {
|
@@ -451,10 +461,10 @@ if (!this.JSON) {
|
|
451
461
|
// we look to see that the remaining characters are only whitespace or ']' or
|
452
462
|
// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval.
|
453
463
|
|
454
|
-
if (/^[\],:{}\s]
|
455
|
-
test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@')
|
456
|
-
replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']')
|
457
|
-
replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
|
464
|
+
if (/^[\],:{}\s]*$/
|
465
|
+
.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@')
|
466
|
+
.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']')
|
467
|
+
.replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
|
458
468
|
|
459
469
|
// In the third stage we use the eval function to compile the text into a
|
460
470
|
// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
|
@@ -466,8 +476,9 @@ replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
|
|
466
476
|
// In the optional fourth stage, we recursively walk the new structure, passing
|
467
477
|
// each name/value pair to a reviver function for possible transformation.
|
468
478
|
|
469
|
-
return typeof reviver === 'function'
|
470
|
-
walk({'': j}, '')
|
479
|
+
return typeof reviver === 'function'
|
480
|
+
? walk({'': j}, '')
|
481
|
+
: j;
|
471
482
|
}
|
472
483
|
|
473
484
|
// If the text is not JSON parseable, then a SyntaxError is thrown.
|
@@ -1,39 +1,37 @@
|
|
1
1
|
module.exports = require("./jasmine-core/jasmine.js");
|
2
2
|
module.exports.boot = require('./jasmine-core/node_boot.js');
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
fs = require('fs');
|
4
|
+
var path = require('path'),
|
5
|
+
fs = require('fs');
|
7
6
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
7
|
+
var rootPath = path.join(__dirname, "jasmine-core"),
|
8
|
+
bootFiles = ['boot.js'],
|
9
|
+
nodeBootFiles = ['node_boot.js'],
|
10
|
+
cssFiles = [],
|
11
|
+
jsFiles = [],
|
12
|
+
jsFilesToSkip = ['jasmine.js'].concat(bootFiles, nodeBootFiles);
|
14
13
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
-
break;
|
14
|
+
fs.readdirSync(rootPath).forEach(function(file) {
|
15
|
+
if(fs.statSync(path.join(rootPath, file)).isFile()) {
|
16
|
+
switch(path.extname(file)) {
|
17
|
+
case '.css':
|
18
|
+
cssFiles.push(file);
|
19
|
+
break;
|
20
|
+
case '.js':
|
21
|
+
if (jsFilesToSkip.indexOf(file) < 0) {
|
22
|
+
jsFiles.push(file);
|
26
23
|
}
|
24
|
+
break;
|
27
25
|
}
|
28
|
-
}
|
26
|
+
}
|
27
|
+
});
|
29
28
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
}());
|
29
|
+
module.exports.files = {
|
30
|
+
path: rootPath,
|
31
|
+
bootDir: rootPath,
|
32
|
+
bootFiles: bootFiles,
|
33
|
+
nodeBootFiles: nodeBootFiles,
|
34
|
+
cssFiles: cssFiles,
|
35
|
+
jsFiles: ['jasmine.js'].concat(jsFiles),
|
36
|
+
imagesDir: path.join(__dirname, '../images')
|
37
|
+
};
|
@@ -1,23 +1,34 @@
|
|
1
1
|
{
|
2
2
|
"name": "jasmine-core",
|
3
3
|
"license": "MIT",
|
4
|
-
"version": "2.
|
4
|
+
"version": "2.3.4",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
7
|
-
"url": "https://github.com/
|
7
|
+
"url": "https://github.com/jasmine/jasmine.git"
|
8
|
+
},
|
9
|
+
"keywords": [
|
10
|
+
"test",
|
11
|
+
"jasmine",
|
12
|
+
"tdd",
|
13
|
+
"bdd"
|
14
|
+
],
|
15
|
+
"scripts": {
|
16
|
+
"test": "./node_modules/.bin/grunt jshint execSpecsInNode"
|
8
17
|
},
|
9
18
|
"description": "Official packaging of Jasmine's core files for use by Node.js projects.",
|
10
19
|
"homepage": "http://jasmine.github.io",
|
11
20
|
"main": "./lib/jasmine-core.js",
|
12
21
|
"devDependencies": {
|
22
|
+
"glob": "~3.2.9",
|
13
23
|
"grunt": "~0.4.1",
|
14
|
-
"grunt-
|
15
|
-
"grunt-contrib-concat": "~0.3.0",
|
24
|
+
"grunt-cli": "^0.1.13",
|
16
25
|
"grunt-contrib-compass": "~0.6.0",
|
17
26
|
"grunt-contrib-compress": "~0.5.2",
|
27
|
+
"grunt-contrib-concat": "~0.3.0",
|
28
|
+
"grunt-contrib-jshint": "~0.7.0",
|
29
|
+
"jasmine": "https://github.com/jasmine/jasmine-npm/archive/master.tar.gz",
|
30
|
+
"load-grunt-tasks": "^0.4.0",
|
18
31
|
"shelljs": "~0.1.4",
|
19
|
-
"
|
20
|
-
"jasmine": "https://github.com/pivotal/jasmine-npm/archive/master.tar.gz",
|
21
|
-
"load-grunt-tasks": "^0.4.0"
|
32
|
+
"temp": "~0.8.1"
|
22
33
|
}
|
23
34
|
}
|
@@ -1,15 +1,16 @@
|
|
1
1
|
{
|
2
2
|
"name": "jasmine-ajax",
|
3
|
-
"
|
4
|
-
"
|
3
|
+
"description": "A library for faking Ajax responses in your Jasmine suite.",
|
4
|
+
"version": "3.2.0",
|
5
|
+
"main": "lib/mock-ajax.js",
|
6
|
+
"license": "MIT",
|
7
|
+
"homepage": "https://github.com/jasmine/jasmine-ajax",
|
5
8
|
"authors": [
|
6
9
|
"JR Boyens <jboyens@fooninja.org>",
|
7
10
|
"Gregg Van Hove <gregg@slackersoft.net>"
|
8
11
|
],
|
9
|
-
"description": "A library for faking Ajax responses in your Jasmine suite.",
|
10
|
-
"main": "lib/mock-ajax.js",
|
11
12
|
"dependencies": {
|
12
|
-
"jasmine": "~2
|
13
|
+
"jasmine": "~2"
|
13
14
|
},
|
14
15
|
"moduleType": [
|
15
16
|
"globals"
|
@@ -18,26 +19,23 @@
|
|
18
19
|
"jasmine",
|
19
20
|
"ajax"
|
20
21
|
],
|
21
|
-
"license": "MIT",
|
22
22
|
"ignore": [
|
23
23
|
"**/.*",
|
24
24
|
"Gemfile",
|
25
25
|
"Gemfile.lock",
|
26
|
-
"Gruntfile",
|
26
|
+
"Gruntfile.js",
|
27
27
|
"Rakefile",
|
28
|
-
"app/bower_components",
|
29
28
|
"bower_components",
|
30
29
|
"node_modules",
|
31
30
|
"spec",
|
32
|
-
"
|
33
|
-
"tests",
|
31
|
+
"src",
|
34
32
|
"travis-script.sh"
|
35
33
|
],
|
36
|
-
"_release": "2.
|
34
|
+
"_release": "3.2.0",
|
37
35
|
"_resolution": {
|
38
36
|
"type": "version",
|
39
|
-
"tag": "
|
40
|
-
"commit": "
|
37
|
+
"tag": "v3.2.0",
|
38
|
+
"commit": "b54a002d468922f41719a62190a2f6cbfcd12d32"
|
41
39
|
},
|
42
40
|
"_source": "git://github.com/jasmine/jasmine-ajax.git",
|
43
41
|
"_target": "*",
|