onsignal 5.0.2 → 5.0.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: d88f1398df141a3ac035ebd7ab1dec55354d354c0d9894c05318a342f59c0b44
4
- data.tar.gz: 9b8113b03692610e0d03ce9680dd0cb479619f2b18ccde15727dd79b15f329c4
3
+ metadata.gz: 1600c0cd6e5674ed0311d28093594e1074f95b6ebb8bb497d1cb7d1b43277ab7
4
+ data.tar.gz: 83ded3364c64d0e363767094df94418da3f74950f3661e64cd197e75e2afe0d6
5
5
  SHA512:
6
- metadata.gz: c2abc428b034a2a1891a83d38c298ccc82638f3a0e6560a39c0520522e69dc9ec4090036c84f80e799debbad371e0cecf4e9681116d03d9fceaeef04269c099e
7
- data.tar.gz: 7ca5bf398c7bf4ea7beae4ff2d6732162124002afa262bf8900655957e4fda03c525bdee5e6793e559e608081f808a4ad363f00479cd16ed551a0bf93c4dfaed
6
+ metadata.gz: 552c69d739164a3eb8e9e5465719c5ec096ad476b2c60b0685e2a3470516cdf6ba2b1b0dc67d8fa718c99afa992bb07f4e21db9e2613a2759cb42d37b8be6cc2
7
+ data.tar.gz: a8840ebb0f177a312f4948e3920a99f0f8b041ae4ceeb46807da01798d08ecd9007aae3c09c46c4a7bd9ca082d45111766c013c2d9be9fc5433bee6f94b993bb
@@ -4,15 +4,27 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 5.0.4 - 2018/02/23
8
+
9
+ * bugfixes
10
+ * fixed `isSubscribed()` function
11
+
12
+ ### 5.0.3 - 2018/02/23
13
+
14
+ * bugfixes
15
+ * fixed `object is not defined`
16
+
7
17
  ### 5.0.2 - 2018/02/19
8
18
 
9
19
  * bugfixes
10
20
  * fixed `undefined local variable or method 'current_user'` if not using devise
21
+ * fixed `isSubscribed()` function
11
22
 
12
23
  ### 5.0.1 - 2018/02/19
13
24
 
14
25
  * bugfixes
15
26
  * fixed `undefined local variable or method 'set_onesignal_user'`
27
+ * fixed `Uncaught (in promise) TypeError: Cannot set property '_permission' of undefined`
16
28
 
17
29
  ### 5.0.0 - 2018/02/09
18
30
 
@@ -4,8 +4,8 @@ module OnSignalModel
4
4
 
5
5
  module ClassMethods
6
6
  def onsignal
7
- has_many :devices, as: :owner, class_name: OnSignal.configuration.device_const, dependent: :destroy
8
- include OnSignal::Owner::InstanceMethods
7
+ has_many :devices, as: :owner, class_name: OnSignal.configuration&.device_const || 'Device', dependent: :destroy
8
+ include OnSignalModel::InstanceMethods
9
9
  end
10
10
  end
11
11
 
@@ -1,5 +1,5 @@
1
1
  module OnSignal
2
2
 
3
- VERSION = '5.0.2'
3
+ VERSION = '5.0.3'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 5.0.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-02-19 00:00:00.000000000 Z
11
+ date: 2018-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties