cover_rage 0.0.4 → 0.0.6

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: 7bea62a74d8c6c9e2bbcd7918e28a2ee43f71f0548b43d4813438a02a3bffa32
4
+ data.tar.gz: 47c5ef4df517fd22406db7dd4b93b10089a2d2b08bccd7a24b0e2ae23c76e55c
5
5
  SHA512:
6
- metadata.gz: 26cd15a4e159851270b8c9b351e1047049eb509e1ebc322634d94ab8c53f2e8e42d22ca4521c07af7d784e3d8fa5993fc59e57bbeba0d2c49fa83b86ba5b5a88
7
- data.tar.gz: 38e670bed372e6117c64967fc32a124e2dcac34734e14f05e954b282de01cd557af0847a69c16474e3e13c4352ec57a878d96b95925fc08c88612a5774b6c89c
6
+ metadata.gz: d4fecf3fc7435ba7e96b171e864d2463d7256c4c2f987546c3d10ea13543da59e779530a38094dd45bde32aba6cefc9c4663ebdd0df52b0a178d4ca318c4b658
7
+ data.tar.gz: f91e8dce7f3770d31547899baa4e5add2641af32596568b83bfc76525b1a44b82faa51064debc420c24535572dd9e89372a77f487054de15aea3b17a2d7043c7
@@ -11,7 +11,7 @@ module CoverRage
11
11
  @store ||= begin
12
12
  uri = URI.parse(ENV.fetch('COVER_RAGE_STORE_URL'))
13
13
  case uri.scheme
14
- when 'redis'
14
+ when 'redis', 'rediss'
15
15
  require 'cover_rage/stores/redis'
16
16
  CoverRage::Stores::Redis.new(uri.to_s)
17
17
  when 'sqlite'
@@ -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.6
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-06-02 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