recurly_event 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 367bf8594ffdbe43736320bb78109eb9ece66b2a
4
- data.tar.gz: ac68290ea4c65fc053da003bc7f07bc16ab4f75d
3
+ metadata.gz: 856ece0776e102af2bbb34e8df622c5ff2386984
4
+ data.tar.gz: 211c8543f929d55000d6852b4f81f2dc35375853
5
5
  SHA512:
6
- metadata.gz: fafc05450d5623ed878004ae4c68ea99bfd16785c46131d82174e85a39858685f18e9b3367a9a440a785f48dc7d96c69b23ebe38d781527aae8767d3bc8d6bcf
7
- data.tar.gz: 191eec00bda36c9f273793ec26141caa35654f71ebf37d3ee117baee662a7da11096443874e6b978df25f29f9b98e6a76b885abb28ec3f72c5cf7d78464dbc7a
6
+ metadata.gz: 5f03177edb9661ac6d1f4a6688b87fbd575be0b580a031ddcc6324e33e24ddf37b5fc37adf422c43c2d66b181930444ff3f205e288361e633afa64bd86e47e74
7
+ data.tar.gz: c7df538e466266e6d92e5924bda08df07eb3c44cf618afbece6887198eff959d79d76dab0780197527ffde40581a5a853002657e9b06ecbbb2e9194a1165c90a
data/CHANGELOG.md ADDED
@@ -0,0 +1,2 @@
1
+ ## 1.0.1
2
+ - Include event name in payload
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # RecurlyEvent
2
- [![Build Status](https://travis-ci.org/ejaypcanaria/recurly_event.svg)](https://travis-ci.org/ejaypcanaria/recurly_event) [![Code Climate](https://codeclimate.com/github/ejaypcanaria/recurly_event/badges/gpa.svg)](https://codeclimate.com/github/ejaypcanaria/recurly_event) [![Test Coverage](https://codeclimate.com/github/ejaypcanaria/recurly_event/badges/coverage.svg)](https://codeclimate.com/github/ejaypcanaria/recurly_event/coverage)
2
+ [![Build Status](https://travis-ci.org/ejaypcanaria/recurly_event.svg)](https://travis-ci.org/ejaypcanaria/recurly_event) [![Code Climate](https://codeclimate.com/github/ejaypcanaria/recurly_event/badges/gpa.svg)](https://codeclimate.com/github/ejaypcanaria/recurly_event) [![Test Coverage](https://codeclimate.com/github/ejaypcanaria/recurly_event/badges/coverage.svg)](https://codeclimate.com/github/ejaypcanaria/recurly_event/coverage) [![Gem Version](https://badge.fury.io/rb/recurly_event.svg)](https://badge.fury.io/rb/recurly_event)
3
3
 
4
4
  RecurlyEvent is a simple Ruby DSL for managing [Recurly Webhooks](https://recurly.readme.io/v2.0/page/webhooks) inside a Rails application. This project is inspired by the [StripeEvent](https://github.com/integrallis/stripe_event/) gem and is built using pub/sub API of [ActiveSupport::Notifications](http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html).
5
5
 
@@ -20,7 +20,8 @@ module RecurlyEvent
20
20
  end
21
21
 
22
22
  def payload
23
- hash_from_request.first.last
23
+ payload = hash_from_request.first.last
24
+ payload.merge("event" => event_name)
24
25
  end
25
26
 
26
27
  private
@@ -1,3 +1,3 @@
1
1
  module RecurlyEvent
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly_event
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ejay Canaria
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-15 00:00:00.000000000 Z
11
+ date: 2015-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -90,6 +90,7 @@ files:
90
90
  - ".gitignore"
91
91
  - ".rspec"
92
92
  - ".travis.yml"
93
+ - CHANGELOG.md
93
94
  - CODE_OF_CONDUCT.md
94
95
  - Gemfile
95
96
  - LICENSE.txt
@@ -128,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
129
  version: '0'
129
130
  requirements: []
130
131
  rubyforge_project:
131
- rubygems_version: 2.4.8
132
+ rubygems_version: 2.4.5.1
132
133
  signing_key:
133
134
  specification_version: 4
134
135
  summary: Simple DSL to utilize Recurly webhook inside a Rails application