action_notifier 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: af19d521073aeab2c5dea5e17414c7fdd9eeed9b
4
+ data.tar.gz: c733f3726e5c8d68ebb9932bb4b5a9569c02041c
5
+ SHA512:
6
+ metadata.gz: e98eeeb295ac3e624ee27d3f8f987039bef7ca6f5cf7d9c2755d6b9241a7bcb29dde720f49b9f006390e9d999c4ca600498eb1caa1c451c575b3245c2c2c79c7
7
+ data.tar.gz: 460db4a0917fa92e0fd3b2152832ca7be26f280c24c7b14a62acbe22a4975981efda9ab984737fe0b25610b96d480b4c412327ebce6ad63d9b7312837d70bbef
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,16 @@
1
+ sudo: false
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.2.4
6
+ - 2.3.1
7
+ - 2.4.0
8
+ - ruby-head
9
+ before_install: gem install bundler -v 1.12.5
10
+
11
+ notifications:
12
+ email:
13
+ recipients:
14
+ - stan001212@gmail.com
15
+ on_failure: change
16
+ on_success: never
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at a22301613@yahoo.com.tw. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in action_notifier.gemspec
4
+ gemspec
5
+ gem "pry"
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Stan Lo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,43 @@
1
+ # ActionNotifier
2
+
3
+ [![Build Status](https://travis-ci.org/st0012/action_notifier.svg?branch=master)](https://travis-ci.org/st0012/action_notifier)
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/action_notifier`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'action_notifier'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install action_notifier
24
+
25
+ ## Usage
26
+
27
+ TODO: Write usage instructions here
28
+
29
+ ## Development
30
+
31
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
32
+
33
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
34
+
35
+ ## Contributing
36
+
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/action_notifier. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
38
+
39
+
40
+ ## License
41
+
42
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
43
+
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList['test/**/*_test.rb']
8
+ end
9
+
10
+ task :default => :test
@@ -0,0 +1,29 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'action_notifier/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "action_notifier"
8
+ spec.version = ActionNotifier::VERSION
9
+ spec.authors = ["Stan Lo"]
10
+ spec.email = ["stan001212@gmail.com"]
11
+
12
+ spec.summary = %q{An abstract layer for Rails app to send notifications.}
13
+ spec.description = %q{An abstract layer for Rails app to send notifications.}
14
+ spec.homepage = "https://github.com/st0012/action_notifier"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler"
23
+ spec.add_development_dependency "rake"
24
+ spec.add_development_dependency "minitest", "~> 5.0"
25
+ spec.add_dependency "activesupport", ">= 5.0"
26
+ spec.add_dependency "actionpack", ">= 5.0"
27
+ spec.add_dependency "httparty"
28
+ spec.add_dependency "slack-notifier"
29
+ end
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "action_notifier"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,19 @@
1
+ require "abstract_controller"
2
+ require "action_dispatch"
3
+ require "active_support/rails"
4
+ require "active_support/core_ext/class"
5
+ require "active_support/core_ext/module/attr_internal"
6
+ require "active_support/core_ext/string/inflections"
7
+ require "active_support/lazy_load_hooks"
8
+ require "httparty"
9
+ require "action_notifier/version"
10
+ require "action_notifier/exceptions"
11
+ require "action_notifier/deliverers"
12
+
13
+ module ActionNotifier
14
+ extend ::ActiveSupport::Autoload
15
+ autoload :Base
16
+ autoload :Message
17
+ autoload :MessageDelivery
18
+ # Your code goes here...
19
+ end
@@ -0,0 +1,114 @@
1
+ require "action_notifier/message_delivery"
2
+ require "action_notifier/rescuable"
3
+
4
+ module ActionNotifier
5
+ class Base < AbstractController::Base
6
+ include ActiveSupport::Configurable
7
+ include AbstractController::Rendering
8
+
9
+ include AbstractController::Helpers
10
+ include AbstractController::Translation
11
+ include AbstractController::Callbacks
12
+ include AbstractController::Caching
13
+ include AbstractController::UrlFor
14
+ include Rescuable
15
+
16
+ class_attribute :url
17
+
18
+ class_attribute :delivery_method
19
+ self.delivery_method = :post_request_deliverer
20
+
21
+ class << self
22
+ def to(url)
23
+ self.url = url
24
+ end
25
+
26
+ def notifier_name
27
+ @notifier_name ||= anonymous? ? "anonymous" : name.underscore
28
+ end
29
+
30
+ attr_writer :notifier_name
31
+ alias :controller_path :notifier_name
32
+
33
+ # Aliased by ::default_options=
34
+ def default(value = nil)
35
+ self.default_params = default_params.merge(value).freeze if value
36
+ default_params
37
+ end
38
+ # Allows to set defaults through app configuration:
39
+ #
40
+ # config.action_mailer.default_options = { from: "no-reply@example.org" }
41
+ alias :default_options= :default
42
+
43
+ # Wraps an email delivery inside of <tt>ActiveSupport::Notifications</tt> instrumentation.
44
+ #
45
+ # This method is actually called by the <tt>Mail::Message</tt> object itself
46
+ # through a callback when you call <tt>:deliver</tt> on the <tt>Mail::Message</tt>,
47
+ # calling +deliver_mail+ directly and passing a <tt>Mail::Message</tt> will do
48
+ # nothing except tell the logger you sent the email.
49
+ def deliver_notification(notification) #:nodoc:
50
+ ActiveSupport::Notifications.instrument("deliver.action_notifier") do |payload|
51
+ set_payload_for_mail(payload, notification)
52
+ yield # Let Mail do the delivery actions
53
+ end
54
+ end
55
+
56
+ private
57
+
58
+ def set_payload_for_mail(payload, mail)
59
+ payload[:mailer] = name
60
+ payload[:message_id] = mail.message_id
61
+ payload[:subject] = mail.subject
62
+ payload[:to] = mail.to
63
+ payload[:from] = mail.from
64
+ payload[:bcc] = mail.bcc if mail.bcc.present?
65
+ payload[:cc] = mail.cc if mail.cc.present?
66
+ payload[:date] = mail.date
67
+ payload[:mail] = mail.encoded
68
+ end
69
+
70
+ def method_missing(method_name, *args)
71
+ if action_methods.include?(method_name.to_s)
72
+ MessageDelivery.new(self, method_name, *args)
73
+ else
74
+ super
75
+ end
76
+ end
77
+
78
+ def respond_to_missing?(method, include_all = false)
79
+ action_methods.include?(method.to_s) || super
80
+ end
81
+ end
82
+
83
+ attr_reader :message
84
+
85
+ def initialize
86
+ @message = Message.new
87
+ end
88
+
89
+ def notify(message:, url: nil, options: nil)
90
+ @message.body = message
91
+ @message.delivery_method = self.class.delivery_method
92
+ @message.url = url || self.class.url
93
+ @message.options = options || {}
94
+ @message
95
+ end
96
+
97
+ def process(method_name, *args) #:nodoc:
98
+ payload = {
99
+ notifier: self.class.name,
100
+ action: method_name,
101
+ args: args,
102
+ delivery_method: self.class.delivery_method
103
+ }
104
+
105
+ ActiveSupport::Notifications.instrument("process.action_notifier", payload) do
106
+ super
107
+ end
108
+ end
109
+
110
+ def notifier_name
111
+ self.class.notifier_name
112
+ end
113
+ end
114
+ end
@@ -0,0 +1,9 @@
1
+ require "action_notifier/deliverers/base_deliverer"
2
+ require "action_notifier/deliverers/post_request_deliverer"
3
+ require "action_notifier/deliverers/slack_webhook_deliverer"
4
+
5
+ module ActionNotifier
6
+ module Deliverers
7
+
8
+ end
9
+ end
@@ -0,0 +1,17 @@
1
+ module ActionNotifier
2
+ module Deliverers
3
+ class BaseDeliverer
4
+ extend Forwardable
5
+
6
+ attr_reader :message
7
+
8
+ def initialize(message)
9
+ @message = message
10
+ end
11
+
12
+ def deliver
13
+ raise "Not implement error."
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,13 @@
1
+ module ActionNotifier
2
+ module Deliverers
3
+ class PostRequestDeliverer < BaseDeliverer
4
+ include HTTParty
5
+
6
+ def_delegators :@message, :url
7
+
8
+ def deliver
9
+ self.class.post(message.url, { body: message.body }.merge(message.options))
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,19 @@
1
+ require "slack-notifier"
2
+
3
+ module ActionNotifier
4
+ module Deliverers
5
+ class SlackWebhookDeliverer < BaseDeliverer
6
+ def deliver
7
+ notifier.ping(message.body, message.options)
8
+ end
9
+
10
+ def notifier
11
+ @notifier ||= Slack::Notifier.new(message.url || webhook_url)
12
+ end
13
+
14
+ def webhook_url
15
+ ENV["SLACK_WEBHOOK_URL"]
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,7 @@
1
+ module ActionNotifier
2
+ class UnsupportedDeliverMethodError < StandardError
3
+ def initialize(msg)
4
+ super
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,19 @@
1
+ module ActionNotifier
2
+ class Message
3
+ attr_accessor :body, :delivery_method, :url, :options
4
+
5
+ def deliver
6
+ deliverer.deliver
7
+ end
8
+
9
+ def deliverer
10
+ deliverer_name.constantize.new(self)
11
+ rescue NameError
12
+ raise UnsupportedDeliverMethodError, "Unsupported deliverer \"#{deliverer_name}\""
13
+ end
14
+
15
+ def deliverer_name
16
+ "ActionNotifier::Deliverers::#{delivery_method.to_s.camelize}"
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,44 @@
1
+ require "delegate"
2
+
3
+ module ActionNotifier
4
+ class MessageDelivery < Delegator
5
+ def initialize(notifier_class, action, *args) #:nodoc:
6
+ @notifier_class, @action, @args = notifier_class, action, args
7
+
8
+ # The notifier is only processed if we try to call any methods on it.
9
+ # Typical usage will leave it unloaded and call deliver_later.
10
+ @processed_notifier = nil
11
+ @notification_message = nil
12
+ end
13
+
14
+ def __getobj__ #:nodoc:
15
+ @notifier_message ||= processed_notifier.message
16
+ end
17
+
18
+ # Unused except for delegator internals (dup, marshaling).
19
+ def __setobj__(notifier_message) #:nodoc:
20
+ @notifier_message = notifier_message
21
+ end
22
+
23
+ def message
24
+ __getobj__
25
+ end
26
+
27
+ def processed?
28
+ @processed_notifier || @notifier_message
29
+ end
30
+
31
+ def deliver_now
32
+ processed_notifier.handle_exceptions do
33
+ message.deliver
34
+ end
35
+ end
36
+
37
+ private
38
+ def processed_notifier
39
+ @processed_notifier ||= @notifier_class.new.tap do |notifier|
40
+ notifier.process @action, *@args
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,20 @@
1
+ require "action_notifier"
2
+ require "rails"
3
+ require "abstract_controller/railties/routes_helpers"
4
+
5
+ module ActionNotifier
6
+ class Railtie < Rails::Railtie # :nodoc:
7
+ config.action_notifier = ActiveSupport::OrderedOptions.new
8
+ config.eager_load_namespaces << ActionNotifier
9
+
10
+ initializer "action_notifier.logger" do
11
+ ActiveSupport.on_load(:action_notifier) { self.logger ||= Rails.logger }
12
+ end
13
+
14
+ initializer "action_notifier.compile_config_methods" do
15
+ ActiveSupport.on_load(:action_notifier) do
16
+ config.compile_methods! if config.respond_to?(:compile_methods!)
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,25 @@
1
+ module ActionNotifier
2
+ module Rescuable
3
+ extend ActiveSupport::Concern
4
+ include ActiveSupport::Rescuable
5
+
6
+ class_methods do
7
+ def handle_exception(exception) #:nodoc:
8
+ rescue_with_handler(exception) || raise(exception)
9
+ end
10
+ end
11
+
12
+ def handle_exceptions #:nodoc:
13
+ yield
14
+ rescue => exception
15
+ rescue_with_handler(exception) || raise
16
+ end
17
+
18
+ private
19
+ def process(*)
20
+ handle_exceptions do
21
+ super
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,7 @@
1
+ require "active_support/testing/method_call_assertions"
2
+
3
+ module ActionNotifier
4
+ class TestCase < ActiveSupport::TestCase
5
+ include ActiveSupport::Testing::MethodCallAssertions
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module ActionNotifier
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,165 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: action_notifier
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Stan Lo
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-02-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
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: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: activesupport
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '5.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '5.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: actionpack
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '5.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '5.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: httparty
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: slack-notifier
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
+ description: An abstract layer for Rails app to send notifications.
112
+ email:
113
+ - stan001212@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".travis.yml"
120
+ - CODE_OF_CONDUCT.md
121
+ - Gemfile
122
+ - LICENSE.txt
123
+ - README.md
124
+ - Rakefile
125
+ - action_notifier.gemspec
126
+ - bin/console
127
+ - bin/setup
128
+ - lib/action_notifier.rb
129
+ - lib/action_notifier/base.rb
130
+ - lib/action_notifier/deliverers.rb
131
+ - lib/action_notifier/deliverers/base_deliverer.rb
132
+ - lib/action_notifier/deliverers/post_request_deliverer.rb
133
+ - lib/action_notifier/deliverers/slack_webhook_deliverer.rb
134
+ - lib/action_notifier/exceptions.rb
135
+ - lib/action_notifier/message.rb
136
+ - lib/action_notifier/message_delivery.rb
137
+ - lib/action_notifier/railtie.rb
138
+ - lib/action_notifier/rescuable.rb
139
+ - lib/action_notifier/test_case.rb
140
+ - lib/action_notifier/version.rb
141
+ homepage: https://github.com/st0012/action_notifier
142
+ licenses:
143
+ - MIT
144
+ metadata: {}
145
+ post_install_message:
146
+ rdoc_options: []
147
+ require_paths:
148
+ - lib
149
+ required_ruby_version: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ required_rubygems_version: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ requirements: []
160
+ rubyforge_project:
161
+ rubygems_version: 2.5.1
162
+ signing_key:
163
+ specification_version: 4
164
+ summary: An abstract layer for Rails app to send notifications.
165
+ test_files: []