jspec 4.2.1 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.md CHANGED
@@ -1,4 +1,11 @@
1
1
 
2
+ 4.3.0 / 2010-05-04
3
+ ==================
4
+
5
+ * Added chromium to supported browsers
6
+ * Fixed rhino support by using java command
7
+ * Fixed MockXMLHttpRequest#getAllResponseHeaders() matches spec returning a string
8
+
2
9
  4.2.1 / 2010-04-15
3
10
  ==================
4
11
 
data/bin/jspec CHANGED
@@ -12,7 +12,7 @@ require 'src/installables'
12
12
  require 'src/server'
13
13
 
14
14
  program :name, 'JSpec'
15
- program :version, '4.2.1'
15
+ program :version, '4.3.0'
16
16
  program :description, 'JavaScript BDD Testing Framework'
17
17
  default_command :bind
18
18
 
@@ -123,7 +123,7 @@ command :shell do |c|
123
123
  end
124
124
  end
125
125
  say "JSpec #{program(:version)}"
126
- `#{JSpec::Project::RHINO} #{paths.join(' ')} -f -`
126
+ `java -jar #{JSpec::Project::RHINO} #{paths.join(' ')} -f -`
127
127
  end
128
128
  end
129
129
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{jspec}
5
- s.version = "4.2.1"
5
+ s.version = "4.3.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["TJ Holowaychuk"]
9
- s.date = %q{2010-04-15}
9
+ s.date = %q{2010-05-04}
10
10
  s.default_executable = %q{jspec}
11
11
  s.description = %q{JavaScript BDD Testing Framework}
12
12
  s.email = %q{tj@vision-media.ca}
@@ -4,7 +4,7 @@
4
4
  ;(function(){
5
5
 
6
6
  JSpec = {
7
- version : '4.2.1',
7
+ version : '4.3.0',
8
8
  assert : true,
9
9
  cache : {},
10
10
  suites : [],
@@ -34,7 +34,9 @@
34
34
  */
35
35
 
36
36
  getAllResponseHeaders : function(){
37
- return this.responseHeaders
37
+ return JSpec.inject(this.responseHeaders, '', function(buf, key, val){
38
+ return buf + key + ': ' + val + '\r\n'
39
+ })
38
40
  },
39
41
 
40
42
  /**
@@ -217,6 +217,32 @@ class Browser
217
217
  end
218
218
  end
219
219
 
220
+ #--
221
+ # Chromium
222
+ #++
223
+
224
+ class Chromium < self
225
+ def self.matches_agent? string
226
+ string =~ /chrome/i
227
+ end
228
+
229
+ def self.matches_name? string
230
+ string =~ /chromium/i
231
+ end
232
+
233
+ def supported?
234
+ linux?
235
+ end
236
+
237
+ def visit uri
238
+ system "chromium #{uri}" if linux?
239
+ end
240
+
241
+ def to_s
242
+ 'Chromium'
243
+ end
244
+ end
245
+
220
246
  #--
221
247
  # Internet Explorer
222
248
  #++
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 4
7
- - 2
8
- - 1
9
- version: 4.2.1
7
+ - 3
8
+ - 0
9
+ version: 4.3.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - TJ Holowaychuk
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-15 00:00:00 -07:00
17
+ date: 2010-05-04 00:00:00 -07:00
18
18
  default_executable: jspec
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency