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: aa29639e71ac1a9870c14071d6274bbd507de189a2c0ebac9a804d307577b510
4
- data.tar.gz: 61c2c695bc2ad340a9ad7b2ecfd6bf3d966cc7c81af59d7b2de997dbe9617437
3
+ metadata.gz: 45d08ece9c88b27c6b02817df0bb024c67d2dbfa25abc47670cd40abf627b5a7
4
+ data.tar.gz: dfe4f0c9f612eb33c2a6b98dd7b9b245c013d1a26b2ae2de0a0ce56b132aa0d4
5
5
  SHA512:
6
- metadata.gz: 7865d41597d2d06299ee574f811212a2425533053cd2b9819d50612810ca11997225e66f11e8bb2f762024f94d852d8243224fd3eade3944ef2edc2e41b85d24
7
- data.tar.gz: f4756a6497785dc4ee3e0964236d91429193cc03b4265d14f4d5c2c2f6e51543367276c626c1d27eded96c48b02dbfa5288892c7ac2f686df6795b87b768ff03
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.count - 1).to_s %> others commented on <%= attributes['object.article'].title %>.
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('%.3d', current_migration_number(dirname) + 1)
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
- <%#= notification.target.name %> commented on <%#= notification.object.article.title %>
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: 2.0.0
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-06-04 00:00:00.000000000 Z
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: 2.0.0
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: 2.0.0
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: