Client for talking to WelcomeApp, currently it can only check if a user is registered.
Add this line to your application's Gemfile:
gem 'welcome_app'And then execute:
$ bundle
Or install it yourself as:
$ gem install welcome_app
# Configure
WelcomeApp.configure do |config|
config.base_uri = 'https://welcomeapp.example.com'
config.client_key = 'secretkey'
end
# Check if user exists in WelcomeApp's database
welcome = WelcomeApp::Client.new
welcome.user_exists?(email: 'jane.doe@example.com')
# => falseAfter checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
Bug reports and pull requests are welcome on GitHub at https://github.com/buren/welcome_app.
The gem is available as open source under the terms of the MIT License.