README.md in stripe_event-1.5.0 vs README.md in stripe_event-1.5.1

- old
+ new

@@ -1,8 +1,14 @@ # StripeEvent -[![Build Status](https://secure.travis-ci.org/integrallis/stripe_event.svg)](http://travis-ci.org/integrallis/stripe_event) [![Dependency Status](https://gemnasium.com/integrallis/stripe_event.svg)](https://gemnasium.com/integrallis/stripe_event) [![Gem Version](https://badge.fury.io/rb/stripe_event.svg)](http://badge.fury.io/rb/stripe_event) [![Code Climate](https://codeclimate.com/github/integrallis/stripe_event.svg)](https://codeclimate.com/github/integrallis/stripe_event) [![Coverage Status](https://coveralls.io/repos/integrallis/stripe_event/badge.svg)](https://coveralls.io/r/integrallis/stripe_event) +[![Build Status](https://secure.travis-ci.org/integrallis/stripe_event.svg)](http://travis-ci.org/integrallis/stripe_event) +[![Dependency Status](https://gemnasium.com/integrallis/stripe_event.svg)](https://gemnasium.com/integrallis/stripe_event) +[![Gem Version](https://badge.fury.io/rb/stripe_event.svg)](http://badge.fury.io/rb/stripe_event) +[![Code Climate](https://codeclimate.com/github/integrallis/stripe_event.svg)](https://codeclimate.com/github/integrallis/stripe_event) +[![Coverage Status](https://coveralls.io/repos/integrallis/stripe_event/badge.svg)](https://coveralls.io/r/integrallis/stripe_event) +[![Gem Downloads](https://img.shields.io/gem/dt/stripe_event.svg)](https://rubygems.org/gems/stripe_event) + StripeEvent is built on the [ActiveSupport::Notifications API](http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html). Incoming webhook requests are authenticated by [retrieving the event object](https://stripe.com/docs/api?lang=ruby#retrieve_event) from Stripe. Define subscribers to handle specific event types. Subscribers can be a block or an object that responds to `#call`. ## Install ```ruby @@ -17,11 +23,11 @@ ## Usage ```ruby # config/initializers/stripe.rb -Stripe.api_key = ENV['STRIPE_API_KEY'] # Set your api key +Stripe.api_key = ENV['STRIPE_SECRET_KEY'] # e.g. sk_live_1234 StripeEvent.configure do |events| events.subscribe 'charge.failed' do |event| # Define subscriber behavior based on the event object event.class #=> Stripe::Event @@ -145,11 +151,11 @@ ```ruby require 'json' require 'sinatra' require 'stripe_event' -Stripe.api_key = ENV['STRIPE_API_KEY'] +Stripe.api_key = ENV['STRIPE_SECRET_KEY'] StripeEvent.subscribe 'charge.failed' do |event| # Look ma, no Rails! end @@ -197,9 +203,13 @@ * [Ryan McGeary](https://github.com/rmm5t) * [Pete Keen](https://github.com/peterkeen) * [Danny Whalen](https://github.com/invisiblefunnel) Special thanks to all the [contributors](https://github.com/integrallis/stripe_event/graphs/contributors). + +### Versioning + +Semantic Versioning 2.0 as defined at <http://semver.org>. ### License [MIT License](https://github.com/integrallis/stripe_event/blob/master/LICENSE.md). Copyright 2012-2015 Integrallis Software.