Skip to content
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

Update deprecated method - Scenario.embed() to Scenario.attach() "Fixes #486" #550

Merged
merged 3 commits into from
Jan 5, 2021

Conversation

josepj
Copy link
Contributor

@josepj josepj commented Nov 25, 2020

5.7.0 (2020-05-01)
Added
[Java] Scenario.log(String) & Scenario.attach(byte[], String, String) (#1893 Tim te Beek)
Deprecated
[Java] Scenario.write(String) & Scenario.embed(byte[], String, String) (#1893 Tim te Beek)

[5.7.0](https://github.com/cucumber/cucumber-jvm/blob/main/CHANGELOG.md#570-2020-05-01) (2020-05-01)
Added
[Java] Scenario.log(String) & Scenario.attach(byte[], String, String) (#1893 Tim te Beek)
Deprecated
[Java] Scenario.write(String) & Scenario.embed(byte[], String, String) (#1893 Tim te Beek)
Copy link
Contributor

@luke-hill luke-hill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you scan the doc for all instances of this in all languages. As it makes sense to fix them all up now (They're all updated).

@josepj
Copy link
Contributor Author

josepj commented Nov 29, 2020

@luke-hill, thanks for looking into this. I looked through the docs and could find only one other instance of embed, for Ruby. I have updated the code, but I am not familiar with Ruby. So please review the change.

4.0.0.rc.4
Added
Methods log and attach can be used in step definitions to attach text or images
Deprecated
embed in step definitions in favor of attach (cucumber#897)

Copy link
Member

@mlvandijk mlvandijk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but I have not scanned the project for other instances.

@mlvandijk
Copy link
Member

Does this fix #486? If so, please make sure that gets closed on merge (iirc you can do so automatically by adding "Fixes #486" to the name of the PR)

@josepj josepj changed the title Update deprecated method - Scenario.embed() to Scenario.attach() Update deprecated method - Scenario.embed() to Scenario.attach() "Fixes #486" Dec 8, 2020
@luke-hill luke-hill merged commit 5f8a7f3 into cucumber:master Jan 5, 2021
@aslakhellesoy
Copy link
Contributor

Hi @josepj,

Thanks for your making your first contribution to Cucumber, and welcome to the Cucumber committers team! You can now push directly to this repo and all other repos under the cucumber organization! 🍾

In return for this generous offer we hope you will:

  • ✅ Continue to use branches and pull requests. When someone on the core team approves a pull request (yours or someone else's), you're welcome to merge it yourself.
  • 💚 Commit to setting a good example by following and upholding our code of conduct in your interactions with other collaborators and users.
  • 💬 Join the community Slack channel to meet the rest of the team and make yourself at home.
  • ℹ️ Don't feel obliged to help, just do what you can if you have the time and the energy.
  • 🙋 Ask if you need anything. We're looking for feedback about how to make the project more welcoming, so please tell us!

On behalf of the Cucumber core team,
Aslak Hellesøy
Creator of Cucumber

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants