Skip to content

Latest commit

 

History

History
610 lines (398 loc) · 22.6 KB

History.md

File metadata and controls

610 lines (398 loc) · 22.6 KB

New Features

  • [Java] Omit transient fields in toMap so we have more control over what goes into JSON. (Aslak Hellesøy)

Changed Features

The JSON representation of features has changed. The difference lies in how Doc Strings and Data Tables are represented. Consider the following steps:

Given a Data Table:
  | Hipster | Ipsum |
  | Freegan | Vinyl |
Given a Doc String:
  """
  Hipster
  Ipsum
  """

This is now represented in JSON as:

"steps": [
  {
    "keyword": "Given ",
    "name": "a Data Table"
    "line": 5,
    "rows": [
      { "cells": ["Hipster", "Ipsum"], "line": 6 },
      { "cells": ["Freegan", "Vinyl"], "line": 7 }
    ]
  },
  {
    "keyword": "Given ",
    "name": "a Doc String"
    "line": 8,
    "doc_string": {
      "value": "Hipster\nIpsum"
      "line": 9,
      "content_type": "plaintext",
    }
  }
]

Previously it would be represented in JSON as:

"steps": [
  {
    "keyword": "Given ",
    "name": "a Data Table"
    "line": 5,
    "multiline_arg": {
      "type": "table"
      "value": [
        { "cells": ["Hipster", "Ipsum"], "line": 6 },
        { "cells": ["Freegan", "Vinyl"], "line": 7 }
      ]
    }
  },
  {
    "keyword": "Given ",
    "name": "a Doc String"
    "line": 8,
    "multiline_arg": {
      "type": "doc_string"
      "value": "Hipster\nIpsum"
      "line": 9,
      "content_type": "plaintext",
    }
  }
]

Bugfixes

  • Java JSONFormatter produces invalid JSON (#128 Aslak Hellesøy)
  • Missing matches and results in JSONFormatter output (#129 Aslak Hellesøy)

Bugfixes

  • Revert json dependency back to >= 1.4.6 since many apps still use old json. (Aslak Hellesøy)

(The 2.4.19 release got messed up).

Bugfixes

  • Filtering on Examples with 0 or 1 row now works (from mailing list Aslak Hellesøy)
  • Exclude .gitignore files from packaged gem (#125 John Hume)

New Features

  • Fenced Code Blocks for DocStrings (#123 Gregory Hnatiuk, Aslak Hellesøy)

New Features

  • Jar file is now deployed to Maven central, making installation a little easier (Aslak Hellesøy)
  • Both Ruby and Java API docs are on cukes.info. See README for details. (Aslak Hellesøy)

New Features

  • [Java] TagExpression.eval() takes a Collection instead of List. That lets us pass a Set. (Aslak Hellesøy)

New Features

  • [Java] Pretty formatter knows how to print deleted (-) or inserted (+) table rows. (Aslak Hellesøy)

New Features

  • [Java] Publish source jars to Maven repo (Aslak Hellesøy)
  • [Java] Made NiceAppendable public - it's handy for Cucumber-JVM too (Aslak Hellesøy)

No changes, but previous release failed while pushing gems (rubygems.org bug?)

Bugfixes

  • [Java] Fixed Maven warnings. (Aslak Hellesøy)

New Features

  • [Java] Fixed bug in Result.getErrorMessage() when it was created with a Throwable. (Aslak Hellesøy)
  • [Java] PrettyFormatter and JSONFormatter take Appendable instead of OutputStream/Writer. (Aslak Hellesøy)

Changed Features

  • [Java] PrettyFormatter and JSONFormatter no longer flush. Make sure you pass an OutputStream/Writer that autoflushes. (Aslak Hellesøy)

Bugfixes

  • Changed rake-compiler version from '~> 1.7.9' to '>= 1.7.9' since the fix in 2.4.10 seemed to have no effect. I hate the Ruby ecosystem today. (Aslak Hellesøy)

Bugfixes

  • Changed rake-compiler version from '1.7.9' to '~> 1.7.9' since the fix in 2.4.9 seemed to have no effect. (Aslak Hellesøy)

Bugfixes

  • Changed rake-compiler version from '= 1.7.9' to '1.7.9' to work around install problems caused by rubygems/rubygems#121 (Aslak Hellesøy)

Bugfixes

  • Remove another awesome_print which was left over from 2.4.7. (Aslak Hellesøy)
  • Make specs/features pass when LANG=C (or LC_CTYPE=C). (#118 Antonio Terceiro, Aslak Hellesøy)

Bugfixes

  • Remove awesome_print (which was used for debuging). (Antonio Terceiro)

New Features

  • Added I18n.getLocale() to Java impl. (Aslak Hellesøy)

Bugfixes

  • Added Icelandic translation (Ægir Örn Símonarson)
  • JavaScript: String prototype has no "trimRight" function. Fixes failure in Opera. (Julien Biezemans)

No changes, releasing again since the 2.4.4 release failed halfway through.

Bugfixes

  • JRuby fixes. Symbols and streams are now properly converted before passing from ruby to java. (Aslak Hellesøy)
  • json-simple and base64 jar files (used by some of the java classes) are now embedded in the jruby gem (Aslak Hellesøy)

Changed Features

  • Added a small hack to the java Result class to work around Cucumber bug #97 (Aslak Hellesøy)

Changed Features

  • Formatter and Reporter are now two distinct interfaces. JSONParser takes one of each in ctor. (Aslak Hellesøy)

New Features

  • None - just updated build system to the latest Cucumber (Aslak Hellesøy)

Bugfixes

  • Don't use -Werror in production code (#106 Hans de Graaff)

New Features

Changed Features

  • py_string/PyString changed to doc_string/DocString, ref cucumber/common#74 (Aslak Hellesøy)

Bugfixes

  • Relax development dependency version on builder. (#105 Aslak Hellesøy).

New features

Insignificant changes

  • Improve build system so we don't need to add generated js lexers to git.
  • Removed incorrect (and unneeded) case statement that could blow up if V8 is installed. (Aslak Hellesøy, Niklas H)
  • Added connect support for gherkin.js (Aslak Hellesøy)

New Features

  • Javascript implementation (#38 Aslak Hellesøy)

Bugfixes

  • Fix compilation error on Arch Linux (#98,#99 Ben Hamill)
  • Corrected Russian translation (#97 Vagif Abilov)

Changes

  • Relaxed gem dependencies to use >=. (Rob Slifka, Aslak Hellesøy)

Changes

  • Fixing C90 errors on Ubuntu Natty (#92 Colin Dean)
  • Romanian (ro) language update, extracted from a real-world project. (Iulian Dogariu)

Changes

  • No more dependencies on external ANSI escape libraries (Ruby:term-ansicolor, Java:Jansi). DIY is better! (Aslak Hellesøy)
  • Added duration (in millseconds) to Result. (Aslak Hellesøy)
  • Additional Polish aliases (Mike Połtyn)

(Somehow 2.3.1 was released improperly shortly after 2.3.0 - not sure what fixes went into that!)

Bugfixes

  • Preserve whitespace in descriptions. Leading whitespace in descriptions are stripped upto preceding keyword + 2 spaces (#87 Matt Wynne, Gregory Hnatiuk, Aslak Hellesøy)
  • Fix incorrect indentation of Examples descriptions (Gregory Hnatiuk)
  • Can't define new line characters in Example Table Cell's Content. (#85 George Montana Harkin, Aslak Hellesøy)

New Features

  • New aliases for Scenario Outline in Swedish, Norwegian and English. (Peter Krantz, Aslak Hellesøy)
  • Improved build documentation for people who want to contribute. (Aslak Hellesøy)
  • Results can now be outputted/parsed in JSON. (Aslak Hellesøy)
  • JSON output now contains optional "match", "result" and "embeddings" elements underneath each step. (Aslak Hellesøy)
  • Added support for Base64 encoded embeddings in JSON representation. Useful for screenshots etc. (Aslak Hellesøy)

New Features

  • PrettyFormatter can format features both with and without ANSI Colors. Using Jansi on Java. (Aslak Hellesøy)
  • Extended Java Formatter API with a steps(List) method for better reporting in Java (Aslak Hellesøy)

Removed Features

  • Trollop based CLI - didn't find a good use for it yet. (Aslak Hellesøy)

Bugfixes

  • I18n.getCodeKeywords() on Java didn't strip '!'. Not anymore. (Aslak Hellesøy)

Bugfixes

  • I18n.getCodeKeywords() on Java included '*'. Not anymore. (Aslak Hellesøy)

New Features

  • Gherkin will scan all top comments for the language comment. (Aslak Hellesøy)

Bugfixes

  • C99 features used by gherkin code (#75 Graham Agnew)

Bugfixes

  • Add back missing development dependency on cucumber (Aslak Hellesøy)

New Features

  • Use json instead of json_pure (Aslak Hellesøy)
  • JSON formatter and parser can now omit JSON serialization (for speed) and work directly on objects (Aslak Hellesøy)

New Features

  • Windows gems are now built against 1.8.6-p287 and 1.9.1-p243, on both mswin32 and mingw32, and should work on 1.8.6, 1.8.7, 1.9.1 and 1.9.2 versions of rubyinstaller.org as well as older windows rubies. (Aslak Hellesøy)

Changed features

  • Build system no longer uses Jeweler - only Rake, Bundler and Rubygems (Aslak Hellesøy)

This release breaks some APIs since the previous 2.1.5 release. If you install gherkin 2.2.0 you must also upgrade to Cucumber 0.9.0.

Bugfixes

  • I18nLexer doesn't recognise language header with \r\n on OS X. (#70 Aslak Hellesøy)

New Features

  • Pure Java FilterFormatter. (Aslak Hellesøy)
  • Pure Java JSONFormatter. (Aslak Hellesøy)

Changed Features

  • All formatter events take exactly one argument. Each argument is a single object with all data. (Aslak Hellesøy)
  • Several java classes have moved to a different package in order to improve separation of concerns. (Aslak Hellesøy)

Bugfixes

  • Line filter works on JRuby with Scenarios without steps. (Aslak Hellesøy)

Changed Features

  • The JSON schema now puts background inside the "elements" Array. Makes parsing simpler. (Aslak Hellesøy)

Bugfixes

  • #steps fails on JRuby with 2.1.3 (#68 Aslak Hellesøy)

Bugfixes

  • Examples are not cleared when an ignored Scenario Outline/Examples is followed by a Scenario. (#67 Aslak Hellesøy)

Bugfixes

  • Fix some missing require statements that surfaced when gherkin was used outside Cucumber. (Aslak Hellesøy)

The previous release had a missing gherkin.jar in the jruby gem. This release fixes that. For good this time!

New Features

  • Pirate! (anteaya)
  • Tag limits for negative tags (Aslak Hellesøy)

Changed Features

  • The formatter API has changed and the listener API is now only used internally. (Aslak Hellesøy)

Removed Features

  • FilterListener has been replaced with FilterFormatter. Currently only in Ruby (no Java impl yet). (Aslak Hellesøy)

New Features

  • New JSON Lexer. (Gregory Hnatiuk)

Bugfixes

  • Fixed incorrect indentation for descriptions in Java. (Aslak Hellesøy)
  • Fixed support for xx-yy languages and Hebrew and Indonesian (JDK bugs). (Aslak Hellesøy)

Changed Features

  • Examples are now nested inside the Scenario Outline in the JSON format. (Gregory Hnatiuk)

The previous release had a missing gherkin.jar in the jruby gem. This release fixes that.

We're breaking the old listener API in this release, and added a new JSON formatter, which calls for a new major version.

New Features

  • New JSON formatter. (Aslak Hellesøy, Joseph Wilk)
  • New synonyms for Hungarian (Bence Golda)
  • Upgraded to use RSpec 2.0.0 (Aslak Hellesøy)

Bugfixes

  • undefined method `<=>' on JRuby (#52 Aslak Hellesøy)
  • Include link to explanation of LexingError (Mike Sassak)

Changed Features

  • The formatter API has completely changed. There is a Gherkin Listener API and a Formatter API. The FormatterListener acts as an adapter between them. (Aslak Hellesøy)
  • The listener API now has an additional argument for description (text following the first line of Feature:, Scenario: etc.) (Gregroy Hnatiuk, Matt Wynne)

New Features

  • Native gems for IronRuby. Bundles IKVM OpenJDK dlls as well as ikvmc-compiled gherkin.dll. Experimental! (Aslak Hellesøy)

Bugfixes

  • Use I18n.class' class loader instead of context class loader to load Java lexers. Hoping this fixes loading bug for good. (Aslak Hellesøy)

Bugfixes

  • Use context class loader instead of boot class loader to load Java lexers. (Aslak Hellesøy)
  • Only add gcc flags when the compiler is gcc. (#60 Aslak Hellesøy, Christian Höltje)

New Features

  • Table cells can now contain escaped bars - | and escaped backslashes - \. (#48. Gregory Hnatiuk, Aslak Hellesøy)
  • Luxemburgish (lu) added. (Christoph König)

New Features

  • Ignore the BOM that many retarded Windows editors insist on sticking in the beginning of a file. (Aslak Hellesøy)

Bugfixes

  • Allow fallback to a slower ruby lexer if the C lexer can't be loaded for some reason.
  • Can't run specs in gherkin 1.0.24 (#59 Aslak Hellesøy)

Bugfixes

  • hard tabs crazy indentation for pystrings in formatter (#55 Aslak Hellesøy)

Changed Features

  • Java API now uses camelCased method names instead of underscored (more Java-like) (Aslak Hellesøy)

Bugfixes

  • Make prebuilt binaries work on both Ruby 1.8.x and 1.9.x on Windows (#54 Luis Lavena, Aslak Hellesøy)

Bugfixes

  • Fix compile warning on ruby 1.9.2dev (2009-07-18 trunk 24186) (#53 Aslak Hellesøy)

Bugfixes

  • The gherkin CLI is working again (Gregory Hnatiuk)

New Features

  • Works with JRuby 1.5.0.RC1 (Aslak Hellesøy)

Changed Features

  • I18n.code_keywords now return And and But as well, making Cucumber StepDefs a little more flexible (Aslak Hellesøy)

Bugfixes

  • Explicitly use UTF-8 encoding when scanning source with Java lexer. (Aslak Hellesøy)

Bugfixes

  • Gherkin::I18n.keyword_regexp was broken (used for 3rd party code generation). (#51 Aslak Hellesøy)

(Something went wrong when releasing 1.0.15)

Bugfixes

  • Reduced risk of halfway botched releases. (Aslak Hellesøy)

New Features

  • Implemented more functionality in I18n.java. (Aslak Hellesøy)

Changed Features

  • Java methods are no longer throwing Exception (but RuntimeException). (Aslak Hellesøy)

(Something went wrong when releasing 1.0.13)

New Features

  • Filter on Background name. (Aslak Hellesøy)

Bugfixes

  • Fixed incorrect filtering of pystring in Background. (Mike Sassak)

Bugfixes

  • Fixed bad packaging (C files were not packaged in POSIX gem)

New Features

  • Added Esperanto and added a Russian synonym for Feature. (Antono Vasiljev)
  • Pure Java implementation of FilterListener and TagExpression (Mike Gaffney, Aslak Hellesøy)

Changed Features

  • TagExpression takes array args instead of varargs. (Aslak Hellesøy)

Bugfixes

  • Triple escaped quotes (""") in PyStrings are unescaped to """. (Aslak Hellesøy)

Bugfixes

  • Removed illegal comma from Ukrainian synonym. (Aslak Hellesøy)

Bugfixes

  • Fixed problems with packaging of 1.0.6 release. (Aslak Hellesøy)

New Features

  • Fully automated release process. (Aslak Hellesøy)

Changed Features

  • Made generated classes use a more uniform naming convention. (Aslak Hellesøy)

Removed Features

  • Removed C# port, obsoleted by IKVM build from 1.0.5. (Aslak Hellesøy)

New Features

  • New .NET build of gherkin - an ikvmc build of gherkin.jar to gherkin.dll. (Aslak Hellesøy)

Bugfixes

  • Made parsers reusable so that the same instance can parse several features. (Aslak Hellesøy)

New features

  • Pure java releases of Gherkin at http://cukes.info/maven
  • A FilterListener in Ruby that is the last missing piece to plug Gherkin into Cucumber. (Gregory Hnatiuk, Aslak Hellesøy, Matt Wynne, Mike Sassak)

Changed features

  • The Lexer now emits the '@' for tags. (Aslak Hellesøy)

Bugfixes

  • The C lexer correctly instantiates a new array for each table, instead of reusing the old one. (Aslak Hellesøy)
  • Emit keywords with space instead of stripping (< keywords are emmitted without space) (Aslak Hellesøy)
  • gherkin reformat now prints comments, and does it with proper indentation (Aslak Hellesøy)
  • .NET resource files are now automatically copied into the .dll (#46 Aslak Hellesøy)

New features

  • The Pure Java implementation now has a simple main method that pretty prints a feature. (#39 Aslak Hellesøy)
  • Writing code generated i18n syntax highlighters for Gherkin is a lot easier thanks to several convenience methods in Gherkin::I18n. (Aslak Hellesøy)
  • .NET (C#) port (#36, #37 Attila Sztupak)
  • Tables parsed and sent by row rather than by table. (Mike Sassak)

Changed features

  • Switced to ISO 639-1 (language) and ISO 3166 alpha-2 (region - if applicable). Applies to Catalan, Swedish, Welsh, Romanian and Serbian. (Aslak Hellesøy)

Bugfixes

  • Build passes on Ruby 1.9.2 (Aslak Hellesøy)

New features

  • New command line based on trollop. Commands: reformat, stats. (Aslak Hellesøy)
  • I18nLexer#scan sets #language to the I18n for the language scanned (Mike Sassak)
  • I18n#adverbs, brings I18n to parity with Cucumber::Parser::NaturalLanguage (Mike Sassak)