I recently tried upgrading to the newer version of facebooker plugin from r174. I wasn''t able to boot up the app server, as it was complaining about options and requires. => Booting Mongrel (use ''script/server webrick'' to force WEBrick) => Rails application starting on http://0.0.0.0:3000 => Debugger enabled => Call with -d to detach => Ctrl-C to shutdown server ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... Exiting /home/myapp/vendor/rails/railties/lib/commands/servers/mongrel.rb:16: warning: already initialized constant OPTIONS /home/myapp/vendor/rails/railties/lib/commands/servers/mongrel.rb:19: undefined method `options'' for []:Array (NoMethodError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'' from /home/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:496:in `require'' from /home/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'' from /home/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:496:in `require'' from /home/myapp/vendor/rails/railties/lib/commands/server.rb:39 from ./script/server:3:in `require'' from ./script/server:3 After tearing my hair out for a bit >:( , the culprit is the first line in lib/facebooker.rb: require ''json'' And looking on the ApplicationsPropertyCalls thread on the mailinglist archives, it seems like it''s a gem that just got added. Can it be included in the plugin so that newcomers and those of us that upgraded don''t have to be perplexed when the app server won''t start up? Or at least, have it be mentioned in the README? I''ll gladly do the latter, if the former is not an option. Thanks. Wilhelm
Wilhelm- The json gem is included as a depenency on the facebooker gem. How are you installing it? If you are installing it as a Rails plugin using script/plugin, the gem dependency mechanism probably wont'' work. Does anyone know how to add a dependency on a Rails plugin? Has anyone tried this with Piston? Thanks, Shane On Wed, Feb 20, 2008 at 6:02 PM, Wilhelm Chung <wil at 3cglabs.com> wrote:> I recently tried upgrading to the newer version of facebooker plugin > from r174. I wasn''t able to boot up the app server, as it was > complaining about options and requires. > > => Booting Mongrel (use ''script/server webrick'' to force WEBrick) > => Rails application starting on http://0.0.0.0:3000 > => Debugger enabled > => Call with -d to detach > => Ctrl-C to shutdown server > ** Starting Mongrel listening at 0.0.0.0:3000 > ** Starting Rails with development environment... > Exiting > /home/myapp/vendor/rails/railties/lib/commands/servers/mongrel.rb:16: > warning: already initialized constant OPTIONS > /home/myapp/vendor/rails/railties/lib/commands/servers/mongrel.rb:19: > undefined method `options'' for []:Array (NoMethodError) > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in > `gem_original_require'' > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in > `require'' > from /home/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:496:in > `require'' > from /home/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in'' > from /home/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:496:in > `require'' > from /home/myapp/vendor/rails/railties/lib/commands/server.rb:39 > from ./script/server:3:in `require'' > from ./script/server:3 > > After tearing my hair out for a bit >:( , the culprit is the first > line in lib/facebooker.rb: > > require ''json'' > > And looking on the ApplicationsPropertyCalls thread on the mailinglist > archives, it seems like it''s a gem that just got added. > > Can it be included in the plugin so that newcomers and those of us > that upgraded don''t have to be perplexed when the app server won''t > start up? Or at least, have it be mentioned in the README? I''ll > gladly do the latter, if the former is not an option. Thanks. > > Wilhelm > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >-- http://shanesbrain.net | http://crimsonjet.com | http://myfitbuddy.com
Where are we using the json support? Is that something that we could just disable if the gem isn''t present? This bit me too because I install with piston. Mike On Feb 21, 2008, at 10:49 AM, Shane Vitarana wrote:> Wilhelm- > > The json gem is included as a depenency on the facebooker gem. How > are you installing it? If you are installing it as a Rails plugin > using script/plugin, the gem dependency mechanism probably wont'' work. > Does anyone know how to add a dependency on a Rails plugin? Has > anyone tried this with Piston? > > Thanks, > Shane > > On Wed, Feb 20, 2008 at 6:02 PM, Wilhelm Chung <wil at 3cglabs.com> > wrote: >> I recently tried upgrading to the newer version of facebooker plugin >> from r174. I wasn''t able to boot up the app server, as it was >> complaining about options and requires. >> >> => Booting Mongrel (use ''script/server webrick'' to force WEBrick) >> => Rails application starting on http://0.0.0.0:3000 >> => Debugger enabled >> => Call with -d to detach >> => Ctrl-C to shutdown server >> ** Starting Mongrel listening at 0.0.0.0:3000 >> ** Starting Rails with development environment... >> Exiting >> /home/myapp/vendor/rails/railties/lib/commands/servers/mongrel.rb:16: >> warning: already initialized constant OPTIONS >> /home/myapp/vendor/rails/railties/lib/commands/servers/mongrel.rb:19: >> undefined method `options'' for []:Array (NoMethodError) >> from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: >> 32:in >> `gem_original_require'' >> from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: >> 32:in >> `require'' >> from /home/myapp/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:496:in >> `require'' >> from /home/myapp/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:342:in >> `new_constants_in'' >> from /home/myapp/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:496:in >> `require'' >> from /home/myapp/vendor/rails/railties/lib/commands/ >> server.rb:39 >> from ./script/server:3:in `require'' >> from ./script/server:3 >> >> After tearing my hair out for a bit >:( , the culprit is the first >> line in lib/facebooker.rb: >> >> require ''json'' >> >> And looking on the ApplicationsPropertyCalls thread on the >> mailinglist >> archives, it seems like it''s a gem that just got added. >> >> Can it be included in the plugin so that newcomers and those of us >> that upgraded don''t have to be perplexed when the app server won''t >> start up? Or at least, have it be mentioned in the README? I''ll >> gladly do the latter, if the former is not an option. Thanks. >> >> Wilhelm >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > > > -- > http://shanesbrain.net | http://crimsonjet.com | http://myfitbuddy.com > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
Mike- It is used for the get_app_properties call, which retrieves all the properties as a json array that needs to be parsed. If the json gem is disabled, that call won''t work. This dependency should work fine for gem installations, but I''m sure there is a dependency mechanism for plugins that we can incorporate. Does Piston not install dependencies? I''m sure this problem has been solved elsewhere. Shane On Thu, Feb 21, 2008 at 10:55 AM, Mike Mangino <mmangino at elevatedrails.com> wrote:> Where are we using the json support? Is that something that we could > just disable if the gem isn''t present? This bit me too because I > install with piston. > > Mike > > > > On Feb 21, 2008, at 10:49 AM, Shane Vitarana wrote: > > > Wilhelm- > > > > The json gem is included as a depenency on the facebooker gem. How > > are you installing it? If you are installing it as a Rails plugin > > using script/plugin, the gem dependency mechanism probably wont'' work. > > Does anyone know how to add a dependency on a Rails plugin? Has > > anyone tried this with Piston? > > > > Thanks, > > Shane > > > > On Wed, Feb 20, 2008 at 6:02 PM, Wilhelm Chung <wil at 3cglabs.com> > > wrote: > >> I recently tried upgrading to the newer version of facebooker plugin > >> from r174. I wasn''t able to boot up the app server, as it was > >> complaining about options and requires. > >> > >> => Booting Mongrel (use ''script/server webrick'' to force WEBrick) > >> => Rails application starting on http://0.0.0.0:3000 > >> => Debugger enabled > >> => Call with -d to detach > >> => Ctrl-C to shutdown server > >> ** Starting Mongrel listening at 0.0.0.0:3000 > >> ** Starting Rails with development environment... > >> Exiting > >> /home/myapp/vendor/rails/railties/lib/commands/servers/mongrel.rb:16: > >> warning: already initialized constant OPTIONS > >> /home/myapp/vendor/rails/railties/lib/commands/servers/mongrel.rb:19: > >> undefined method `options'' for []:Array (NoMethodError) > >> from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: > >> 32:in > >> `gem_original_require'' > >> from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: > >> 32:in > >> `require'' > >> from /home/myapp/vendor/rails/activesupport/lib/ > >> active_support/dependencies.rb:496:in > >> `require'' > >> from /home/myapp/vendor/rails/activesupport/lib/ > >> active_support/dependencies.rb:342:in > >> `new_constants_in'' > >> from /home/myapp/vendor/rails/activesupport/lib/ > >> active_support/dependencies.rb:496:in > >> `require'' > >> from /home/myapp/vendor/rails/railties/lib/commands/ > >> server.rb:39 > >> from ./script/server:3:in `require'' > >> from ./script/server:3 > >> > >> After tearing my hair out for a bit >:( , the culprit is the first > >> line in lib/facebooker.rb: > >> > >> require ''json'' > >> > >> And looking on the ApplicationsPropertyCalls thread on the > >> mailinglist > >> archives, it seems like it''s a gem that just got added. > >> > >> Can it be included in the plugin so that newcomers and those of us > >> that upgraded don''t have to be perplexed when the app server won''t > >> start up? Or at least, have it be mentioned in the README? I''ll > >> gladly do the latter, if the former is not an option. Thanks. > >> > >> Wilhelm > >> _______________________________________________ > >> Facebooker-talk mailing list > >> Facebooker-talk at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/facebooker-talk > >> > > > > > > > > -- > > http://shanesbrain.net | http://crimsonjet.com | http://myfitbuddy.com > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > >-- http://shanesbrain.net | http://crimsonjet.com | http://myfitbuddy.com
Yeah, I installed it using piston. I wasn''t aware that piston pulled in dependencies as well (if it does, it doesn''t appear to do so). I ended up installing the json gem, and then freezing it to the rails vendor/gems directory. And then I included it in the load_paths in the configuration for environment.rb (I''m on a shared host) Wilhelm On Thu, Feb 21, 2008 at 10:49 AM, Shane Vitarana <shanev at gmail.com> wrote:> Wilhelm- > > The json gem is included as a depenency on the facebooker gem. How > are you installing it? If you are installing it as a Rails plugin > using script/plugin, the gem dependency mechanism probably wont'' work. > Does anyone know how to add a dependency on a Rails plugin? Has > anyone tried this with Piston? > > Thanks, > Shane > > > > On Wed, Feb 20, 2008 at 6:02 PM, Wilhelm Chung <wil at 3cglabs.com> wrote: > > I recently tried upgrading to the newer version of facebooker plugin > > from r174. I wasn''t able to boot up the app server, as it was > > complaining about options and requires. > > > > => Booting Mongrel (use ''script/server webrick'' to force WEBrick) > > => Rails application starting on http://0.0.0.0:3000 > > => Debugger enabled > > => Call with -d to detach > > => Ctrl-C to shutdown server > > ** Starting Mongrel listening at 0.0.0.0:3000 > > ** Starting Rails with development environment... > > Exiting > > /home/myapp/vendor/rails/railties/lib/commands/servers/mongrel.rb:16: > > warning: already initialized constant OPTIONS > > /home/myapp/vendor/rails/railties/lib/commands/servers/mongrel.rb:19: > > undefined method `options'' for []:Array (NoMethodError) > > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in > > `gem_original_require'' > > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in > > `require'' > > from /home/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:496:in > > `require'' > > from /home/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in > > `new_constants_in'' > > from /home/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:496:in > > `require'' > > from /home/myapp/vendor/rails/railties/lib/commands/server.rb:39 > > from ./script/server:3:in `require'' > > from ./script/server:3 > > > > After tearing my hair out for a bit >:( , the culprit is the first > > line in lib/facebooker.rb: > > > > require ''json'' > > > > And looking on the ApplicationsPropertyCalls thread on the mailinglist > > archives, it seems like it''s a gem that just got added. > > > > Can it be included in the plugin so that newcomers and those of us > > that upgraded don''t have to be perplexed when the app server won''t > > start up? Or at least, have it be mentioned in the README? I''ll > > gladly do the latter, if the former is not an option. Thanks. > > > > Wilhelm > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > > -- > http://shanesbrain.net | http://crimsonjet.com | http://myfitbuddy.com >-- http://webjazz.blogspot.com http://www.mobtropolis.com http://www.3cglabs.com
It doesn''t. There are no dependencies there. I''d rather have the get_app_properties call not work than to have my whole app fail. If we''re going to leave this requirement in, we need to remove the line about "requiring only the standard library" from the package description :) On Feb 21, 2008, at 2:32 PM, Wilhelm Chung wrote:> Yeah, I installed it using piston. I wasn''t aware that piston pulled > in dependencies as well (if it does, it doesn''t appear to do so). > > I ended up installing the json gem, and then freezing it to the rails > vendor/gems directory. And then I included it in the load_paths in > the configuration for environment.rb (I''m on a shared host) > > Wilhelm-- Mike Mangino http://www.elevatedrails.com