+
Skip to content

undefined method 'split' for nil:NilClass #57

@ClockVapor

Description

@ClockVapor

Every time I try bundle exec rake build windows:wrapped on Linux with Releasy 0.2.2 and Ruby 1.9.3, I always get this error (even on a barebones project with only one Ruby file):

undefined method `split' for nil:NilClass
/home/nick/.rvm/gems/ruby-1.9.3-p551/gems/releasy-0.2.2/lib/releasy/builders/windows_wrapped.rb:142:in `block in install_binary_gems'
/home/nick/.rvm/gems/ruby-1.9.3-p551/gems/releasy-0.2.2/lib/releasy/builders/windows_wrapped.rb:136:in `each'
/home/nick/.rvm/gems/ruby-1.9.3-p551/gems/releasy-0.2.2/lib/releasy/builders/windows_wrapped.rb:136:in `install_binary_gems'
/home/nick/.rvm/gems/ruby-1.9.3-p551/gems/releasy-0.2.2/lib/releasy/builders/windows_wrapped.rb:87:in `build'
/home/nick/.rvm/gems/ruby-1.9.3-p551/gems/releasy-0.2.2/lib/releasy/builders/windows_wrapped.rb:64:in `block in generate_tasks'

I did some puts debugging and found that this error occurs when it's trying to install the binary gem for Bundler. Strangely, if I run the command again, it passes with no errors. This cycle repeats consistently whenever I remove the pkg folder. Even though it passes on the second run, running the Windows executable still fails -- it claims it can't load Gosu (which I'm using in my project).

Here is my Rakefile.

require 'bundler/setup'
require 'releasy'

Releasy::Project.new do
  name 'blah'
  version '0.0.0'

  executable 'src/entry.rb'
  files ['src/**/*.rb', 'images/**/*.png', 'sounds/**/*.ogg']
  exposed_files ['README']

  add_build :windows_wrapped do
    wrapper "wrappers/ruby-1.9.3-p551-i386-mingw32.7z"
    exclude_tcl_tk
    add_package :zip
  end
end  

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载