Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Slightly more robust --verbose reporting

  • Loading branch information...
commit 64c047c7a4777b3699432bcafe8cb9ab778988c4 1 parent 30da3ec
Aslak Hellesøy authored May 26, 2009
1  History.txt
@@ -6,6 +6,7 @@
6 6
 * Most formatters now report how long a run took (#228 Aslak Hellesøy)
7 7
 * Scenario and ExampleRow objects (passed to Before and After hooks) have #name and #line methods (#316 Aslak Hellesøy)
8 8
 * Rails generator creates a cucumber environment file to avoid potential cache_classes conflicts in test.rb (#165, Ben Mabey)
  9
+* HTML formatter renders @tags (but the CSS is still ugly)
9 10
 
10 11
 === Removed/changed features
11 12
 * The Cucumber Rake task will again fork by default (as before 0.3.4). Forking must be turned off explicitly. (Aslak Hellesøy)
4  cucumber.gemspec
@@ -2,11 +2,11 @@
2 2
 
3 3
 Gem::Specification.new do |s|
4 4
   s.name = %q{cucumber}
5  
-  s.version = "0.3.7.3"
  5
+  s.version = "0.3.7.4"
6 6
 
7 7
   s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8 8
   s.authors = ["Aslak Helles\303\270y"]
9  
-  s.date = %q{2009-05-25}
  9
+  s.date = %q{2009-05-26}
10 10
   s.default_executable = %q{cucumber}
11 11
   s.description = %q{Executable Feature scenarios}
12 12
   s.email = ["aslak.hellesoy@gmail.com"]
1  lib/cucumber/cli/configuration.rb
@@ -257,6 +257,7 @@ def files_to_require
257 257
         requires = @options[:require] || feature_dirs
258 258
         files = requires.map do |path|
259 259
           path = path.gsub(/\\/, '/') # In case we're on windows. Globs don't work with backslashes.
  260
+          path = path.gsub(/\/$/, '') # Strip trailing slash.
260 261
           File.directory?(path) ? Dir["#{path}/**/*.rb"] : path
261 262
         end.flatten.uniq
262 263
         sorted_files = files.sort { |a,b| (b =~ %r{/support/} || -1) <=>  (a =~ %r{/support/} || -1) }.reject{|f| f =~ /^http/}
5  lib/cucumber/cli/main.rb
@@ -75,11 +75,12 @@ def configuration
75 75
       private
76 76
     
77 77
       def require_files
  78
+        requires = configuration.files_to_require
78 79
         verbose_log("Ruby files required:")
79  
-        configuration.files_to_require.each do |lib|
  80
+        verbose_log(requires.map{|lib| "  * #{lib}"}.join("\n"))
  81
+        requires.each do |lib|
80 82
           begin
81 83
             require lib
82  
-            verbose_log("  * #{lib}")
83 84
           rescue LoadError => e
84 85
             e.message << "\nFailed to load #{lib}"
85 86
             raise e
2  lib/cucumber/version.rb
@@ -3,7 +3,7 @@ class VERSION #:nodoc:
3 3
     MAJOR = 0
4 4
     MINOR = 3
5 5
     TINY  = 7
6  
-    PATCH = 3 # Set to nil for official release
  6
+    PATCH = 4 # Set to nil for official release
7 7
 
8 8
     STRING = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
9 9
     STABLE_STRING = [MAJOR, MINOR, TINY].join('.')

0 notes on commit 64c047c

Please sign in to comment.
Something went wrong with that request. Please try again.