Closed drrb closed 10 years ago
Using puppet-library --module-dir modules/ on Ruby 1.8.7 the following error is occuring when attempting to download a module.
puppet-library --module-dir modules/
NoMethodError - undefined method `size' for #<File:0x10ede2240>: /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/puppet-library-0.8.0/bin/../lib/puppet_library/server.rb:101:in `GET /modules/:author-:module-:version.tar.gz' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:1592:in `call' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:1592:in `compile!' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `[]' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `route!' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:976:in `route_eval' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `route!' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:997:in `process_route' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in `catch' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in `process_route' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:955:in `route!' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:954:in `each' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:954:in `route!' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:1067:in `dispatch!' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `catch' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:1064:in `dispatch!' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:889:in `call!' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `catch' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:889:in `call!' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:877:in `call' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/rack-protection-1.5.2/lib/rack/protection/xss_header.rb:18:in `call' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/rack-protection-1.5.2/lib/rack/protection/path_traversal.rb:16:in `call' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/rack-protection-1.5.2/lib/rack/protection/json_csrf.rb:18:in `call' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/rack-protection-1.5.2/lib/rack/protection/base.rb:50:in `call' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/rack-protection-1.5.2/lib/rack/protection/frame_options.rb:31:in `call' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/rack-1.5.2/lib/rack/logger.rb:15:in `call' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/rack-1.5.2/lib/rack/commonlogger.rb:33:in `call_without_check' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:217:in `call' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:210:in `call' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/rack-1.5.2/lib/rack/head.rb:11:in `call' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/show_exceptions.rb:21:in `call' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:180:in `call' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/sinatra-1.4.4/lib/sinatra/base.rb:2004:in `call' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service' /Users/xxxx/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /Users/xxxx/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /Users/xxxx/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /Users/xxxx/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/webrick/server.rb:162:in `start' /Users/xxxx/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /Users/xxxx/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/webrick/server.rb:95:in `start' /Users/xxxx/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/webrick/server.rb:92:in `each' /Users/xxxx/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/webrick/server.rb:92:in `start' /Users/xxxx/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/webrick/server.rb:23:in `start' /Users/xxxx/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/webrick/server.rb:82:in `start' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/rack-1.5.2/lib/rack/handler/webrick.rb:14:in `run' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/rack-1.5.2/lib/rack/server.rb:264:in `start' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/rack-1.5.2/lib/rack/server.rb:141:in `start' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/puppet-library-0.8.0/bin/../lib/puppet_library/puppet_library.rb:125:in `start_server' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/puppet-library-0.8.0/bin/../lib/puppet_library/puppet_library.rb:35:in `go' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/gems/puppet-library-0.8.0/bin/puppet-library:25 /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/bin/puppet-library:23:in `load' /Users/xxxx/.rvm/gems/ruby-1.8.7-p374/bin/puppet-library:23 localhost - - [07/Feb/2014:23:28:00 EST] "GET /modules/domcleal-augeasproviders-1.0.2.tar.gz HTTP/1.1" 500 155590
Fixed in 0.8.0
Using
puppet-library --module-dir modules/
on Ruby 1.8.7 the following error is occuring when attempting to download a module.