jasmine 1.2.0.rc3 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +13 -0
- data/Rakefile +0 -1
- data/generators/jasmine/templates/jasmine-example/SpecRunner.html +2 -2
- data/jasmine.gemspec +2 -1
- data/lib/generators/jasmine/examples/examples_generator.rb +1 -1
- data/lib/generators/jasmine/examples/templates/{public → app/assets}/javascripts/jasmine_examples/Player.js +0 -0
- data/lib/generators/jasmine/examples/templates/{public → app/assets}/javascripts/jasmine_examples/Song.js +0 -0
- data/lib/generators/jasmine/install/templates/spec/javascripts/support/jasmine.yml +1 -6
- data/lib/jasmine.rb +2 -1
- data/lib/jasmine/base.rb +4 -0
- data/lib/jasmine/command_line_tool.rb +1 -1
- data/lib/jasmine/page.rb +11 -0
- data/lib/jasmine/server.rb +14 -87
- data/lib/jasmine/version.rb +1 -1
- data/lib/rack/jasmine/cache_control.rb +20 -0
- data/lib/rack/jasmine/focused_suite.rb +17 -0
- data/lib/rack/jasmine/redirect.rb +20 -0
- data/lib/rack/jasmine/runner.rb +27 -0
- data/spec/config_spec.rb +1 -1
- data/spec/jasmine_command_line_tool_rakeless_spec.rb +1 -1
- data/spec/jasmine_command_line_tool_spec.rb +2 -2
- data/spec/jasmine_pojs_spec.rb +1 -1
- data/spec/jasmine_rails2_spec.rb +1 -1
- data/spec/jasmine_rails3_spec.rb +3 -3
- data/spec/jasmine_self_test_spec.rb +1 -1
- data/spec/page_spec.rb +25 -0
- data/spec/rack/jasmine/runner_spec.rb +25 -0
- data/spec/server_spec.rb +2 -1
- data/spec/spec_helper.rb +3 -1
- metadata +47 -34
- data/lib/generators/jasmine/templates/INSTALL +0 -9
- data/lib/generators/jasmine/templates/lib/tasks/jasmine.rake +0 -8
- data/lib/generators/jasmine/templates/spec/javascripts/support/jasmine-rails.yml +0 -81
- data/lib/generators/jasmine/templates/spec/javascripts/support/jasmine.yml +0 -73
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -1,2 +1,15 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
gemspec
|
3
|
+
|
4
|
+
unless ENV["TRAVIS"]
|
5
|
+
group :debug do
|
6
|
+
# curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
|
7
|
+
# curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem
|
8
|
+
# # Replace with your ruby path if necessary
|
9
|
+
# gem install linecache19-0.5.13.gem ruby-debug-base19-0.11.26.gem -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p125/
|
10
|
+
# rm linecache19-0.5.13.gem ruby-debug-base19-0.11.26.gem
|
11
|
+
gem 'linecache19', '0.5.13'
|
12
|
+
gem 'ruby-debug-base19', '0.11.26'
|
13
|
+
gem 'ruby-debug19', :require => 'ruby-debug'
|
14
|
+
end
|
15
|
+
end
|
data/Rakefile
CHANGED
@@ -10,11 +10,11 @@
|
|
10
10
|
<script type="text/javascript" src="lib/jasmine-1.1.0.rc1/jasmine.js"></script>
|
11
11
|
<script type="text/javascript" src="lib/jasmine-1.1.0.rc1/jasmine-html.js"></script>
|
12
12
|
|
13
|
-
<!-- include
|
13
|
+
<!-- include spec files here... -->
|
14
14
|
<script type="text/javascript" src="spec/SpecHelper.js"></script>
|
15
15
|
<script type="text/javascript" src="spec/PlayerSpec.js"></script>
|
16
16
|
|
17
|
-
<!-- include
|
17
|
+
<!-- include source files here... -->
|
18
18
|
<script type="text/javascript" src="src/Player.js"></script>
|
19
19
|
<script type="text/javascript" src="src/Song.js"></script>
|
20
20
|
|
data/jasmine.gemspec
CHANGED
@@ -64,8 +64,9 @@ Gem::Specification.new do |s|
|
|
64
64
|
|
65
65
|
s.add_development_dependency 'rack-test'
|
66
66
|
s.add_development_dependency 'json_pure'
|
67
|
+
s.add_development_dependency 'nokogiri'
|
67
68
|
|
68
|
-
s.add_dependency 'jasmine-core', ">= 1.2.0
|
69
|
+
s.add_dependency 'jasmine-core', ">= 1.2.0"
|
69
70
|
s.add_dependency 'rack', '~> 1.0'
|
70
71
|
s.add_dependency 'rspec', '>= 1.3.1'
|
71
72
|
s.add_dependency 'selenium-webdriver', '>= 0.1.3'
|
File without changes
|
File without changes
|
@@ -11,12 +11,7 @@
|
|
11
11
|
# - dist/**/*.js
|
12
12
|
#
|
13
13
|
src_files:
|
14
|
-
-
|
15
|
-
- public/javascripts/effects.js
|
16
|
-
- public/javascripts/controls.js
|
17
|
-
- public/javascripts/dragdrop.js
|
18
|
-
- public/javascripts/application.js
|
19
|
-
- public/javascripts/**/*.js
|
14
|
+
- assets/application.js
|
20
15
|
|
21
16
|
# stylesheets
|
22
17
|
#
|
data/lib/jasmine.rb
CHANGED
data/lib/jasmine/base.rb
CHANGED
data/lib/jasmine/page.rb
ADDED
data/lib/jasmine/server.rb
CHANGED
@@ -1,103 +1,30 @@
|
|
1
1
|
require 'rack'
|
2
2
|
require 'rack/utils'
|
3
3
|
require 'jasmine-core'
|
4
|
+
require 'rack/jasmine/runner'
|
5
|
+
require 'rack/jasmine/focused_suite'
|
6
|
+
require 'rack/jasmine/redirect'
|
7
|
+
require 'rack/jasmine/cache_control'
|
8
|
+
require 'ostruct'
|
4
9
|
|
5
10
|
module Jasmine
|
6
|
-
class RunAdapter
|
7
|
-
def initialize(config)
|
8
|
-
@config = config
|
9
|
-
@jasmine_files = Jasmine::Core.js_files.map {|f| "/__JASMINE_ROOT__/#{f}"}
|
10
|
-
@jasmine_stylesheets = Jasmine::Core.css_files.map {|f| "/__JASMINE_ROOT__/#{f}"}
|
11
|
-
end
|
12
|
-
|
13
|
-
def call(env)
|
14
|
-
return not_found if env["PATH_INFO"] != "/"
|
15
|
-
run
|
16
|
-
end
|
17
|
-
|
18
|
-
def not_found
|
19
|
-
body = "File not found: #{@path_info}\n"
|
20
|
-
[404, {"Content-Type" => "text/plain",
|
21
|
-
"Content-Length" => body.size.to_s,
|
22
|
-
"X-Cascade" => "pass"},
|
23
|
-
[body]]
|
24
|
-
end
|
25
|
-
|
26
|
-
#noinspection RubyUnusedLocalVariable
|
27
|
-
def run(focused_suite = nil)
|
28
|
-
jasmine_files = @jasmine_files
|
29
|
-
css_files = @jasmine_stylesheets + (@config.css_files || [])
|
30
|
-
js_files = @config.js_files(focused_suite)
|
31
|
-
body = ERB.new(File.read(File.join(File.dirname(__FILE__), "run.html.erb"))).result(binding)
|
32
|
-
[
|
33
|
-
200,
|
34
|
-
{ 'Content-Type' => 'text/html', 'Pragma' => 'no-cache' },
|
35
|
-
[body]
|
36
|
-
]
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
class Redirect
|
41
|
-
def initialize(url)
|
42
|
-
@url = url
|
43
|
-
end
|
44
|
-
|
45
|
-
def call(env)
|
46
|
-
[
|
47
|
-
302,
|
48
|
-
{ 'Location' => @url },
|
49
|
-
[]
|
50
|
-
]
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
class JsAlert
|
55
|
-
def call(env)
|
56
|
-
[
|
57
|
-
200,
|
58
|
-
{ 'Content-Type' => 'application/javascript' },
|
59
|
-
["document.write('<p>Couldn\\'t load #{env["PATH_INFO"]}!</p>');"]
|
60
|
-
]
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
class FocusedSuite
|
65
|
-
def initialize(config)
|
66
|
-
@config = config
|
67
|
-
end
|
68
|
-
|
69
|
-
def call(env)
|
70
|
-
run_adapter = Jasmine::RunAdapter.new(@config)
|
71
|
-
run_adapter.run(env["PATH_INFO"])
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
class CacheControl
|
76
|
-
def initialize(app)
|
77
|
-
@app, @content_type = app
|
78
|
-
end
|
79
|
-
|
80
|
-
def call(env)
|
81
|
-
status, headers, body = @app.call(env)
|
82
|
-
headers = Rack::Utils::HeaderHash.new(headers)
|
83
|
-
headers['Cache-Control'] ||= "max-age=0, private, must-revalidate"
|
84
|
-
[status, headers, body]
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
|
89
11
|
def self.app(config)
|
12
|
+
jasmine_stylesheets = ::Jasmine::Core.css_files.map {|f| "/__JASMINE_ROOT__/#{f}"}
|
13
|
+
config_shim = OpenStruct.new({:jasmine_files => ::Jasmine::Core.js_files.map {|f| "/__JASMINE_ROOT__/#{f}"},
|
14
|
+
:js_files => config.js_files,
|
15
|
+
:css_files => jasmine_stylesheets + (config.css_files || [])})
|
16
|
+
page = Jasmine::Page.new(config_shim.instance_eval { binding })
|
90
17
|
Rack::Builder.app do
|
91
18
|
use Rack::Head
|
92
|
-
use Jasmine::CacheControl
|
19
|
+
use Rack::Jasmine::CacheControl
|
93
20
|
if Jasmine::Dependencies.rails_3_asset_pipeline?
|
94
21
|
map('/assets') do
|
95
22
|
run Rails.application.assets
|
96
23
|
end
|
97
24
|
end
|
98
25
|
|
99
|
-
map('/run.html') { run Jasmine::Redirect.new('/') }
|
100
|
-
map('/__suite__') { run Jasmine::FocusedSuite.new(config) }
|
26
|
+
map('/run.html') { run Rack::Jasmine::Redirect.new('/') }
|
27
|
+
map('/__suite__') { run Rack::Jasmine::FocusedSuite.new(config) }
|
101
28
|
|
102
29
|
map('/__JASMINE_ROOT__') { run Rack::File.new(Jasmine::Core.path) }
|
103
30
|
map(config.spec_path) { run Rack::File.new(config.spec_dir) }
|
@@ -106,7 +33,7 @@ module Jasmine
|
|
106
33
|
map('/') do
|
107
34
|
run Rack::Cascade.new([
|
108
35
|
Rack::URLMap.new('/' => Rack::File.new(config.src_dir)),
|
109
|
-
Jasmine::
|
36
|
+
Rack::Jasmine::Runner.new(page)
|
110
37
|
])
|
111
38
|
end
|
112
39
|
end
|
data/lib/jasmine/version.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
module Rack
|
2
|
+
module Jasmine
|
3
|
+
|
4
|
+
class CacheControl
|
5
|
+
def initialize(app)
|
6
|
+
@app, @content_type = app
|
7
|
+
end
|
8
|
+
|
9
|
+
def call(env)
|
10
|
+
status, headers, body = @app.call(env)
|
11
|
+
headers = Rack::Utils::HeaderHash.new(headers)
|
12
|
+
headers['Cache-Control'] ||= "max-age=0, private, must-revalidate"
|
13
|
+
headers['Pragma'] ||= "no-cache"
|
14
|
+
[status, headers, body]
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Rack
|
2
|
+
module Jasmine
|
3
|
+
|
4
|
+
class Runner
|
5
|
+
def initialize(page)
|
6
|
+
@page = page
|
7
|
+
end
|
8
|
+
|
9
|
+
def call(env)
|
10
|
+
@path = env["PATH_INFO"]
|
11
|
+
return not_found if @path != "/"
|
12
|
+
[
|
13
|
+
200,
|
14
|
+
{ 'Content-Type' => 'text/html'},
|
15
|
+
[@page.render]
|
16
|
+
]
|
17
|
+
end
|
18
|
+
|
19
|
+
def not_found
|
20
|
+
[404, {"Content-Type" => "text/plain",
|
21
|
+
"X-Cascade" => "pass"},
|
22
|
+
["File not found: #{@path}\n"]]
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
data/spec/config_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
describe "Jasmine command line tool" do
|
4
4
|
before :each do
|
@@ -26,4 +26,4 @@ describe "Jasmine command line tool" do
|
|
26
26
|
output = capture_stdout { Jasmine::CommandLineTool.new.process ["license"] }
|
27
27
|
output.should =~ /Copyright/
|
28
28
|
end
|
29
|
-
end
|
29
|
+
end
|
data/spec/jasmine_pojs_spec.rb
CHANGED
data/spec/jasmine_rails2_spec.rb
CHANGED
data/spec/jasmine_rails3_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
if Jasmine::Dependencies.rails3?
|
4
4
|
|
@@ -57,8 +57,8 @@ if Jasmine::Dependencies.rails3?
|
|
57
57
|
output = `rails g jasmine:examples`
|
58
58
|
output.should include("create")
|
59
59
|
|
60
|
-
File.exists?("
|
61
|
-
File.exists?("
|
60
|
+
File.exists?("app/assets/javascripts/jasmine_examples/Player.js").should == true
|
61
|
+
File.exists?("app/assets/javascripts/jasmine_examples/Song.js").should == true
|
62
62
|
|
63
63
|
File.exists?("spec/javascripts/jasmine_examples/PlayerSpec.js").should == true
|
64
64
|
File.exists?("spec/javascripts/helpers/SpecHelper.js").should == true
|
data/spec/page_spec.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'nokogiri'
|
3
|
+
require 'ostruct'
|
4
|
+
|
5
|
+
describe Jasmine::Page do
|
6
|
+
describe "#render" do
|
7
|
+
subject { Nokogiri::HTML(page.render) }
|
8
|
+
let(:fake_config) do
|
9
|
+
OpenStruct.new(:js_files => ["file1.js", "file2.js"],
|
10
|
+
:css_files => ["file1.css", "file2.css"],
|
11
|
+
:jasmine_files => ["jasmine_file1.js", "jasmine_file2.js"])
|
12
|
+
end
|
13
|
+
let(:context) { fake_config.instance_eval { binding } }
|
14
|
+
let(:page) { Jasmine::Page.new(context) }
|
15
|
+
it "should render javascript files in the correct order" do
|
16
|
+
js_files = subject.css("script")
|
17
|
+
js_files.map { |file| file["src"] }.compact.should == ["jasmine_file1.js", "jasmine_file2.js", "file1.js", "file2.js"]
|
18
|
+
end
|
19
|
+
|
20
|
+
it "should render css files in the correct order" do
|
21
|
+
css_files = subject.css("link[type='text/css']")
|
22
|
+
css_files.map { |file| file["href"] }.compact.should == ["file1.css", "file2.css"]
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'rack/jasmine/runner'
|
3
|
+
|
4
|
+
describe Rack::Jasmine::Runner do
|
5
|
+
describe "#call" do
|
6
|
+
let(:content) { "some content" }
|
7
|
+
let(:page) { double(Jasmine::Page, :render => content)}
|
8
|
+
let(:runner) { Rack::Jasmine::Runner.new(page)}
|
9
|
+
subject { runner.call("PATH_INFO" => path) }
|
10
|
+
context "PATH_INFO is /" do
|
11
|
+
let(:expected_headers) { {"Content-Type" => "text/html"} }
|
12
|
+
let(:path) { "/" }
|
13
|
+
it "should return a response with the passed content" do
|
14
|
+
subject.should == [200, expected_headers, [content]]
|
15
|
+
end
|
16
|
+
end
|
17
|
+
context "PATH_INFO is not /" do
|
18
|
+
let(:path) { "/some_foo" }
|
19
|
+
let(:expected_headers) { {"Content-Type" => "text/plain", "X-Cascade" => "pass"} }
|
20
|
+
it "should return a 404" do
|
21
|
+
subject.should == [404, expected_headers, ["File not found: #{path}\n"]]
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/spec/server_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
require 'rack/test'
|
3
3
|
|
4
4
|
describe "Jasmine.app" do
|
@@ -50,6 +50,7 @@ describe "Jasmine.app" do
|
|
50
50
|
end
|
51
51
|
|
52
52
|
it "should serve focused suites when prefixing spec files with /__suite__/" do
|
53
|
+
pending "Temporarily removing this feature (maybe permanent)"
|
53
54
|
Dir.stub!(:glob).and_return { |glob_string| [glob_string] }
|
54
55
|
get "/__suite__/file2.js"
|
55
56
|
last_response.status.should == 200
|
data/spec/spec_helper.rb
CHANGED
@@ -3,7 +3,9 @@ require "bundler"
|
|
3
3
|
require 'stringio'
|
4
4
|
require 'tmpdir'
|
5
5
|
|
6
|
-
|
6
|
+
envs = [:default, :development]
|
7
|
+
envs << :debug if ENV["DEBUG"]
|
8
|
+
Bundler.setup(*envs)
|
7
9
|
|
8
10
|
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "../lib")))
|
9
11
|
require "jasmine"
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jasmine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.0
|
5
|
-
prerelease:
|
4
|
+
version: 1.2.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Rajan Agaskar
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-05-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|
18
|
-
requirement: &
|
18
|
+
requirement: &70293536626080 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: 2.5.0
|
24
24
|
type: :development
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *70293536626080
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
|
-
requirement: &
|
29
|
+
requirement: &70293536625100 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ! '>='
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: 3.0.0
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *70293536625100
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: rack
|
40
|
-
requirement: &
|
40
|
+
requirement: &70293536623760 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
@@ -45,10 +45,10 @@ dependencies:
|
|
45
45
|
version: 1.2.1
|
46
46
|
type: :development
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *70293536623760
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: rack-test
|
51
|
-
requirement: &
|
51
|
+
requirement: &70293536622940 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ! '>='
|
@@ -56,10 +56,10 @@ dependencies:
|
|
56
56
|
version: '0'
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
|
-
version_requirements: *
|
59
|
+
version_requirements: *70293536622940
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: json_pure
|
62
|
-
requirement: &
|
62
|
+
requirement: &70293536622400 !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
64
64
|
requirements:
|
65
65
|
- - ! '>='
|
@@ -67,21 +67,32 @@ dependencies:
|
|
67
67
|
version: '0'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
|
-
version_requirements: *
|
70
|
+
version_requirements: *70293536622400
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: nokogiri
|
73
|
+
requirement: &70293536621940 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
type: :development
|
80
|
+
prerelease: false
|
81
|
+
version_requirements: *70293536621940
|
71
82
|
- !ruby/object:Gem::Dependency
|
72
83
|
name: jasmine-core
|
73
|
-
requirement: &
|
84
|
+
requirement: &70293536621380 !ruby/object:Gem::Requirement
|
74
85
|
none: false
|
75
86
|
requirements:
|
76
87
|
- - ! '>='
|
77
88
|
- !ruby/object:Gem::Version
|
78
|
-
version: 1.2.0
|
89
|
+
version: 1.2.0
|
79
90
|
type: :runtime
|
80
91
|
prerelease: false
|
81
|
-
version_requirements: *
|
92
|
+
version_requirements: *70293536621380
|
82
93
|
- !ruby/object:Gem::Dependency
|
83
94
|
name: rack
|
84
|
-
requirement: &
|
95
|
+
requirement: &70293536620680 !ruby/object:Gem::Requirement
|
85
96
|
none: false
|
86
97
|
requirements:
|
87
98
|
- - ~>
|
@@ -89,10 +100,10 @@ dependencies:
|
|
89
100
|
version: '1.0'
|
90
101
|
type: :runtime
|
91
102
|
prerelease: false
|
92
|
-
version_requirements: *
|
103
|
+
version_requirements: *70293536620680
|
93
104
|
- !ruby/object:Gem::Dependency
|
94
105
|
name: rspec
|
95
|
-
requirement: &
|
106
|
+
requirement: &70293536619920 !ruby/object:Gem::Requirement
|
96
107
|
none: false
|
97
108
|
requirements:
|
98
109
|
- - ! '>='
|
@@ -100,10 +111,10 @@ dependencies:
|
|
100
111
|
version: 1.3.1
|
101
112
|
type: :runtime
|
102
113
|
prerelease: false
|
103
|
-
version_requirements: *
|
114
|
+
version_requirements: *70293536619920
|
104
115
|
- !ruby/object:Gem::Dependency
|
105
116
|
name: selenium-webdriver
|
106
|
-
requirement: &
|
117
|
+
requirement: &70293536619160 !ruby/object:Gem::Requirement
|
107
118
|
none: false
|
108
119
|
requirements:
|
109
120
|
- - ! '>='
|
@@ -111,7 +122,7 @@ dependencies:
|
|
111
122
|
version: 0.1.3
|
112
123
|
type: :runtime
|
113
124
|
prerelease: false
|
114
|
-
version_requirements: *
|
125
|
+
version_requirements: *70293536619160
|
115
126
|
description: Test your JavaScript without any framework dependencies, in any environment,
|
116
127
|
and with a nice descriptive syntax.
|
117
128
|
email: jasmine-js@googlegroups.com
|
@@ -142,18 +153,14 @@ files:
|
|
142
153
|
- jasmine.gemspec
|
143
154
|
- lib/generators/jasmine/examples/USAGE
|
144
155
|
- lib/generators/jasmine/examples/examples_generator.rb
|
145
|
-
- lib/generators/jasmine/examples/templates/
|
146
|
-
- lib/generators/jasmine/examples/templates/
|
156
|
+
- lib/generators/jasmine/examples/templates/app/assets/javascripts/jasmine_examples/Player.js
|
157
|
+
- lib/generators/jasmine/examples/templates/app/assets/javascripts/jasmine_examples/Song.js
|
147
158
|
- lib/generators/jasmine/examples/templates/spec/javascripts/helpers/SpecHelper.js
|
148
159
|
- lib/generators/jasmine/examples/templates/spec/javascripts/jasmine_examples/PlayerSpec.js
|
149
160
|
- lib/generators/jasmine/install/USAGE
|
150
161
|
- lib/generators/jasmine/install/install_generator.rb
|
151
162
|
- lib/generators/jasmine/install/templates/spec/javascripts/helpers/.gitkeep
|
152
163
|
- lib/generators/jasmine/install/templates/spec/javascripts/support/jasmine.yml
|
153
|
-
- lib/generators/jasmine/templates/INSTALL
|
154
|
-
- lib/generators/jasmine/templates/lib/tasks/jasmine.rake
|
155
|
-
- lib/generators/jasmine/templates/spec/javascripts/support/jasmine-rails.yml
|
156
|
-
- lib/generators/jasmine/templates/spec/javascripts/support/jasmine.yml
|
157
164
|
- lib/jasmine.rb
|
158
165
|
- lib/jasmine/base.rb
|
159
166
|
- lib/jasmine/command_line_tool.rb
|
@@ -163,6 +170,7 @@ files:
|
|
163
170
|
- lib/jasmine/firebug/firebug-1.7.0.xpi
|
164
171
|
- lib/jasmine/firebug/firebug-license.txt
|
165
172
|
- lib/jasmine/firebug/firebug.rb
|
173
|
+
- lib/jasmine/page.rb
|
166
174
|
- lib/jasmine/railtie.rb
|
167
175
|
- lib/jasmine/run.html.erb
|
168
176
|
- lib/jasmine/runner.rb
|
@@ -172,6 +180,10 @@ files:
|
|
172
180
|
- lib/jasmine/tasks/jasmine.rake
|
173
181
|
- lib/jasmine/tasks/jasmine_rails3.rake
|
174
182
|
- lib/jasmine/version.rb
|
183
|
+
- lib/rack/jasmine/cache_control.rb
|
184
|
+
- lib/rack/jasmine/focused_suite.rb
|
185
|
+
- lib/rack/jasmine/redirect.rb
|
186
|
+
- lib/rack/jasmine/runner.rb
|
175
187
|
- spec/config_spec.rb
|
176
188
|
- spec/dependencies_spec.rb
|
177
189
|
- spec/fixture/Rakefile
|
@@ -185,6 +197,8 @@ files:
|
|
185
197
|
- spec/jasmine_rails3_spec.rb
|
186
198
|
- spec/jasmine_self_test_config.rb
|
187
199
|
- spec/jasmine_self_test_spec.rb
|
200
|
+
- spec/page_spec.rb
|
201
|
+
- spec/rack/jasmine/runner_spec.rb
|
188
202
|
- spec/server_spec.rb
|
189
203
|
- spec/spec_helper.rb
|
190
204
|
homepage: http://pivotal.github.com/jasmine
|
@@ -200,18 +214,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
200
214
|
- - ! '>='
|
201
215
|
- !ruby/object:Gem::Version
|
202
216
|
version: '0'
|
203
|
-
segments:
|
204
|
-
- 0
|
205
|
-
hash: 4256175879128965687
|
206
217
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
218
|
none: false
|
208
219
|
requirements:
|
209
|
-
- - ! '
|
220
|
+
- - ! '>='
|
210
221
|
- !ruby/object:Gem::Version
|
211
|
-
version:
|
222
|
+
version: '0'
|
212
223
|
requirements: []
|
213
224
|
rubyforge_project:
|
214
|
-
rubygems_version: 1.8.
|
225
|
+
rubygems_version: 1.8.15
|
215
226
|
signing_key:
|
216
227
|
specification_version: 3
|
217
228
|
summary: JavaScript BDD framework
|
@@ -229,5 +240,7 @@ test_files:
|
|
229
240
|
- spec/jasmine_rails3_spec.rb
|
230
241
|
- spec/jasmine_self_test_config.rb
|
231
242
|
- spec/jasmine_self_test_spec.rb
|
243
|
+
- spec/page_spec.rb
|
244
|
+
- spec/rack/jasmine/runner_spec.rb
|
232
245
|
- spec/server_spec.rb
|
233
246
|
- spec/spec_helper.rb
|
@@ -1,81 +0,0 @@
|
|
1
|
-
# src_files
|
2
|
-
#
|
3
|
-
# Return an array of filepaths relative to src_dir to include before jasmine specs.
|
4
|
-
# Default: []
|
5
|
-
#
|
6
|
-
# EXAMPLE:
|
7
|
-
#
|
8
|
-
# src_files:
|
9
|
-
# - lib/source1.js
|
10
|
-
# - lib/source2.js
|
11
|
-
# - dist/**/*.js
|
12
|
-
#
|
13
|
-
src_files:
|
14
|
-
- public/javascripts/prototype.js
|
15
|
-
- public/javascripts/effects.js
|
16
|
-
- public/javascripts/controls.js
|
17
|
-
- public/javascripts/dragdrop.js
|
18
|
-
- public/javascripts/application.js
|
19
|
-
- public/javascripts/**/*.js
|
20
|
-
|
21
|
-
# stylesheets
|
22
|
-
#
|
23
|
-
# Return an array of stylesheet filepaths relative to src_dir to include before jasmine specs.
|
24
|
-
# Default: []
|
25
|
-
#
|
26
|
-
# EXAMPLE:
|
27
|
-
#
|
28
|
-
# stylesheets:
|
29
|
-
# - css/style.css
|
30
|
-
# - stylesheets/*.css
|
31
|
-
#
|
32
|
-
stylesheets:
|
33
|
-
- stylesheets/**/*.css
|
34
|
-
|
35
|
-
# helpers
|
36
|
-
#
|
37
|
-
# Return an array of filepaths relative to spec_dir to include before jasmine specs.
|
38
|
-
# Default: ["helpers/**/*.js"]
|
39
|
-
#
|
40
|
-
# EXAMPLE:
|
41
|
-
#
|
42
|
-
# helpers:
|
43
|
-
# - helpers/**/*.js
|
44
|
-
#
|
45
|
-
helpers:
|
46
|
-
- helpers/**/*.js
|
47
|
-
|
48
|
-
# spec_files
|
49
|
-
#
|
50
|
-
# Return an array of filepaths relative to spec_dir to include.
|
51
|
-
# Default: ["**/*[sS]pec.js"]
|
52
|
-
#
|
53
|
-
# EXAMPLE:
|
54
|
-
#
|
55
|
-
# spec_files:
|
56
|
-
# - **/*[sS]pec.js
|
57
|
-
#
|
58
|
-
spec_files:
|
59
|
-
- '**/*[sS]pec.js'
|
60
|
-
|
61
|
-
# src_dir
|
62
|
-
#
|
63
|
-
# Source directory path. Your src_files must be returned relative to this path. Will use root if left blank.
|
64
|
-
# Default: project root
|
65
|
-
#
|
66
|
-
# EXAMPLE:
|
67
|
-
#
|
68
|
-
# src_dir: public
|
69
|
-
#
|
70
|
-
src_dir:
|
71
|
-
|
72
|
-
# spec_dir
|
73
|
-
#
|
74
|
-
# Spec directory path. Your spec_files must be returned relative to this path.
|
75
|
-
# Default: spec/javascripts
|
76
|
-
#
|
77
|
-
# EXAMPLE:
|
78
|
-
#
|
79
|
-
# spec_dir: spec/javascripts
|
80
|
-
#
|
81
|
-
spec_dir: spec/javascripts
|
@@ -1,73 +0,0 @@
|
|
1
|
-
# src_files
|
2
|
-
#
|
3
|
-
# Return an array of filepaths relative to src_dir to include before jasmine specs.
|
4
|
-
# Default: []
|
5
|
-
#
|
6
|
-
# EXAMPLE:
|
7
|
-
#
|
8
|
-
# src_files:
|
9
|
-
# - lib/source1.js
|
10
|
-
# - lib/source2.js
|
11
|
-
# - dist/**/*.js
|
12
|
-
#
|
13
|
-
src_files:
|
14
|
-
- public/javascripts/**/*.js
|
15
|
-
|
16
|
-
# stylesheets
|
17
|
-
#
|
18
|
-
# Return an array of stylesheet filepaths relative to src_dir to include before jasmine specs.
|
19
|
-
# Default: []
|
20
|
-
#
|
21
|
-
# EXAMPLE:
|
22
|
-
#
|
23
|
-
# stylesheets:
|
24
|
-
# - css/style.css
|
25
|
-
# - stylesheets/*.css
|
26
|
-
#
|
27
|
-
stylesheets:
|
28
|
-
|
29
|
-
# helpers
|
30
|
-
#
|
31
|
-
# Return an array of filepaths relative to spec_dir to include before jasmine specs.
|
32
|
-
# Default: ["helpers/**/*.js"]
|
33
|
-
#
|
34
|
-
# EXAMPLE:
|
35
|
-
#
|
36
|
-
# helpers:
|
37
|
-
# - helpers/**/*.js
|
38
|
-
#
|
39
|
-
helpers:
|
40
|
-
|
41
|
-
# spec_files
|
42
|
-
#
|
43
|
-
# Return an array of filepaths relative to spec_dir to include.
|
44
|
-
# Default: ["**/*[sS]pec.js"]
|
45
|
-
#
|
46
|
-
# EXAMPLE:
|
47
|
-
#
|
48
|
-
# spec_files:
|
49
|
-
# - **/*[sS]pec.js
|
50
|
-
#
|
51
|
-
spec_files:
|
52
|
-
|
53
|
-
# src_dir
|
54
|
-
#
|
55
|
-
# Source directory path. Your src_files must be returned relative to this path. Will use root if left blank.
|
56
|
-
# Default: project root
|
57
|
-
#
|
58
|
-
# EXAMPLE:
|
59
|
-
#
|
60
|
-
# src_dir: public
|
61
|
-
#
|
62
|
-
src_dir:
|
63
|
-
|
64
|
-
# spec_dir
|
65
|
-
#
|
66
|
-
# Spec directory path. Your spec_files must be returned relative to this path.
|
67
|
-
# Default: spec/javascripts
|
68
|
-
#
|
69
|
-
# EXAMPLE:
|
70
|
-
#
|
71
|
-
# spec_dir: spec/javascripts
|
72
|
-
#
|
73
|
-
spec_dir:
|