Drawbridge

Code Climate

It draws the bridge between Endeca JSON bridge and IDG sites.

Sometimes it's up, sometimes it's down.

Installation

Add this line to your application's Gemfile:

gem 'drawbridge'

And then execute:

$ bundle

Or install it yourself as:

$ gem install drawbridge

Setup

To use:

require 'drawbridge'

Drawbridge.setup do |config|
  config.bridge_url = "http://example.com:8080"
  config.bridge_path = "BridgeAPIService_apt64/servlet/bridgeapi.json"
  # e.g. ENDECA_DEBUG=true rackup
  config.endeca_debug = ENV.fetch('ENDECA_DEBUG') { false }
  # optional, default is 5
  config.timeout = 5
  # optional, default is to change ' into ' before JSON is parsed
  config.skip_single_quote_encoding = true
end

Usage

Endeca documentation here

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request