-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build on JRuby again #1383
Merged
Merged
Build on JRuby again #1383
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
48dc0c7
Revert "Do not build JRuby on CI as it is not supported anymore"
vincent-psarga 7d4d7bf
Do not add RbConfig keys that are not available
vincent-psarga 4d3e882
Disable one failing scenario on JRuby
vincent-psarga e0066cf
Merge branch 'master' into enable-jruby-ci-again
vincent-psarga cc248d7
Disable Russian example with JRuby
vincent-psarga 4285973
Also disable UK examples for JRuby
vincent-psarga af11161
Fix offenses
vincent-psarga 18d2bfe
Also disable UZ for JRuby i18n examples
vincent-psarga 73ae38e
Add descriptions for JRuby limitations
vincent-psarga 835d765
Update docs/jruby-limitations.md
vincent-psarga a216105
Update docs/jruby-limitations.md
vincent-psarga a59ea7f
Build JRUby 9.1 and 9.2
vincent-psarga 86b5d47
Fix CircleCI config
vincent-psarga 4c83414
Disable building on JRUby 9.1 as it fails with more languages
vincent-psarga File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Cucumber and JRuby limitations | ||
|
||
`cucumber` can be executed on `JRuby` (tested with `9.2`), although some of the features | ||
are not available on this platform. | ||
|
||
## Defining steps with native languages | ||
|
||
There are currently three languages (Russian, Ukrainian and Uzbek) for which the step definition | ||
can not be written in native language. | ||
That means, for example, that you can not write the following code: | ||
|
||
```ruby | ||
Допустим('я ввожу число {int}') do |число| | ||
calc.push число | ||
end | ||
``` | ||
|
||
Instead, you have to write: | ||
```ruby | ||
Given('я ввожу число {int}') do |number| | ||
calc.push number | ||
end | ||
``` | ||
|
||
Of course, you can still write your feature files in a native language, for example, the following | ||
feature file can be executed on JRuby: | ||
|
||
```gherkin | ||
# language: ru | ||
Функционал: Сложение чисел | ||
Чтобы не складывать в уме | ||
Все, у кого с этим туго | ||
Хотят автоматическое сложение целых чисел | ||
|
||
Сценарий: Сложение двух целых чисел | ||
Допустим я ввожу число 50 | ||
И затем ввожу число 70 | ||
Если я нажимаю "+" | ||
То результатом должно быть число 120 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rubocop will flag this. Linespace after guard clause.