Skip to content

Commit

Permalink
Slightly more robust --verbose reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed May 25, 2009
1 parent 30da3ec commit 64c047c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions History.txt
Expand Up @@ -6,6 +6,7 @@
* Most formatters now report how long a run took (#228 Aslak Hellesøy)
* Scenario and ExampleRow objects (passed to Before and After hooks) have #name and #line methods (#316 Aslak Hellesøy)
* Rails generator creates a cucumber environment file to avoid potential cache_classes conflicts in test.rb (#165, Ben Mabey)
* HTML formatter renders @tags (but the CSS is still ugly)

=== Removed/changed features
* The Cucumber Rake task will again fork by default (as before 0.3.4). Forking must be turned off explicitly. (Aslak Hellesøy)
Expand Down
4 changes: 2 additions & 2 deletions cucumber.gemspec
Expand Up @@ -2,11 +2,11 @@

Gem::Specification.new do |s|
s.name = %q{cucumber}
s.version = "0.3.7.3"
s.version = "0.3.7.4"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Aslak Helles\303\270y"]
s.date = %q{2009-05-25}
s.date = %q{2009-05-26}
s.default_executable = %q{cucumber}
s.description = %q{Executable Feature scenarios}
s.email = ["aslak.hellesoy@gmail.com"]
Expand Down
1 change: 1 addition & 0 deletions lib/cucumber/cli/configuration.rb
Expand Up @@ -257,6 +257,7 @@ def files_to_require
requires = @options[:require] || feature_dirs
files = requires.map do |path|
path = path.gsub(/\\/, '/') # In case we're on windows. Globs don't work with backslashes.
path = path.gsub(/\/$/, '') # Strip trailing slash.
File.directory?(path) ? Dir["#{path}/**/*.rb"] : path
end.flatten.uniq
sorted_files = files.sort { |a,b| (b =~ %r{/support/} || -1) <=> (a =~ %r{/support/} || -1) }.reject{|f| f =~ /^http/}
Expand Down
5 changes: 3 additions & 2 deletions lib/cucumber/cli/main.rb
Expand Up @@ -75,11 +75,12 @@ def configuration
private

def require_files
requires = configuration.files_to_require
verbose_log("Ruby files required:")
configuration.files_to_require.each do |lib|
verbose_log(requires.map{|lib| " * #{lib}"}.join("\n"))
requires.each do |lib|
begin
require lib
verbose_log(" * #{lib}")
rescue LoadError => e
e.message << "\nFailed to load #{lib}"
raise e
Expand Down
2 changes: 1 addition & 1 deletion lib/cucumber/version.rb
Expand Up @@ -3,7 +3,7 @@ class VERSION #:nodoc:
MAJOR = 0
MINOR = 3
TINY = 7
PATCH = 3 # Set to nil for official release
PATCH = 4 # Set to nil for official release

STRING = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
STABLE_STRING = [MAJOR, MINOR, TINY].join('.')
Expand Down

0 comments on commit 64c047c

Please sign in to comment.