tag:support.flying-sphinx.com,2011-01-05:/discussions/problems/951-cannot-install-flying-sphinxFlying Sphinx: Discussion 2013-07-27T13:08:31Ztag:support.flying-sphinx.com,2011-01-05:Comment/279855252013-07-27T10:44:55Z2013-07-27T10:44:55ZCannot install flying sphinx<div><p>Looks like the latest Faraday may break with Flying Sphinx. I'll
try to get a patch out in the next hour or so.</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/279855252013-07-27T11:05:09Z2013-07-27T11:05:09ZCannot install flying sphinx<div><p>Odd. With flying-sphinx 1.0.0, faraday 0.8.8 and Ruby 2.0, it's
working fine for me in one of my test apps. Is it possible to get
access to your app to debug directly? If so, my Heroku account is
<a href=
"mailto:pat@freelancing-gods.com">pat@freelancing-gods.com</a>.</p>
<p>If not, is there anything in your app that may be modifying
Faraday? Any gems that are likely to extend/monkeypatch it?</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/279855252013-07-27T12:23:20Z2013-07-27T12:23:20ZCannot install flying sphinx<div><p>Hello Pat, thanks for the quick reply. I invited you to my app.
Here is my Gemfile:</p>
<p>gem 'rails', '3.2.13'<br>
gem 'chosen-rails'</p>
<p>group :production do<br>
gem 'pg', '0.13.2' gem 'thin' gem 'thinking-sphinx', '3.0.3' gem
'flying-sphinx', '1.0.0' gem 'mysql2' end</p>
<p>group :development do<br>
gem "better_errors" gem 'letter_opener' gem 'quiet_assets' gem
'binding_of_caller' end</p>
<p>group :development, :test do<br>
gem 'rspec-rails' gem 'capybara' gem 'spring' gem
"factory_girl_rails" gem 'sqlite3' gem 'email_spec' end</p>
<p>group :assets do<br>
gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1'
gem 'zurb-foundation', '~> 4.0.0' gem 'jquery-ui-sass-rails'</p>
<p># See <a href=
"https://github.com/sstephenson/execjs#readme">https://github.com/sstephenson/execjs#readme</a>
for more supported runtimes # gem 'therubyracer', :platforms =>
:ruby</p>
<p>gem 'uglifier', '>= 1.0.3' end</p>
<p>gem 'jquery-rails'<br>
gem 'devise'<br>
gem 'haml-rails'<br>
gem 'carrierwave'<br>
gem "fog", "~> 1.3.1"<br>
gem 'mini_magick'<br>
gem 'cancan'<br>
gem 'nested_form'<br>
gem 'truncate_html'<br>
gem "ancestry"<br>
gem 'mini_magick'<br>
gem 'cancan'<br>
gem 'nested_form'<br>
gem 'truncate_html'<br>
gem 'rinku', '~> 1.7', :require => 'rails_rinku'<br>
gem 'paper_trail'<br>
gem 'diffy'<br>
gem 'carrierwave'<br>
gem "fog", "~> 1.3.1"<br>
gem "ancestry"<br>
gem 'kaminari'<br>
gem 'stringex'<br>
gem "font-awesome-rails"<br>
gem 'airbrake'<br>
gem 'cartodb-rb-client', github: 'Vizzuality/cartodb-rb-client'</p></div>cktag:support.flying-sphinx.com,2011-01-05:Comment/279855252013-07-27T13:01:41Z2013-07-27T13:01:41ZCannot install flying sphinx<div><p>Okay. The issue is the cartodb-rb-client gem - it monkeypatches
String, adding the instance method host. Faraday expects that any
uri that responds to host is actually a URI object, not a
string.</p>
<p>A work-around is putting the following into an initializer:</p>
<pre>
<code>FlyingSphinx::API.send :remove_const, :SERVER
FlyingSphinx::API::SERVER = Kernel.URI 'https://flying-sphinx.com'</code>
</pre>
<p>This will ensure Faraday is actually passed a URI object instead
of a string when the connection is set up. Of course, you'll want
to add some index definitions before you get to sending the
configuration through to Flying Sphinx :)</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/279855252013-07-27T13:08:29Z2013-07-27T13:08:29ZCannot install flying sphinx<div><p>Also: I've logged an issue with cartodb-rb-client alerting them
to this problem:<br>
<a href=
"https://github.com/Vizzuality/cartodb-rb-client/issues/17">https://github.com/Vizzuality/cartodb-rb-client/issues/17</a></p></div>Pat Allan