I made a few updates in order to make the cyclonedx-ruby gem compatible with versions of Ruby < 2.3.0:
I removed ostruct as 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 nokogiri to do the XML document generation and moved to the rexml library which AFAIK does not have any specific Ruby version dependencies
Added an explicit dependency on bundler with 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)
I made a few updates in order to make the
cyclonedx-ruby
gem compatible with versions of Ruby < 2.3.0:ostruct
as 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)nokogiri
to do the XML document generation and moved to therexml
library which AFAIK does not have any specific Ruby version dependenciesbundler
with a version that supports Ruby >= 1.8.7I also added some retry logic to the
get_gem
method inlib/bom_helpers.rb
which makes remote HTTP API calls tohttps://rubygems.org
and often suffers from intermittent issues (e.g. HTTP 502 Bad Gateway)