cover_rage 0.0.4 → 0.0.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: 56c953122e72d8aaa3a4a50129595cfc36fb20f1c2feea245b255295a5ba8a90
4
- data.tar.gz: 7b5b4972c31670c4c9ab6b5298682ce7b8d258f4a0ff31faf8790856f1691428
3
+ metadata.gz: 2d8c894821167b2b0cd5da6bbfe468353130079b501b9ac775d96187a18fdf8f
4
+ data.tar.gz: e601419b5ce0b72f923a14425e059dab633b18e945d9c34614dbedb4fe6f65e5
5
5
  SHA512:
6
- metadata.gz: 26cd15a4e159851270b8c9b351e1047049eb509e1ebc322634d94ab8c53f2e8e42d22ca4521c07af7d784e3d8fa5993fc59e57bbeba0d2c49fa83b86ba5b5a88
7
- data.tar.gz: 38e670bed372e6117c64967fc32a124e2dcac34734e14f05e954b282de01cd557af0847a69c16474e3e13c4352ec57a878d96b95925fc08c88612a5774b6c89c
6
+ metadata.gz: a2f3d76db670bad92fa73f9fb38c7643d5dbca58eae33271f6cca961be316bc4a9ec63f6fc600f6ecade002320519ffde58bfeeab6923af2bfde6bdb0b0516e5
7
+ data.tar.gz: 8f6432b09eb80d6f2838f317156b3c17bc71306d08f8cc1d58e74b4e86c55e729a3ff8095f0a0f58edc3ecd60a4b80dfe12f095743f852accfa3de2b4dc8d3ef
@@ -3,13 +3,19 @@
3
3
  require 'cover_rage/record'
4
4
  require 'redis'
5
5
  require 'json'
6
+ require 'openssl'
6
7
 
7
8
  module CoverRage
8
9
  module Stores
9
10
  class Redis
10
11
  KEY = 'cover_rage_records'
11
12
  def initialize(url)
12
- @redis = ::Redis.new(url: url)
13
+ @redis =
14
+ if url.start_with?('rediss')
15
+ ::Redis.new(url: url, ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE })
16
+ else
17
+ ::Redis.new(url: url)
18
+ end
13
19
  end
14
20
 
15
21
  def import(records)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cover_rage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Weihang Jian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-19 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
- rubygems_version: 3.4.12
84
+ rubygems_version: 3.4.13
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: A Ruby production code coverage tool