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 +4 -4
- data/lib/cover_rage/config.rb +1 -1
- data/lib/cover_rage/stores/redis.rb +7 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bea62a74d8c6c9e2bbcd7918e28a2ee43f71f0548b43d4813438a02a3bffa32
|
4
|
+
data.tar.gz: 47c5ef4df517fd22406db7dd4b93b10089a2d2b08bccd7a24b0e2ae23c76e55c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4fecf3fc7435ba7e96b171e864d2463d7256c4c2f987546c3d10ea13543da59e779530a38094dd45bde32aba6cefc9c4663ebdd0df52b0a178d4ca318c4b658
|
7
|
+
data.tar.gz: f91e8dce7f3770d31547899baa4e5add2641af32596568b83bfc76525b1a44b82faa51064debc420c24535572dd9e89372a77f487054de15aea3b17a2d7043c7
|
data/lib/cover_rage/config.rb
CHANGED
@@ -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 =
|
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
|
+
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-
|
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.
|
84
|
+
rubygems_version: 3.4.13
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: A Ruby production code coverage tool
|