README.md in jawbit-0.0.3 vs README.md in jawbit-0.1.0
- old
+ new
@@ -1,32 +1,38 @@
# Jawbit
-For receiving Fitbit and/or Jawbone subscription requests in a Rails (or Rack) app.
+For receiving Fitbit, Jawbone and/or Validic subscription requests in a Rails (or Rack) app.
## Installation
Add this line to your application's Gemfile:
```ruby
-gem 'jawbit', '0.0.3'
+gem 'jawbit', '0.1.0'
```
## Usage
```ruby
# in config/routes.rb
post '/fitbit/subscriptions', to: Jawbit::FitbitRack.new(
subscriber_id, consumer_secret
)
post '/jawbone/subscriptions', to: Jawbit::JawboneRack.new
+post '/validic/subscriptions', to: Jawbit::ValidicRack.new
# in an initialiser:
ActiveSupport::Notifications.subscribe('notification.fitbit') do |*args|
event = ActiveSupport::Notifications::Event.new *args
# use event.payload[:json] however you like.
end
ActiveSupport::Notifications.subscribe('notification.jawbone') do |*args|
+ event = ActiveSupport::Notifications::Event.new *args
+ # use event.payload[:json] however you like.
+end
+
+ActiveSupport::Notifications.subscribe('notification.validic') do |*args|
event = ActiveSupport::Notifications::Event.new *args
# use event.payload[:json] however you like.
end
```