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

Upgrade rspec and fix warnings #15

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

ivoanjo
Copy link

@ivoanjo ivoanjo commented Dec 24, 2016

This PR:

  • Upgrades to the latest rspec version
  • Upgrades the test syntax to match the rspec 3 syntax with no deprecation warnings
  • Enables a number of optional recommended rspec features
  • Enables warnings during spec execution
  • Solves all warnings in the gem code
  • Refreshes the dependencies on the Gemfile.lock
  • Adds ruby 2.2, 2.3 and JRuby 9k to the travis configuration file
  • (some other tiny extras)

All specs still green, and I tested on both mri and jruby! Happy holidays!

This needed some minor changes due to be_true not working in the same
way. Otherwise, all specs still green, although with a number of
deprecation warnings which I'll tackle next.
Specs updated automatically using transpec. All specs still green.
The new custom matcher protocol uses `#failure_message` rather than
`#failure_message_for_should`.
According to the yard documentation, "Note that the @see tag
automatically links its data. You should not use the link syntax in this
tag".
These add a number of cool features that are turned off by default for
compatibility reasons. For more info, see
http://ivoanjo.me/blog/2016/09/25/why-you-should-regenerate-your-spec-helper/
Instead, just prefix top-level rspec methods with RSpec.
rfc6570.rb requires regex_builder.rb which requires rfc6570.rb . To
break the cycle, this commit adds a test that only requires rfc6570 if
URITemplate::RFC6570 isn't already defined.
rfc6570.rb requires expression.rb which requires rfc6570.rb . To break
the cycle, this commit adds a test that only requires rfc6570 if
URITemplate::RFC6570 isn't already defined.
Both of these files are indirect dependencies of rfc5670.rb (and are
indirectly required by it), so this commit adds a test that these files
should only require rfc5670.rb if URITemplate::RFC6570 isn't already
defined.
This seems to have been carried over during a refactoring and was
actually never used by the current method.
Successfully tested on both jruby 9.1.5.0 and mri 2.3.3 .
Ruby 1.9 has been deprecated for more than two years now, so let's drop
it from travis, rather than fighting dependencies to support it.
@ivoanjo
Copy link
Author

ivoanjo commented Dec 24, 2016

As travis was failing to install the latest versions of some of the test dependencies for 1.9 rubies, I took the liberty of dropping them from the test matrix. Give me a shout if you'd prefer to still support it.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 98.8% when pulling 7d41c8f on ivoanjo:upgrade-tests-fix-warnings into e03db59 on hannesg:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 98.8% when pulling 40b2565 on ivoanjo:upgrade-tests-fix-warnings into e03db59 on hannesg:master.

@ivoanjo
Copy link
Author

ivoanjo commented Feb 17, 2017

Any news? :)

Copy link

@BigJ831 BigJ831 left a comment

Choose a reason for hiding this comment

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

Hahaha took more then three niggas to hack me? Y'all some sorry ass people 😂😂😂

@miguel-botelho
Copy link

Hey @hannesg ! 👋
I've just noticed this long standing PR after opening mine (#24), can I get a review on any of them? 🙏 It would be greatly appreciated, happy hacktoberfest 🎉

@ghost ghost deleted a comment Oct 21, 2022
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.

5 participants