-
Notifications
You must be signed in to change notification settings - Fork 6
Specify utensils as a development dependency
#117
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
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.rband instead use thehave_hashmatcher defined in theutensilsgem.Why
As of this change,
utensilsincludes ahave_hashmatcher which has a fix whenhave_hashis used in some js specs (see cookpad/utensils#1 for an explanation).Currently, we could end up using the wrong version of
have_hashinglobal-webif we requirestreamy/helpers/rspec_helperafter requiringutensils/have_hash_matcher. This PR removes the divergent matcher - there's now only a single, correcthave_hashmatcher used in all contexts, so no risk of ending up with the wrong one 😅.How
I've added
utensilsas a development dependency in the.gemspec. It's not possible to specify thegithubrepo 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/utensilsversion 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
streamygem inglobal-web.