notification-settings 1.2.1 → 1.2.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: 656596c6e8e8be29a6fe3b63cbbb017e8b608743b935218554aebca40049beec
4
- data.tar.gz: 76de982fb9ae1c5d4325263a02653910f0f27968e6d45d0574ce7a07ddc0721e
3
+ metadata.gz: c18e4b87d3c8457c776d14aa749d87210b6fa80cbb4fd09469a83866edbf30c0
4
+ data.tar.gz: 57c0acb6e119af17ac1fcf116a054809078739ad6729d5b801677ff89d299293
5
5
  SHA512:
6
- metadata.gz: 64184b9db823694d9c22f98900a3e11bf1f4dae1ae21927f9818fd357c2b9cddc8ab2a543c3848938d9f005052da751123db74502ab8391c8e87be57aac66fca
7
- data.tar.gz: 8ad11abdc576f9f4a91240fd782d2b44b208751ca3c399c09c47ffffe55e26041f0f76d980a493fd153aa70adf0eaf9f6173108579366c926d094a1d7f1ab593
6
+ metadata.gz: 91af8a3630be0814576a6c32090ab5defc420e3a590d487bd2bf59be5e2beb64f3ea2fc328aaa5e7dff449f33daab86c7c413e22a64624ff8edae0d55a2f156b
7
+ data.tar.gz: 81144930e269f2bd71174250ef08cd958c1be17e46f49a503e85ff89c1da29a811ab7be412998a09515e66f97cd0b212ca2daf6895c25d0a3ea4a50e984a6d07
data/CHANGELOG.md CHANGED
@@ -4,10 +4,15 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 1.2.2 - 2018-01-02
8
+
9
+ * bugfixes
10
+ * fixed `subscribe' method
11
+
7
12
  ### 1.2.1 - 2018-01-02
8
13
 
9
14
  * bugfixes
10
- * fixed `undefined method `create!' for nil:NilClass` when creating `notification_target` objects
15
+ * fixed `undefined method 'create!' for nil:NilClass` when creating `notification_target` objects
11
16
 
12
17
  ### 1.2.0 - 2018-01-02
13
18
 
@@ -14,7 +14,8 @@ module NotificationSettings
14
14
 
15
15
  module InstanceMethods
16
16
 
17
- def subscribe options = {}
17
+ def subscribe subscribable, options = {}
18
+ options[:subscribable] = subscribable
18
19
  self.notification_subscriptions.create options
19
20
  end
20
21
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notification-settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2.1
61
+ version: 1.2.2
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.1
68
+ version: 1.2.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement