stripe_webhooks 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +43 -0
- data/Rakefile +37 -0
- data/app/assets/javascripts/stripe_webhooks/application.js +13 -0
- data/app/assets/stylesheets/stripe_webhooks/application.css +15 -0
- data/app/controllers/stripe_webhooks/application_controller.rb +4 -0
- data/app/controllers/stripe_webhooks/events_controller.rb +26 -0
- data/app/helpers/stripe_webhooks/application_helper.rb +4 -0
- data/app/helpers/stripe_webhooks/events_helper.rb +4 -0
- data/app/jobs/stripe_webhooks/processor_job.rb +14 -0
- data/app/models/stripe_webhooks/callback.rb +62 -0
- data/app/models/stripe_webhooks/event.rb +37 -0
- data/app/models/stripe_webhooks/performed_callback.rb +5 -0
- data/app/views/layouts/stripe_webhooks/application.html.erb +14 -0
- data/config/routes.rb +3 -0
- data/db/migrate/20150715152905_create_stripe_webhooks_events.rb +13 -0
- data/db/migrate/20150716195741_create_stripe_webhooks_performed_callbacks.rb +10 -0
- data/lib/generators/stripe_webhooks.rb +7 -0
- data/lib/generators/stripe_webhooks/callback_generator.rb +28 -0
- data/lib/generators/stripe_webhooks/templates/application_callback.rb.erb +3 -0
- data/lib/generators/stripe_webhooks/templates/callback.rb.erb +8 -0
- data/lib/stripe_webhooks.rb +6 -0
- data/lib/stripe_webhooks/callbacks.rb +24 -0
- data/lib/stripe_webhooks/engine.rb +14 -0
- data/lib/stripe_webhooks/version.rb +3 -0
- data/lib/tasks/stripe_webhooks_tasks.rake +4 -0
- data/spec/controllers/stripe_webhooks/events_controller_spec.rb +14 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +26 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +13 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/factories/stripe_webhooks_events.rb +10 -0
- data/spec/factories/stripe_webhooks_performed_callbacks.rb +7 -0
- data/spec/helpers/stripe_webhooks/events_helper_spec.rb +17 -0
- data/spec/jobs/stripe_webhooks/processor_job_spec.rb +7 -0
- data/spec/models/stripe_webhooks/event_spec.rb +7 -0
- data/spec/models/stripe_webhooks/performed_callback_spec.rb +7 -0
- data/spec/rails_helper.rb +65 -0
- data/spec/spec_helper.rb +87 -0
- data/spec/views/stripe_webhooks/events/create.html.erb_spec.rb +5 -0
- metadata +257 -0
metadata
ADDED
@@ -0,0 +1,257 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: stripe_webhooks
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Westlake Interactive
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-07-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.2.3
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.2.3
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: stripe
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.22'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.22'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: mysql2
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 3.2.1
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 3.2.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: factory_girl_rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 4.5.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 4.5.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: database_cleaner
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.4.1
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.4.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.9.2
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.9.2
|
111
|
+
description: Provides an endpoint for captring data posted via Webhooks in Stripe,
|
112
|
+
and a system for running callbacks in response to desired event types.
|
113
|
+
email:
|
114
|
+
- greg@westlakedesign.com
|
115
|
+
executables: []
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- MIT-LICENSE
|
120
|
+
- README.md
|
121
|
+
- Rakefile
|
122
|
+
- app/assets/javascripts/stripe_webhooks/application.js
|
123
|
+
- app/assets/stylesheets/stripe_webhooks/application.css
|
124
|
+
- app/controllers/stripe_webhooks/application_controller.rb
|
125
|
+
- app/controllers/stripe_webhooks/events_controller.rb
|
126
|
+
- app/helpers/stripe_webhooks/application_helper.rb
|
127
|
+
- app/helpers/stripe_webhooks/events_helper.rb
|
128
|
+
- app/jobs/stripe_webhooks/processor_job.rb
|
129
|
+
- app/models/stripe_webhooks/callback.rb
|
130
|
+
- app/models/stripe_webhooks/event.rb
|
131
|
+
- app/models/stripe_webhooks/performed_callback.rb
|
132
|
+
- app/views/layouts/stripe_webhooks/application.html.erb
|
133
|
+
- config/routes.rb
|
134
|
+
- db/migrate/20150715152905_create_stripe_webhooks_events.rb
|
135
|
+
- db/migrate/20150716195741_create_stripe_webhooks_performed_callbacks.rb
|
136
|
+
- lib/generators/stripe_webhooks.rb
|
137
|
+
- lib/generators/stripe_webhooks/callback_generator.rb
|
138
|
+
- lib/generators/stripe_webhooks/templates/application_callback.rb.erb
|
139
|
+
- lib/generators/stripe_webhooks/templates/callback.rb.erb
|
140
|
+
- lib/stripe_webhooks.rb
|
141
|
+
- lib/stripe_webhooks/callbacks.rb
|
142
|
+
- lib/stripe_webhooks/engine.rb
|
143
|
+
- lib/stripe_webhooks/version.rb
|
144
|
+
- lib/tasks/stripe_webhooks_tasks.rake
|
145
|
+
- spec/controllers/stripe_webhooks/events_controller_spec.rb
|
146
|
+
- spec/dummy/README.rdoc
|
147
|
+
- spec/dummy/Rakefile
|
148
|
+
- spec/dummy/app/assets/javascripts/application.js
|
149
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
150
|
+
- spec/dummy/app/controllers/application_controller.rb
|
151
|
+
- spec/dummy/app/helpers/application_helper.rb
|
152
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
153
|
+
- spec/dummy/bin/bundle
|
154
|
+
- spec/dummy/bin/rails
|
155
|
+
- spec/dummy/bin/rake
|
156
|
+
- spec/dummy/bin/setup
|
157
|
+
- spec/dummy/config.ru
|
158
|
+
- spec/dummy/config/application.rb
|
159
|
+
- spec/dummy/config/boot.rb
|
160
|
+
- spec/dummy/config/database.yml
|
161
|
+
- spec/dummy/config/environment.rb
|
162
|
+
- spec/dummy/config/environments/development.rb
|
163
|
+
- spec/dummy/config/environments/production.rb
|
164
|
+
- spec/dummy/config/environments/test.rb
|
165
|
+
- spec/dummy/config/initializers/assets.rb
|
166
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
167
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
168
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
169
|
+
- spec/dummy/config/initializers/inflections.rb
|
170
|
+
- spec/dummy/config/initializers/mime_types.rb
|
171
|
+
- spec/dummy/config/initializers/session_store.rb
|
172
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
173
|
+
- spec/dummy/config/locales/en.yml
|
174
|
+
- spec/dummy/config/routes.rb
|
175
|
+
- spec/dummy/config/secrets.yml
|
176
|
+
- spec/dummy/public/404.html
|
177
|
+
- spec/dummy/public/422.html
|
178
|
+
- spec/dummy/public/500.html
|
179
|
+
- spec/dummy/public/favicon.ico
|
180
|
+
- spec/factories/stripe_webhooks_events.rb
|
181
|
+
- spec/factories/stripe_webhooks_performed_callbacks.rb
|
182
|
+
- spec/helpers/stripe_webhooks/events_helper_spec.rb
|
183
|
+
- spec/jobs/stripe_webhooks/processor_job_spec.rb
|
184
|
+
- spec/models/stripe_webhooks/event_spec.rb
|
185
|
+
- spec/models/stripe_webhooks/performed_callback_spec.rb
|
186
|
+
- spec/rails_helper.rb
|
187
|
+
- spec/spec_helper.rb
|
188
|
+
- spec/views/stripe_webhooks/events/create.html.erb_spec.rb
|
189
|
+
homepage: https://github.com/westlakedesign/stripe_webhooks
|
190
|
+
licenses:
|
191
|
+
- MIT
|
192
|
+
metadata: {}
|
193
|
+
post_install_message:
|
194
|
+
rdoc_options: []
|
195
|
+
require_paths:
|
196
|
+
- lib
|
197
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
207
|
+
requirements: []
|
208
|
+
rubyforge_project:
|
209
|
+
rubygems_version: 2.4.6
|
210
|
+
signing_key:
|
211
|
+
specification_version: 4
|
212
|
+
summary: Stripe Webhook event capture and processing engine.
|
213
|
+
test_files:
|
214
|
+
- spec/controllers/stripe_webhooks/events_controller_spec.rb
|
215
|
+
- spec/dummy/app/assets/javascripts/application.js
|
216
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
217
|
+
- spec/dummy/app/controllers/application_controller.rb
|
218
|
+
- spec/dummy/app/helpers/application_helper.rb
|
219
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
220
|
+
- spec/dummy/bin/bundle
|
221
|
+
- spec/dummy/bin/rails
|
222
|
+
- spec/dummy/bin/rake
|
223
|
+
- spec/dummy/bin/setup
|
224
|
+
- spec/dummy/config/application.rb
|
225
|
+
- spec/dummy/config/boot.rb
|
226
|
+
- spec/dummy/config/database.yml
|
227
|
+
- spec/dummy/config/environment.rb
|
228
|
+
- spec/dummy/config/environments/development.rb
|
229
|
+
- spec/dummy/config/environments/production.rb
|
230
|
+
- spec/dummy/config/environments/test.rb
|
231
|
+
- spec/dummy/config/initializers/assets.rb
|
232
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
233
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
234
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
235
|
+
- spec/dummy/config/initializers/inflections.rb
|
236
|
+
- spec/dummy/config/initializers/mime_types.rb
|
237
|
+
- spec/dummy/config/initializers/session_store.rb
|
238
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
239
|
+
- spec/dummy/config/locales/en.yml
|
240
|
+
- spec/dummy/config/routes.rb
|
241
|
+
- spec/dummy/config/secrets.yml
|
242
|
+
- spec/dummy/config.ru
|
243
|
+
- spec/dummy/public/404.html
|
244
|
+
- spec/dummy/public/422.html
|
245
|
+
- spec/dummy/public/500.html
|
246
|
+
- spec/dummy/public/favicon.ico
|
247
|
+
- spec/dummy/Rakefile
|
248
|
+
- spec/dummy/README.rdoc
|
249
|
+
- spec/factories/stripe_webhooks_events.rb
|
250
|
+
- spec/factories/stripe_webhooks_performed_callbacks.rb
|
251
|
+
- spec/helpers/stripe_webhooks/events_helper_spec.rb
|
252
|
+
- spec/jobs/stripe_webhooks/processor_job_spec.rb
|
253
|
+
- spec/models/stripe_webhooks/event_spec.rb
|
254
|
+
- spec/models/stripe_webhooks/performed_callback_spec.rb
|
255
|
+
- spec/rails_helper.rb
|
256
|
+
- spec/spec_helper.rb
|
257
|
+
- spec/views/stripe_webhooks/events/create.html.erb_spec.rb
|