Closed stereobooster closed 12 years ago
Same here, version 2.0.0 not working for me as well.
undefined method `length' for nil:NilClass@inifile.rb:453 ruby-1.9.3-p125@rvm
The problem is this line: https://github.com/stereobooster/submodule/blob/master/lib/submodule.rb#L20
Inifile 2.0 is a major release, and the initializer has changed. Your line should look like this now ...
gitmodules = IniFile.new( :filename => './.gitmodules' ).to_h
You can also use the class level load
method ...
gitmodules = IniFile.load( './.gitmodules' ).to_h
with inifile 1.1.0 works fine http://travis-ci.org/#!/stereobooster/jshintrb/jobs/2274486 but with inifile 2.0 http://travis-ci.org/#!/stereobooster/jshintrb/builds/2276434 produce error