notification-renderer 1.2.2 → 1.2.3
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -6
- data/app/helpers/notification_renderer_helper.rb +1 -1
- data/lib/notification_renderer/notification_scopes.rb +1 -5
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cd8ff29aaeda72cef91cd077b82d33b388c0ade6560db4eb5ff16d39cb89354
|
4
|
+
data.tar.gz: 1b93f84fac881b91e3d4e9ef41fb317d03cbd3bba3bcfa1fe49588482aeb1132
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5be66082f05cc424b0aec23a13a2f057ac11ed270368305df73a0ab77fae97a413e1a883662d57bdf9ee4f7ac4bd6a99703a9de17dbec6022b0e0aaa4d05d1ec
|
7
|
+
data.tar.gz: 7c03ff84089edfb9bac28a939e3d30731e8fb7dd401cda18bb5d7086fe4713e9b46b5517247d2f79f68a916c684b1f57eb12e3deffc65cd9c2c7b2bd6becd9bc
|
data/CHANGELOG.md
CHANGED
@@ -4,23 +4,30 @@
|
|
4
4
|
|
5
5
|
* nothing yet
|
6
6
|
|
7
|
-
### 1.
|
7
|
+
### 1.2.3 - 2018/01/23
|
8
|
+
|
9
|
+
* enhancements
|
10
|
+
* made `attribute` & `notifications_count` parameters optional for `render_notification` method
|
11
|
+
* bugfixes
|
12
|
+
* fixed magic type scopes
|
13
|
+
|
14
|
+
### 1.0.0 - 2017/12/28
|
8
15
|
|
9
16
|
* bugfixes
|
10
17
|
|
11
|
-
### 1.0.0.beta6 - 2017
|
18
|
+
### 1.0.0.beta6 - 2017/12/28
|
12
19
|
|
13
20
|
* bugfixes
|
14
21
|
* fix lib loading problems
|
15
22
|
|
16
|
-
### 1.0.0.beta5 - 2017
|
23
|
+
### 1.0.0.beta5 - 2017/12/28
|
17
24
|
|
18
25
|
* bugfixes
|
19
26
|
* fix generators
|
20
27
|
* fix lib loading problems
|
21
28
|
* fix syntax errors
|
22
29
|
|
23
|
-
### 1.0.0.beta4 - 2017
|
30
|
+
### 1.0.0.beta4 - 2017/12/27
|
24
31
|
|
25
32
|
* features
|
26
33
|
* add helpers
|
@@ -29,11 +36,11 @@
|
|
29
36
|
* enhancements
|
30
37
|
* allow defining renderers for `type` generator
|
31
38
|
|
32
|
-
### 1.0.0.beta3 - 2017
|
39
|
+
### 1.0.0.beta3 - 2017/12/25
|
33
40
|
|
34
41
|
* features
|
35
42
|
* introduce `type` generator
|
36
43
|
|
37
|
-
### 1.0.0.beta2 - 2017
|
44
|
+
### 1.0.0.beta2 - 2017/12/23
|
38
45
|
|
39
46
|
* initial release
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module NotificationRendererHelper
|
2
2
|
|
3
|
-
def render_notification notification, renderer = NotificationRenderer.configuration.default_renderer, attribute, notifications_count
|
3
|
+
def render_notification notification, renderer = NotificationRenderer.configuration.default_renderer, attribute = nil, notifications_count = nil
|
4
4
|
notification.update_attributes read: true if NotificationRenderer.configuration.auto_read
|
5
5
|
render "notifications/#{notification.type}/#{renderer}", notification: notification, attribute: attribute, notifications_count: notifications_count
|
6
6
|
end
|
@@ -6,11 +6,7 @@ module NotificationRenderer
|
|
6
6
|
|
7
7
|
extend ActiveSupport::Concern
|
8
8
|
|
9
|
-
|
10
|
-
include NotificationRenderer::NotificationScopes::InstanceMethods
|
11
|
-
end
|
12
|
-
|
13
|
-
module InstanceMethods
|
9
|
+
module ClassMethods
|
14
10
|
|
15
11
|
def method_missing m, *args
|
16
12
|
if m.to_s[/(.+)_type/]
|
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: 1.2.
|
4
|
+
version: 1.2.3
|
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: 2018-01-
|
11
|
+
date: 2018-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.2.
|
61
|
+
version: 1.2.3
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.2.
|
68
|
+
version: 1.2.3
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -96,7 +96,7 @@ dependencies:
|
|
96
96
|
version: '0.52'
|
97
97
|
description: Render your notifications on multiple platforms by specifying notification
|
98
98
|
types.
|
99
|
-
email:
|
99
|
+
email: me@jonhue.me
|
100
100
|
executables: []
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|