notify_user 0.0.29 → 0.0.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +61 -6
- data/app/models/notify_user/houston.rb +4 -1
- data/lib/generators/notify_user/install/templates/initializer.rb +0 -3
- data/lib/notify_user/version.rb +1 -1
- data/lib/notify_user.rb +0 -4
- data/spec/dummy/rails-3.2.17/app/notifications/new_post_notification.rb +6 -2
- data/spec/dummy/rails-3.2.17/config/initializers/secret_token.rb +1 -1
- data/spec/dummy/rails-3.2.17/config/keys/development_push.pem +0 -0
- data/spec/dummy/rails-3.2.17/db/migrate/{20150106040852_create_users.rb → 20141102231350_create_users.rb} +0 -0
- data/spec/dummy/rails-3.2.17/db/migrate/{20150106040854857857604000_create_notify_user_notifications.rb → 20141102231353649649586000_create_notify_user_notifications.rb} +0 -0
- data/spec/dummy/rails-3.2.17/db/migrate/{20150106040854860860323000_create_notify_user_unsubscribes.rb → 20141102231353650650817000_create_notify_user_unsubscribes.rb} +0 -0
- data/spec/dummy/rails-3.2.17/db/migrate/{20150106040854862862248000_create_notify_user_user_hashes.rb → 20141102231353651651843000_create_notify_user_user_hashes.rb} +0 -0
- data/spec/dummy/rails-3.2.17/db/schema.rb +1 -1
- data/spec/dummy/rails-3.2.17/log/test.log +9319 -678
- data/spec/dummy/rails-4.0.4/app/notifications/new_post_notification.rb +6 -2
- data/spec/dummy/rails-4.0.4/config/initializers/secret_token.rb +1 -1
- data/spec/dummy/rails-4.0.4/config/keys/development_push.pem +136 -0
- data/spec/dummy/rails-4.0.4/db/migrate/{20140624075850_create_users.rb → 20141102231412_create_users.rb} +0 -0
- data/spec/dummy/rails-4.0.4/db/migrate/{20140624075852587587217000_create_notify_user_notifications.rb → 20141102231413669669843000_create_notify_user_notifications.rb} +0 -0
- data/spec/dummy/rails-4.0.4/db/migrate/{20140624075852588588765000_create_notify_user_unsubscribes.rb → 20141102231413670670945000_create_notify_user_unsubscribes.rb} +0 -0
- data/spec/dummy/rails-4.0.4/db/migrate/{20140624075852590590153000_create_notify_user_user_hashes.rb → 20141102231413671671735000_create_notify_user_user_hashes.rb} +0 -0
- data/spec/dummy/rails-4.0.4/db/schema.rb +1 -1
- data/spec/dummy/rails-4.0.4/log/test.log +33797 -68931
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{9c7f6978ddc871d6e3ac0032be398a00 → 0e8918f38b9bf3fc19fca4efda1600a1} +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/1bded108b40ef13c7e07be129e2cd83c +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/1ebdd9dfe7e88e90bee37951e2da1ea2 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/23fe609acece1521082ad6b8249f96b1 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{5c85b1b5ac27b699c5f800c4e7ec82fb → 40fd179449501b801f80c852d1635a16} +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{35025e256922e55fb999ec21dd95fa29 → 4499e16a29d89bdf30304de41c456b43} +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{c5b062f65e9c52603e1d81e4a1e66a86 → 49088e1598df49c63ff7d874c97e958f} +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{1d6bc1877ba2bbb89f393e10e8303d39 → 7398a3a743326d3576cbb05a000df04b} +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{fa138a16887e031c0ae1b4caccfb4c05 → 8eedfb1d9aee665c9f5a77df67b64a81} +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/91d718eeae4552c702b8eafd9e8bbe76 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/9e2c26ef339b5827a5c296acb284ab99 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{fa5fa8289c6899f4bf819fb198773fcf → a4f2f445b4f8578493957e4f7b0c76e3} +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/af361e697648848dbf0282eba1d15c2f +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{80e5f8379c6b79f7685b1a2124c2c032 → af95fe3d35c9fe417700e8c3625329fe} +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/b89f385c2540cb58f04dbfed561d3902 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{0a7202620c53dddd506d0a94e2800d40 → bc1864fd5bfa875243b05071735cbb82} +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{0d3ce22aa7fdd86ca27a4cf75e4f57d7 → bede0f0813e15081ea4ee32b640c92c4} +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/c1ba4e65491e8bb9fcdc38b22cb64aa9 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/cb741827a22668ecf975f78242076b6b +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{8bab520aad78da438df1c428288cf229 → d3516b65bb025bc333e0f91647a7b119} +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/df7c1d81da90fb0287da1e283291dc81 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/f78ea05f6019d54c3572513ebae03556 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{8b79deab756579c0e92b62a86f6a5fef → f7c2f64864ec1995aee8dcead45d7f24} +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/fbbb5b21a4144f5e3efee9eda4fc38e5 +0 -0
- data/spec/dummy/rails-4.1.0/Gemfile +37 -0
- data/spec/dummy/rails-4.1.0/README.rdoc +28 -0
- data/spec/dummy/rails-4.1.0/Rakefile +6 -0
- data/spec/dummy/rails-4.1.0/app/assets/javascripts/application.js +16 -0
- data/spec/dummy/rails-4.1.0/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/rails-4.1.0/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/rails-4.1.0/app/controllers/notify_user/notifications_controller.rb +9 -0
- data/spec/dummy/rails-4.1.0/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/rails-4.1.0/app/models/user.rb +2 -0
- data/spec/dummy/rails-4.1.0/app/notifications/new_post_notification.rb +15 -0
- data/spec/dummy/rails-4.1.0/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/rails-4.1.0/app/views/notify_user/layouts/action_mailer.html.erb +39 -0
- data/spec/dummy/rails-4.1.0/app/views/notify_user/new_post_notification/action_mailer/notification.html.erb +1 -0
- data/spec/dummy/rails-4.1.0/bin/bundle +3 -0
- data/spec/dummy/rails-4.1.0/bin/rails +4 -0
- data/spec/dummy/rails-4.1.0/bin/rake +4 -0
- data/spec/dummy/rails-4.1.0/config/application.rb +23 -0
- data/spec/dummy/rails-4.1.0/config/boot.rb +4 -0
- data/spec/dummy/rails-4.1.0/config/database.yml +24 -0
- data/spec/dummy/rails-4.1.0/config/environment.rb +5 -0
- data/spec/dummy/rails-4.1.0/config/environments/development.rb +37 -0
- data/spec/dummy/rails-4.1.0/config/environments/production.rb +83 -0
- data/spec/dummy/rails-4.1.0/config/environments/test.rb +39 -0
- data/spec/dummy/rails-4.1.0/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/rails-4.1.0/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/rails-4.1.0/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/rails-4.1.0/config/initializers/inflections.rb +16 -0
- data/spec/dummy/rails-4.1.0/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/rails-4.1.0/config/initializers/notify_user.rb +14 -0
- data/spec/dummy/rails-4.1.0/config/initializers/session_store.rb +3 -0
- data/spec/dummy/rails-4.1.0/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/rails-4.1.0/config/locales/en.yml +23 -0
- data/spec/dummy/rails-4.1.0/config/routes.rb +56 -0
- data/spec/dummy/rails-4.1.0/config/secrets.yml +22 -0
- data/spec/dummy/rails-4.1.0/config.ru +4 -0
- data/spec/dummy/rails-4.1.0/db/migrate/20141102231432_create_users.rb +9 -0
- data/spec/dummy/rails-4.1.0/db/migrate/20141102231434012012157000_create_notify_user_notifications.rb +13 -0
- data/spec/dummy/rails-4.1.0/db/migrate/20141102231434013013078000_create_notify_user_unsubscribes.rb +10 -0
- data/spec/dummy/rails-4.1.0/db/migrate/20141102231434013013847000_create_notify_user_user_hashes.rb +12 -0
- data/spec/dummy/rails-4.1.0/db/schema.rb +53 -0
- data/spec/dummy/rails-4.1.0/db/seeds.rb +7 -0
- data/spec/dummy/rails-4.1.0/log/test.log +11433 -0
- data/spec/dummy/rails-4.1.0/public/404.html +67 -0
- data/spec/dummy/rails-4.1.0/public/422.html +67 -0
- data/spec/dummy/rails-4.1.0/public/500.html +66 -0
- data/spec/dummy/rails-4.1.0/public/favicon.ico +0 -0
- data/spec/dummy/rails-4.1.0/public/robots.txt +5 -0
- data/spec/dummy/rails-4.1.0/test/fixtures/users.yml +7 -0
- data/spec/dummy/rails-4.1.0/test/models/user_test.rb +7 -0
- data/spec/dummy/rails-4.1.0/test/test_helper.rb +13 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/{rails-4.0.4/tmp/cache/assets/test/sprockets/13195a56ea8581e42f709ea01ea4604f → rails-4.1.0/tmp/cache/assets/test/sprockets/1bded108b40ef13c7e07be129e2cd83c} +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/1ebdd9dfe7e88e90bee37951e2da1ea2 +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/23fe609acece1521082ad6b8249f96b1 +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/3fa5cc1bc06bfb81887b971eb8d36258 +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/796287194e2490ae173cabd0f8e0fce7 +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/8d2563dcd2d59f9e020fc2623eda3999 +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/8ebc0d0c963e18c7c16e6e7f55fd379f +0 -0
- data/spec/dummy/{rails-4.0.4/tmp/cache/assets/test/sprockets/311d2b645a860b78f79ff156f12092ce → rails-4.1.0/tmp/cache/assets/test/sprockets/91d718eeae4552c702b8eafd9e8bbe76} +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/9e2c26ef339b5827a5c296acb284ab99 +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/a098882f88a8b3ca91d2efaada23dba3 +0 -0
- data/spec/dummy/{rails-4.0.4/tmp/cache/assets/test/sprockets/39651f0f2ac78423732234ebf092c632 → rails-4.1.0/tmp/cache/assets/test/sprockets/af361e697648848dbf0282eba1d15c2f} +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/b89f385c2540cb58f04dbfed561d3902 +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/c1ba4e65491e8bb9fcdc38b22cb64aa9 +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/cb741827a22668ecf975f78242076b6b +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/df7c1d81da90fb0287da1e283291dc81 +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/f031b3342a7246183ffa1bb7819f293e +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/f78ea05f6019d54c3572513ebae03556 +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/fbbb5b21a4144f5e3efee9eda4fc38e5 +0 -0
- metadata +219 -57
- data/spec/dummy/rails-3.2.17/app/views/notify_user/new_post_notification/mobile_sdk/notification.html.erb +0 -1
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/148f39f7dc2ea6cb194598111dbd4598 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/68752c7ddc300bee3e9823db8befc306 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/8698d6fed0ef2f173a377160752b959f +0 -0
Binary file
|
data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
CHANGED
Binary file
|
data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
CHANGED
Binary file
|
Binary file
|
data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
CHANGED
Binary file
|
Binary file
|
@@ -0,0 +1,37 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
|
4
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
5
|
+
gem 'rails', '4.1.0'
|
6
|
+
# Use postgresql as the database for Active Record
|
7
|
+
gem 'pg'
|
8
|
+
# Use SCSS for stylesheets
|
9
|
+
gem 'sass-rails', '~> 4.0.3'
|
10
|
+
# Use Uglifier as compressor for JavaScript assets
|
11
|
+
gem 'uglifier', '>= 1.3.0'
|
12
|
+
# Use CoffeeScript for .js.coffee assets and views
|
13
|
+
gem 'coffee-rails', '~> 4.0.0'
|
14
|
+
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
15
|
+
# gem 'therubyracer', platforms: :ruby
|
16
|
+
|
17
|
+
# Use jquery as the JavaScript library
|
18
|
+
gem 'jquery-rails'
|
19
|
+
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
20
|
+
gem 'turbolinks'
|
21
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
22
|
+
gem 'jbuilder', '~> 2.0'
|
23
|
+
# bundle exec rake doc:rails generates the API under doc/api.
|
24
|
+
gem 'sdoc', '~> 0.4.0', group: :doc
|
25
|
+
|
26
|
+
# Use ActiveModel has_secure_password
|
27
|
+
# gem 'bcrypt', '~> 3.1.7'
|
28
|
+
|
29
|
+
# Use unicorn as the app server
|
30
|
+
# gem 'unicorn'
|
31
|
+
|
32
|
+
# Use Capistrano for deployment
|
33
|
+
# gem 'capistrano-rails', group: :development
|
34
|
+
|
35
|
+
# Use debugger
|
36
|
+
# gem 'debugger', group: [:development, :test]
|
37
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
== README
|
2
|
+
|
3
|
+
This README would normally document whatever steps are necessary to get the
|
4
|
+
application up and running.
|
5
|
+
|
6
|
+
Things you may want to cover:
|
7
|
+
|
8
|
+
* Ruby version
|
9
|
+
|
10
|
+
* System dependencies
|
11
|
+
|
12
|
+
* Configuration
|
13
|
+
|
14
|
+
* Database creation
|
15
|
+
|
16
|
+
* Database initialization
|
17
|
+
|
18
|
+
* How to run the test suite
|
19
|
+
|
20
|
+
* Services (job queues, cache servers, search engines, etc.)
|
21
|
+
|
22
|
+
* Deployment instructions
|
23
|
+
|
24
|
+
* ...
|
25
|
+
|
26
|
+
|
27
|
+
Please feel free to use a different markup language if you do not plan to run
|
28
|
+
<tt>rake doc:app</tt>.
|
@@ -0,0 +1,16 @@
|
|
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 vendor/assets/javascripts of plugins, if any, 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/sstephenson/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require jquery_ujs
|
15
|
+
//= require turbolinks
|
16
|
+
//= require_tree .
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
+
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
+
* file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
@@ -0,0 +1,9 @@
|
|
1
|
+
class NotifyUser::NotificationsController < NotifyUser::BaseNotificationsController
|
2
|
+
def redirect_logic(notification)
|
3
|
+
render :text => "set redirect logic in notify_user/notifications_controller.rb"
|
4
|
+
# notification redirect logic goes here
|
5
|
+
# class_name = notification.params[:type].capitalize.constantize
|
6
|
+
# object = class_name.find(@notification.params[:id])
|
7
|
+
# redirect_to property_url(object)
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class NewPostNotification < NotifyUser::BaseNotification
|
2
|
+
|
3
|
+
channel :action_mailer,
|
4
|
+
subject: "Rails410: You have a new Newpostnotification notification.",
|
5
|
+
aggregate: {
|
6
|
+
subject: "Rails410: You have new Newpostnotification notifications."
|
7
|
+
}
|
8
|
+
|
9
|
+
self.description = "please override this type description"
|
10
|
+
self.aggregate_per = 10.minutes
|
11
|
+
|
12
|
+
def message
|
13
|
+
"New Post Notification happened with #{params.as_json}"
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Rails410</title>
|
5
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
6
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<%= yield %>
|
12
|
+
|
13
|
+
</body>
|
14
|
+
</html>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
5
|
+
<title></title>
|
6
|
+
</head>
|
7
|
+
|
8
|
+
<body marginheight="0" topmargin="0" marginwidth="0" leftmargin="0" style="margin: 0px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;">
|
9
|
+
<div style="width: 100%; height: 70px; margin: 0; padding: 0;">
|
10
|
+
<div style="width: 600px; margin: 0 auto; padding: 15px 0;">
|
11
|
+
Logo
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
<div style="width: 100%; background-color: #fff; margin: 0; padding: 0;">
|
15
|
+
<div style="width: 500px; margin: 0 auto; padding: 40px 0; ">
|
16
|
+
<%= yield %>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
<div style="width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
20
|
+
<div style="width: 600px; margin: 0 auto; padding: 0;">
|
21
|
+
<% if is_unsubscribeable? @notification %>
|
22
|
+
<p style="text-align: center;">
|
23
|
+
<%= unsubscribe_link(@notification, "Unsubscribe") %>
|
24
|
+
</p>
|
25
|
+
<%
|
26
|
+
end %>
|
27
|
+
<p style="text-align: center;">
|
28
|
+
This is the default generated layout. A privacy declaration could go here.
|
29
|
+
</p>
|
30
|
+
<p style="text-align: center; margin-bottom: 0px;">
|
31
|
+
© MyCompany Pty Ltd
|
32
|
+
</p>
|
33
|
+
<p style="text-align: center; margin-top: 0px; padding-top: 0px;">
|
34
|
+
ABN 123 456 789
|
35
|
+
</p>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</body>
|
39
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
New Post Notification happened.
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require 'rails/all'
|
4
|
+
|
5
|
+
# Require the gems listed in Gemfile, including any gems
|
6
|
+
# you've limited to :test, :development, or :production.
|
7
|
+
Bundler.require(*Rails.groups)
|
8
|
+
|
9
|
+
module Rails410
|
10
|
+
class Application < Rails::Application
|
11
|
+
# Settings in config/environments/* take precedence over those specified here.
|
12
|
+
# Application configuration should go into files in config/initializers
|
13
|
+
# -- all .rb files in that directory are automatically loaded.
|
14
|
+
|
15
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
16
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
17
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
18
|
+
|
19
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
20
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
21
|
+
# config.i18n.default_locale = :de
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
development:
|
2
|
+
adapter: postgresql
|
3
|
+
encoding: unicode
|
4
|
+
database: notify_user_development
|
5
|
+
host: localhost
|
6
|
+
pool: 5
|
7
|
+
timeout: 5000
|
8
|
+
|
9
|
+
test:
|
10
|
+
adapter: postgresql
|
11
|
+
encoding: unicode
|
12
|
+
database: notify_user_test
|
13
|
+
host: localhost
|
14
|
+
pool: 5
|
15
|
+
timeout: 5000
|
16
|
+
|
17
|
+
|
18
|
+
production:
|
19
|
+
adapter: postgresql
|
20
|
+
encoding: unicode
|
21
|
+
database: notify_user_production
|
22
|
+
host: localhost
|
23
|
+
pool: 5
|
24
|
+
timeout: 5000
|
@@ -0,0 +1,37 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Do not eager load code on boot.
|
10
|
+
config.eager_load = false
|
11
|
+
|
12
|
+
# Show full error reports and disable caching.
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send.
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger.
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
# Raise an error on page load if there are pending migrations.
|
23
|
+
config.active_record.migration_error = :page_load
|
24
|
+
|
25
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
26
|
+
# This option may cause significant delays in view rendering with a large
|
27
|
+
# number of complex assets.
|
28
|
+
config.assets.debug = true
|
29
|
+
|
30
|
+
# Adds additional error checking when serving assets at runtime.
|
31
|
+
# Checks for improperly declared sprockets dependencies.
|
32
|
+
# Raises helpful error messages.
|
33
|
+
config.assets.raise_runtime_errors = true
|
34
|
+
|
35
|
+
# Raises error for missing translations
|
36
|
+
# config.action_view.raise_on_missing_translations = true
|
37
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# Code is not reloaded between requests.
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Eager load code on boot. This eager loads most of Rails and
|
8
|
+
# your application in memory, allowing both threaded web servers
|
9
|
+
# and those relying on copy on write to perform better.
|
10
|
+
# Rake tasks automatically ignore this option for performance.
|
11
|
+
config.eager_load = true
|
12
|
+
|
13
|
+
# Full error reports are disabled and caching is turned on.
|
14
|
+
config.consider_all_requests_local = false
|
15
|
+
config.action_controller.perform_caching = true
|
16
|
+
|
17
|
+
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
18
|
+
# Add `rack-cache` to your Gemfile before enabling this.
|
19
|
+
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
|
20
|
+
# config.action_dispatch.rack_cache = true
|
21
|
+
|
22
|
+
# Disable Rails's static asset server (Apache or nginx will already do this).
|
23
|
+
config.serve_static_assets = false
|
24
|
+
|
25
|
+
# Compress JavaScripts and CSS.
|
26
|
+
config.assets.js_compressor = :uglifier
|
27
|
+
# config.assets.css_compressor = :sass
|
28
|
+
|
29
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
30
|
+
config.assets.compile = false
|
31
|
+
|
32
|
+
# Generate digests for assets URLs.
|
33
|
+
config.assets.digest = true
|
34
|
+
|
35
|
+
# Version of your assets, change this if you want to expire all your assets.
|
36
|
+
config.assets.version = '1.0'
|
37
|
+
|
38
|
+
# Specifies the header that your server uses for sending files.
|
39
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
40
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
41
|
+
|
42
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
43
|
+
# config.force_ssl = true
|
44
|
+
|
45
|
+
# Set to :debug to see everything in the log.
|
46
|
+
config.log_level = :info
|
47
|
+
|
48
|
+
# Prepend all log lines with the following tags.
|
49
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
50
|
+
|
51
|
+
# Use a different logger for distributed setups.
|
52
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
53
|
+
|
54
|
+
# Use a different cache store in production.
|
55
|
+
# config.cache_store = :mem_cache_store
|
56
|
+
|
57
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
58
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
59
|
+
|
60
|
+
# Precompile additional assets.
|
61
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
62
|
+
# config.assets.precompile += %w( search.js )
|
63
|
+
|
64
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
65
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
66
|
+
# config.action_mailer.raise_delivery_errors = false
|
67
|
+
|
68
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
69
|
+
# the I18n.default_locale when a translation cannot be found).
|
70
|
+
config.i18n.fallbacks = true
|
71
|
+
|
72
|
+
# Send deprecation notices to registered listeners.
|
73
|
+
config.active_support.deprecation = :notify
|
74
|
+
|
75
|
+
# Disable automatic flushing of the log to improve performance.
|
76
|
+
# config.autoflush_log = false
|
77
|
+
|
78
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
79
|
+
config.log_formatter = ::Logger::Formatter.new
|
80
|
+
|
81
|
+
# Do not dump schema after migrations.
|
82
|
+
config.active_record.dump_schema_after_migration = false
|
83
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
+
# just for the purpose of running a single test. If you are using a tool that
|
12
|
+
# preloads Rails for running tests, you may have to set it to true.
|
13
|
+
config.eager_load = false
|
14
|
+
|
15
|
+
# Configure static asset server for tests with Cache-Control for performance.
|
16
|
+
config.serve_static_assets = true
|
17
|
+
config.static_cache_control = 'public, max-age=3600'
|
18
|
+
|
19
|
+
# Show full error reports and disable caching.
|
20
|
+
config.consider_all_requests_local = true
|
21
|
+
config.action_controller.perform_caching = false
|
22
|
+
|
23
|
+
# Raise exceptions instead of rendering exception templates.
|
24
|
+
config.action_dispatch.show_exceptions = false
|
25
|
+
|
26
|
+
# Disable request forgery protection in test environment.
|
27
|
+
config.action_controller.allow_forgery_protection = false
|
28
|
+
|
29
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
30
|
+
# The :test delivery method accumulates sent emails in the
|
31
|
+
# ActionMailer::Base.deliveries array.
|
32
|
+
config.action_mailer.delivery_method = :test
|
33
|
+
|
34
|
+
# Print deprecation notices to the stderr.
|
35
|
+
config.active_support.deprecation = :stderr
|
36
|
+
|
37
|
+
# Raises error for missing translations
|
38
|
+
# config.action_view.raise_on_missing_translations = true
|
39
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
NotifyUser.setup do |config|
|
2
|
+
|
3
|
+
# Override the email address from which notifications appear to be sent.
|
4
|
+
config.mailer_sender = "please-change-me-at-config-initializers-notify-user@example.com"
|
5
|
+
|
6
|
+
# NotifyUser will call this within NotificationsController to ensure the user is authenticated.
|
7
|
+
config.authentication_method = :authenticate_user!
|
8
|
+
|
9
|
+
# NotifyUser will call this within NotificationsController to return the current logged in user.
|
10
|
+
config.current_user_method = :current_user
|
11
|
+
|
12
|
+
# Override the default notification type
|
13
|
+
config.unsubscribable_notifications = ['NewPostNotification']
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|