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 +4 -4
- 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: 2d8c894821167b2b0cd5da6bbfe468353130079b501b9ac775d96187a18fdf8f
|
4
|
+
data.tar.gz: e601419b5ce0b72f923a14425e059dab633b18e945d9c34614dbedb4fe6f65e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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.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-
|
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.
|
84
|
+
rubygems_version: 3.4.13
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: A Ruby production code coverage tool
|