jspec 2.11.6 → 2.11.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,10 @@
1
1
 
2
+ === 2.11.7 / 2009-10-15
3
+
4
+ * Fixed minor grammar issues for windows users [thanks Tony]
5
+ * Fixes installation issue when XCode is not present; changed dependency json -> json_pure [thanks esbie]
6
+ * Fixed Chrome#visit; latest builds of Chrome for the mac are now "Google Chrome"
7
+
2
8
  === 2.11.6 / 2009-10-12
3
9
 
4
10
  * Added Tony to contributor list
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ Echoe.new "jspec", version do |p|
13
13
  p.summary = "JavaScript BDD Testing Framework"
14
14
  p.url = "http://visionmedia.github.com/jspec"
15
15
  p.runtime_dependencies << "sinatra"
16
- p.runtime_dependencies << "json"
16
+ p.runtime_dependencies << "json_pure"
17
17
  p.runtime_dependencies << "commander >=4.0.0"
18
18
  p.runtime_dependencies << "bind >=0.2.8"
19
19
  end
data/bin/jspec CHANGED
@@ -12,7 +12,7 @@ require 'server/server'
12
12
  RHINO = 'java org.mozilla.javascript.tools.shell.Main'
13
13
 
14
14
  program :name, 'JSpec'
15
- program :version, '2.11.6'
15
+ program :version, '2.11.7'
16
16
  program :description, 'JavaScript BDD Testing Framework'
17
17
  default_command :bind
18
18
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{jspec}
5
- s.version = "2.11.6"
5
+ s.version = "2.11.7"
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{2009-10-12}
9
+ s.date = %q{2009-10-15}
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}
@@ -26,18 +26,18 @@ Gem::Specification.new do |s|
26
26
 
27
27
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
28
28
  s.add_runtime_dependency(%q<sinatra>, [">= 0"])
29
- s.add_runtime_dependency(%q<json>, [">= 0"])
29
+ s.add_runtime_dependency(%q<json_pure>, [">= 0"])
30
30
  s.add_runtime_dependency(%q<commander>, [">= 4.0.0"])
31
31
  s.add_runtime_dependency(%q<bind>, [">= 0.2.8"])
32
32
  else
33
33
  s.add_dependency(%q<sinatra>, [">= 0"])
34
- s.add_dependency(%q<json>, [">= 0"])
34
+ s.add_dependency(%q<json_pure>, [">= 0"])
35
35
  s.add_dependency(%q<commander>, [">= 4.0.0"])
36
36
  s.add_dependency(%q<bind>, [">= 0.2.8"])
37
37
  end
38
38
  else
39
39
  s.add_dependency(%q<sinatra>, [">= 0"])
40
- s.add_dependency(%q<json>, [">= 0"])
40
+ s.add_dependency(%q<json_pure>, [">= 0"])
41
41
  s.add_dependency(%q<commander>, [">= 4.0.0"])
42
42
  s.add_dependency(%q<bind>, [">= 0.2.8"])
43
43
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  JSpec = {
7
7
 
8
- version : '2.11.6',
8
+ version : '2.11.7',
9
9
  cache : {},
10
10
  suites : [],
11
11
  modules : [],
@@ -1338,10 +1338,11 @@
1338
1338
  if (typeof input != 'string') return
1339
1339
  input = hookImmutable('preprocessing', input)
1340
1340
  return input.
1341
+ replace(/\r\n/gm, '\n').
1341
1342
  replace(/([\w\.]+)\.(stub|destub)\((.*?)\)$/gm, '$2($1, $3)').
1342
1343
  replace(/describe\s+(.*?)$/gm, 'describe($1, function(){').
1343
1344
  replace(/^\s+it\s+(.*?)$/gm, ' it($1, function(){').
1344
- replace(/^(?: *)(before_each|after_each|before|after)(?= |\n|$)/gm, 'JSpec.currentSuite.addHook("$1", function(){').
1345
+ replace(/^\s*(before_each|after_each|before|after)(?=\s|$)/gm, 'JSpec.currentSuite.addHook("$1", function(){').
1345
1346
  replace(/^\s*end(?=\s|$)/gm, '});').
1346
1347
  replace(/-\{/g, 'function(){').
1347
1348
  replace(/(\d+)\.\.(\d+)/g, function(_, a, b){ return range(a, b) }).
@@ -158,7 +158,7 @@ class Browser
158
158
  end
159
159
 
160
160
  def visit uri
161
- system "open -g -a Chromium #{uri}" if macos?
161
+ system "open -g -a 'Google Chrome' #{uri}" if macos?
162
162
  end
163
163
 
164
164
  def to_s
@@ -4,7 +4,7 @@ get '/jspec/*' do |path|
4
4
  end
5
5
 
6
6
  post '/results' do
7
- require 'json'
7
+ require 'json/pure'
8
8
  data = JSON.parse request.body.read
9
9
  if data['options'].include?('verbose') && data['options']['verbose'] ||
10
10
  data['options'].include?('failuresOnly') && data['options']['failuresOnly']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.6
4
+ version: 2.11.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-12 00:00:00 -07:00
12
+ date: 2009-10-15 00:00:00 -07:00
13
13
  default_executable: jspec
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -23,7 +23,7 @@ dependencies:
23
23
  version: "0"
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
- name: json
26
+ name: json_pure
27
27
  type: :runtime
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement