notification-renderer 2.0.0 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45d08ece9c88b27c6b02817df0bb024c67d2dbfa25abc47670cd40abf627b5a7
|
4
|
+
data.tar.gz: dfe4f0c9f612eb33c2a6b98dd7b9b245c013d1a26b2ae2de0a0ce56b132aa0d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4931d21f3a3d7091ff47e2dcc611a4cffbdca56b32c9cf29faa2e595a69db2650cab3abf621a9add609ab83698c6bd8e006421dfa4bf8134919f7df90163af17
|
7
|
+
data.tar.gz: 44d5130d0b8bd97ba289239d2ed1d09f388da6961d901531b7f07f4ca421620efcbf05c8c20c0672f5b1aaa7db338a577c8f1003cd5fcd294546879323f962ec
|
data/README.md
CHANGED
@@ -198,7 +198,7 @@ This will render the last notification for every group and pass the attributes v
|
|
198
198
|
<!-- Renderer -->
|
199
199
|
|
200
200
|
<% if notification_grouped? %>
|
201
|
-
<%= notification.target.name %> and <%= (notifications.
|
201
|
+
<%= notification.target.name %> and <%= (notifications.size - 1).to_s %> others commented on <%= attributes['object.article'].title %>.
|
202
202
|
<% else %>
|
203
203
|
<%= notification.target.name %> commented on <%= notification.object.article.title %>.
|
204
204
|
<% end %>
|
@@ -14,7 +14,8 @@ module NotificationRenderer
|
|
14
14
|
if ActiveRecord::Base.timestamped_migrations
|
15
15
|
Time.now.utc.strftime('%Y%m%d%H%M%S')
|
16
16
|
else
|
17
|
-
format('
|
17
|
+
format('%<migration_number>.3d',
|
18
|
+
migration_number: current_migration_number(dirname) + 1)
|
18
19
|
end
|
19
20
|
end
|
20
21
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<!--
|
2
2
|
In your renderers you can access the `Notification` record through the `notification` variable. This is how a renderer could look like:
|
3
3
|
|
4
|
-
|
4
|
+
<%%= notification.target.name %> commented on <%%= notification.object.article.title %>
|
5
5
|
|
6
6
|
Learn more: https://github.com/jonhue/notifications-rails/tree/master/notification-renderer#renderers
|
7
7
|
-->
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notification-renderer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Hübotter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 3.0.2
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 3.0.2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: railties
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -187,7 +187,8 @@ files:
|
|
187
187
|
homepage: https://github.com/jonhue/notifications-rails/tree/master/notification-renderer
|
188
188
|
licenses:
|
189
189
|
- MIT
|
190
|
-
metadata:
|
190
|
+
metadata:
|
191
|
+
github_repo: ssh://github.com/jonhue/notifications-rails
|
191
192
|
post_install_message:
|
192
193
|
rdoc_options: []
|
193
194
|
require_paths:
|