On Wed, Apr 07, 2021 at 02:20:34PM -0300, Antonio Terceiro wrote: > On Wed, Apr 07, 2021 at 04:49:38PM +0530, Nilesh Patra wrote: > > And I tried changing the second "-lib" entry to ruby-lib (it does not > > mean anything, this is a random example) > > > > and I get the same offending term: ruby lib^@ruby-lib > > attaching the output, for ref > > > > So it looks like more than one entry in "require_paths" outputs a > > "binary" gemspec which is troublesome. > > > > Nilesh > > This sounds like a bug in rubygems itself.
On the other hand, this seems to be done on purpose.
def to_ruby
require_relative 'openssl'
mark_version
result = []
result << "# -*- encoding: utf-8 -*-"
result << "#{Gem::StubSpecification::PREFIX}#{name} #{version} #{platform}
#{raw_require_paths.join("\0")}"
result << "#{Gem::StubSpecification::PREFIX}#{extensions.join "\0"}" unless
extensions.empty?
However, trying to load such gemspec should work fine:
$ ruby -e 'puts Gem::Specification.new { |s| s.version = "1"; s.require_paths =
["foo", "bar"] }.to_ruby' > /tmp/g
$ file /tmp/g
/tmp/g: data
$ ruby -e 'puts Gem::Specification.load("/tmp/g")'
#<Gem::Specification name= version=1>
Praveen, can you share the exact error that you got originally?
signature.asc
Description: PGP signature
_______________________________________________ Pkg-ruby-extras-maintainers mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers
