-
Notifications
You must be signed in to change notification settings - Fork 6
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
Specify utensils
as a development dependency
#117
base: main
Are you sure you want to change the base?
Conversation
Use the have_hash matcher from utensils Use `cookpad/utensils` (where have_hash is introduced) when running the gem
LGTM @ollieh-m Any thoughts on publishing a forked version of the gem to Rubygems? (e.g. |
@ollieh-m @Bodacious Hello from the ghost of Christmas past! 👻 I suppose it's not a big deal either way, but just wanted to say that I'm happy to hand over the 🔑 to As you can tell from my shoddy attempt at coming up with a cooking-related name 😅 , the gem was always intended for Cookpad usage and parity across Cookpad projects. I think it probably ended up at So yeh, let me know what you prefer and we can set up something! 🙏 |
Hi @balvig! It's nice to bump into you here 👋 If you're happy to, I think it would be a good idea if we were able to have at least joint ownership of the gem, so that we didn't have to maintain our own separate fork. 🙇♂️ FWIW, I think the name is grand! |
👍 let me know who to add as an owner (rubygems email/handle) and I'll set it up :) |
🤦♂️ Well this fell off my radar.
Could you add [email protected]? And to clarify, will we be able to make the current fork (at 🙇♂️ |
As long as you have write access on Rubygems, you should be able to publish new versions from the fork without having to cut a new gem 🤓 |
@ollieh-m you should be added now! |
What
Remove
helpers/have_hash_matcher.rb
and instead use thehave_hash
matcher defined in theutensils
gem.Why
As of this change,
utensils
includes ahave_hash
matcher which has a fix whenhave_hash
is used in some js specs (see cookpad/utensils#1 for an explanation).Currently, we could end up using the wrong version of
have_hash
inglobal-web
if we requirestreamy/helpers/rspec_helper
after requiringutensils/have_hash_matcher
. This PR removes the divergent matcher - there's now only a single, correcthave_hash
matcher used in all contexts, so no risk of ending up with the wrong one 😅.How
I've added
utensils
as a development dependency in the.gemspec
. It's not possible to specify thegithub
repo for the dependency in the.gemspec
, so I've also added the gem to the regular gemfile - this means when running the gem locally, thecookpad/utensils
version of the gem is used, which is the version that hashave_hash
.I've googled around but can't see any way to specify a particular source for a gem as part of the gem's dependencies. Please let me know if you can see a way I'm missing 😄.
Anything else
The final step will be to update the
streamy
gem inglobal-web
.