noticed 1.5.4 → 1.5.5

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: cb9f334537321500e719816b724d0adaa22cc944b8672e9ad7e9e0e662eb6c70
4
- data.tar.gz: f59f09587f37f418375fef2f03024701887caa538b6bac00f6267d25d01e97cb
3
+ metadata.gz: 90b43c50384068092455c10cd6686fc46cd766121c0ea5cf593bbc4c8306e8de
4
+ data.tar.gz: 23edb385b0c9981dd9c292c8f4c15ce6fadd9abb131adc1eb6440ab39c5fa186
5
5
  SHA512:
6
- metadata.gz: d27e7793f12b89cb80ecd76849180044007191fd023cfccf0730dda7c3cbc09e62d8686a64e76b50edcf5dccf571fc9ab4c50453d2ecd8b4263c05231171cfa8
7
- data.tar.gz: 3161f4f7395caa4eb8abaabe28505d2268201ffb6230d88e301f44ac50ed435454790081421214641e2319542e6afe397c2db2431d967c09156e223bc2cb4916
6
+ metadata.gz: 9a5d92df6618d53f8be91ca71bdf6dfc6ff0b66279662a5690c6efaa162939f2ae4fe1868956427ff10a83fa77329c16c96af3faef9e2fa48e441f1478c91ed0
7
+ data.tar.gz: 6d485a661fe14b24811479615e125cb4bf2794808dd28b39c102e677b1a1e99a0f22807acbc75a728442764f521c498ffa884998e243dacad5ea9e4e4cd2ca19
@@ -9,7 +9,7 @@ module Noticed
9
9
  raise ArgumentError, "bundle_identifier is missing" if bundle_identifier.blank?
10
10
  raise ArgumentError, "key_id is missing" if key_id.blank?
11
11
  raise ArgumentError, "team_id is missing" if team_id.blank?
12
- raise ArgumentError, "Could not find APN cert at '#{cert_path}'" unless File.exist?(cert_path)
12
+ raise ArgumentError, "Could not find APN cert at '#{cert_path}'" unless valid_cert_path?
13
13
 
14
14
  device_tokens.each do |device_token|
15
15
  connection_pool.with do |connection|
@@ -152,6 +152,15 @@ module Noticed
152
152
  end
153
153
  end
154
154
 
155
+ def valid_cert_path?
156
+ case cert_path
157
+ when File, StringIO
158
+ cert_path.size > 0
159
+ else
160
+ File.exist?(cert_path)
161
+ end
162
+ end
163
+
155
164
  def pool_options
156
165
  {
157
166
  size: options.fetch(:pool_size, 5)
@@ -1,3 +1,3 @@
1
1
  module Noticed
2
- VERSION = "1.5.4"
2
+ VERSION = "1.5.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noticed
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-19 00:00:00.000000000 Z
11
+ date: 2021-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails