All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Nothing yet...
3.23.0 - 2024-10-31
- Support added for more versions of the
cucumber-gherkin
gem- 30.x
3.22.0 - 2024-10-01
- Support added for more versions of the
cucumber-gherkin
gem- 29.x
3.21.0 - 2024-03-11
- Support added for more versions of the
cucumber-gherkin
gem- 28.x
3.20.1 - 2023-10-16
-
Finally made various parts of the codebase private in the Ruby sense of the word instead of only being marked as private by comments. Not a breaking change because the stuff was already declared to be not part of the public API.
-
Improved code documentation by making more use of YARD tags.
3.20.0 - 2023-9-21
- Support added for more versions of the
cucumber-gherkin
gem- 27.x
#inspect
for models now returns a reasonably small set of details for the model instead of the potentially huge screen dump of information. Not considered a breaking change because the API never specified the behavior of#inspect
(it was just using the default Ruby implementation). Default Ruby inspection can still be triggered, if desired (see documentation).
3.19.0 - 2023-1-22
- Support added for more versions of the
cucumber-gherkin
gem- 26.x
3.18.0 - 2022-11-16
- Support added for more versions of the
cucumber-gherkin
gem- 25.x
3.17.0 - 2022-06-14
- Support added for more versions of the
cucumber-gherkin
gem- 24.x
3.16.0 - 2022-05-30
- Support added for more versions of the
cucumber-gherkin
gem- 23.x
3.15.0 - 2021-11-27
- The language of a feature (e.g. 'en', 'hi', 'zh-CN', etc.) is now a modeled attribute on
Feature
models.
3.14.0 - 2021-11-22
- All models for Gherkin elements now track the column number from which they originate in a source file.
3.13.0 - 2021-09-25
- Support added for more versions of the
cucumber-gherkin
gem- 22.x
3.12.0 - 2021-09-09
- Support added for more versions of the
cucumber-gherkin
gem- 21.x
3.11.0 - 2021-07-31
- Support added for more versions of the
cucumber-gherkin
gem- 20.x
Rule
models are now returnable fromModel#get_ancestor()
. Updating that method was missed whenRule
models were first added.
3.10.0 - 2021-05-28
- Support added for more versions of the
cucumber-gherkin
gem- 19.x
Rule
models now clear out parsing data for their tags. This data was an unintentional duplication of the parsing data that theTag
models already contained.
3.9.0 - 2021-04-23
Rule
models are now taggable elements
3.8.0 - 2021-04-18
- Support added for more versions of the
cucumber-gherkin
gem- 18.x
3.7.0 - 2021-02-18
- Support added for more versions of the
cucumber-gherkin
gem- 17.x
3.6.0 - 2021-01-05
- Ruby 3.x is now supported
- All models are now
Enumerable
. However, some methods such asEnumerable#max
andEnumerable#sort
do not work because models do not meaningfully compare to each other.
Model#each_descendant
andModel#each_model
will be removed on the next major release.Model#each
and methods in theEnumerable
module now provide this kind of functionality.
Row#children
now returns the row'sCell
models instead of returning an empty array
3.5.0 - 2020-12-19
- Support added for more versions of the
cucumber-gherkin
gem- 16.x
3.4.0 - 2020-09-02
Feature#has_background?
andRule#has_background?
now both have a more conventional name via the alias#background?
3.3.0 - 2020-08-15
- Support added for more versions of the
cucumber-gherkin
gem- 15.x
3.2.0 - 2020-07-27
- The
Rule
keyword is now a modeled element.
Feature#test_case_count
will be removed on the next major release. It's a random analysis method in what is otherwise a purely abstraction layer library. The CQL gem is better suited to such tasks.
3.1.0 - 2020-06-28
- Support added for more versions of the
cucumber-gherkin
gem- 14.x
- Text is converted to UTF-8 encoding before being passed to the underlying Gherkin gem. This is due to UTF-8 being
the only encoding supported by Gherkin. The
gherkin
gem did the conversion automatically and so this conversion was not necessary previously but thecucumber-gherkin
gem does not do any automatic conversion.
3.0.0 - 2020-06-08
- This gem now wraps the
cucumber-gherkin
gem instead of thegherkin
gem, now thatcucumber-gherkin
has supersededgherkin
. - Support for versions of Ruby earlier than 2.3 has been dropped due to that being the minimum required version of Ruby required by the
cucumber-gherkin
gem. - When using the parsing functionality provided by this gem, the standardized AST returned when parsing Gherkin text is now returned directly as a Hash instead of also being wrapped in an array. The array was an artifact of basing the AST on the earliest versions of
gherkin
that were supported. - No longer including every file in the Git repository as part of the gem. Only the files needed for using the gem (and the informative ones like the README) will be packaged into the released gem.
- Support added for more versions of the
cucumber-gherkin
gem- 13.x
- 12.x
- 11.x
- 10.x
- 9.x
2.1.0 - 2020-05-27
- Support added for more versions of the
gherkin
gem- 9.x
- 8.x
- 7.x
- Parsing errors are now correctly bubbled up when using Gherkin 6.x
2.0.0 - 2020-02-11
- Step models now include doc strings and tables when determining their equality with other steps. Previously, only the base text of the step was included and the doc string/table was explicitly ignored.
1.5.1 - 2019-04-14
- Add dependency version limits to Ruby which was previously unbound
- Add dependency version limits to
bundler
, which was previously unbound - Added inline documentation to some methods that did not have any
1.5.0 - 2019-01-13
- Added methods to easily run elements of an arbitrarily rooted model tree through a given block of code.
1.4.0 - 2018-11-14
- Now compatible with Gherkin 6.x.
1.3.0 - 2017-10-19
- Now compatible with Gherkin 5.x.
1.2.1 - 2017-04-25
- Now officially compatible with Rake 12.x.
1.2.0 - 2016-11-23
- The comments in a feature file are now a modeled element.
1.1.1 - 2016-10-28
- Abstract instantiation of models when using a non-default dialect now works correctly.
1.1.0 - 2016-10-28
-
Support added for non-English dialects. This gem should now be able to model feature files using any dialect supported by the 'gherkin' gem.
-
Models for elements of Gherkin that have keywords (e.g. 'Feature', 'Scenario', 'Examples') now keep track of the keyword used by the element that they model.
- Fixed a bug that was causing example models to output extra newline characters under certain circumstances.
1.0.4 - 2016-10-07
- Fixed a bug that caused some models to include nil objects in their children collection if they did not have the relevant child object.
1.0.3 - 2016-09-12
- Fixed a gem dependency that was accidentally declared with '<=' instead of '<'.
1.0.2 - 2016-09-12
-
A more detailed gem description and summary have been added to the gemspec.
-
The gem now declares version limits on its dependencies.
-
Badges for the current status of the project have been added to the Readme.
1.0.1 - 2016-09-10
- In the Readme file, added a link to the published documentation.
1.0.0 - 2016-09-08
-
Background models can now be compared to other models that have steps (i.e. scenarios and outlines).
-
Added specific ancestor types for scenario, outline, and background models as alternatives to the generic 'test' ancestor type.
-
A base model class has been added in order to simplify adding new element models. Other classes and modules used for organizing common model behavior have been created/removed/renamed.
-
All modeled elements of a Cucumber test suite are now modeled with actual classes. Previously, some elements (such as tags or rows in an example table) were modeled with simple strings.
-
Feature file models now only have a single feature model instead of a collection of them (that would only ever have one item in it).
-
Rows in an example table and rows in a step table no longer use two different classes for modeling.
-
All models for Gherkin elements now track the line number from which they originate in a source file.
-
The source line of a model is now a mutable attribute instead of being read only.
-
The file path of a feature file is now a mutable attribute instead of being read only.
-
Standardized the initial values of the attributes of abstractly created models so that they are consistent across model types.
-
Extra whitespace around parsed element descriptions is now trimmed away before being stored in a model.
-
Adding rows to examples via hashes can now be done without regard to the order of the keys in the hash. The correct order can be determined by the model.
-
The saved parsing data that is generated by the 'gherkin' gem is no longer duplicated for each model, resulting in significantly less memory usage.
-
Various methods have been renamed.
-
Removed the backdoor used to pass around model data during the model creation process. Model input can now only be text.
-
Simple counting methods have been removed. Ruby's collection methods are just as easy to use directly when dealing with classes that contain collections and the removal of these counting methods simplifies the codebase.
-
The 'World' module has been removed. The scope of this gem is to model files written in Gherkin. Concepts like 'step definitions' and 'hooks' are better left to libraries that include (possibly programming language specific) test execution logic within their scope of concern.
-
Step models no longer have 'arguments' because they require the concept of step definitions, which are no longer within the scope of this gem.
-
Removed deprecated behavior
- Marked
- Doc strings no longer use an array of strings to model their content
- Tables no longer use nested arrays of strings to model their rows
- Models that have descriptions no longer use an array of strings to model their description
- The convenient (read: awkward) #step_text has been removed.
- Unmarked
- Examples no longer use an array of hashes to model their rows
- Marked
- String output of models has been improved. More special characters in Gherkin (e.g. vertical bars in rows) are appropriately escaped in the string output of a model and several minor bugs related to using model string output as the input text for new models have been fixed.
0.4.1 - 2016-05-12
-
Increased the flexibility of input when adding rows to an Example object. Non- string values can now be used as input and they will be converted into strings. Original input objects are not modified.
-
Added some error checking around adding value rows to an Example object without adding a parameter row as well.
0.4.0 - 2016-05-01
- The path of a Directory object is now a changeable attribute instead of only being populated if the instance was given a diretory to model.
- Fixed a bug that occurred if a Directory object was asked for its
#name
when it was created as 'abstract' instead of modeling an existing directory.
0.3.0 - 2016-04-24
- Support for version 4.x of the 'gherkin' gem added.
- Fixed a bug that was preventing Example objects from being created from text if that text had less Gherkin structure than normal.
0.2.0 - 2016-02-21
- Better error feedback when parsing errors are encountered. It is now easier to tell which file contained invalid Gherkin.
0.1.0 - 2016-02-10
- Support for version 3.x of the 'gherkin' gem added.
- The saved parsing data that is generated by the 'gherkin' gem is no longer modified by the rest of the model creation process.
0.0.2 - 2015-11-22
- Fixed a bug that was causing object comparison using
#==
to not work when comparing some models to other types of objects.
0.0.1 - 2014-06-02
- Initial release