{"comment":{"created_at":"2011-10-26T19:13:18Z","body":"Found a couple other gems that seem to have run into the same issue (you can see how they addressed it):\r\n\r\nhttps://github.com/rstacruz/sinatra-assetpack/issues/25\r\nhttps://github.com/jnicklas/carrierwave/issues/476\r\n\r\n","updated_at":"2011-10-26T19:13:18Z","url":"https://api.github.com/repos/darkhelmet/sinatra-bundles/issues/comments/2534787","id":2534787,"user":{"avatar_url":"https://secure.gravatar.com/avatar/8b99a98782226c04ee61601ddf6f46b5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8b99a98782226c04ee61601ddf6f46b5","url":"https://api.github.com/users/csaccheri","id":331215,"login":"csaccheri"}},"action":"created","issue":{"number":19,"created_at":"2011-10-26T18:56:45Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Using Sinatra 1.3.1 and getting this error on app startup:\r\n\r\n```\r\n/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)\r\n\tfrom /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/javascript_bundle.rb:46:in `path'\r\n\tfrom /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'\r\n\tfrom /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/bundle.rb:22:in `map'\r\n\tfrom /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/bundle.rb:22:in `files'\r\n\tfrom /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/bundle.rb:97:in `stamp'\r\n\tfrom /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/bundle.rb:88:in `options_hash'\r\n\tfrom /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/bundle.rb:66:in `needs_rebundle?'\r\n\tfrom /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/bundle.rb:59:in `etag'\r\n\tfrom /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles/bundle.rb:18:in `initialize'\r\n\tfrom /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles.rb:18:in `new'\r\n\tfrom /Users/chrispez/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-bundles-0.5.2/lib/sinatra/bundles.rb:18:in `javascript_bundle'\r\n\tfrom /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'\r\n\tfrom auction.rb:15:in `<main>'\r\n```\r\n\r\nPossibly 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):\r\n\r\n> 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)","comments":2,"title":"Sinatra 1.3.1 error: private method `public' called for Sinatra::Application:Class  ","updated_at":"2011-10-26T19:13:18Z","url":"https://api.github.com/repos/darkhelmet/sinatra-bundles/issues/19","id":2060262,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/8b99a98782226c04ee61601ddf6f46b5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8b99a98782226c04ee61601ddf6f46b5","url":"https://api.github.com/users/csaccheri","id":331215,"login":"csaccheri"},"html_url":"https://github.com/darkhelmet/sinatra-bundles/issues/19","labels":[{"name":"bug","url":"https://api.github.com/repos/darkhelmet/sinatra-bundles/labels/bug","color":"ff0000"}],"state":"open"},"legacy":{"issue_id":2060262,"comment_id":2534787}}