rsanheim-beholder 0.5.12 → 0.5.13
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/lib/beholder_example.rb +7 -1
- data/lib/beholder.rb +1 -1
- metadata +2 -2
@@ -51,10 +51,16 @@ describe Beholder do
|
|
51
51
|
end
|
52
52
|
|
53
53
|
describe "build_cmd" do
|
54
|
-
it "contructs build cmd
|
54
|
+
it "contructs build cmd for a single file" do
|
55
55
|
beholder = Beholder.new
|
56
56
|
beholder.build_cmd(["test/foo_test.rb"]).should == %[ruby -e "%w[test/foo_test].each { |f| require f }"]
|
57
57
|
end
|
58
|
+
|
59
|
+
it "contructs build cmd for a multiple files" do
|
60
|
+
beholder = Beholder.new
|
61
|
+
beholder.build_cmd(["test/foo_test.rb", "test/functionals/foo_test.rb"]).should == %[ruby -e "%w[test/foo_test test/functionals/foo_test].each { |f| require f }"]
|
62
|
+
end
|
63
|
+
|
58
64
|
end
|
59
65
|
|
60
66
|
describe "blink" do
|
data/lib/beholder.rb
CHANGED
@@ -65,7 +65,7 @@ class Beholder
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def build_cmd(paths)
|
68
|
-
classes = paths.
|
68
|
+
classes = paths.map { |p| p.gsub(".rb", "") }.join(" ")
|
69
69
|
puts "\nRunning #{paths.join(', ').inspect}"
|
70
70
|
execute = %[-e "%w[#{classes}].each { |f| require f }"]
|
71
71
|
cmd = "ruby #{execute}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsanheim-beholder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chad Humphries, Rob Sanheim
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-05 00:00:00 -08:00
|
13
13
|
default_executable: beholder
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|