jspec 3.1.1 → 3.1.2

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
+ 3.1.2 / 2010-01-14
3
+ ==================
4
+
5
+ * Changed dependency; commander 4.0.1 for JRuby support
6
+ * Fixed rails init issue with node.js. Closes #135
7
+ * Fixed bin specs
8
+
2
9
  3.1.1 / 2010-01-14
3
10
  ==================
4
11
 
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ Echoe.new "jspec", version do |p|
14
14
  p.url = "http://visionmedia.github.com/jspec"
15
15
  p.runtime_dependencies << "sinatra"
16
16
  p.runtime_dependencies << "json_pure"
17
- p.runtime_dependencies << "commander >=4.0.0"
17
+ p.runtime_dependencies << "commander >=4.0.1"
18
18
  p.runtime_dependencies << "bind >=0.2.8"
19
19
  end
20
20
 
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, '3.1.1'
15
+ program :version, '3.1.2'
16
16
  program :description, 'JavaScript BDD Testing Framework'
17
17
  default_command :bind
18
18
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{jspec}
5
- s.version = "3.1.1"
5
+ s.version = "3.1.2"
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"]
@@ -27,18 +27,18 @@ Gem::Specification.new do |s|
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
29
  s.add_runtime_dependency(%q<json_pure>, [">= 0"])
30
- s.add_runtime_dependency(%q<commander>, [">= 4.0.0"])
30
+ s.add_runtime_dependency(%q<commander>, [">= 4.0.1"])
31
31
  s.add_runtime_dependency(%q<bind>, [">= 0.2.8"])
32
32
  else
33
33
  s.add_dependency(%q<sinatra>, [">= 0"])
34
34
  s.add_dependency(%q<json_pure>, [">= 0"])
35
- s.add_dependency(%q<commander>, [">= 4.0.0"])
35
+ s.add_dependency(%q<commander>, [">= 4.0.1"])
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
40
  s.add_dependency(%q<json_pure>, [">= 0"])
41
- s.add_dependency(%q<commander>, [">= 4.0.0"])
41
+ s.add_dependency(%q<commander>, [">= 4.0.1"])
42
42
  s.add_dependency(%q<bind>, [">= 0.2.8"])
43
43
  end
44
44
  end
@@ -4,7 +4,7 @@
4
4
  ;(function(){
5
5
 
6
6
  JSpec = {
7
- version : '3.1.1',
7
+ version : '3.1.2',
8
8
  assert : true,
9
9
  cache : {},
10
10
  suites : [],
@@ -3,23 +3,6 @@ require 'fileutils'
3
3
 
4
4
  load File.dirname(__FILE__) + '/../../../bin/jspec'
5
5
 
6
- def jspec name, *args
7
- capture do
8
- command(name).run *args
9
- end
6
+ def jspec *args
7
+ `#{JSPEC_ROOT}/bin/jspec #{args.join(' ')}`
10
8
  end
11
-
12
- def capture &block
13
- IO.popen('-') do |io|
14
- io ? io.read : yield
15
- end
16
- end
17
-
18
- def shell *args
19
- IO.popen(JSPEC_ROOT + '/bin/jspec shell', 'r+') do |io|
20
- args.each do |arg|
21
- io.puts arg
22
- end
23
- io.read
24
- end
25
- end
@@ -143,6 +143,7 @@ module JSpec
143
143
 
144
144
  def replace_root_in *paths
145
145
  paths.each do |path|
146
+ next unless File.exists? normalize(path)
146
147
  jspec_root = root
147
148
  jspec_root = '.' if vendorized? and path.include? '.html'
148
149
  contents = File.read(normalize(path)).gsub 'JSPEC_ROOT', jspec_root
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: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 4.0.0
43
+ version: 4.0.1
44
44
  version:
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: bind