Skip to content

Commit dfdea28

Browse files
committed
Merge branch 'master' into development
2 parents e3f52be + 52b0b8c commit dfdea28

42 files changed

Lines changed: 268 additions & 264 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ Enhancements:
330330

331331
Bug Fixes:
332332

333-
* Fix a bug which ActivityNotificaion.config.mailer configuration was ignored
333+
* Fix a bug which ActivityNotification.config.mailer configuration was ignored
334334

335335
## 1.4.1 / 2017-05-17
336336
[Full Changelog](http://github.com/simukappu/activity_notification/compare/v1.4.0...v1.4.1)

app/channels/activity_notification/notification_api_with_devise_channel.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def find_current_target(devise_type = nil)
1818
end
1919

2020
# Set @target instance variable from request parameters.
21-
# This method overrides super (ActivityNotiication::NotificationChannel#set_target)
21+
# This method overrides super (ActivityNotification::NotificationChannel#set_target)
2222
# to set devise authenticated target when the target_id params is not specified.
2323
# @api protected
2424
# @return [Object] Target instance (Reject subscription when request parameters are not enough)

app/channels/activity_notification/notification_with_devise_channel.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def session
2323
end
2424

2525
# Sets @target instance variable from request parameters.
26-
# This method override super (ActivityNotiication::NotificationChannel#set_target)
26+
# This method override super (ActivityNotification::NotificationChannel#set_target)
2727
# to set devise authenticated target when the target_id params is not specified.
2828
# @api protected
2929
# @return [Object] Target instance (Reject subscription when request parameters are not enough)

app/jobs/activity_notification/notify_all_job.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class ActivityNotification::NotifyAllJob < ActivityNotification.config.parent_jo
1616
# @option options [Boolean] :send_email (true) Whether it sends notification email
1717
# @option options [Boolean] :send_later (true) Whether it sends notification email asynchronously
1818
# @option options [Boolean] :publish_optional_targets (true) Whether it publishes notification to optional targets
19-
# @option options [Hash<String, Hash>] :optional_targets ({}) Options for optional targets, keys are optional target name (:amazon_sns or :slack etc) and values are options
20-
# @return [Array<Notificaion>] Array of generated notifications
19+
# @option options [Hash<String, Hash>] :optional_targets ({}) Options for optional targets, keys are optional target name (:amazon_sns or :slack etc.) and values are options
20+
# @return [Array<Notification>] Array of generated notifications
2121
def perform(targets, notifiable, options = {})
2222
ActivityNotification::Notification.notify_all(targets, notifiable, options)
2323
end

app/jobs/activity_notification/notify_job.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ class ActivityNotification::NotifyJob < ActivityNotification.config.parent_job.c
1717
# @option options [Boolean] :send_later (true) Whether it sends notification email asynchronously
1818
# @option options [Boolean] :publish_optional_targets (true) Whether it publishes notification to optional targets
1919
# @option options [Boolean] :pass_full_options (false) Whether it passes full options to notifiable.notification_targets, not a key only
20-
# @option options [Hash<String, Hash>] :optional_targets ({}) Options for optional targets, keys are optional target name (:amazon_sns or :slack etc) and values are options
21-
# @return [Array<Notificaion>] Array of generated notifications
20+
# @option options [Hash<String, Hash>] :optional_targets ({}) Options for optional targets, keys are optional target name (:amazon_sns or :slack etc.) and values are options
21+
# @return [Array<Notification>] Array of generated notifications
2222
def perform(target_type, notifiable, options = {})
2323
ActivityNotification::Notification.notify(target_type, notifiable, options)
2424
end

app/jobs/activity_notification/notify_to_job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ActivityNotification::NotifyToJob < ActivityNotification.config.parent_job
1616
# @option options [Boolean] :send_email (true) Whether it sends notification email
1717
# @option options [Boolean] :send_later (true) Whether it sends notification email asynchronously
1818
# @option options [Boolean] :publish_optional_targets (true) Whether it publishes notification to optional targets
19-
# @option options [Hash<String, Hash>] :optional_targets ({}) Options for optional targets, keys are optional target name (:amazon_sns or :slack etc) and values are options
19+
# @option options [Hash<String, Hash>] :optional_targets ({}) Options for optional targets, keys are optional target name (:amazon_sns or :slack etc.) and values are options
2020
# @return [Notification] Generated notification instance
2121
def perform(target, notifiable, options = {})
2222
ActivityNotification::Notification.notify_to(target, notifiable, options)

app/mailers/activity_notification/mailer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if defined?(ActionMailer)
2-
# Mailer for email notification of ActivityNotificaion.
2+
# Mailer for email notification of ActivityNotification.
33
class ActivityNotification::Mailer < ActivityNotification.config.parent_mailer.constantize
44
include ActivityNotification::Mailers::Helpers
55

app/views/activity_notification/mailer/default/batch_default.text.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Dear <%= @target.printable_target_name %>
22

3-
You have recieved follwing notifications.
3+
You have received the following notifications.
44

55
<% @notifications.each do |notification| %>
66
<%= notification.notifier.present? ? notification.notifier.printable_notifier_name : 'Someone' %> notified you of <%= notification.notifiable.printable_notifiable_name(notification.target) %><%= " in #{notification.group.printable_group_name}" if notification.group.present? %>.

app/views/activity_notification/notifications/default/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
$(".notifications").prepend(notification.group_owner_view);
6868
$(".notification_count").html("<span class=unopened>" + notification.unopened_notification_count + "</span>");
6969
}
70-
// Push notificaion using Web Notification API by Push.js
70+
// Push notification using Web Notification API by Push.js
7171
Push.create('ActivityNotification', {
7272
body: notification.text,
7373
timeout: 5000,

app/views/activity_notification/subscriptions/default/_notification_keys.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<% target.notifications.filtered_by_key(key).latest.optional_target_names.each do |optional_target_name| %>
5050
<div class="field_label">
5151
<label>
52-
Optional tagret (<%= optional_target_name %>)
52+
Optional target (<%= optional_target_name %>)
5353
</label>
5454
</div>
5555
<div class="field">

0 commit comments

Comments
 (0)