webhooker 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.rdoc +3 -0
- data/Rakefile +34 -0
- data/app/assets/javascripts/webhooker/application.js +15 -0
- data/app/assets/stylesheets/webhooker/application.css.scss +3 -0
- data/app/controllers/webhooker/application_controller.rb +4 -0
- data/app/controllers/webhooker/subscribers_controller.rb +39 -0
- data/app/helpers/webhooker/application_helper.rb +4 -0
- data/app/jobs/webhooker/trigger_job.rb +26 -0
- data/app/models/webhooker/subscriber.rb +6 -0
- data/app/views/layouts/webhooker/_messages.html.slim +14 -0
- data/app/views/layouts/webhooker/_paginate_info.html.slim +7 -0
- data/app/views/layouts/webhooker/application.html.slim +30 -0
- data/app/views/webhooker/subscribers/_form.html.slim +7 -0
- data/app/views/webhooker/subscribers/_subscriber.html.slim +6 -0
- data/app/views/webhooker/subscribers/index.html.slim +17 -0
- data/config/routes.rb +3 -0
- data/config/spring.rb +1 -0
- data/db/migrate/20151213073634_create_webhooker_subscribers.rb +10 -0
- data/lib/tasks/webhooker_tasks.rake +4 -0
- data/lib/webhooker/engine.rb +23 -0
- data/lib/webhooker/model.rb +40 -0
- data/lib/webhooker/version.rb +3 -0
- data/lib/webhooker.rb +5 -0
- metadata +307 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2b28570400bb4aac0495eb0cffc298897c9542e9
|
4
|
+
data.tar.gz: 3032888eb282aa8dc990d66018f5ea21a87b3b57
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7d2ef8abcc0b97a1fd5e0a1eda5b42762a85bc57787d4baa82ed4487f0681e8292e1b55374d4909bc85c457d349fa9f2c4ba6b8a9a3985bf40e789eb7dcd483e
|
7
|
+
data.tar.gz: 0c75b8b5fd647463c18dfc7b0b36a992fa4452ac6169ef087a5b42b5822cb021bf4241139b62fdb7a53cf89b440440e4c5ae731f1af68cf25b9b31b2fa3133ec
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2015 kayhide
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'Webhooker'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.rdoc')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
18
|
+
load 'rails/tasks/engine.rake'
|
19
|
+
|
20
|
+
|
21
|
+
load 'rails/tasks/statistics.rake'
|
22
|
+
|
23
|
+
|
24
|
+
Bundler::GemHelper.install_tasks
|
25
|
+
|
26
|
+
|
27
|
+
Dir[File.expand_path('../tasks/**/*.rake', __FILE__)].each {|f| load f }
|
28
|
+
require 'rspec/core'
|
29
|
+
require 'rspec/core/rake_task'
|
30
|
+
|
31
|
+
desc "Run all specs in spec directory (excluding plugin specs)"
|
32
|
+
RSpec::Core::RakeTask.new(:spec => 'app:db:test:prepare')
|
33
|
+
|
34
|
+
task default: :spec
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require jquery_ujs
|
15
|
+
//= require_tree .
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require_dependency "webhooker/application_controller"
|
2
|
+
|
3
|
+
module Webhooker
|
4
|
+
class SubscribersController < ApplicationController
|
5
|
+
before_action :set_subscriber, only: [:destroy]
|
6
|
+
|
7
|
+
# GET /subscribers
|
8
|
+
def index
|
9
|
+
@subscribers = Subscriber.page(params[:page])
|
10
|
+
end
|
11
|
+
|
12
|
+
# POST /subscribers
|
13
|
+
def create
|
14
|
+
@subscriber = Subscriber.new(subscriber_params)
|
15
|
+
|
16
|
+
if @subscriber.save
|
17
|
+
redirect_to subscribers_url, notice: 'Successed to create.'
|
18
|
+
else
|
19
|
+
redirect_to subscribers_url, alert: 'Failed to create.'
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
# DELETE /subscribers/1
|
24
|
+
def destroy
|
25
|
+
@subscriber.destroy
|
26
|
+
redirect_to subscribers_url, notice: 'Successed to destroy.'
|
27
|
+
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def set_subscriber
|
32
|
+
@subscriber = Subscriber.find(params[:id])
|
33
|
+
end
|
34
|
+
|
35
|
+
def subscriber_params
|
36
|
+
params.require(:subscriber).permit(:url, :secret)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Webhooker
|
2
|
+
class TriggerJob < ActiveJob::Base
|
3
|
+
queue_as :default
|
4
|
+
|
5
|
+
def perform subscriber, payload
|
6
|
+
@subscriber = subscriber
|
7
|
+
uri = URI.parse subscriber.url
|
8
|
+
req = Net::HTTP::Post.new(uri.path)
|
9
|
+
req.set_form_data payload
|
10
|
+
Net::HTTP.new(uri.host, uri.port).start do |http|
|
11
|
+
app = Rails.application.class.parent.to_s
|
12
|
+
body = payload.to_json
|
13
|
+
header = {
|
14
|
+
'Content-Type' => 'application/json; charset=utf-8',
|
15
|
+
'User-Agent' => app,
|
16
|
+
"X-#{app}-Signature" => create_signature(body)
|
17
|
+
}
|
18
|
+
http.post uri.path, body, header
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def create_signature body
|
23
|
+
OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha1'), @subscriber.secret, body)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
- if notice
|
2
|
+
.alert.alert-success
|
3
|
+
button.close data-dismiss="alert" ×
|
4
|
+
p= notice
|
5
|
+
- if alert
|
6
|
+
.alert.alert-danger
|
7
|
+
button.close data-dismiss="alert" ×
|
8
|
+
p= alert
|
9
|
+
- instance_variables.select do |sym|
|
10
|
+
- obj = instance_variable_get sym
|
11
|
+
- if obj.is_a?(ActiveRecord::Base) && obj.errors.present?
|
12
|
+
ul
|
13
|
+
- obj.errors.full_messages.each do |message|
|
14
|
+
li= message
|
@@ -0,0 +1,30 @@
|
|
1
|
+
doctype html
|
2
|
+
html lang="ja"
|
3
|
+
head
|
4
|
+
meta charset="utf-8"
|
5
|
+
meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"
|
6
|
+
meta name="viewport" content="width=device-width, initial-scale=1.0"
|
7
|
+
title= Webhooker
|
8
|
+
= csrf_meta_tags
|
9
|
+
|
10
|
+
/! Le HTML5 shim, for IE6-8 support of HTML elements
|
11
|
+
/[if lt IE 9]
|
12
|
+
= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"
|
13
|
+
= stylesheet_link_tag "webhooker/application", media: "all"
|
14
|
+
= favicon_link_tag 'apple-icon-114x114.png', rel: 'apple-touch-icon', type: 'image/png', sizes: '57x57'
|
15
|
+
= favicon_link_tag 'apple-icon-114x114.png', rel: 'apple-touch-icon', type: 'image/png', sizes: '114x114'
|
16
|
+
= favicon_link_tag 'apple-icon-144x144.png', rel: 'apple-touch-icon', type: 'image/png', sizes: '72x72'
|
17
|
+
= favicon_link_tag 'apple-icon-144x144.png', rel: 'apple-touch-icon', type: 'image/png', sizes: '144x144'
|
18
|
+
= favicon_link_tag 'favicon.ico', rel: 'shortcut icon'
|
19
|
+
= javascript_include_tag "webhooker/application"
|
20
|
+
body
|
21
|
+
.navbar.navbar-default.navbar-static-top
|
22
|
+
.container-fluid
|
23
|
+
a.navbar-brand href=subscribers_path Webhooker
|
24
|
+
.container-fluid
|
25
|
+
#message= render 'layouts/webhooker/messages'
|
26
|
+
= yield
|
27
|
+
hr
|
28
|
+
footer
|
29
|
+
.container
|
30
|
+
p Webhooker v#{Webhooker::VERSION}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
- model_class = Webhooker::Subscriber
|
2
|
+
- if @subscribers.blank?
|
3
|
+
.alert
|
4
|
+
p.text-muted=t 'no_item', item: model_class.model_name.human
|
5
|
+
|
6
|
+
= paginate @subscribers
|
7
|
+
table.table.table-striped.table-fixed
|
8
|
+
- if @subscribers.present?
|
9
|
+
caption= render 'layouts/webhooker/paginate_info', items: @subscribers
|
10
|
+
thead
|
11
|
+
tr
|
12
|
+
th= model_class.human_attribute_name(:url)
|
13
|
+
th= model_class.human_attribute_name(:secret)
|
14
|
+
th
|
15
|
+
tbody
|
16
|
+
= render @subscribers
|
17
|
+
= render 'form', subscriber: model_class.new
|
data/config/routes.rb
ADDED
data/config/spring.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Spring.application_root = 'spec/dummy'
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'jquery-rails'
|
2
|
+
require 'slim-rails'
|
3
|
+
require 'kaminari'
|
4
|
+
require 'bootstrap-sass'
|
5
|
+
require 'font-awesome-sass'
|
6
|
+
|
7
|
+
module Webhooker
|
8
|
+
class Engine < ::Rails::Engine
|
9
|
+
isolate_namespace Webhooker
|
10
|
+
|
11
|
+
config.generators do |g|
|
12
|
+
g.test_framework :rspec, fixture: false
|
13
|
+
g.fixture_replacement :factory_girl, dir: "spec/factories"
|
14
|
+
g.view_specs false
|
15
|
+
g.routing_specs false
|
16
|
+
g.helper_specs false
|
17
|
+
g.request_specs false
|
18
|
+
g.integration_tool false
|
19
|
+
g.assets false
|
20
|
+
g.helper false
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'active_support/concern'
|
2
|
+
require 'active_support/lazy_load_hooks'
|
3
|
+
|
4
|
+
module Webhooker
|
5
|
+
module Model
|
6
|
+
extend ActiveSupport::Concern
|
7
|
+
|
8
|
+
def _trigger_webhook
|
9
|
+
attrs = attributes
|
10
|
+
if self.class.webhook_attributes
|
11
|
+
attrs = attrs.slice(*self.class.webhook_attributes)
|
12
|
+
end
|
13
|
+
|
14
|
+
if (changes.keys & attrs.keys).present?
|
15
|
+
data = {
|
16
|
+
type: self.class.name,
|
17
|
+
attributes: attributes.as_json,
|
18
|
+
changes: changes.slice(*attrs.keys).as_json,
|
19
|
+
}
|
20
|
+
Subscriber.find_each do |subscriber|
|
21
|
+
TriggerJob.perform_later subscriber, data
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
module ClassMethods
|
27
|
+
attr_accessor :webhook_attributes
|
28
|
+
|
29
|
+
def webhooks *args
|
30
|
+
after_save :_trigger_webhook
|
31
|
+
options = args.extract_options!
|
32
|
+
@webhook_attributes = options[:attributes].try(:map, &:to_s)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
ActiveSupport.on_load :active_record do |base|
|
39
|
+
base.include Webhooker::Model
|
40
|
+
end
|
data/lib/webhooker.rb
ADDED
metadata
ADDED
@@ -0,0 +1,307 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: webhooker
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- kayhide
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-12-14 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.5
|
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.5
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sass-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jquery-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
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: slim-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: kaminari
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bootstrap-sass
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: font-awesome-sass
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: sqlite3
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rspec-rails
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: spring
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: spring-commands-rspec
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: pry
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: factory_girl_rails
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: fuubar
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: webmock
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: simplecov
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: guard-rspec
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
251
|
+
description: Webhook engine for Rails applications implemented as a Rails Engine.
|
252
|
+
Extends rails models and triggers webhooks on creating, updating or destroying.
|
253
|
+
email:
|
254
|
+
- kayhide@gmail.com
|
255
|
+
executables: []
|
256
|
+
extensions: []
|
257
|
+
extra_rdoc_files: []
|
258
|
+
files:
|
259
|
+
- MIT-LICENSE
|
260
|
+
- README.rdoc
|
261
|
+
- Rakefile
|
262
|
+
- app/assets/javascripts/webhooker/application.js
|
263
|
+
- app/assets/stylesheets/webhooker/application.css.scss
|
264
|
+
- app/controllers/webhooker/application_controller.rb
|
265
|
+
- app/controllers/webhooker/subscribers_controller.rb
|
266
|
+
- app/helpers/webhooker/application_helper.rb
|
267
|
+
- app/jobs/webhooker/trigger_job.rb
|
268
|
+
- app/models/webhooker/subscriber.rb
|
269
|
+
- app/views/layouts/webhooker/_messages.html.slim
|
270
|
+
- app/views/layouts/webhooker/_paginate_info.html.slim
|
271
|
+
- app/views/layouts/webhooker/application.html.slim
|
272
|
+
- app/views/webhooker/subscribers/_form.html.slim
|
273
|
+
- app/views/webhooker/subscribers/_subscriber.html.slim
|
274
|
+
- app/views/webhooker/subscribers/index.html.slim
|
275
|
+
- config/routes.rb
|
276
|
+
- config/spring.rb
|
277
|
+
- db/migrate/20151213073634_create_webhooker_subscribers.rb
|
278
|
+
- lib/tasks/webhooker_tasks.rake
|
279
|
+
- lib/webhooker.rb
|
280
|
+
- lib/webhooker/engine.rb
|
281
|
+
- lib/webhooker/model.rb
|
282
|
+
- lib/webhooker/version.rb
|
283
|
+
homepage: https://github.com/kayhide/webhooker
|
284
|
+
licenses:
|
285
|
+
- MIT
|
286
|
+
metadata: {}
|
287
|
+
post_install_message:
|
288
|
+
rdoc_options: []
|
289
|
+
require_paths:
|
290
|
+
- lib
|
291
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
292
|
+
requirements:
|
293
|
+
- - ">="
|
294
|
+
- !ruby/object:Gem::Version
|
295
|
+
version: '0'
|
296
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
297
|
+
requirements:
|
298
|
+
- - ">="
|
299
|
+
- !ruby/object:Gem::Version
|
300
|
+
version: '0'
|
301
|
+
requirements: []
|
302
|
+
rubyforge_project:
|
303
|
+
rubygems_version: 2.4.5.1
|
304
|
+
signing_key:
|
305
|
+
specification_version: 4
|
306
|
+
summary: Webhook engine for Rails applications.
|
307
|
+
test_files: []
|