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,31 +0,0 @@
|
|
1
|
-
var grunt = require("grunt");
|
2
|
-
|
3
|
-
function standaloneTmpDir(path) { return "dist/tmp/" + path; }
|
4
|
-
|
5
|
-
grunt.registerTask("build:compileSpecRunner",
|
6
|
-
"Processes the spec runner template and writes to a tmp file",
|
7
|
-
function() {
|
8
|
-
var runnerHtml = grunt.template.process(
|
9
|
-
grunt.file.read("grunt/templates/SpecRunner.html.jst"),
|
10
|
-
{ data: { jasmineVersion: global.jasmineVersion }});
|
11
|
-
|
12
|
-
grunt.file.write(standaloneTmpDir("SpecRunner.html"), runnerHtml);
|
13
|
-
}
|
14
|
-
);
|
15
|
-
|
16
|
-
grunt.registerTask("build:cleanSpecRunner",
|
17
|
-
"Deletes the tmp spec runner file",
|
18
|
-
function() {
|
19
|
-
grunt.file.delete(standaloneTmpDir(""));
|
20
|
-
}
|
21
|
-
);
|
22
|
-
|
23
|
-
grunt.registerTask("buildStandaloneDist",
|
24
|
-
"Builds a standalone distribution",
|
25
|
-
[
|
26
|
-
"buildDistribution",
|
27
|
-
"build:compileSpecRunner",
|
28
|
-
"compress:standalone",
|
29
|
-
"build:cleanSpecRunner"
|
30
|
-
]
|
31
|
-
);
|
@@ -1,14 +0,0 @@
|
|
1
|
-
var grunt = require("grunt");
|
2
|
-
|
3
|
-
function gemLib(path) { return './lib/jasmine-core/' + path; }
|
4
|
-
function nodeToRuby(version) { return version.replace('-', '.'); }
|
5
|
-
|
6
|
-
module.exports = {
|
7
|
-
copyToGem: function() {
|
8
|
-
var versionRb = grunt.template.process(
|
9
|
-
grunt.file.read("grunt/templates/version.rb.jst"),
|
10
|
-
{ data: { jasmineVersion: nodeToRuby(global.jasmineVersion) }});
|
11
|
-
|
12
|
-
grunt.file.write(gemLib("version.rb"), versionRb);
|
13
|
-
}
|
14
|
-
};
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<!DOCTYPE HTML>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Jasmine Spec Runner v<%= jasmineVersion %></title>
|
6
|
-
|
7
|
-
<link rel="shortcut icon" type="image/png" href="lib/jasmine-<%= jasmineVersion %>/jasmine_favicon.png">
|
8
|
-
<link rel="stylesheet" type="text/css" href="lib/jasmine-<%= jasmineVersion %>/jasmine.css">
|
9
|
-
|
10
|
-
<script type="text/javascript" src="lib/jasmine-<%= jasmineVersion %>/jasmine.js"></script>
|
11
|
-
<script type="text/javascript" src="lib/jasmine-<%= jasmineVersion %>/jasmine-html.js"></script>
|
12
|
-
<script type="text/javascript" src="lib/jasmine-<%= jasmineVersion %>/boot.js"></script>
|
13
|
-
|
14
|
-
<!-- include source files here... -->
|
15
|
-
<script type="text/javascript" src="src/Player.js"></script>
|
16
|
-
<script type="text/javascript" src="src/Song.js"></script>
|
17
|
-
|
18
|
-
<!-- include spec files here... -->
|
19
|
-
<script type="text/javascript" src="spec/SpecHelper.js"></script>
|
20
|
-
<script type="text/javascript" src="spec/PlayerSpec.js"></script>
|
21
|
-
|
22
|
-
</head>
|
23
|
-
|
24
|
-
<body>
|
25
|
-
</body>
|
26
|
-
</html>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2008-<%= currentYear %> Pivotal Labs
|
3
|
-
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
5
|
-
a copy of this software and associated documentation files (the
|
6
|
-
"Software"), to deal in the Software without restriction, including
|
7
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
8
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
9
|
-
permit persons to whom the Software is furnished to do so, subject to
|
10
|
-
the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be
|
13
|
-
included in all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
19
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
20
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
|
-
*/
|
File without changes
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
require "jasmine-core/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |s|
|
6
|
-
s.name = "jasmine-core"
|
7
|
-
s.version = Jasmine::Core::VERSION
|
8
|
-
s.platform = Gem::Platform::RUBY
|
9
|
-
s.authors = ["Rajan Agaskar", "Davis W. Frank", "Christian Williams"]
|
10
|
-
s.summary = %q{JavaScript BDD framework}
|
11
|
-
s.description = %q{Test your JavaScript without any framework dependencies, in any environment, and with a nice descriptive syntax.}
|
12
|
-
s.email = %q{jasmine-js@googlegroups.com}
|
13
|
-
s.homepage = "http://pivotal.github.com/jasmine"
|
14
|
-
s.rubyforge_project = "jasmine-core"
|
15
|
-
s.license = "MIT"
|
16
|
-
|
17
|
-
s.files = Dir.glob("./lib/**/*") + Dir.glob("./lib/jasmine-core/spec/**/*.js")
|
18
|
-
s.require_paths = ["lib"]
|
19
|
-
s.add_development_dependency "rake"
|
20
|
-
s.add_development_dependency "sauce-connect"
|
21
|
-
s.add_development_dependency "compass"
|
22
|
-
s.add_development_dependency "jasmine_selenium_runner", ">= 0.2.0"
|
23
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
from .core import Core
|
@@ -1,120 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
Starting with version 2.0, this file "boots" Jasmine, performing all of the necessary initialization before executing the loaded environment and all of a project's specs. This file should be loaded after `jasmine.js`, but before any project source files or spec files are loaded. Thus this file can also be used to customize Jasmine for a project.
|
3
|
-
|
4
|
-
If a project is using Jasmine via the standalone distribution, this file can be customized directly. If a project is using Jasmine via the [Ruby gem][jasmine-gem], this file can be copied into the support directory via `jasmine copy_boot_js`. Other environments (e.g., Python) will have different mechanisms.
|
5
|
-
|
6
|
-
The location of `boot.js` can be specified and/or overridden in `jasmine.yml`.
|
7
|
-
|
8
|
-
[jasmine-gem]: http://github.com/pivotal/jasmine-gem
|
9
|
-
*/
|
10
|
-
|
11
|
-
(function() {
|
12
|
-
|
13
|
-
/**
|
14
|
-
* ## Require & Instantiate
|
15
|
-
*
|
16
|
-
* Require Jasmine's core files. Specifically, this requires and attaches all of Jasmine's code to the `jasmine` reference.
|
17
|
-
*/
|
18
|
-
window.jasmine = jasmineRequire.core(jasmineRequire);
|
19
|
-
|
20
|
-
/**
|
21
|
-
* Since this is being run in a browser and the results should populate to an HTML page, require the HTML-specific Jasmine code, injecting the same reference.
|
22
|
-
*/
|
23
|
-
jasmineRequire.html(jasmine);
|
24
|
-
|
25
|
-
/**
|
26
|
-
* Create the Jasmine environment. This is used to run all specs in a project.
|
27
|
-
*/
|
28
|
-
var env = jasmine.getEnv();
|
29
|
-
|
30
|
-
/**
|
31
|
-
* ## The Global Interface
|
32
|
-
*
|
33
|
-
* Build up the functions that will be exposed as the Jasmine public interface. A project can customize, rename or alias any of these functions as desired, provided the implementation remains unchanged.
|
34
|
-
*/
|
35
|
-
var jasmineInterface = jasmineRequire.interface(jasmine, env);
|
36
|
-
|
37
|
-
/**
|
38
|
-
* Add all of the Jasmine global/public interface to the proper global, so a project can use the public interface directly. For example, calling `describe` in specs instead of `jasmine.getEnv().describe`.
|
39
|
-
*/
|
40
|
-
if (typeof window == "undefined" && typeof exports == "object") {
|
41
|
-
extend(exports, jasmineInterface);
|
42
|
-
} else {
|
43
|
-
extend(window, jasmineInterface);
|
44
|
-
}
|
45
|
-
|
46
|
-
/**
|
47
|
-
* ## Runner Parameters
|
48
|
-
*
|
49
|
-
* More browser specific code - wrap the query string in an object and to allow for getting/setting parameters from the runner user interface.
|
50
|
-
*/
|
51
|
-
|
52
|
-
var queryString = new jasmine.QueryString({
|
53
|
-
getWindowLocation: function() { return window.location; }
|
54
|
-
});
|
55
|
-
|
56
|
-
var catchingExceptions = queryString.getParam("catch");
|
57
|
-
env.catchExceptions(typeof catchingExceptions === "undefined" ? true : catchingExceptions);
|
58
|
-
|
59
|
-
/**
|
60
|
-
* ## Reporters
|
61
|
-
* The `HtmlReporter` builds all of the HTML UI for the runner page. This reporter paints the dots, stars, and x's for specs, as well as all spec names and all failures (if any).
|
62
|
-
*/
|
63
|
-
var htmlReporter = new jasmine.HtmlReporter({
|
64
|
-
env: env,
|
65
|
-
onRaiseExceptionsClick: function() { queryString.setParam("catch", !env.catchingExceptions()); },
|
66
|
-
getContainer: function() { return document.body; },
|
67
|
-
createElement: function() { return document.createElement.apply(document, arguments); },
|
68
|
-
createTextNode: function() { return document.createTextNode.apply(document, arguments); },
|
69
|
-
timer: new jasmine.Timer()
|
70
|
-
});
|
71
|
-
|
72
|
-
/**
|
73
|
-
* The `jsApiReporter` also receives spec results, and is used by any environment that needs to extract the results from JavaScript.
|
74
|
-
*/
|
75
|
-
env.addReporter(jasmineInterface.jsApiReporter);
|
76
|
-
env.addReporter(htmlReporter);
|
77
|
-
|
78
|
-
/**
|
79
|
-
* Filter which specs will be run by matching the start of the full name against the `spec` query param.
|
80
|
-
*/
|
81
|
-
var specFilter = new jasmine.HtmlSpecFilter({
|
82
|
-
filterString: function() { return queryString.getParam("spec"); }
|
83
|
-
});
|
84
|
-
|
85
|
-
env.specFilter = function(spec) {
|
86
|
-
return specFilter.matches(spec.getFullName());
|
87
|
-
};
|
88
|
-
|
89
|
-
/**
|
90
|
-
* Setting up timing functions to be able to be overridden. Certain browsers (Safari, IE 8, phantomjs) require this hack.
|
91
|
-
*/
|
92
|
-
window.setTimeout = window.setTimeout;
|
93
|
-
window.setInterval = window.setInterval;
|
94
|
-
window.clearTimeout = window.clearTimeout;
|
95
|
-
window.clearInterval = window.clearInterval;
|
96
|
-
|
97
|
-
/**
|
98
|
-
* ## Execution
|
99
|
-
*
|
100
|
-
* Replace the browser window's `onload`, ensure it's called, and then run all of the loaded specs. This includes initializing the `HtmlReporter` instance and then executing the loaded Jasmine environment. All of this will happen after all of the specs are loaded.
|
101
|
-
*/
|
102
|
-
var currentWindowOnload = window.onload;
|
103
|
-
|
104
|
-
window.onload = function() {
|
105
|
-
if (currentWindowOnload) {
|
106
|
-
currentWindowOnload();
|
107
|
-
}
|
108
|
-
htmlReporter.initialize();
|
109
|
-
env.execute();
|
110
|
-
};
|
111
|
-
|
112
|
-
/**
|
113
|
-
* Helper function for readability above.
|
114
|
-
*/
|
115
|
-
function extend(destination, source) {
|
116
|
-
for (var property in source) destination[property] = source[property];
|
117
|
-
return destination;
|
118
|
-
}
|
119
|
-
|
120
|
-
}());
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module.exports = function(jasmineRequire) {
|
2
|
-
var jasmine = jasmineRequire.core(jasmineRequire);
|
3
|
-
|
4
|
-
var consoleFns = require('../console/console.js');
|
5
|
-
consoleFns.console(consoleFns, jasmine);
|
6
|
-
|
7
|
-
var env = jasmine.getEnv();
|
8
|
-
|
9
|
-
var jasmineInterface = jasmineRequire.interface(jasmine, env);
|
10
|
-
|
11
|
-
extend(global, jasmineInterface);
|
12
|
-
|
13
|
-
function extend(destination, source) {
|
14
|
-
for (var property in source) destination[property] = source[property];
|
15
|
-
return destination;
|
16
|
-
}
|
17
|
-
|
18
|
-
return jasmine;
|
19
|
-
};
|
@@ -1,60 +0,0 @@
|
|
1
|
-
import pkg_resources
|
2
|
-
|
3
|
-
try:
|
4
|
-
from collections import OrderedDict
|
5
|
-
except ImportError:
|
6
|
-
from ordereddict import OrderedDict
|
7
|
-
|
8
|
-
class Core(object):
|
9
|
-
@classmethod
|
10
|
-
def js_package(cls):
|
11
|
-
return __package__
|
12
|
-
|
13
|
-
@classmethod
|
14
|
-
def css_package(cls):
|
15
|
-
return __package__
|
16
|
-
|
17
|
-
@classmethod
|
18
|
-
def image_package(cls):
|
19
|
-
return __package__ + ".images"
|
20
|
-
|
21
|
-
@classmethod
|
22
|
-
def js_files(cls):
|
23
|
-
js_files = sorted(list(filter(lambda x: '.js' in x, pkg_resources.resource_listdir(cls.js_package(), '.'))))
|
24
|
-
|
25
|
-
# jasmine.js needs to be first
|
26
|
-
js_files.insert(0, 'jasmine.js')
|
27
|
-
|
28
|
-
# boot needs to be last
|
29
|
-
js_files.remove('boot.js')
|
30
|
-
js_files.append('boot.js')
|
31
|
-
|
32
|
-
return cls._uniq(js_files)
|
33
|
-
|
34
|
-
@classmethod
|
35
|
-
def css_files(cls):
|
36
|
-
return cls._uniq(sorted(filter(lambda x: '.css' in x, pkg_resources.resource_listdir(cls.css_package(), '.'))))
|
37
|
-
|
38
|
-
@classmethod
|
39
|
-
def favicon(cls):
|
40
|
-
return 'jasmine_favicon.png'
|
41
|
-
|
42
|
-
@classmethod
|
43
|
-
def _uniq(self, items, idfun=None):
|
44
|
-
# order preserving
|
45
|
-
|
46
|
-
if idfun is None:
|
47
|
-
def idfun(x): return x
|
48
|
-
seen = {}
|
49
|
-
result = []
|
50
|
-
for item in items:
|
51
|
-
marker = idfun(item)
|
52
|
-
# in old Python versions:
|
53
|
-
# if seen.has_key(marker)
|
54
|
-
# but in new ones:
|
55
|
-
if marker in seen:
|
56
|
-
continue
|
57
|
-
|
58
|
-
seen[marker] = 1
|
59
|
-
result.append(item)
|
60
|
-
return result
|
@@ -1,60 +0,0 @@
|
|
1
|
-
describe("Player", function() {
|
2
|
-
var Player = require('../../jasmine_examples/Player.js');
|
3
|
-
var Song = require('../../jasmine_examples/Song.js');
|
4
|
-
var player;
|
5
|
-
var song;
|
6
|
-
|
7
|
-
beforeEach(function() {
|
8
|
-
player = new Player();
|
9
|
-
song = new Song();
|
10
|
-
});
|
11
|
-
|
12
|
-
it("should be able to play a Song", function() {
|
13
|
-
player.play(song);
|
14
|
-
expect(player.currentlyPlayingSong).toEqual(song);
|
15
|
-
|
16
|
-
//demonstrates use of custom matcher
|
17
|
-
expect(player).toBePlaying(song);
|
18
|
-
});
|
19
|
-
|
20
|
-
describe("when song has been paused", function() {
|
21
|
-
beforeEach(function() {
|
22
|
-
player.play(song);
|
23
|
-
player.pause();
|
24
|
-
});
|
25
|
-
|
26
|
-
it("should indicate that the song is currently paused", function() {
|
27
|
-
expect(player.isPlaying).toBeFalsy();
|
28
|
-
|
29
|
-
// demonstrates use of 'not' with a custom matcher
|
30
|
-
expect(player).not.toBePlaying(song);
|
31
|
-
});
|
32
|
-
|
33
|
-
it("should be possible to resume", function() {
|
34
|
-
player.resume();
|
35
|
-
expect(player.isPlaying).toBeTruthy();
|
36
|
-
expect(player.currentlyPlayingSong).toEqual(song);
|
37
|
-
});
|
38
|
-
});
|
39
|
-
|
40
|
-
// demonstrates use of spies to intercept and test method calls
|
41
|
-
it("tells the current song if the user has made it a favorite", function() {
|
42
|
-
spyOn(song, 'persistFavoriteStatus');
|
43
|
-
|
44
|
-
player.play(song);
|
45
|
-
player.makeFavorite();
|
46
|
-
|
47
|
-
expect(song.persistFavoriteStatus).toHaveBeenCalledWith(true);
|
48
|
-
});
|
49
|
-
|
50
|
-
//demonstrates use of expected exceptions
|
51
|
-
describe("#resume", function() {
|
52
|
-
it("should throw an exception if song is already playing", function() {
|
53
|
-
player.play(song);
|
54
|
-
|
55
|
-
expect(function() {
|
56
|
-
player.resume();
|
57
|
-
}).toThrowError("song is already playing");
|
58
|
-
});
|
59
|
-
});
|
60
|
-
});
|
@@ -1,15 +0,0 @@
|
|
1
|
-
beforeEach(function () {
|
2
|
-
jasmine.addMatchers({
|
3
|
-
toBePlaying: function () {
|
4
|
-
return {
|
5
|
-
compare: function (actual, expected) {
|
6
|
-
var player = actual;
|
7
|
-
|
8
|
-
return {
|
9
|
-
pass: player.currentlyPlayingSong === expected && player.isPlaying
|
10
|
-
}
|
11
|
-
}
|
12
|
-
};
|
13
|
-
}
|
14
|
-
});
|
15
|
-
});
|
data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/spec/PlayerSpec.js
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
describe("Player", function() {
|
2
|
-
var player;
|
3
|
-
var song;
|
4
|
-
|
5
|
-
beforeEach(function() {
|
6
|
-
player = new Player();
|
7
|
-
song = new Song();
|
8
|
-
});
|
9
|
-
|
10
|
-
it("should be able to play a Song", function() {
|
11
|
-
player.play(song);
|
12
|
-
expect(player.currentlyPlayingSong).toEqual(song);
|
13
|
-
|
14
|
-
//demonstrates use of custom matcher
|
15
|
-
expect(player).toBePlaying(song);
|
16
|
-
});
|
17
|
-
|
18
|
-
describe("when song has been paused", function() {
|
19
|
-
beforeEach(function() {
|
20
|
-
player.play(song);
|
21
|
-
player.pause();
|
22
|
-
});
|
23
|
-
|
24
|
-
it("should indicate that the song is currently paused", function() {
|
25
|
-
expect(player.isPlaying).toBeFalsy();
|
26
|
-
|
27
|
-
// demonstrates use of 'not' with a custom matcher
|
28
|
-
expect(player).not.toBePlaying(song);
|
29
|
-
});
|
30
|
-
|
31
|
-
it("should be possible to resume", function() {
|
32
|
-
player.resume();
|
33
|
-
expect(player.isPlaying).toBeTruthy();
|
34
|
-
expect(player.currentlyPlayingSong).toEqual(song);
|
35
|
-
});
|
36
|
-
});
|
37
|
-
|
38
|
-
// demonstrates use of spies to intercept and test method calls
|
39
|
-
it("tells the current song if the user has made it a favorite", function() {
|
40
|
-
spyOn(song, 'persistFavoriteStatus');
|
41
|
-
|
42
|
-
player.play(song);
|
43
|
-
player.makeFavorite();
|
44
|
-
|
45
|
-
expect(song.persistFavoriteStatus).toHaveBeenCalledWith(true);
|
46
|
-
});
|
47
|
-
|
48
|
-
//demonstrates use of expected exceptions
|
49
|
-
describe("#resume", function() {
|
50
|
-
it("should throw an exception if song is already playing", function() {
|
51
|
-
player.play(song);
|
52
|
-
|
53
|
-
expect(function() {
|
54
|
-
player.resume();
|
55
|
-
}).toThrowError("song is already playing");
|
56
|
-
});
|
57
|
-
});
|
58
|
-
});
|
data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/spec/SpecHelper.js
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
beforeEach(function () {
|
2
|
-
jasmine.addMatchers({
|
3
|
-
toBePlaying: function () {
|
4
|
-
return {
|
5
|
-
compare: function (actual, expected) {
|
6
|
-
var player = actual;
|
7
|
-
|
8
|
-
return {
|
9
|
-
pass: player.currentlyPlayingSong === expected && player.isPlaying
|
10
|
-
}
|
11
|
-
}
|
12
|
-
};
|
13
|
-
}
|
14
|
-
});
|
15
|
-
});
|
@@ -1,22 +0,0 @@
|
|
1
|
-
function Player() {
|
2
|
-
}
|
3
|
-
Player.prototype.play = function(song) {
|
4
|
-
this.currentlyPlayingSong = song;
|
5
|
-
this.isPlaying = true;
|
6
|
-
};
|
7
|
-
|
8
|
-
Player.prototype.pause = function() {
|
9
|
-
this.isPlaying = false;
|
10
|
-
};
|
11
|
-
|
12
|
-
Player.prototype.resume = function() {
|
13
|
-
if (this.isPlaying) {
|
14
|
-
throw new Error("song is already playing");
|
15
|
-
}
|
16
|
-
|
17
|
-
this.isPlaying = true;
|
18
|
-
};
|
19
|
-
|
20
|
-
Player.prototype.makeFavorite = function() {
|
21
|
-
this.currentlyPlayingSong.persistFavoriteStatus(true);
|
22
|
-
};
|
@@ -1,53 +0,0 @@
|
|
1
|
-
module Jasmine
|
2
|
-
module Core
|
3
|
-
class << self
|
4
|
-
def path
|
5
|
-
File.join(File.dirname(__FILE__), "jasmine-core")
|
6
|
-
end
|
7
|
-
|
8
|
-
def js_files
|
9
|
-
(["jasmine.js"] + Dir.glob(File.join(path, "*.js"))).map { |f| File.basename(f) }.uniq - boot_files - node_boot_files
|
10
|
-
end
|
11
|
-
|
12
|
-
SPEC_TYPES = ["core", "html", "node"]
|
13
|
-
|
14
|
-
def core_spec_files
|
15
|
-
spec_files("core")
|
16
|
-
end
|
17
|
-
|
18
|
-
def html_spec_files
|
19
|
-
spec_files("html")
|
20
|
-
end
|
21
|
-
|
22
|
-
def node_spec_files
|
23
|
-
spec_files("node")
|
24
|
-
end
|
25
|
-
|
26
|
-
def boot_files
|
27
|
-
["boot.js"]
|
28
|
-
end
|
29
|
-
|
30
|
-
def node_boot_files
|
31
|
-
["node_boot.js"]
|
32
|
-
end
|
33
|
-
|
34
|
-
def boot_dir
|
35
|
-
path
|
36
|
-
end
|
37
|
-
|
38
|
-
def spec_files(type)
|
39
|
-
raise ArgumentError.new("Unrecognized spec type") unless SPEC_TYPES.include?(type)
|
40
|
-
(Dir.glob(File.join(path, "spec", type, "*.js"))).map { |f| File.join("spec", type, File.basename(f)) }.uniq
|
41
|
-
end
|
42
|
-
|
43
|
-
def css_files
|
44
|
-
Dir.glob(File.join(path, "*.css")).map { |f| File.basename(f) }
|
45
|
-
end
|
46
|
-
|
47
|
-
def images_dir
|
48
|
-
File.join(File.dirname(__FILE__), '../images')
|
49
|
-
end
|
50
|
-
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
@@ -1,70 +0,0 @@
|
|
1
|
-
# Jasmine Core 2.0.1 Release Notes
|
2
|
-
|
3
|
-
## Summary
|
4
|
-
|
5
|
-
This release is for small bug fixes and enhancements ahead of a real-soon-now 2.1.
|
6
|
-
|
7
|
-
## Changes
|
8
|
-
|
9
|
-
### Features
|
10
|
-
|
11
|
-
* NodeJS is now supported with a jasmine-core npm
|
12
|
-
* [Support browsers that don't supply a `Date.now()` by having a `mockDate` object](http://www.pivotaltracker.com/story/66606132) - Closes #361
|
13
|
-
* [Show message if no specs where loaded](http://www.pivotaltracker.com/story/12784235)
|
14
|
-
* When using `jasmine.any`, the `class` will now be included in the error message
|
15
|
-
* Reporters now receive the number of passed expectations in a spec
|
16
|
-
* Use default failure message for `toBeNaN`
|
17
|
-
* Use the latest `jasmine_selenium_runner` so we use the fix for printing objects with cycles
|
18
|
-
* Add jasmine logo image to HTML runner
|
19
|
-
* Stop Jasmine's CSS affecting the style of the body tag - Closes #600
|
20
|
-
* Standardized location of the standalone distributions - they now live in the repo in `/dist` as well as on the Releases page
|
21
|
-
|
22
|
-
### Bugs
|
23
|
-
|
24
|
-
* Don't allow calling the same done callback multiple times - Fixes #523
|
25
|
-
* [Remove 'empty' as an option as a spec result](http://www.pivotaltracker.com/story/73741032) as this was a breaking change
|
26
|
-
* Instead, we determine if a spec has no expectations using the added
|
27
|
-
key of `passedExpectations` in combination of the `failedExpectations`
|
28
|
-
to determine that there a spec is 'empty'
|
29
|
-
* Fix build in IE8 (IE8 doesn't support `Object.freeze`)
|
30
|
-
* Fix `ObjectContaining` to match recursively
|
31
|
-
|
32
|
-
### Documentation
|
33
|
-
|
34
|
-
* Update release doc to use GitHub releases
|
35
|
-
* Add installation instructions to README - Merges #621
|
36
|
-
* Add Ruby Gem and Python Egg to docs
|
37
|
-
* Add detailed steps on how to contribute - Merges #580 from @pablofiu
|
38
|
-
|
39
|
-
## Pull Requests and Issues
|
40
|
-
|
41
|
-
* Contains is explicitly false if actual is `undefined` or `null` - Fixes #627
|
42
|
-
* namespace `html-reporter` -> `jasmine_html-reporter` - Fixes #600
|
43
|
-
* Throw a more specific error when `expect` is used without a `currentSpec` - Fixes #602
|
44
|
-
* Reduced size of logo with PNG Gauntlet - Merges #588
|
45
|
-
* HTML Reporter resets previous DOM when re-initialized - Merges #594 from @plukevdh
|
46
|
-
* Narrow down raise exceptions query selector; Finding by any input tag is a little bit broad - Closes #605
|
47
|
-
* Pass through custom equality testers in toHaveBeenCalledWith - Fixes #536
|
48
|
-
* Fix outdated copyright year (update to 2014) - Merges #550 from @slothmonster
|
49
|
-
* [Add package.json to Python egg to get correct version number](http://www.pivotaltracker.com/story/67556148) - Fixes #551
|
50
|
-
* Allow users to set the maximum length of array that the pretty-printer
|
51
|
-
will print out - Fixes #323 @mikemoraned and #374 @futuraprime
|
52
|
-
* `matchersUtil.equals()` does not expect a matcher as its first argument,
|
53
|
-
so send the "actual" value first and the "expected" value second. - Merges #538 from @cbandy
|
54
|
-
* Add single quote check to `jshint` and fix src files for that - Closes #522
|
55
|
-
* Remove an `eval` in order to support running jasmine within CSP - Closes #503
|
56
|
-
* Allow matcher custom failure messages to be a function - Closes #520
|
57
|
-
* More color blind friendly CSS from @dleppik - Closes #463 & #509
|
58
|
-
* Use `load-grunt-tasks` Merges #521 from @robinboehm
|
59
|
-
* Special case printing `-0` - Closes #496
|
60
|
-
* Allow stub or spy Date object safely using a closure to get a clean copy - Closes #506
|
61
|
-
* [Use `\d7` instead of plain 'x' for more square appearance](http://www.pivotaltracker.com/story/48434179)
|
62
|
-
* Better support in pretty printer when an object has null prototype - Fixes #500
|
63
|
-
* Update link at top of README to improve access to Jasmine 2.0 docs - Merges #486 from @nextmat
|
64
|
-
* Force query selector to seek within the html-reporter element - Merges #479 from @shprink
|
65
|
-
* Netbeans files are in gitignore - Merges #478 from @shprink
|
66
|
-
|
67
|
-
|
68
|
-
------
|
69
|
-
|
70
|
-
_Release Notes generated with [Anchorman](http://github.com/infews/anchorman)_
|