certificate-checker 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/lib/certificate-checker/certificate_parser.rb +2 -2
- data/lib/certificate-checker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7aa16080082c6c62adc92757d4138dc81aff8d7698e9f451c87323d51eec0a3f
|
4
|
+
data.tar.gz: 1767f58737fd1048ba78b80988f360543ac29440b8a69625817046124c3f4688
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3aeafffd6487f8841545f28f853c51897e9533f051f58cb9747145ca9c0adb6fa2f93233eed1f1f0254f30a39e82f095fef11b8c66459dd913d9afd037bf43f4
|
7
|
+
data.tar.gz: 42f794cd0923d135526326eca023c769f5626474767081c68eba3ec562133732233bc021aaa3948f8e3e52bc8c9fc80002bde35ae4e3f5aa855719028a51b34d
|
data/.travis.yml
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
+
- 2.3
|
3
4
|
- 2.4
|
4
5
|
- 2.5
|
5
6
|
- 2.6
|
7
|
+
# Remove the whole before_install section when dropping Ruby 2.3 support.
|
8
|
+
before_install:
|
9
|
+
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
10
|
+
- gem install bundler -v '< 2'
|
6
11
|
before_script:
|
7
12
|
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
8
13
|
- chmod +x ./cc-test-reporter
|
@@ -25,7 +25,7 @@ module CertificateChecker
|
|
25
25
|
until @f.eof?
|
26
26
|
line = @f.readline
|
27
27
|
@lineno += 1
|
28
|
-
next unless line.match
|
28
|
+
next unless line.match(/^-----BEGIN CERTIFICATE-----/)
|
29
29
|
|
30
30
|
@data_start_lineno = @lineno
|
31
31
|
@data = line
|
@@ -38,7 +38,7 @@ module CertificateChecker
|
|
38
38
|
line = @f.readline
|
39
39
|
@lineno += 1
|
40
40
|
@data += line
|
41
|
-
if line.match
|
41
|
+
if line.match(/^-----END CERTIFICATE-----/)
|
42
42
|
add_certificate
|
43
43
|
return
|
44
44
|
end
|