nix-community / bundix

Generates a Nix expression for your Bundler-managed application. [maintainer=@manveru]
160 stars 54 forks source link

Properly set groups based on dependencies #85

Open thatsmydoing opened 3 years ago

thatsmydoing commented 3 years ago

Bundix incorrectly adds the default group to gems in the lock file but not in the gem file.

A Gemfile like

source 'https://rubygems.org'

gem 'rspec', group: :test

will result in rspec having the group test, but its dependencies (rspec-mocks, etc) will have both default and test.

Incidentally, this PR also fixes https://github.com/nix-community/bundix/issues/39