Open mkasberg opened 4 years ago
Let me know what you think about this - happy to consider other options if you're not a fan of this solution!
This will take me some time to digest - I don't know yet how much I am/am not a fan of this. Will have to read a bit on both Rubygems and Bundler.
As for development setup for testing the executable, I haven't tested it much recently, but when I do, I bundle exec ruby -Ilib bin/calendariumrom
.
I'm trying to set up a development environment for calendarium-romanum and manage my gem dependencies with Bundler. So, I'd like to be able to do something like
bundle install --path vendor/bundle
followed bybundle exec calendariumrom
. Currently, this doesn't work because even after runningbundle install
, it does not know about thecalendarium-romanum
gem itself.In looking for the solution to this, I found this page in the Bundler docs. It notes that the
Gemfile
:Additionally,
So, I've added a
gemspec
line toGemfile
. Then, I moved dependencies tocalendarium-romanum.gemspec
.Before:
After:
Supporting this workflow should make it easier for other developers to run the gem after building it themselves, which should make it easier to test, develop, and contribute.