jasmine 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -70,16 +70,16 @@ jasmine.TrivialReporter.prototype.reportRunnerStarting = function(runner) {
70
70
  this.startedAt = new Date();
71
71
 
72
72
  var self = this;
73
- showPassed.onchange = function(evt) {
74
- if (evt.target.checked) {
73
+ showPassed.onclick = function(evt) {
74
+ if (showPassed.checked) {
75
75
  self.outerDiv.className += ' show-passed';
76
76
  } else {
77
77
  self.outerDiv.className = self.outerDiv.className.replace(/ show-passed/, '');
78
78
  }
79
79
  };
80
80
 
81
- showSkipped.onchange = function(evt) {
82
- if (evt.target.checked) {
81
+ showSkipped.onclick = function(evt) {
82
+ if (showSkipped.checked) {
83
83
  self.outerDiv.className += ' show-skipped';
84
84
  } else {
85
85
  self.outerDiv.className = self.outerDiv.className.replace(/ show-skipped/, '');
@@ -162,7 +162,13 @@ jasmine.TrivialReporter.prototype.reportSpecResults = function(spec) {
162
162
 
163
163
  jasmine.TrivialReporter.prototype.log = function() {
164
164
  var console = jasmine.getGlobal().console;
165
- if (console && console.log) console.log.apply(console, arguments);
165
+ if (console && console.log) {
166
+ if (console.log.apply) {
167
+ console.log.apply(console, arguments);
168
+ } else {
169
+ console.log(arguments); // ie fix: console.log.apply doesn't exist on ie
170
+ }
171
+ }
166
172
  };
167
173
 
168
174
  jasmine.TrivialReporter.prototype.getLocation = function() {
@@ -2416,6 +2416,6 @@ jasmine.getGlobal().clearInterval = function(timeoutKey) {
2416
2416
  jasmine.version_= {
2417
2417
  "major": 1,
2418
2418
  "minor": 0,
2419
- "build": 0,
2420
- "revision": 1284494074
2419
+ "build": 1,
2420
+ "revision": 1286311016
2421
2421
  };
@@ -39,13 +39,18 @@ module Jasmine
39
39
  puts "jasmine server started."
40
40
  end
41
41
 
42
+ def windows?
43
+ require 'rbconfig'
44
+ ::Config::CONFIG['host_os'] =~ /mswin|mingw/
45
+ end
46
+
42
47
  def start_selenium_server
43
48
  @selenium_server_port = external_selenium_server_port
44
49
  if @selenium_server_port.nil?
45
50
  @selenium_server_port = Jasmine::find_unused_port
46
51
  require 'selenium_rc'
47
52
  SeleniumRC::Server.send(:include, SeleniumServerForkHackForRSpec)
48
- SeleniumRC::Server.boot("localhost", @selenium_server_port, :args => ["> /dev/null"])
53
+ SeleniumRC::Server.boot("localhost", @selenium_server_port, :args => [windows? ? ">NUL" : "> /dev/null"])
49
54
  else
50
55
  Jasmine::wait_for_listener(@selenium_server_port, "selenium server")
51
56
  end
metadata CHANGED
@@ -1,107 +1,121 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 21
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 0
8
- - 0
9
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Rajan Agaskar
13
14
  - Christian Williams
15
+ - Davis Frank
14
16
  autorequire:
15
17
  bindir: bin
16
18
  cert_chain: []
17
19
 
18
- date: 2010-09-14 00:00:00 -07:00
20
+ date: 2010-10-05 00:00:00 -07:00
19
21
  default_executable: jasmine
20
22
  dependencies:
21
23
  - !ruby/object:Gem::Dependency
22
24
  type: :runtime
25
+ prerelease: false
23
26
  name: rake
24
27
  version_requirements: &id001 !ruby/object:Gem::Requirement
28
+ none: false
25
29
  requirements:
26
30
  - - ">="
27
31
  - !ruby/object:Gem::Version
32
+ hash: 49
28
33
  segments:
29
34
  - 0
30
35
  - 8
31
36
  - 7
32
37
  version: 0.8.7
33
38
  requirement: *id001
34
- prerelease: false
35
39
  - !ruby/object:Gem::Dependency
36
40
  type: :runtime
41
+ prerelease: false
37
42
  name: rspec
38
43
  version_requirements: &id002 !ruby/object:Gem::Requirement
44
+ none: false
39
45
  requirements:
40
46
  - - ">="
41
47
  - !ruby/object:Gem::Version
48
+ hash: 25
42
49
  segments:
43
50
  - 1
44
51
  - 1
45
52
  - 5
46
53
  version: 1.1.5
47
54
  requirement: *id002
48
- prerelease: false
49
55
  - !ruby/object:Gem::Dependency
50
56
  type: :runtime
57
+ prerelease: false
51
58
  name: rack
52
59
  version_requirements: &id003 !ruby/object:Gem::Requirement
60
+ none: false
53
61
  requirements:
54
62
  - - ">="
55
63
  - !ruby/object:Gem::Version
64
+ hash: 23
56
65
  segments:
57
66
  - 1
58
67
  - 0
59
68
  - 0
60
69
  version: 1.0.0
61
70
  requirement: *id003
62
- prerelease: false
63
71
  - !ruby/object:Gem::Dependency
64
72
  type: :runtime
73
+ prerelease: false
65
74
  name: selenium-rc
66
75
  version_requirements: &id004 !ruby/object:Gem::Requirement
76
+ none: false
67
77
  requirements:
68
78
  - - ">="
69
79
  - !ruby/object:Gem::Version
80
+ hash: 11
70
81
  segments:
71
82
  - 2
72
83
  - 1
73
84
  - 0
74
85
  version: 2.1.0
75
86
  requirement: *id004
76
- prerelease: false
77
87
  - !ruby/object:Gem::Dependency
78
88
  type: :runtime
89
+ prerelease: false
79
90
  name: selenium-client
80
91
  version_requirements: &id005 !ruby/object:Gem::Requirement
92
+ none: false
81
93
  requirements:
82
94
  - - ">="
83
95
  - !ruby/object:Gem::Version
96
+ hash: 61
84
97
  segments:
85
98
  - 1
86
99
  - 2
87
100
  - 17
88
101
  version: 1.2.17
89
102
  requirement: *id005
90
- prerelease: false
91
103
  - !ruby/object:Gem::Dependency
92
104
  type: :runtime
105
+ prerelease: false
93
106
  name: json_pure
94
107
  version_requirements: &id006 !ruby/object:Gem::Requirement
108
+ none: false
95
109
  requirements:
96
110
  - - ">="
97
111
  - !ruby/object:Gem::Version
112
+ hash: 1
98
113
  segments:
99
114
  - 1
100
115
  - 4
101
116
  - 3
102
117
  version: 1.4.3
103
118
  requirement: *id006
104
- prerelease: false
105
119
  description: Javascript BDD test framework
106
120
  email: jasmine-js@googlegroups.com
107
121
  executables:
@@ -137,6 +151,14 @@ files:
137
151
  - lib/jasmine/spec_builder.rb
138
152
  - lib/jasmine/tasks/jasmine.rake
139
153
  - README.markdown
154
+ - spec/config_spec.rb
155
+ - spec/jasmine_command_line_tool_spec.rb
156
+ - spec/jasmine_self_test_config.rb
157
+ - spec/jasmine_self_test_spec.rb
158
+ - spec/rails_generator_spec.rb
159
+ - spec/server_spec.rb
160
+ - spec/spec_helper.rb
161
+ - bin/jasmine
140
162
  has_rdoc: true
141
163
  homepage: http://pivotal.github.com/jasmine
142
164
  licenses: []
@@ -147,23 +169,27 @@ rdoc_options:
147
169
  require_paths:
148
170
  - lib
149
171
  required_ruby_version: !ruby/object:Gem::Requirement
172
+ none: false
150
173
  requirements:
151
174
  - - ">="
152
175
  - !ruby/object:Gem::Version
176
+ hash: 3
153
177
  segments:
154
178
  - 0
155
179
  version: "0"
156
180
  required_rubygems_version: !ruby/object:Gem::Requirement
181
+ none: false
157
182
  requirements:
158
183
  - - ">="
159
184
  - !ruby/object:Gem::Version
185
+ hash: 3
160
186
  segments:
161
187
  - 0
162
188
  version: "0"
163
189
  requirements: []
164
190
 
165
191
  rubyforge_project:
166
- rubygems_version: 1.3.6
192
+ rubygems_version: 1.3.7
167
193
  signing_key:
168
194
  specification_version: 3
169
195
  summary: Jasmine Runner for Ruby