[DRE-maint] Bug#986254: gem2deb creates gemspec file as a binary file for ruby-magic-static? gem

Nilesh Patra nilesh at debian.org
Wed Apr 7 12:25:29 BST 2021


On Wed, Apr 07, 2021 at 04:42:21PM +0530, Nilesh Patra wrote:
> I did a bit of debugging on this, and it looks like for this case, the
> culprit is yaml instead.

> * Now, I have the metadata.yml - I just wrote a snippet of code to check the
>  behaviour of gemspec w.r.t metadata file
>  Here it is:
> 
> ```
> require 'yaml'
> gemspec = YAML.load_file('metadata.yml')
> File.open('out', 'w') do |f|
> 	f.puts(gemspec.to_ruby)
> end
> ```

For the context: I've used this snippet because similar code has been
used in gem2deb codebase to generate gemspec (hope it makes sense and is coherent)

Nilesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20210407/5536e1a1/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list