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 +7 -0
- data/Rakefile +1 -1
- data/bin/jspec +1 -1
- data/jspec.gemspec +4 -4
- data/lib/jspec.js +1 -1
- data/spec/ruby/bin/spec_helper.rb +2 -19
- data/src/project.rb +1 -0
- metadata +2 -2
data/History.md
CHANGED
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.
|
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
data/jspec.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{jspec}
|
5
|
-
s.version = "3.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.
|
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.
|
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.
|
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
|
data/lib/jspec.js
CHANGED
@@ -3,23 +3,6 @@ require 'fileutils'
|
|
3
3
|
|
4
4
|
load File.dirname(__FILE__) + '/../../../bin/jspec'
|
5
5
|
|
6
|
-
def jspec
|
7
|
-
|
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
|
data/src/project.rb
CHANGED
@@ -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.
|
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.
|
43
|
+
version: 4.0.1
|
44
44
|
version:
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
46
|
name: bind
|