notifun 1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/Gemfile +5 -0
  6. data/Gemfile.lock +45 -0
  7. data/README.md +16 -0
  8. data/app/assets/stylesheets/notifun.sass +62 -0
  9. data/app/controllers/notifun/message_templates_controller.rb +31 -0
  10. data/app/controllers/notifun/messages_controller.rb +15 -0
  11. data/app/controllers/notifun/preferences_controller.rb +26 -0
  12. data/app/mailers/notifun/message_mailer.rb +49 -0
  13. data/app/models/notifun/message.rb +7 -0
  14. data/app/models/notifun/message_template.rb +98 -0
  15. data/app/models/notifun/preference.rb +13 -0
  16. data/app/views/notifun/message_templates/edit.html.haml +53 -0
  17. data/app/views/notifun/message_templates/index.html.haml +29 -0
  18. data/app/views/notifun/messages/index.haml +47 -0
  19. data/app/views/notifun/messages/show.haml +47 -0
  20. data/app/views/notifun/preferences/index.haml +45 -0
  21. data/config/routes.rb +16 -0
  22. data/lib/generators/notifun/install_generator.rb +50 -0
  23. data/lib/generators/notifun/templates/migration.rb +48 -0
  24. data/lib/generators/notifun/templates/notifun.rb +39 -0
  25. data/lib/generators/notifun/templates/notifun_add_push_title.rb +8 -0
  26. data/lib/generators/notifun/templates/notifun_templates.json +29 -0
  27. data/lib/notifun.rb +27 -0
  28. data/lib/notifun/configuration.rb +19 -0
  29. data/lib/notifun/engine.rb +5 -0
  30. data/lib/notifun/notification.rb +166 -0
  31. data/lib/notifun/notifiers/cloud_five_notifier.rb +32 -0
  32. data/lib/notifun/notifiers/email_notifier.rb +11 -0
  33. data/lib/notifun/notifiers/empty_notifier.rb +2 -0
  34. data/lib/notifun/notifiers/notifier.rb +17 -0
  35. data/lib/notifun/notifiers/parent_notifier.rb +12 -0
  36. data/lib/notifun/notifiers/twilio_notifier.rb +28 -0
  37. data/lib/notifun/railtie.rb +48 -0
  38. data/lib/notifun/version.rb +3 -0
  39. data/notifun.gemspec +26 -0
  40. data/spec/notifun_spec.rb +108 -0
  41. data/spec/spec_helper.rb +88 -0
  42. metadata +156 -0
@@ -0,0 +1,32 @@
1
+ class Notifun::Notifier::CloudFiveNotifier < Notifun::Notifier::ParentNotifier
2
+ def notify!(text, title, uuid, options)
3
+ if !defined?(CloudFivePush)
4
+ @success = false
5
+ @error_message = "CloudFivePush is not defined."
6
+ return
7
+ end
8
+ api_key = options[:api_key].presence
9
+ api_key ||= Notifun.configuration.push_config[:api_key]
10
+ return false unless api_key.present?
11
+ notification = CloudFivePush::Notification.new(api_key)
12
+ if title.present?
13
+ notification.alert = title
14
+ notification.message = text
15
+ else
16
+ notification.alert = text
17
+ notification.message = ""
18
+ end
19
+ notification.user_identifiers = [uuid]
20
+ notification.data = options[:push_data]
21
+ notification.content_available = options[:content_available]
22
+ notification.badge = options[:badge].presence
23
+ response = notification.notify!
24
+
25
+ if response['success']
26
+ @success = true
27
+ else
28
+ @error_message = response["error"].presence || "Failed to send push notification"
29
+ @success = false
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,11 @@
1
+ class Notifun::Notifier::EmailNotifier < Notifun::Notifier::ParentNotifier
2
+ def notify!(email, subject, html, text, message_template, options)
3
+ begin
4
+ Notifun::MessageMailer.send_message(email, subject, html, text, message_template, options).deliver_now
5
+ @success = true
6
+ rescue Net::SMTPSyntaxError => e
7
+ @error_message = e.message
8
+ @success = false
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,2 @@
1
+ class Notifun::Notifier::EmptyNotifier < Notifun::Notifier::ParentNotifier
2
+ end
@@ -0,0 +1,17 @@
1
+ module Notifun::Notifier
2
+ def self.email_notifier
3
+ "Notifun::Notifier::EmailNotifier".constantize
4
+ end
5
+ def self.push_notifier
6
+ "Notifun::Notifier::#{Notifun.configuration.push_notifier}Notifier".constantize
7
+ end
8
+ def self.text_notifier
9
+ "Notifun::Notifier::#{Notifun.configuration.text_notifier}Notifier".constantize
10
+ end
11
+ end
12
+
13
+ require 'notifun/notifiers/parent_notifier'
14
+ require 'notifun/notifiers/email_notifier'
15
+ require 'notifun/notifiers/empty_notifier'
16
+ require 'notifun/notifiers/cloud_five_notifier'
17
+ require 'notifun/notifiers/twilio_notifier'
@@ -0,0 +1,12 @@
1
+ class Notifun::Notifier::ParentNotifier
2
+ attr_accessor :success, :error_message
3
+
4
+ def initialize
5
+ @success = false
6
+ @error_message = nil
7
+ end
8
+
9
+ def notify!(*arguments)
10
+ false
11
+ end
12
+ end
@@ -0,0 +1,28 @@
1
+ class Notifun::Notifier::TwilioNotifier < Notifun::Notifier::ParentNotifier
2
+ def notify!(text, phone, options)
3
+ if !defined?(Twilio)
4
+ @success = false
5
+ @error_message = "Twilio is not defined."
6
+ return
7
+ end
8
+
9
+ account_sid = Notifun.configuration.text_config[:account_sid]
10
+ auth_token = Notifun.configuration.text_config[:auth_token]
11
+ from = Notifun.configuration.text_config[:from]
12
+ return false unless account_sid.present? && auth_token.present? && from.present?
13
+
14
+ begin
15
+ client = Twilio::REST::Client.new account_sid, auth_token
16
+ client.messages.create(
17
+ from: from,
18
+ to: phone,
19
+ body: text
20
+ )
21
+ rescue Twilio::REST::RequestError => e
22
+ @success = false
23
+ @error_message = e.message
24
+ end
25
+
26
+ @success = true
27
+ end
28
+ end
@@ -0,0 +1,48 @@
1
+ require_relative '../../app/models/notifun/message_template'
2
+ require 'rails'
3
+
4
+ class Notifun::Railtie < ::Rails::Railtie
5
+ railtie_name :notifun
6
+
7
+ console do
8
+ ActiveRecord::Base.connection
9
+ end
10
+
11
+ initializer "notifun.load_templates" do |config|
12
+ if ( File.basename($0) != 'rake' )
13
+ if !ActiveRecord::Base.connection.table_exists?('notifun_message_templates')
14
+ puts "Notifun not importing templates because Notifun tables don't exist."
15
+ else
16
+ if File.exists?('config/notifun_templates.json')
17
+ begin
18
+ template_json = JSON.parse(File.read("config/notifun_templates.json"))
19
+ rescue
20
+ puts "Notifun template json file is not valid json."
21
+ end
22
+
23
+ if template_json
24
+ template_json.each do |key, attributes|
25
+ begin
26
+ message_template = Notifun::MessageTemplate.where(key: key).first_or_initialize
27
+ message_template.attributes = attributes.slice("description", "category", "default_notification_methods", "backup_notification_methods", "merge_fields", "models", "editable", "preferences")
28
+ message_template.push_title ||= attributes["push_title"]
29
+ message_template.push_body ||= attributes["push_body"]
30
+ message_template.email_subject ||= attributes["email_subject"]
31
+ message_template.email_html ||= attributes["email_html"]
32
+ message_template.email_text ||= attributes["email_text"]
33
+
34
+ message_template.save!
35
+ rescue StandardError => e
36
+ puts "Failed to load message_template #{key}: #{e.message}"
37
+ end
38
+ end
39
+
40
+ puts "Notifun initialized successfully!"
41
+ end
42
+ else
43
+ puts "No Notifun message templates loaded because app/config/notifun_templates.json does not exist."
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,3 @@
1
+ module Notifun
2
+ VERSION = "1.6"
3
+ end
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'notifun/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "notifun"
8
+ spec.version = Notifun::VERSION
9
+ spec.authors = ["Brett Samson"]
10
+ spec.email = ["brett@tenforwardconsulting.com"]
11
+ spec.summary = %q{Notification management.}
12
+ spec.description = "Notification management."
13
+ spec.homepage = "https://github.com/tenforwardconsulting/notifun/"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "awesome_print"
22
+ spec.add_development_dependency "bundler"
23
+ spec.add_development_dependency "pry"
24
+ spec.add_development_dependency "rake"
25
+ spec.add_development_dependency "rspec", '~> 3.0'
26
+ end
@@ -0,0 +1,108 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require_relative '../lib/notifun/notification'
4
+ require_relative '../lib/notifun/message_template'
5
+
6
+ RSpec.describe Notifun do
7
+ let(:caddie_reminder_json) {%|
8
+ {
9
+ "caddie_reminder" : {
10
+ "description" : "Reminder that goes out to caddies the night before, the morning of, and 24 hours before a booking.",
11
+ "category" : "booking",
12
+ "default_notification_methods" : ["push", "email"],
13
+ "backup_notification_methods" : [],
14
+ "merge_fields" : {
15
+ "caddie_full_name" : "Name of the caddie",
16
+ "golfer_full_name" : "Full name of the golfer",
17
+ "tee_time" : "The tee time of the booking",
18
+ "tee_date" : "The date of the tee time",
19
+ "tee_date_and_time" : "The date and time of the booking",
20
+ "location" : "Name of the course",
21
+ "confirmation_code" : "Reference code for the caddie"
22
+ },
23
+ "push_body" : "Reminder: You signed up to caddie at {tee_date_and_time} at {location}. Confirmation Code: {confirmation_code}",
24
+ "email_subject" : "You have a booking scheduled for tomorrow.",
25
+ "email_html" : "<h3>Hello, {caddie_full_name},</h3><p>You signed up to caddie for {golfer_full_name} at {location} on <span class='confirmation-date'>{tee_date}</span> at <span class='confirmation-time'>{tee_time}</span></p><p><span class='uppercase'>Confirmation Code:</span><span class='confirmation-code'>{confirmation_code}</span></p>",
26
+ "email_text" : "Hello, {caddie_full_name}, You signed up to caddie for {golfer_full_name} at {location} on {tee_date} at {tee_time} Confirmation Code: {confirmation_code}"
27
+ }
28
+ }|
29
+ }
30
+ let!(:message_template) {
31
+ hash = JSON.parse(caddie_reminder_json)
32
+ message_template = Notifun::MessageTemplate.where(key: "caddie_reminder").first_or_initialize
33
+ message_template.attributes = hash["caddie_reminder"]
34
+ message_template.save!
35
+ message_template
36
+ }
37
+ let(:caddie) { FactoryGirl.create :caddie }
38
+ it "sends push and email since both are in default_notification_methods" do
39
+ message_template.update(default_notification_methods: ["push", "email"], backup_notification_methods: [])
40
+ expect(CloudFivePush).to receive(:notify!).with("Reminder: You signed up to caddie at Tuesday 10AM at Test Course. Confirmation Code: 123456", caddie.uuid)
41
+ expect(Notifun::MessageMailer).to receive(:send_message).with(caddie.email, "You have a booking scheduled for tomorrow.", "Hello, Test Caddie, You signed up to caddie for Test Golfer at Test Course on Tuesday at 10AM Confirmation Code: 123456", "<h3>Hello, Test Caddie,</h3><p>You signed up to caddie for Test Golfer at Test Course on <span class=\"confirmation-date\">Tuesday</span> at <span class=\"confirmation-time\">10AM</span></p><p><span class=\"uppercase\">Confirmation Code:</span><span class=\"confirmation-code\">123456</span></p>").and_call_original
42
+
43
+ Notifun.notify(caddie, :caddie_reminder, {
44
+ caddie_full_name: "Test Caddie",
45
+ golfer_full_name: "Test Golfer",
46
+ tee_date: "Tuesday",
47
+ tee_time: "10AM",
48
+ tee_date_and_time: "Tuesday 10AM",
49
+ location: "Test Course",
50
+ confirmation_code: "123456"
51
+ })
52
+
53
+ expect(message_template.reload.messages.count).to eq 2
54
+
55
+ message = message_template.messages.first
56
+ expect(message.message_template_key).to eq "caddie_reminder"
57
+ expect(message.uuid).to eq caddie.uuid
58
+ expect(message.recipient).to eq caddie.uuid
59
+ expect(message.notification_method).to eq "push"
60
+ expect(message.message_text).to eq "Reminder: You signed up to caddie at Tuesday 10AM at Test Course. Confirmation Code: 123456"
61
+
62
+ message = message_template.messages.last
63
+ expect(message.message_template_key).to eq "caddie_reminder"
64
+ expect(message.uuid).to eq caddie.uuid
65
+ expect(message.recipient).to eq caddie.email
66
+ expect(message.notification_method).to eq "email"
67
+ expect(message.message_text).to eq "<h3>Hello, Test Caddie,</h3><p>You signed up to caddie for Test Golfer at Test Course on <span class=\"confirmation-date\">Tuesday</span> at <span class=\"confirmation-time\">10AM</span></p><p><span class=\"uppercase\">Confirmation Code:</span><span class=\"confirmation-code\">123456</span></p>"
68
+ end
69
+
70
+ it "sends just push if email is in backup and push works" do
71
+ message_template.update(default_notification_methods: ["push"], backup_notification_methods: ["email"])
72
+
73
+ expect(CloudFivePush).to receive(:notify!)
74
+ expect(Notifun::MessageMailer).to_not receive(:send_message)
75
+
76
+ Notifun.notify(caddie, :caddie_reminder, {
77
+ caddie_full_name: "Test Caddie",
78
+ golfer_full_name: "Test Golfer",
79
+ tee_date: "Tuesday",
80
+ tee_time: "10AM",
81
+ tee_date_and_time: "Tuesday 10AM",
82
+ location: "Test Course",
83
+ confirmation_code: "123456"
84
+ })
85
+
86
+ expect(message_template.reload.messages.count).to eq 1
87
+ end
88
+
89
+ it "sends email if push fails to send" do
90
+ message_template.update(default_notification_methods: ["push"], backup_notification_methods: ["email"])
91
+ caddie.user.update(disable_push_notifications: true)
92
+
93
+ expect(CloudFivePush).to_not receive(:notify!)
94
+ expect(Notifun::MessageMailer).to receive(:send_message).and_call_original
95
+
96
+ Notifun.notify(caddie, :caddie_reminder, {
97
+ caddie_full_name: "Test Caddie",
98
+ golfer_full_name: "Test Golfer",
99
+ tee_date: "Tuesday",
100
+ tee_time: "10AM",
101
+ tee_date_and_time: "Tuesday 10AM",
102
+ location: "Test Course",
103
+ confirmation_code: "123456"
104
+ })
105
+
106
+ expect(message_template.reload.messages.count).to eq 1
107
+ end
108
+ end
@@ -0,0 +1,88 @@
1
+ # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
4
+ # this file to always be loaded, without a need to explicitly require it in any
5
+ # files.
6
+ #
7
+ # Given that it is always loaded, you are encouraged to keep this file as
8
+ # light-weight as possible. Requiring heavyweight dependencies from this file
9
+ # will add to the boot time of your test suite on EVERY test run, even for an
10
+ # individual file that may not need all of that loaded. Instead, consider making
11
+ # a separate helper file that requires the additional dependencies and performs
12
+ # the additional setup, and require it from the spec files that actually need
13
+ # it.
14
+ #
15
+ # The `.rspec` file also contains a few flags that are not defaults but that
16
+ # users commonly want.
17
+ #
18
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19
+ RSpec.configure do |config|
20
+ # rspec-expectations config goes here. You can use an alternate
21
+ # assertion/expectation library such as wrong or the stdlib/minitest
22
+ # assertions if you prefer.
23
+ config.expect_with :rspec do |expectations|
24
+ # This option will default to `true` in RSpec 4. It makes the `description`
25
+ # and `failure_message` of custom matchers include text for helper methods
26
+ # defined using `chain`, e.g.:
27
+ # be_bigger_than(2).and_smaller_than(4).description
28
+ # # => "be bigger than 2 and smaller than 4"
29
+ # ...rather than:
30
+ # # => "be bigger than 2"
31
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
32
+ end
33
+
34
+ # rspec-mocks config goes here. You can use an alternate test double
35
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
36
+ config.mock_with :rspec do |mocks|
37
+ # Prevents you from mocking or stubbing a method that does not exist on
38
+ # a real object. This is generally recommended, and will default to
39
+ # `true` in RSpec 4.
40
+ mocks.verify_partial_doubles = true
41
+ end
42
+
43
+ # These two settings work together to allow you to limit a spec run
44
+ # to individual examples or groups you care about by tagging them with
45
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
46
+ # get run.
47
+ config.filter_run :focus
48
+ config.run_all_when_everything_filtered = true
49
+
50
+ # Allows RSpec to persist some state between runs in order to support
51
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
52
+ # you configure your source control system to ignore this file.
53
+ config.example_status_persistence_file_path = "spec/examples.txt"
54
+
55
+ # Limits the available syntax to the non-monkey patched syntax that is
56
+ # recommended. For more details, see:
57
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
58
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
59
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
60
+ config.disable_monkey_patching!
61
+
62
+ # Many RSpec users commonly either run the entire suite or an individual
63
+ # file, and it's useful to allow more verbose output when running an
64
+ # individual spec file.
65
+ if config.files_to_run.one?
66
+ # Use the documentation formatter for detailed output,
67
+ # unless a formatter has already been configured
68
+ # (e.g. via a command-line flag).
69
+ config.default_formatter = 'doc'
70
+ end
71
+
72
+ # Print the 10 slowest examples and example groups at the
73
+ # end of the spec run, to help surface which specs are running
74
+ # particularly slow.
75
+ #config.profile_examples = 10
76
+
77
+ # Run specs in random order to surface order dependencies. If you find an
78
+ # order dependency and want to debug it, you can fix the order by providing
79
+ # the seed, which is printed after each run.
80
+ # --seed 1234
81
+ config.order = :random
82
+
83
+ # Seed global randomization in this process using the `--seed` CLI option.
84
+ # Setting this allows you to use `--seed` to deterministically reproduce
85
+ # test failures related to randomization by passing the same `--seed` value
86
+ # as the one that triggered the failure.
87
+ Kernel.srand config.seed
88
+ end
metadata ADDED
@@ -0,0 +1,156 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: notifun
3
+ version: !ruby/object:Gem::Version
4
+ version: '1.6'
5
+ platform: ruby
6
+ authors:
7
+ - Brett Samson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-04-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: awesome_print
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: bundler
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: pry
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: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
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: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ description: Notification management.
84
+ email:
85
+ - brett@tenforwardconsulting.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".ruby-gemset"
92
+ - ".ruby-version"
93
+ - Gemfile
94
+ - Gemfile.lock
95
+ - README.md
96
+ - app/assets/stylesheets/notifun.sass
97
+ - app/controllers/notifun/message_templates_controller.rb
98
+ - app/controllers/notifun/messages_controller.rb
99
+ - app/controllers/notifun/preferences_controller.rb
100
+ - app/mailers/notifun/message_mailer.rb
101
+ - app/models/notifun/message.rb
102
+ - app/models/notifun/message_template.rb
103
+ - app/models/notifun/preference.rb
104
+ - app/views/notifun/message_templates/edit.html.haml
105
+ - app/views/notifun/message_templates/index.html.haml
106
+ - app/views/notifun/messages/index.haml
107
+ - app/views/notifun/messages/show.haml
108
+ - app/views/notifun/preferences/index.haml
109
+ - config/routes.rb
110
+ - lib/generators/notifun/install_generator.rb
111
+ - lib/generators/notifun/templates/migration.rb
112
+ - lib/generators/notifun/templates/notifun.rb
113
+ - lib/generators/notifun/templates/notifun_add_push_title.rb
114
+ - lib/generators/notifun/templates/notifun_templates.json
115
+ - lib/notifun.rb
116
+ - lib/notifun/configuration.rb
117
+ - lib/notifun/engine.rb
118
+ - lib/notifun/notification.rb
119
+ - lib/notifun/notifiers/cloud_five_notifier.rb
120
+ - lib/notifun/notifiers/email_notifier.rb
121
+ - lib/notifun/notifiers/empty_notifier.rb
122
+ - lib/notifun/notifiers/notifier.rb
123
+ - lib/notifun/notifiers/parent_notifier.rb
124
+ - lib/notifun/notifiers/twilio_notifier.rb
125
+ - lib/notifun/railtie.rb
126
+ - lib/notifun/version.rb
127
+ - notifun.gemspec
128
+ - spec/notifun_spec.rb
129
+ - spec/spec_helper.rb
130
+ homepage: https://github.com/tenforwardconsulting/notifun/
131
+ licenses:
132
+ - MIT
133
+ metadata: {}
134
+ post_install_message:
135
+ rdoc_options: []
136
+ require_paths:
137
+ - lib
138
+ required_ruby_version: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ required_rubygems_version: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
148
+ requirements: []
149
+ rubyforge_project:
150
+ rubygems_version: 2.7.8
151
+ signing_key:
152
+ specification_version: 4
153
+ summary: Notification management.
154
+ test_files:
155
+ - spec/notifun_spec.rb
156
+ - spec/spec_helper.rb