notification-settings 1.2.2 → 1.2.3

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: c18e4b87d3c8457c776d14aa749d87210b6fa80cbb4fd09469a83866edbf30c0
4
- data.tar.gz: 57c0acb6e119af17ac1fcf116a054809078739ad6729d5b801677ff89d299293
3
+ metadata.gz: b7b63eae856b2bc020d9de67090d4fff59d3b33d70251d900e9c608495aa0ff4
4
+ data.tar.gz: 4044f6e202ca05614b21deed75cb536f7879f7106e3f4b7b5df44775e47ec2d2
5
5
  SHA512:
6
- metadata.gz: 91af8a3630be0814576a6c32090ab5defc420e3a590d487bd2bf59be5e2beb64f3ea2fc328aaa5e7dff449f33daab86c7c413e22a64624ff8edae0d55a2f156b
7
- data.tar.gz: 81144930e269f2bd71174250ef08cd958c1be17e46f49a503e85ff89c1da29a811ab7be412998a09515e66f97cd0b212ca2daf6895c25d0a3ea4a50e984a6d07
6
+ metadata.gz: c6f3969807943b31db00c28098a4339d679396ec763deb9dfea345e7356cf0632970188988446a81eb7cb32f84e65230d1cf3b7169a99e6bb07938b6c9d3aa7f
7
+ data.tar.gz: df82cd133b80995d248c039e9f7bff3fbaae4cd6b6e8df4d39c7c0e454b983c3d9d0aa2d543946c792778acec6b374c71ba77780dbb23f4c9fcddbcdb5ebc101
data/CHANGELOG.md CHANGED
@@ -4,56 +4,56 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
- ### 1.2.2 - 2018-01-02
7
+ ### 1.2.2 - 2018/01/02
8
8
 
9
9
  * bugfixes
10
10
  * fixed `subscribe' method
11
11
 
12
- ### 1.2.1 - 2018-01-02
12
+ ### 1.2.1 - 2018/01/02
13
13
 
14
14
  * bugfixes
15
15
  * fixed `undefined method 'create!' for nil:NilClass` when creating `notification_target` objects
16
16
 
17
- ### 1.2.0 - 2018-01-02
17
+ ### 1.2.0 - 2018/01/02
18
18
 
19
19
  * features
20
20
  * added dependents functionality to subscribers feature
21
21
  * bugfixes
22
22
  * fixed `uninitialized constant NotificationSettings::Object`
23
23
 
24
- ### 1.1.2 - 2018-01-01
24
+ ### 1.1.2 - 2018/01/01
25
25
 
26
26
  * bugfixes
27
27
  * fixed length of indexes in generated migration files
28
28
 
29
- ### 1.0.0 - 2017-12-28
29
+ ### 1.0.0 - 2017/12/28
30
30
 
31
31
  * bugfixes
32
32
 
33
- ### 1.0.0.beta6 - 2017-12-28
33
+ ### 1.0.0.beta6 - 2017/12/28
34
34
 
35
35
  * bugfixes
36
36
  * fix lib loading problems
37
37
 
38
- ### 1.0.0.beta5 - 2017-12-28
38
+ ### 1.0.0.beta5 - 2017/12/28
39
39
 
40
40
  * bugfixes
41
41
  * fix generators
42
42
  * fix lib loading problems
43
43
  * fix syntax errors
44
44
 
45
- ### 1.0.0.beta4 - 2017-12-27
45
+ ### 1.0.0.beta4 - 2017/12/27
46
46
 
47
47
  * features
48
48
  * add settings functionality
49
49
  * add `category` attribute to `Notification` instances
50
50
  * add subscription functonality
51
51
 
52
- ### 1.0.0.beta3 - 2017-12-25
52
+ ### 1.0.0.beta3 - 2017/12/25
53
53
 
54
54
  * features
55
55
  * add `Setting` ActiveRecord model
56
56
 
57
- ### 1.0.0.beta1 - 2017-12-22
57
+ ### 1.0.0.beta1 - 2017/12/22
58
58
 
59
59
  * initial release
@@ -20,7 +20,7 @@ module NotificationSettings
20
20
  end
21
21
 
22
22
  def unsubscribe subscribable
23
- subscription = self.notification_subscriptions.find_by subscribable_id: subscribable.id, subscribable_type: subscribable.class.to_s
23
+ subscription = self.notification_subscriptions.find_by subscribable_id: subscribable.id, subscribable_type: subscribable.class.name
24
24
  subscription.destroy
25
25
  end
26
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notification-settings
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: Integrates with your authentication solution to craft a personalized
98
98
  user notification platform.
99
- email: jonas.huebotter@gmail.com
99
+ email: me@jonhue.me
100
100
  executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []