From 5066ada198a13431f39421ab07d316f3efd751e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aslak=20Helles=C3=B8y?= Date: Wed, 22 Feb 2012 17:58:38 +0000 Subject: [PATCH] Removed deprecation warning for source_tag_names. Release 1.1.9 --- Gemfile | 2 +- History.md | 5 + cucumber.gemspec | 2 +- features/.cucumber/stepdefs.json | 254 ---------------------------- lib/cucumber/ast/background.rb | 1 - lib/cucumber/ast/feature.rb | 1 - lib/cucumber/ast/feature_element.rb | 1 - lib/cucumber/ast/outline_table.rb | 2 - lib/cucumber/platform.rb | 2 +- 9 files changed, 8 insertions(+), 262 deletions(-) diff --git a/Gemfile b/Gemfile index 8325c35243..c7d14233ed 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ source "http://rubygems.org" gemspec -# gem 'gherkin', :path => '../gherkin' \ No newline at end of file +# gem 'gherkin', :path => '../gherkin' diff --git a/History.md b/History.md index f01d0be31d..bf7c00ea3a 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,8 @@ +## [v1.1.9](https://github.com/cucumber/cucumber/compare/v1.1.8...v1.1.9) + +## Bugfixes +* Removed deprecation warning for `source_tag_names`. It's not deprecated anymore. (Aslak Hellesøy) + ## [v1.1.8](https://github.com/cucumber/cucumber/compare/v1.1.7...v1.1.8) ## Bugfixes diff --git a/cucumber.gemspec b/cucumber.gemspec index fa69ba26c9..0612eee658 100644 --- a/cucumber.gemspec +++ b/cucumber.gemspec @@ -23,7 +23,7 @@ for important information about this release. Happy cuking! } - s.add_runtime_dependency 'gherkin', '~> 2.8.0' + s.add_runtime_dependency 'gherkin', '~> 2.9.0' s.add_runtime_dependency 'term-ansicolor', '>= 1.0.6' s.add_runtime_dependency 'builder', '>= 2.1.2' s.add_runtime_dependency 'diff-lcs', '>= 1.1.2' diff --git a/features/.cucumber/stepdefs.json b/features/.cucumber/stepdefs.json index 50a91f69be..edfba92c2f 100644 --- a/features/.cucumber/stepdefs.json +++ b/features/.cucumber/stepdefs.json @@ -783,260 +783,6 @@ ] }, - { - "source": "^a scenario \"([^\"]*)\" with:$", - "flags": "", - "file_colon_line": "features/cucumber-features/step_definitions/cucumber_stepdefs.rb:5", - "steps": [ - { - "name": "a scenario \"Add three numbers\" with:", - "args": [ - { - "offset": 12, - "val": "Add three numbers" - } - ] - }, - { - "name": "a scenario \"Add two numbers\" with:", - "args": [ - { - "offset": 12, - "val": "Add two numbers" - } - ] - }, - { - "name": "a scenario \"Basic Arithmetic\" with:", - "args": [ - { - "offset": 12, - "val": "Basic Arithmetic" - } - ] - }, - { - "name": "a scenario \"Calculate PI\" with:", - "args": [ - { - "offset": 12, - "val": "Calculate PI" - } - ] - }, - { - "name": "a scenario \"Simple math\" with:", - "args": [ - { - "offset": 12, - "val": "Simple math" - } - ] - }, - { - "name": "a scenario \"Too simple math\" with:", - "args": [ - { - "offset": 12, - "val": "Too simple math" - } - ] - } - ] - }, - { - "source": "^the following feature:$", - "flags": "", - "file_colon_line": "features/cucumber-features/step_definitions/cucumber_stepdefs.rb:10", - "steps": [ - { - "name": "the following feature:", - "args": [ - - ] - } - ] - }, - { - "source": "^the step \"([^\"]*)\" has a passing mapping$", - "flags": "", - "file_colon_line": "features/cucumber-features/step_definitions/cucumber_stepdefs.rb:14", - "steps": [ - { - "name": "the step \"I add 4 and 5\" has a passing mapping", - "args": [ - { - "offset": 10, - "val": "I add 4 and 5" - } - ] - }, - { - "name": "the step \"the result is 9\" has a passing mapping", - "args": [ - { - "offset": 10, - "val": "the result is 9" - } - ] - } - ] - }, - { - "source": "^the step \"([^\"]*)\" has a pending mapping$", - "flags": "", - "file_colon_line": "features/cucumber-features/step_definitions/cucumber_stepdefs.rb:18", - "steps": [ - { - "name": "the step \"I add 4 and 5\" has a pending mapping", - "args": [ - { - "offset": 10, - "val": "I add 4 and 5" - } - ] - } - ] - }, - { - "source": "^the step \"([^\"]*)\" has a failing mapping$", - "flags": "", - "file_colon_line": "features/cucumber-features/step_definitions/cucumber_stepdefs.rb:22", - "steps": [ - { - "name": "the step \"I add 4 and 5\" has a failing mapping", - "args": [ - { - "offset": 10, - "val": "I add 4 and 5" - } - ] - } - ] - }, - { - "source": "^Cucumber executes the scenario \"([^\"]*)\"$", - "flags": "", - "file_colon_line": "features/cucumber-features/step_definitions/cucumber_stepdefs.rb:26", - "steps": [ - { - "name": "Cucumber executes the scenario \"Basic Arithmetic\"", - "args": [ - { - "offset": 32, - "val": "Basic Arithmetic" - } - ] - } - ] - }, - { - "source": "^Cucumber runs the feature$", - "flags": "", - "file_colon_line": "features/cucumber-features/step_definitions/cucumber_stepdefs.rb:30", - "steps": [ - { - "name": "Cucumber runs the feature", - "args": [ - - ] - } - ] - }, - { - "source": "^Cucumber runs the scenario with steps for a calculator$", - "flags": "", - "file_colon_line": "features/cucumber-features/step_definitions/cucumber_stepdefs.rb:34", - "steps": [ - { - "name": "Cucumber runs the scenario with steps for a calculator", - "args": [ - - ] - } - ] - }, - { - "source": "^the scenario passes$", - "flags": "", - "file_colon_line": "features/cucumber-features/step_definitions/cucumber_stepdefs.rb:40", - "steps": [ - { - "name": "the scenario passes", - "args": [ - - ] - } - ] - }, - { - "source": "^the scenario fails$", - "flags": "", - "file_colon_line": "features/cucumber-features/step_definitions/cucumber_stepdefs.rb:44", - "steps": [ - { - "name": "the scenario fails", - "args": [ - - ] - } - ] - }, - { - "source": "^the scenario is pending$", - "flags": "", - "file_colon_line": "features/cucumber-features/step_definitions/cucumber_stepdefs.rb:48", - "steps": [ - { - "name": "the scenario is pending", - "args": [ - - ] - } - ] - }, - { - "source": "^the scenario is undefined$", - "flags": "", - "file_colon_line": "features/cucumber-features/step_definitions/cucumber_stepdefs.rb:52", - "steps": [ - { - "name": "the scenario is undefined", - "args": [ - - ] - } - ] - }, - { - "source": "^the step \"([^\"]*)\" is skipped$", - "flags": "", - "file_colon_line": "features/cucumber-features/step_definitions/cucumber_stepdefs.rb:56", - "steps": [ - { - "name": "the step \"the result is 9\" is skipped", - "args": [ - { - "offset": 10, - "val": "the result is 9" - } - ] - } - ] - }, - { - "source": "^the feature passes$", - "flags": "", - "file_colon_line": "features/cucumber-features/step_definitions/cucumber_stepdefs.rb:60", - "steps": [ - { - "name": "the feature passes", - "args": [ - - ] - } - ] - }, { "source": "^I run cucumber \"(.+)\"$", "flags": "", diff --git a/lib/cucumber/ast/background.rb b/lib/cucumber/ast/background.rb index 6880ecb20c..ad20cfec07 100644 --- a/lib/cucumber/ast/background.rb +++ b/lib/cucumber/ast/background.rb @@ -104,7 +104,6 @@ def source_tags end def source_tag_names - warn("Deprecated: please use #source_tags instead.") source_tags.map { |tag| tag.name } end diff --git a/lib/cucumber/ast/feature.rb b/lib/cucumber/ast/feature.rb index 6f277a337b..f286e1032c 100644 --- a/lib/cucumber/ast/feature.rb +++ b/lib/cucumber/ast/feature.rb @@ -58,7 +58,6 @@ def source_tags end def source_tag_names - warn("Deprecated: please use #source_tags instead.") source_tags.map { |tag| tag.name } end diff --git a/lib/cucumber/ast/feature_element.rb b/lib/cucumber/ast/feature_element.rb index b73422d9ad..d11809de8a 100644 --- a/lib/cucumber/ast/feature_element.rb +++ b/lib/cucumber/ast/feature_element.rb @@ -67,7 +67,6 @@ def accept_hook?(hook) end def source_tag_names - warn("Deprecated: please use #source_tags instead.") source_tags.map { |tag| tag.name } end diff --git a/lib/cucumber/ast/outline_table.rb b/lib/cucumber/ast/outline_table.rb index 7d5d38ec51..812c159367 100644 --- a/lib/cucumber/ast/outline_table.rb +++ b/lib/cucumber/ast/outline_table.rb @@ -39,7 +39,6 @@ def source_tags end def source_tag_names - warn("Deprecated: please use #source_tags instead.") source_tags.map { |tag| tag.name } end @@ -85,7 +84,6 @@ def initialize(table, cells) end def source_tag_names - warn("Deprecated: please use #source_tags instead.") source_tags.map { |tag| tag.name } end diff --git a/lib/cucumber/platform.rb b/lib/cucumber/platform.rb index 0b6f6a4ec9..8eafa195c6 100644 --- a/lib/cucumber/platform.rb +++ b/lib/cucumber/platform.rb @@ -4,7 +4,7 @@ module Cucumber unless defined?(Cucumber::VERSION) - VERSION = '1.1.8' + VERSION = '1.1.9' BINARY = File.expand_path(File.dirname(__FILE__) + '/../../bin/cucumber') LIBDIR = File.expand_path(File.dirname(__FILE__) + '/../../lib') JRUBY = defined?(JRUBY_VERSION)