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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60dadfc1add5f12fcefdb4289a640b5df0cfec482fa4d93945227142117c154d
4
- data.tar.gz: a93c256203d6cb8a6f0ab73f41ae8d3b02e10e9c396bb752c79fb2a6e150bd98
3
+ metadata.gz: 3cd8ff29aaeda72cef91cd077b82d33b388c0ade6560db4eb5ff16d39cb89354
4
+ data.tar.gz: 1b93f84fac881b91e3d4e9ef41fb317d03cbd3bba3bcfa1fe49588482aeb1132
5
5
  SHA512:
6
- metadata.gz: 259ee08690011ea95792b76eeeaf97e3317c1a1ad348597cfc5230e3bdce27d0735fdeac59a3705d2c76040c30ef4ad58108fc9fd555a83adf63811426ea08c7
7
- data.tar.gz: f66c200fa4bf7639231e3cac92aa67891ce3a41d4895d3f92a814bf0793389d74b206d267f4b6cea444201e21ee61d957b3aa5cdba2ecc5e23fa1ca55be3f73e
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.0.0 - 2017-12-28
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-12-28
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-12-28
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-12-27
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-12-25
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-12-23
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
- included do
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.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-02 00:00:00.000000000 Z
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.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.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: jonas.huebotter@gmail.com
99
+ email: me@jonhue.me
100
100
  executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []