darkhelmet/sinatra-bundles — Issue #19: Sinatra 1.3.1 error: private method `public' called for Sinatra::Application:Class  
Author: csaccheri
Created: 2011-10-26 18:56:45+00:00
State: open

Using Sinatra 1.3.1 and getting this error on app startup:

```
/Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/javascript_bundle.rb:26:in `root': private method `public' called for Sinatra::Application:Class (NoMethodError)
from /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/javascript_bundle.rb:46:in `path'
from /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/bundle.rb:23:in `block in files'
from /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/bundle.rb:22:in `map'
from /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/bundle.rb:22:in `files'
from /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/bundle.rb:97:in `stamp'
from /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/bundle.rb:88:in `options_hash'
from /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/bundle.rb:66:in `needs_rebundle?'
from /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/bundle.rb:59:in `etag'
from /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/bundle.rb:18:in `initialize'
from /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles.rb:18:in `new'
from /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles.rb:18:in `javascript_bundle'
from /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:1589:in `block (2 levels) in delegate'
from auction.rb:15:in `

'
```

Possibly related to this [change in Sinatra 1.3.0](https://github.com/sinatra/sinatra/blob/v1.3.0/CHANGES) (as I don't experience the issue when using Sinatra 1.2.6):

> Renamed `:public` to `:public_folder` to avoid overriding Ruby's built-in `public` method/keyword. `set(:public, ...)` is still possible but shows a warning. (Konstantin Haase)