soundcheck 0.2.0 → 0.2.1
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/VERSION +1 -1
- data/bin/soundcheck +8 -3
- data/features/soundcheck.feature +6 -0
- data/features/step_definitions/steps.rb +6 -2
- data/soundcheck.gemspec +1 -1
- metadata +12 -12
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/bin/soundcheck
CHANGED
@@ -21,6 +21,11 @@ option_parser = OptionParser.new do |opts|
|
|
21
21
|
end
|
22
22
|
|
23
23
|
option_parser.parse!(ARGV)
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
begin
|
25
|
+
cmd = Soundcheck.new(ARGV[0], options).command_to_run
|
26
|
+
puts cmd
|
27
|
+
exec cmd
|
28
|
+
rescue Project::UnknownLanguage
|
29
|
+
puts "Error: Cannot detect the programming language for this project."
|
30
|
+
exit 1
|
31
|
+
end
|
data/features/soundcheck.feature
CHANGED
@@ -6,6 +6,12 @@ Feature: Soundcheck
|
|
6
6
|
When I run "soundcheck --help"
|
7
7
|
Then I should see "Usage: soundcheck"
|
8
8
|
|
9
|
+
Scenario: Unknown languages
|
10
|
+
Given the "null-project" fixture
|
11
|
+
When I run "soundcheck"
|
12
|
+
Then I should see "Cannot detect the programming language for this project."
|
13
|
+
And it should have failed
|
14
|
+
|
9
15
|
Scenario: Ruby and RSpec
|
10
16
|
Given the "ruby-bundler-rspec" fixture
|
11
17
|
When I run "soundcheck spec"
|
@@ -4,14 +4,18 @@ Given /^the "([^"]*)" fixture$/ do |fixture_path|
|
|
4
4
|
Dir.chdir(File.join(SOUNDCHECK_ROOT, "fixtures", fixture_path))
|
5
5
|
end
|
6
6
|
|
7
|
-
When /^I run "soundcheck
|
8
|
-
@output = `ruby -I#{File.join(SOUNDCHECK_ROOT, "lib")} #{File.join(SOUNDCHECK_ROOT, "bin", "soundcheck")} #{args}`
|
7
|
+
When /^I run "soundcheck\s?([^"]*)"$/ do |args|
|
8
|
+
@output = `ruby -I#{File.join(SOUNDCHECK_ROOT, "lib")} #{File.join(SOUNDCHECK_ROOT, "bin", "soundcheck")} #{args} 2>&1`
|
9
9
|
end
|
10
10
|
|
11
11
|
Then /^it should have passed$/ do
|
12
12
|
$?.exitstatus.should == 0
|
13
13
|
end
|
14
14
|
|
15
|
+
Then /^it should have failed$/ do
|
16
|
+
$?.exitstatus.should_not == 0
|
17
|
+
end
|
18
|
+
|
15
19
|
Then /^I should see "([^"]*)"$/ do |text|
|
16
20
|
@output.should include(text)
|
17
21
|
end
|
data/soundcheck.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soundcheck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-11-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
|
-
requirement: &
|
16
|
+
requirement: &13400120 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *13400120
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &13398020 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *13398020
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: jeweler
|
38
|
-
requirement: &
|
38
|
+
requirement: &13397100 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.6.4
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *13397100
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rcov
|
49
|
-
requirement: &
|
49
|
+
requirement: &13396180 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *13396180
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: cucumber
|
60
|
-
requirement: &
|
60
|
+
requirement: &13394460 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *13394460
|
69
69
|
description: Soundcheck tries to figure out what kind of project you're working on,
|
70
70
|
what test file you're trying to run, and what the fastest way is to run that.
|
71
71
|
email: marten@veldthuis.com
|
@@ -134,7 +134,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
segments:
|
136
136
|
- 0
|
137
|
-
hash:
|
137
|
+
hash: 280549212228534180
|
138
138
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
139
|
none: false
|
140
140
|
requirements:
|