README.md in jawbit-0.0.2 vs README.md in jawbit-0.0.3
- old
+ new
@@ -1,30 +1,36 @@
# Jawbit
-For receiving Fitbit subscription requests in a Rails (or Rack) app.
+For receiving Fitbit and/or Jawbone subscription requests in a Rails (or Rack) app.
## Installation
Add this line to your application's Gemfile:
```ruby
-gem 'jawbit', '0.0.2'
+gem 'jawbit', '0.0.3'
```
## Usage
```ruby
# in config/routes.rb
post '/fitbit/subscriptions', to: Jawbit::FitbitRack.new(
subscriber_id, consumer_secret
)
+post '/jawbone/subscriptions', to: Jawbit::JawboneRack.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
```
## Contributing
1. Fork it ( https://github.com/[my-github-username]/jawbit/fork )
@@ -33,6 +39,6 @@
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Licence
-Copyright (c) 2014, Fitbit Subscriptions is developed and maintained by [Inspire9](http://development.inspire9.com), and is released under the open MIT Licence.
+Copyright (c) 2014, Jawbit is developed and maintained by [Inspire9](http://development.inspire9.com), and is released under the open MIT Licence.