cyclonedx-ruby-gem
cyclonedx-ruby-gem copied to clipboard
Updates in order to be compatible with versions of Ruby < 2.3.0
I made a few updates in order to make the cyclonedx-ruby gem compatible with versions of Ruby < 2.3.0:
- I removed
ostructas an explicit dependency in the gemspec as it is part of the Ruby stdlib. If you use the version that gets pulled down from RubyGems.org there is a currently a bug in it which breaks backwards compatibility for versions of Ruby < 2.3.0 (I reported the bug here) - I removed the usage of
nokogirito do the XML document generation and moved to therexmllibrary which AFAIK does not have any specific Ruby version dependencies - Added an explicit dependency on
bundlerwith a version that supports Ruby >= 1.8.7
I also added some retry logic to the get_gem method in lib/bom_helpers.rb which makes remote HTTP API calls to https://rubygems.org and often suffers from intermittent issues (e.g. HTTP 502 Bad Gateway)