Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 726772 - dev-ruby/coderay-1.1.3 - require 'coderay' fails - LoadError (cannot load such file -- coderay)
Summary: dev-ruby/coderay-1.1.3 - require 'coderay' fails - LoadError (cannot load suc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-02 13:45 UTC by Stefano Crocco
Modified: 2020-06-06 09:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano Crocco 2020-06-02 13:45:03 UTC
After installing coderay-1.1.3, executing the command 

require 'coderay'

from ruby fails with a LoadError exception (it worked correctly with coderay-1.1.2). From irb:

irb(main):001:0> require 'coderay'
Traceback (most recent call last):
        6: from /usr/bin/irb:23:in `<main>'
        5: from /usr/bin/irb:23:in `load'
        4: from /usr/lib64/ruby/gems/2.6.0/gems/irb-1.0.0/exe/irb:11:in `<top (required)>'
        3: from (irb):1
        2: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require'
        1: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require'
LoadError (cannot load such file -- coderay)

I think that the issue comes from the following line in the installed coderay.gemspec file (line 6): 

s.version = "1.1.3.rc1"

Removing the .rc1 at the end of the string version seems to fix the issue, but I don't know why.
Comment 1 Larry the Git Cow gentoo-dev 2020-06-06 09:02:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d380274c89a8d3f09c291909368a08472dd70ea4

commit d380274c89a8d3f09c291909368a08472dd70ea4
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2020-06-06 09:02:13 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2020-06-06 09:02:27 +0000

    dev-ruby/coderay: fix gemspec version
    
    Closes: https://bugs.gentoo.org/726772
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/coderay/{coderay-1.1.3.ebuild => coderay-1.1.3-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)