Permalink
Browse files

Cleanup trailing whitespace

  • Loading branch information...
1 parent c97d89f commit 4d71770017d41718a44a6c7d6826dcfeb6ed8dc7 @sferik sferik committed Feb 19, 2013
Showing with 576 additions and 576 deletions.
  1. +1 −1 .travis.yml
  2. +3 −3 History.md
  3. +2 −2 cucumber.gemspec
  4. +1 −1 cucumber.yml
  5. +14 −14 lib/autotest/cucumber_mixin.rb
  6. +2 −2 lib/cucumber.rb
  7. +1 −1 lib/cucumber/ast.rb
  8. +3 −3 lib/cucumber/ast/background.rb
  9. +2 −2 lib/cucumber/ast/comment.rb
  10. +1 −1 lib/cucumber/ast/doc_string.rb
  11. +1 −1 lib/cucumber/ast/examples.rb
  12. +2 −2 lib/cucumber/ast/feature.rb
  13. +1 −1 lib/cucumber/ast/feature_element.rb
  14. +2 −2 lib/cucumber/ast/multiline_argument.rb
  15. +2 −2 lib/cucumber/ast/names.rb
  16. +13 −13 lib/cucumber/ast/scenario.rb
  17. +4 −4 lib/cucumber/ast/scenario_outline.rb
  18. +2 −2 lib/cucumber/ast/step.rb
  19. +3 −3 lib/cucumber/ast/step_collection.rb
  20. +1 −1 lib/cucumber/ast/step_invocation.rb
  21. +23 −23 lib/cucumber/ast/table.rb
  22. +4 −4 lib/cucumber/ast/tree_walker.rb
  23. +5 −5 lib/cucumber/cli/configuration.rb
  24. +2 −2 lib/cucumber/cli/main.rb
  25. +2 −2 lib/cucumber/cli/options.rb
  26. +12 −12 lib/cucumber/configuration.rb
  27. +1 −1 lib/cucumber/constantize.rb
  28. +1 −1 lib/cucumber/core_ext/disable_mini_and_test_unit_autorun.rb
  29. +2 −2 lib/cucumber/core_ext/instance_exec.rb
  30. +3 −3 lib/cucumber/core_ext/proc.rb
  31. +1 −1 lib/cucumber/errors.rb
  32. +1 −1 lib/cucumber/feature_file.rb
  33. +3 −3 lib/cucumber/formatter/ansicolor.rb
  34. +3 −3 lib/cucumber/formatter/console.rb
  35. +6 −6 lib/cucumber/formatter/debug.rb
  36. +1 −1 lib/cucumber/formatter/duration.rb
  37. +42 −42 lib/cucumber/formatter/html.rb
  38. +1 −1 lib/cucumber/formatter/ordered_xml_markup.rb
  39. +8 −8 lib/cucumber/formatter/pretty.rb
  40. +4 −4 lib/cucumber/formatter/rerun.rb
  41. +1 −1 lib/cucumber/formatter/stepdefs.rb
  42. +2 −2 lib/cucumber/formatter/steps.rb
  43. +4 −4 lib/cucumber/formatter/usage.rb
  44. +1 −1 lib/cucumber/js_support/js_dsl.js
  45. +1 −1 lib/cucumber/language_support.rb
  46. +29 −29 lib/cucumber/parser/gherkin_builder.rb
  47. +2 −2 lib/cucumber/py_support/py_dsl.py
  48. +2 −2 lib/cucumber/py_support/py_language.py
  49. +1 −1 lib/cucumber/py_support/py_language.rb
  50. +1 −1 lib/cucumber/rake/task.rb
  51. +8 −8 lib/cucumber/rb_support/rb_dsl.rb
  52. +2 −2 lib/cucumber/rb_support/rb_language.rb
  53. +2 −2 lib/cucumber/rb_support/rb_step_definition.rb
  54. +3 −3 lib/cucumber/rb_support/rb_transform.rb
  55. +3 −3 lib/cucumber/rb_support/rb_world.rb
  56. +1 −1 lib/cucumber/rb_support/regexp_argument_matcher.rb
  57. +1 −1 lib/cucumber/rspec/disable_option_parser.rb
  58. +1 −1 lib/cucumber/rspec/doubles.rb
  59. +9 −9 lib/cucumber/runtime.rb
  60. +5 −5 lib/cucumber/runtime/features_loader.rb
  61. +5 −5 lib/cucumber/runtime/for_programming_languages.rb
  62. +6 −6 lib/cucumber/runtime/results.rb
  63. +27 −27 lib/cucumber/runtime/support_code.rb
  64. +3 −3 lib/cucumber/runtime/user_interface.rb
  65. +4 −4 lib/cucumber/step_definition_light.rb
  66. +2 −2 lib/cucumber/step_definitions.rb
  67. +4 −4 lib/cucumber/step_match.rb
  68. +1 −1 lib/cucumber/step_mother.rb
  69. +22 −22 lib/cucumber/term/ansicolor.rb
  70. +3 −3 lib/cucumber/wire_support/configuration.rb
  71. +7 −7 lib/cucumber/wire_support/connection.rb
  72. +3 −3 lib/cucumber/wire_support/request_handler.rb
  73. +3 −3 lib/cucumber/wire_support/wire_exception.rb
  74. +9 −9 lib/cucumber/wire_support/wire_language.rb
  75. +4 −4 lib/cucumber/wire_support/wire_packet.rb
  76. +6 −6 lib/cucumber/wire_support/wire_protocol.rb
  77. +20 −20 lib/cucumber/wire_support/wire_protocol/requests.rb
  78. +4 −4 lib/cucumber/wire_support/wire_step_definition.rb
  79. +4 −4 spec/cucumber/ast/background_spec.rb
  80. +8 −8 spec/cucumber/ast/doc_string_spec.rb
  81. +4 −4 spec/cucumber/ast/feature_factory.rb
  82. +18 −18 spec/cucumber/ast/feature_spec.rb
  83. +3 −3 spec/cucumber/ast/outline_table_spec.rb
  84. +4 −4 spec/cucumber/ast/step_spec.rb
  85. +19 −19 spec/cucumber/ast/table_spec.rb
  86. +1 −1 spec/cucumber/broadcaster_spec.rb
  87. +3 −3 spec/cucumber/cli/configuration_spec.rb
  88. +1 −1 spec/cucumber/cli/drb_client_spec.rb
  89. +5 −5 spec/cucumber/cli/main_spec.rb
  90. +3 −3 spec/cucumber/cli/options_spec.rb
  91. +4 −4 spec/cucumber/configuration_spec.rb
  92. +1 −1 spec/cucumber/core_ext/proc_spec.rb
  93. +2 −2 spec/cucumber/formatter/ansicolor_spec.rb
  94. +2 −2 spec/cucumber/formatter/duration_spec.rb
  95. +31 −31 spec/cucumber/formatter/html_spec.rb
  96. +1 −1 spec/cucumber/formatter/progress_spec.rb
  97. +7 −7 spec/cucumber/formatter/spec_helper.rb
  98. +1 −1 spec/cucumber/rake/forked_spec.rb
  99. +2 −2 spec/cucumber/rake/rcov_spec.rb
  100. +12 −12 spec/cucumber/rb_support/rb_language_spec.rb
  101. +1 −1 spec/cucumber/rb_support/rb_step_definition_spec.rb
  102. +3 −3 spec/cucumber/rb_support/rb_transform_spec.rb
  103. +5 −5 spec/cucumber/runtime/results_spec.rb
  104. +2 −2 spec/cucumber/runtime/support_code_spec.rb
  105. +7 −7 spec/cucumber/runtime_spec.rb
  106. +1 −1 spec/cucumber/step_match_spec.rb
  107. +5 −5 spec/cucumber/wire_support/configuration_spec.rb
  108. +6 −6 spec/cucumber/wire_support/connection_spec.rb
  109. +3 −3 spec/cucumber/wire_support/wire_exception_spec.rb
  110. +3 −3 spec/cucumber/wire_support/wire_language_spec.rb
  111. +4 −4 spec/cucumber/wire_support/wire_packet_spec.rb
  112. +1 −1 spec/cucumber/wire_support/wire_step_definition_spec.rb
  113. +1 −1 spec/spec_helper.rb
View
@@ -1,4 +1,4 @@
-rvm:
+rvm:
- 1.9.3
- 1.9.2
View
@@ -109,7 +109,7 @@ Added support for Hindi (hi), although some systems may need to install fonts wh
New format:
[feature here]
-
+
Also see [Gherkin 2.6.0 History](https://github.com/cucumber/gherkin/blob/master/History.md) for info about new `id` and `uri` elements in the JSON.
## [v1.1.0](https://github.com/cucumber/cucumber/compare/v1.0.6...v1.1.0)
@@ -233,7 +233,7 @@ Yipeeeeeeeee!
### Bugfixes
* Missing methods in Runtime::ForProgrammingLanguages - make v8 example run again (Chris Mytton)
* Features files are sorted before they are executed, giving consistent results across different OSes (Guewen Baconnier)
-* Remove duplicate lines in backtraces in the HTML report (Jari Bakken)
+* Remove duplicate lines in backtraces in the HTML report (Jari Bakken)
## [v0.10.0](https://github.com/cucumber/cucumber/compare/v0.9.4...v0.10.0)
@@ -265,7 +265,7 @@ This should not affect users. The major new feature in this release is ANSICON s
### Bugfixes
* Better JSON representation of Regexps (Aslak Hellesøy)
* Update to work with latest spork (Matt Wynne)
-* Prevent MiniTest::Unit#autorun from running in at_exit hook. (Aslak Hellesøy)
+* Prevent MiniTest::Unit#autorun from running in at_exit hook. (Aslak Hellesøy)
* Fixed incorect --help for --strict. It fails on both pending and undefined. (Aslak Hellesøy)
## [v0.9.2](https://github.com/cucumber/cucumber/compare/v0.9.1...v0.9.2)
View
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency 'builder', '>= 2.1.2'
s.add_runtime_dependency 'diff-lcs', '>= 1.1.3'
s.add_runtime_dependency 'json', '>= 1.4.6'
-
+
s.add_development_dependency 'aruba', '~> 0.4.11'
s.add_development_dependency 'rake', '>= 0.9.2'
s.add_development_dependency 'rspec', '~> 2.11.0'
@@ -30,7 +30,7 @@ Gem::Specification.new do |s|
s.add_development_dependency('yard', '~> 0.8.0')
s.add_development_dependency('rdiscount', '~> 1.6.8') unless defined?(JRUBY_VERSION)
s.add_development_dependency('bcat', '~> 0.6.2')
-
+
# Needed for examples (rake examples)
s.add_development_dependency 'ramaze'
s.add_development_dependency 'rack-test', '>= 0.6.1'
View
@@ -1,4 +1,4 @@
-<%
+<%
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format pretty #{rerun}"
std_opts = "--format progress features --tags ~@wip"
@@ -7,14 +7,14 @@ module Autotest::CucumberMixin
def self.included(receiver)
receiver::ALL_HOOKS << [:run_features, :ran_features]
end
-
+
attr_accessor :features_to_run
-
+
def initialize
super
reset_features
end
-
+
def run
hook :initialize
reset
@@ -44,28 +44,28 @@ def run
end
hook :quit
end
-
+
def all_features_good
features_to_run == ""
end
-
+
def get_to_green
begin
super
run_features
wait_for_changes unless all_features_good
end until all_features_good
end
-
+
def rerun_all_features
reset_features
run_features
end
-
+
def reset_features
self.features_to_run = :all
end
-
+
def run_features
hook :run_features
Tempfile.open('autotest-cucumber') do |dirty_features_file|
@@ -104,16 +104,16 @@ def run_features
end
hook :ran_features
end
-
+
def make_cucumber_cmd(features_to_run, dirty_features_filename)
return '' if features_to_run == ''
-
+
profile_loader = Cucumber::Cli::ProfileLoader.new
-
+
profile ||= "autotest-all" if profile_loader.has_profile?("autotest-all") && features_to_run == :all
profile ||= "autotest" if profile_loader.has_profile?("autotest")
profile ||= nil
-
+
if profile
args = ["--profile", profile]
else
@@ -122,12 +122,12 @@ def make_cucumber_cmd(features_to_run, dirty_features_filename)
# No --color option as some IDEs (Netbeans) don't output them very well (1 failed step)
args += %w{--format rerun --out} << dirty_features_filename
args << (features_to_run == :all ? "" : features_to_run)
-
+
# Unless I do this, all the steps turn up undefined during the rerun...
unless features_to_run == :all
args << 'features/step_definitions' << 'features/support'
end
-
+
args = args.join(' ')
return "#{Cucumber::RUBY_BINARY} #{Cucumber::BINARY} #{args}"
View
@@ -13,14 +13,14 @@
module Cucumber
class << self
attr_accessor :wants_to_quit
-
+
def logger
return @log if @log
@log = Logger.new(STDOUT)
@log.level = Logger::INFO
@log
end
-
+
def logger=(logger)
@log = logger
end
View
@@ -27,4 +27,4 @@ module Cucumber
# for an example.
module Ast
end
-end
+end
@@ -43,7 +43,7 @@ def accept(visitor)
visitor.step_mother.after(hook_context) if @failed || @feature_elements.empty?
end
end
-
+
def with_visitor(scenario, visitor)
@current_visitor = visitor
init
@@ -55,7 +55,7 @@ def with_visitor(scenario, visitor)
yield
end
end
-
+
def accept_hook?(hook)
init
if hook_context != self
@@ -96,7 +96,7 @@ def to_sexp
def fail!(exception)
@failed = true
@exception = exception
- @current_visitor.visit_exception(@exception, :failed)
+ @current_visitor.visit_exception(@exception, :failed)
end
@@ -22,10 +22,10 @@ def accept(visitor)
visitor.visit_comment_line(line.strip)
end
end
-
+
def to_sexp
(@value.nil? || @value == '') ? nil : [:comment, @value]
end
end
end
-end
+end
@@ -38,7 +38,7 @@ def accept(visitor)
return if Cucumber.wants_to_quit
visitor.visit_doc_string(self)
end
-
+
def arguments_replaced(arguments) #:nodoc:
string = self
arguments.each do |name, value|
@@ -5,7 +5,7 @@ module Ast
class Examples #:nodoc:
include Names
attr_writer :outline_table
-
+
def initialize(comment, line, keyword, title, description, outline_table)
@comment, @keyword, @title, @description, @outline_table = comment, keyword, title, description, outline_table
end
@@ -5,7 +5,7 @@ module Ast
# Represents the root node of a parsed feature.
class Feature #:nodoc:
include Names
-
+
attr_accessor :language
attr_writer :features, :background
attr_reader :file, :feature_elements
@@ -80,7 +80,7 @@ def file=(file)
file = file.gsub(/\//, '\\') if Cucumber::WINDOWS && file && !ENV['CUCUMBER_FORWARD_SLASH_PATHS']
@file = file
end
-
+
def file_colon_line(line)
"#{@file}:#{line}"
end
@@ -65,7 +65,7 @@ def max_line_length
def accept_hook?(hook)
Gherkin::TagExpression.new(hook.tag_expressions).eval(source_tags)
end
-
+
def source_tag_names
source_tags.map { |tag| tag.name }
end
@@ -10,7 +10,7 @@ class << self
def from(argument)
return unless argument
return argument if argument.respond_to?(:to_step_definition_arg)
-
+
case(rubify(argument))
when String
# TODO: this duplicates work that gherkin does. We should really pass the string to gherkin and let it parse it.
@@ -27,4 +27,4 @@ def from(argument)
end
end
end
-end
+end
@@ -2,12 +2,12 @@ module Cucumber
module Ast
module Names
attr_reader :title, :description
-
+
def name
s = @title
s += "\n#{@description}" if @description != ""
s
end
end
end
-end
+end
@@ -6,26 +6,26 @@ module Ast
class Scenario #:nodoc:
include FeatureElement
include Names
-
+
attr_reader :line
-
- class EmptyBackground
+
+ class EmptyBackground
def failed?
false
end
-
+
def feature_elements
[]
end
-
+
def step_collection(step_invocations)
StepCollection.new(step_invocations)
end
-
+
def init
end
end
-
+
def initialize(background, comment, tags, line, keyword, title, description, raw_steps)
@background = background || EmptyBackground.new
@comment, @tags, @line, @keyword, @title, @description, @raw_steps = comment, tags, line, keyword, title, description, raw_steps
@@ -43,7 +43,7 @@ def init
def accept(visitor)
return if Cucumber.wants_to_quit
-
+
with_visitor(visitor) do
visitor.visit_comment(@comment) unless @comment.empty?
visitor.visit_tags(@tags)
@@ -62,7 +62,7 @@ def accept(visitor)
def failed?
@steps.failed? || !!@exception
end
-
+
def fail!(exception)
@exception = exception
@current_visitor.visit_exception(@exception, :failed)
@@ -101,16 +101,16 @@ def to_sexp
sexp += steps if steps.any?
sexp
end
-
-
+
+
def with_visitor(visitor)
@current_visitor = visitor
yield
@current_visitor = nil
end
-
+
private
-
+
def skip_hooks?
@background.failed? || @executed
end
@@ -6,7 +6,7 @@ module Ast
class ScenarioOutline #:nodoc:
include FeatureElement
include Names
-
+
module ExamplesArray #:nodoc:
def accept(visitor)
return if Cucumber.wants_to_quit
@@ -38,7 +38,7 @@ def init
@examples_array = @example_sections.map do |example_section_and_gherkin_examples|
example_section = example_section_and_gherkin_examples[0]
gherkin_examples = example_section_and_gherkin_examples[1]
-
+
examples_comment = example_section[0]
examples_line = example_section[1]
examples_keyword = example_section[2]
@@ -98,8 +98,8 @@ def each_example_row(&proc)
def visit_scenario_name(visitor, row)
visitor.visit_scenario_name(
@feature.language.keywords('scenario')[0],
- row.name,
- file_colon_line(row.line),
+ row.name,
+ file_colon_line(row.line),
source_indent(first_line_length)
)
end
Oops, something went wrong.

0 comments on commit 4d71770

Please sign in to comment.