Project

General

Profile

Actions

Bug #13427

closed

gemspec might be treat as binary - probably bug?

Added by Hanmac (Hans Mackowiak) about 7 years ago. Updated over 5 years ago.

Status:
Closed
Target version:
-
[ruby-core:<unknown>]

Description

while getting latest ruby sources i noticed that json.gemspec is treated as binary by git.

and while looking why that is, i noticed that the gemspec for some reason "\0" is inside the file,
which causes text programms to think its a binary file instead of a text file.

to checkout why that happens, it seems that rubygems itself did add the "\0" into the file which seems to be wrong.
there is a open ticket in the repo of rubygems opend in "14 Apr 2014" but it is unanswerd since months.

also i see that rubygems also did many ".freeze" into the files while "# frozen_string_literal: true" should probably used.
that might not be done jet because ruby 2.2 is still in "security maintenance phase"?

links:

https://github.com/rubygems/rubygems/issues/883
https://github.com/flori/json/issues/310 (unanswerd)

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0