Skip to content

Windows gem dependency isn't properly set #31

@tas50

Description

@tas50

This gem requires win32-security on Windows hosts, but that's not properly defined in the gemspec. Since the gemspec is parsed by rubygems and uploaded the logic to include that windows depedencies on windows is only included when the gem is uploaded from a windows host. Instead you want to define a universal-mingw32 gemspec that adds additional dependencies on Windows. Then you push both platforms of gems via the two gemspec and windows hosts automatically pull the correct platform with the additional dependency. An example of doing this is the chef gem which includes two gemspecs:

https://github.com/chef/chef/blob/master/chef.gemspec
https://github.com/chef/chef/blob/master/chef-universal-mingw32.gemspec

and produces different gem platforms on rubygems:

https://rubygems.org/gems/chef

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions