notification-settings 1.2.0 → 1.2.1

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: 5f50994ef8bb3ce66b26f1b4a84ccdd4805a53988895f0b22f78ce29bf467740
4
- data.tar.gz: ce5b76bed74ddde7ab136bfc691a915fc71d03c7e74b1bc06eefcd829b9e88f1
3
+ metadata.gz: 656596c6e8e8be29a6fe3b63cbbb017e8b608743b935218554aebca40049beec
4
+ data.tar.gz: 76de982fb9ae1c5d4325263a02653910f0f27968e6d45d0574ce7a07ddc0721e
5
5
  SHA512:
6
- metadata.gz: 32208d0bde61260f3451de68d9030f412d9c96988ac6a7d2c679e96d6a4ff6649ccf01f79eea016344cfc6baadd5dc2b2a11ac928a7a9b1af957b05a7b70bc7a
7
- data.tar.gz: 83740047beef8a0eb660f970daa45b64f0d4f5bee16213d7c7b3687e5b9636f57d35222bc59363db7963fc60cd6d4c912a59216cac0f2d62010c27b575657bfc
6
+ metadata.gz: 64184b9db823694d9c22f98900a3e11bf1f4dae1ae21927f9818fd357c2b9cddc8ab2a543c3848938d9f005052da751123db74502ab8391c8e87be57aac66fca
7
+ data.tar.gz: 8ad11abdc576f9f4a91240fd782d2b44b208751ca3c399c09c47ffffe55e26041f0f76d980a493fd153aa70adf0eaf9f6173108579366c926d094a1d7f1ab593
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 1.2.1 - 2018-01-02
8
+
9
+ * bugfixes
10
+ * fixed `undefined method `create!' for nil:NilClass` when creating `notification_target` objects
11
+
7
12
  ### 1.2.0 - 2018-01-02
8
13
 
9
14
  * features
@@ -7,7 +7,7 @@ module NotificationSettings
7
7
 
8
8
  included do
9
9
  has_one :notification_setting, as: :object, class_name: 'NotificationSettings::Setting', dependent: :destroy
10
- after_create_commit :create_notification_setting
10
+ before_create :create_notification_setting
11
11
 
12
12
  include NotificationSettings::Target::InstanceMethods
13
13
  end
@@ -17,7 +17,7 @@ module NotificationSettings
17
17
  private
18
18
 
19
19
  def create_notification_setting
20
- self.notification_setting.create!
20
+ self.build_notification_setting
21
21
  end
22
22
 
23
23
  end
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.0
4
+ version: 1.2.1
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-01 00:00:00.000000000 Z
11
+ date: 2018-01-02 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.0
61
+ version: 1.2.1
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.0
68
+ version: 1.2.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement