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,47 +0,0 @@
|
|
1
|
-
jasmineRequire.QueryString = function() {
|
2
|
-
function QueryString(options) {
|
3
|
-
|
4
|
-
this.setParam = function(key, value) {
|
5
|
-
var paramMap = queryStringToParamMap();
|
6
|
-
paramMap[key] = value;
|
7
|
-
options.getWindowLocation().search = toQueryString(paramMap);
|
8
|
-
};
|
9
|
-
|
10
|
-
this.getParam = function(key) {
|
11
|
-
return queryStringToParamMap()[key];
|
12
|
-
};
|
13
|
-
|
14
|
-
return this;
|
15
|
-
|
16
|
-
function toQueryString(paramMap) {
|
17
|
-
var qStrPairs = [];
|
18
|
-
for (var prop in paramMap) {
|
19
|
-
qStrPairs.push(encodeURIComponent(prop) + '=' + encodeURIComponent(paramMap[prop]));
|
20
|
-
}
|
21
|
-
return '?' + qStrPairs.join('&');
|
22
|
-
}
|
23
|
-
|
24
|
-
function queryStringToParamMap() {
|
25
|
-
var paramStr = options.getWindowLocation().search.substring(1),
|
26
|
-
params = [],
|
27
|
-
paramMap = {};
|
28
|
-
|
29
|
-
if (paramStr.length > 0) {
|
30
|
-
params = paramStr.split('&');
|
31
|
-
for (var i = 0; i < params.length; i++) {
|
32
|
-
var p = params[i].split('=');
|
33
|
-
var value = decodeURIComponent(p[1]);
|
34
|
-
if (value === 'true' || value === 'false') {
|
35
|
-
value = JSON.parse(value);
|
36
|
-
}
|
37
|
-
paramMap[decodeURIComponent(p[0])] = value;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
return paramMap;
|
42
|
-
}
|
43
|
-
|
44
|
-
}
|
45
|
-
|
46
|
-
return QueryString;
|
47
|
-
};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
jasmineRequire.ResultsNode = function() {
|
2
|
-
function ResultsNode(result, type, parent) {
|
3
|
-
this.result = result;
|
4
|
-
this.type = type;
|
5
|
-
this.parent = parent;
|
6
|
-
|
7
|
-
this.children = [];
|
8
|
-
|
9
|
-
this.addChild = function(result, type) {
|
10
|
-
this.children.push(new ResultsNode(result, type, this));
|
11
|
-
};
|
12
|
-
|
13
|
-
this.last = function() {
|
14
|
-
return this.children[this.children.length - 1];
|
15
|
-
};
|
16
|
-
}
|
17
|
-
|
18
|
-
return ResultsNode;
|
19
|
-
};
|
@@ -1,355 +0,0 @@
|
|
1
|
-
@import "compass";
|
2
|
-
|
3
|
-
$line-height: 14px;
|
4
|
-
$margin-unit: 14px;
|
5
|
-
|
6
|
-
$faint-text-color: #aaa;
|
7
|
-
$light-text-color: #666;
|
8
|
-
$text-color: #333;
|
9
|
-
|
10
|
-
$page-background-color: #eee;
|
11
|
-
|
12
|
-
$passing-color: #007069;
|
13
|
-
$failing-color: #ca3a11;
|
14
|
-
$pending-color: #ba9d37;
|
15
|
-
$empty-color: #eff543;
|
16
|
-
$neutral-color: #bababa;
|
17
|
-
|
18
|
-
$font-size: 11px;
|
19
|
-
$large-font-size: 14px;
|
20
|
-
|
21
|
-
body {
|
22
|
-
overflow-y: scroll;
|
23
|
-
}
|
24
|
-
|
25
|
-
.jasmine_html-reporter {
|
26
|
-
background-color: $page-background-color;
|
27
|
-
padding: 5px;
|
28
|
-
margin: -8px;
|
29
|
-
|
30
|
-
font-size: $font-size;
|
31
|
-
font-family: Monaco, "Lucida Console", monospace;
|
32
|
-
line-height: $line-height;
|
33
|
-
color: $text-color;
|
34
|
-
|
35
|
-
a {
|
36
|
-
text-decoration: none;
|
37
|
-
|
38
|
-
&:hover {
|
39
|
-
text-decoration: underline;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
|
43
|
-
p, h1, h2, h3, h4, h5, h6 {
|
44
|
-
margin: 0;
|
45
|
-
line-height: $line-height;
|
46
|
-
}
|
47
|
-
|
48
|
-
.banner,
|
49
|
-
.symbol-summary,
|
50
|
-
.summary,
|
51
|
-
.result-message,
|
52
|
-
.spec .description,
|
53
|
-
.spec-detail .description,
|
54
|
-
.alert .bar,
|
55
|
-
.stack-trace {
|
56
|
-
padding-left: $margin-unit - 5px;
|
57
|
-
padding-right: $margin-unit - 5px;
|
58
|
-
}
|
59
|
-
|
60
|
-
.banner {
|
61
|
-
position: relative;
|
62
|
-
}
|
63
|
-
|
64
|
-
.banner .title {
|
65
|
-
background: inline-image('jasmine-horizontal.png') no-repeat;
|
66
|
-
background: inline-image('jasmine-horizontal.svg') no-repeat, none;
|
67
|
-
@include background-size(100%);
|
68
|
-
display: block;
|
69
|
-
float: left;
|
70
|
-
width: 90px;
|
71
|
-
height: 25px;
|
72
|
-
}
|
73
|
-
|
74
|
-
.banner .version {
|
75
|
-
margin-left: $margin-unit;
|
76
|
-
position: relative;
|
77
|
-
top: 6px;
|
78
|
-
}
|
79
|
-
|
80
|
-
.banner .duration {
|
81
|
-
position: absolute;
|
82
|
-
right: 14px;
|
83
|
-
top: 6px;
|
84
|
-
}
|
85
|
-
|
86
|
-
// This div is available for testing elements that must be added to the DOM.
|
87
|
-
// We position it out of view, so it doesn't obstruct the runner.
|
88
|
-
#jasmine_content {
|
89
|
-
position: fixed;
|
90
|
-
right: 100%;
|
91
|
-
}
|
92
|
-
|
93
|
-
.version {
|
94
|
-
color: $faint-text-color;
|
95
|
-
}
|
96
|
-
|
97
|
-
//--- Banner ---//
|
98
|
-
|
99
|
-
.banner {
|
100
|
-
margin-top: $line-height;
|
101
|
-
}
|
102
|
-
|
103
|
-
.duration {
|
104
|
-
color: $faint-text-color;
|
105
|
-
float: right;
|
106
|
-
}
|
107
|
-
|
108
|
-
//--- Symbol summary ---//
|
109
|
-
|
110
|
-
.symbol-summary {
|
111
|
-
@include clearfix;
|
112
|
-
margin: $line-height 0;
|
113
|
-
|
114
|
-
li {
|
115
|
-
display: inline-block;
|
116
|
-
height: ($line-height / 2) + 1;
|
117
|
-
width: $line-height;
|
118
|
-
|
119
|
-
font-size: 16px;
|
120
|
-
|
121
|
-
&.passed {
|
122
|
-
font-size: 14px;
|
123
|
-
|
124
|
-
&:before {
|
125
|
-
color: $passing-color;
|
126
|
-
content: "\02022";
|
127
|
-
}
|
128
|
-
}
|
129
|
-
|
130
|
-
&.failed {
|
131
|
-
line-height: ($line-height / 2) + 2;
|
132
|
-
|
133
|
-
&:before {
|
134
|
-
color: $failing-color;
|
135
|
-
content: "\d7";
|
136
|
-
font-weight: bold;
|
137
|
-
margin-left: -1px;
|
138
|
-
}
|
139
|
-
}
|
140
|
-
|
141
|
-
&.disabled {
|
142
|
-
font-size: 14px;
|
143
|
-
|
144
|
-
&:before {
|
145
|
-
color: $neutral-color;
|
146
|
-
content: "\02022";
|
147
|
-
}
|
148
|
-
}
|
149
|
-
|
150
|
-
&.pending {
|
151
|
-
line-height: 17px;
|
152
|
-
&:before {
|
153
|
-
color: $pending-color;
|
154
|
-
content: "*";
|
155
|
-
}
|
156
|
-
}
|
157
|
-
|
158
|
-
&.empty {
|
159
|
-
font-size: 14px;
|
160
|
-
|
161
|
-
&:before {
|
162
|
-
color: $pending-color;
|
163
|
-
content: "\02022";
|
164
|
-
}
|
165
|
-
}
|
166
|
-
}
|
167
|
-
}
|
168
|
-
|
169
|
-
.exceptions {
|
170
|
-
color: #fff;
|
171
|
-
float: right;
|
172
|
-
margin-top: 5px;
|
173
|
-
margin-right: 5px;
|
174
|
-
}
|
175
|
-
|
176
|
-
//--- Alerts: status bars ---//
|
177
|
-
|
178
|
-
.bar {
|
179
|
-
line-height: $line-height * 2;
|
180
|
-
font-size: $large-font-size;
|
181
|
-
|
182
|
-
display: block;
|
183
|
-
color: #eee;
|
184
|
-
|
185
|
-
&.failed {
|
186
|
-
background-color: $failing-color;
|
187
|
-
}
|
188
|
-
|
189
|
-
&.passed {
|
190
|
-
background-color: $passing-color;
|
191
|
-
}
|
192
|
-
|
193
|
-
&.skipped {
|
194
|
-
background-color: $neutral-color;
|
195
|
-
}
|
196
|
-
|
197
|
-
&.menu {
|
198
|
-
background-color: #fff;
|
199
|
-
color: $faint-text-color;
|
200
|
-
|
201
|
-
a {
|
202
|
-
color: $text-color;
|
203
|
-
}
|
204
|
-
}
|
205
|
-
|
206
|
-
a {
|
207
|
-
color: white;
|
208
|
-
}
|
209
|
-
}
|
210
|
-
|
211
|
-
// simplify toggle control between the two menu bars
|
212
|
-
&.spec-list {
|
213
|
-
.bar.menu.failure-list,
|
214
|
-
.results .failures {
|
215
|
-
display: none;
|
216
|
-
}
|
217
|
-
}
|
218
|
-
|
219
|
-
&.failure-list {
|
220
|
-
.bar.menu.spec-list,
|
221
|
-
.summary {
|
222
|
-
display: none;
|
223
|
-
}
|
224
|
-
}
|
225
|
-
|
226
|
-
.running-alert {
|
227
|
-
background-color: $light-text-color;
|
228
|
-
}
|
229
|
-
|
230
|
-
//--- Results ---//
|
231
|
-
|
232
|
-
.results {
|
233
|
-
margin-top: $line-height;
|
234
|
-
}
|
235
|
-
|
236
|
-
//--- Results menu ---//
|
237
|
-
|
238
|
-
&.showDetails {
|
239
|
-
|
240
|
-
.summaryMenuItem {
|
241
|
-
font-weight: normal;
|
242
|
-
text-decoration: inherit;
|
243
|
-
|
244
|
-
&:hover {
|
245
|
-
text-decoration: underline;
|
246
|
-
}
|
247
|
-
}
|
248
|
-
|
249
|
-
.detailsMenuItem {
|
250
|
-
font-weight: bold;
|
251
|
-
text-decoration: underline;
|
252
|
-
}
|
253
|
-
|
254
|
-
.summary {
|
255
|
-
display: none;
|
256
|
-
}
|
257
|
-
|
258
|
-
#details {
|
259
|
-
display: block;
|
260
|
-
}
|
261
|
-
}
|
262
|
-
|
263
|
-
.summaryMenuItem {
|
264
|
-
font-weight: bold;
|
265
|
-
text-decoration: underline;
|
266
|
-
}
|
267
|
-
|
268
|
-
//--- Results summary: Suites and Specs names/links ---//
|
269
|
-
|
270
|
-
.summary {
|
271
|
-
margin-top: $margin-unit;
|
272
|
-
|
273
|
-
ul {
|
274
|
-
list-style-type: none;
|
275
|
-
margin-left: $margin-unit;
|
276
|
-
padding-top: 0;
|
277
|
-
padding-left: 0;
|
278
|
-
|
279
|
-
&.suite {
|
280
|
-
margin-top: $margin-unit/2;
|
281
|
-
margin-bottom: $margin-unit/2
|
282
|
-
}
|
283
|
-
}
|
284
|
-
|
285
|
-
li {
|
286
|
-
&.passed a {
|
287
|
-
color: $passing-color;
|
288
|
-
}
|
289
|
-
|
290
|
-
&.failed a {
|
291
|
-
color: $failing-color;
|
292
|
-
}
|
293
|
-
|
294
|
-
&.empty a {
|
295
|
-
color: $pending-color;
|
296
|
-
}
|
297
|
-
|
298
|
-
&.pending a {
|
299
|
-
color: $pending-color;
|
300
|
-
}
|
301
|
-
}
|
302
|
-
}
|
303
|
-
|
304
|
-
.description+.suite {
|
305
|
-
margin-top: 0;
|
306
|
-
}
|
307
|
-
|
308
|
-
.suite {
|
309
|
-
margin-top: $margin-unit;
|
310
|
-
|
311
|
-
a {
|
312
|
-
color: $text-color;
|
313
|
-
}
|
314
|
-
}
|
315
|
-
|
316
|
-
//--- Failure details ---//
|
317
|
-
|
318
|
-
.failures {
|
319
|
-
.spec-detail {
|
320
|
-
margin-bottom: $line-height * 2;
|
321
|
-
|
322
|
-
.description {
|
323
|
-
background-color: $failing-color;
|
324
|
-
|
325
|
-
a {
|
326
|
-
color: white;
|
327
|
-
}
|
328
|
-
}
|
329
|
-
}
|
330
|
-
}
|
331
|
-
|
332
|
-
.result-message {
|
333
|
-
padding-top: $line-height;
|
334
|
-
|
335
|
-
color: $text-color;
|
336
|
-
|
337
|
-
white-space: pre;
|
338
|
-
}
|
339
|
-
|
340
|
-
.result-message span.result {
|
341
|
-
display: block;
|
342
|
-
}
|
343
|
-
|
344
|
-
.stack-trace {
|
345
|
-
margin: 5px 0 0 0;
|
346
|
-
max-height: $line-height * 16;
|
347
|
-
overflow: auto;
|
348
|
-
line-height: 18px;
|
349
|
-
|
350
|
-
color: $light-text-color;
|
351
|
-
border: 1px solid #ddd;
|
352
|
-
background: white;
|
353
|
-
white-space: pre;
|
354
|
-
}
|
355
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
@import "HTMLReporter";
|
@@ -1,3 +0,0 @@
|
|
1
|
-
<link rel="stylesheet" type="text/css" href="lib/jasmine-<%= jasmine_version %>/jasmine.css">
|
2
|
-
<script type="text/javascript" src="lib/jasmine-<%= jasmine_version %>/jasmine.js"></script>
|
3
|
-
<script type="text/javascript" src="lib/jasmine-<%= jasmine_version %>/jasmine-html.js"></script>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/bin/bash -e
|
2
|
-
|
3
|
-
if [ $USE_SAUCE == true ]
|
4
|
-
then
|
5
|
-
if [ $TRAVIS_SECURE_ENV_VARS == true ]
|
6
|
-
then
|
7
|
-
curl -L https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
|
8
|
-
else
|
9
|
-
echo "skipping tests since we can't use sauce"
|
10
|
-
exit 0
|
11
|
-
fi
|
12
|
-
fi
|
13
|
-
|
14
|
-
bundle exec rake jasmine:ci
|
@@ -1,63 +0,0 @@
|
|
1
|
-
module.exports = function( grunt ) {
|
2
|
-
'use strict';
|
3
|
-
//
|
4
|
-
// Grunt configuration:
|
5
|
-
//
|
6
|
-
// https://github.com/cowboy/grunt/blob/master/docs/getting_started.md
|
7
|
-
//
|
8
|
-
grunt.initConfig({
|
9
|
-
// specifying JSHint options and globals
|
10
|
-
// https://github.com/cowboy/grunt/blob/master/docs/task_lint.md#specifying-jshint-options-and-globals
|
11
|
-
jshint: {
|
12
|
-
options: {
|
13
|
-
boss: true,
|
14
|
-
browser: true,
|
15
|
-
curly: true,
|
16
|
-
eqeqeq: true,
|
17
|
-
eqnull: true,
|
18
|
-
immed: true,
|
19
|
-
latedef: true,
|
20
|
-
newcap: true,
|
21
|
-
noarg: true,
|
22
|
-
sub: true,
|
23
|
-
undef: true,
|
24
|
-
globals: {
|
25
|
-
jasmine: false,
|
26
|
-
module: false,
|
27
|
-
exports: true,
|
28
|
-
describe: false,
|
29
|
-
it: false,
|
30
|
-
expect: false,
|
31
|
-
beforeEach: false,
|
32
|
-
afterEach: false,
|
33
|
-
spyOn: false,
|
34
|
-
getJasmineRequireObj: false
|
35
|
-
}
|
36
|
-
},
|
37
|
-
all: ['Gruntfile.js', 'src/**/*.js', 'lib/**/*.js', 'spec/**/*.js']
|
38
|
-
},
|
39
|
-
shell: {
|
40
|
-
ctags: {
|
41
|
-
command: 'ctags -R lib'
|
42
|
-
}
|
43
|
-
},
|
44
|
-
concat: {
|
45
|
-
mockAjax: {
|
46
|
-
src: [
|
47
|
-
'src/requireAjax.js',
|
48
|
-
'src/**/*.js',
|
49
|
-
'!src/boot.js',
|
50
|
-
'src/boot.js'
|
51
|
-
],
|
52
|
-
dest: 'lib/mock-ajax.js'
|
53
|
-
}
|
54
|
-
}
|
55
|
-
});
|
56
|
-
|
57
|
-
grunt.loadNpmTasks('grunt-contrib-jshint');
|
58
|
-
grunt.loadNpmTasks('grunt-contrib-concat');
|
59
|
-
grunt.loadNpmTasks('grunt-shell');
|
60
|
-
|
61
|
-
grunt.registerTask('default', ['jshint']);
|
62
|
-
grunt.registerTask('ctags', 'Generate ctags', ['shell:ctags']);
|
63
|
-
};
|
@@ -1,11 +0,0 @@
|
|
1
|
-
(function() {
|
2
|
-
var jRequire = getJasmineRequireObj(),
|
3
|
-
MockAjax = jRequire.ajax(jRequire);
|
4
|
-
if (typeof window === "undefined" && typeof exports === "object") {
|
5
|
-
exports.MockAjax = MockAjax;
|
6
|
-
jasmine.Ajax = new MockAjax(exports);
|
7
|
-
} else {
|
8
|
-
window.MockAjax = MockAjax;
|
9
|
-
jasmine.Ajax = new MockAjax(window);
|
10
|
-
}
|
11
|
-
}());
|