Drawbridge
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
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request