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

Fix deprecation warnings #15

Merged

Conversation

philandstuff
Copy link
Contributor

dry-types 0.12.0 deprecated Types::Array#member and introduced a
replacement Types::Array#of in the same release
. Sigh.

This means that for dry-types <0.12, you must use Types::Array#member
because #of doesn't exist, but for dry-types >=0.12, you must use
Types::Array#of because #member emits a noisy deprecation warning.

This commit is a quick fix: it changes the gemspec to require >= 0.12,
and uses #of.

dry-types 0.12.0 deprecated Types::Array#member and introduced a
replacement Types::Array#of in the same release [1].  Sigh.

This means that for dry-types <0.12, you must use Types::Array#member
because #of doesn't exist, but for dry-types >=0.12, you must use
Types::Array#of because #member emits a noisy deprecation warning.

This commit is a quick fix: it changes the gemspec to require >= 0.12,
and uses #of.

[1]: https://github.com/dry-rb/dry-types/blob/master/CHANGELOG.md#v0120-2017-09-15
@philandstuff
Copy link
Contributor Author

BTW I haven't actually tested this - I couldn't see any development or hacking docs to indicate how to run the tests

@philandstuff
Copy link
Contributor Author

I don't see anything in my PR that caused the build to fail 😕 the rubocop issues were there already

@philandstuff
Copy link
Contributor Author

I've also just discovered that these deprecation warnings break aws-assume-role environment because they go to $stdout

@randomvariable
Copy link
Contributor

Remove the Ruby 2.1 test from .travis.yml and it should pass

@philandstuff
Copy link
Contributor Author

@randomvariable if we remove it from .travis.yml should .ruby-version be updated as well?

@randomvariable
Copy link
Contributor

Yup, and the README.md.

We'll bump to 1.0.0 after this I think.

@philandstuff
Copy link
Contributor Author

rubocop fails massively for me locally, i feel like i'm missing some definitions somewhere. pushed an update as discussed anyway.

@randomvariable randomvariable merged commit e290783 into scalefactory:master Oct 5, 2017
@philandstuff philandstuff deleted the kill-deprecation-warnings branch June 15, 2018 08:47
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

2 participants