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

warning messages added #525

Merged
merged 2 commits into from
Sep 3, 2013
Merged

warning messages added #525

merged 2 commits into from
Sep 3, 2013

Conversation

adbatista
Copy link
Contributor

I added the warning messages

@tooky
Copy link
Member

tooky commented Aug 20, 2013

@adbatista thanks - that's great.

Don't worry about the failing feature - I think there's a brittle test that fails when new languages are added by gherkin.

Do you think it would be useful if the warning mentioned the non-mutating versions of those methods?

I'm also not sure what we'll be doing about #diff! - we'll need to provide a way to compare tables. We might be able to decorate the core AST::DataTable with a similar behaviour. @mattwynne @os97673 WDYT?

@adbatista
Copy link
Contributor Author

@tooky
#map_column needs to be created or was moved to another class?
I will remove the warning from #diff! until decide what to do with it

@os97673
Copy link
Member

os97673 commented Aug 21, 2013

Do you think it would be useful if the warning mentioned the non-mutating versions of those methods?

I think it would be nice to provide non-deprecated method name (if it exists) but this means you promise to keep those methods in 2.0. Do you already have list of those methods? If not let's keep just simple warnings and will update them as soon as you will have replacements in place.

Thus I'd suggest to apply the PR as is (and release the changes) but keep in mind that we will need to provide replacements in future. @mattwynne @tooky WDYT? If you agree I'm ready to merge/release the changes.

@tooky
Copy link
Member

tooky commented Aug 21, 2013

@os97673 yes that makes sense.

@os97673
Copy link
Member

os97673 commented Aug 23, 2013

@adbatista I've looked at the code and it looks like #map_headers will print the warning too because it uses #map_headers! internally :(
Am I right or I've missed something?

@adbatista
Copy link
Contributor Author

You're right @os97673
I saw the code, but I had not realized this problem
It will be necessary refactor #map_headers

@adbatista
Copy link
Contributor Author

I think if I refactor #map_headers in this branch or create other one

@os97673
Copy link
Member

os97673 commented Aug 26, 2013

I think if I refactor #map_headers in this branch or create other one

it is better to do this as part of the PR.
I'd introduce a new method with ugly name (something like temporary_substitution_for_map_headers!) which will contain all necessary code and both map_headers and map_headers! will call it.

@tooky
Copy link
Member

tooky commented Aug 27, 2013

@os97673 @adbatista you should just be able to create a new instance of the AST::Table in #map_headers passing the new mappings and conversion proc to the constructor, rather than calling dup then modifying the new instance.

@adbatista
Copy link
Contributor Author

@tooky, @os97673
I did creating a new instance, you can see here #528

@ghost ghost assigned os97673 Sep 3, 2013
os97673 added a commit that referenced this pull request Sep 3, 2013
@os97673 os97673 merged commit 1e13ab2 into cucumber:v1.3.x-bugfix Sep 3, 2013
@adbatista adbatista deleted the deprecation_warnings_AST_TABLE branch September 6, 2013 18:52
@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants