onlyoffice_bugzilla_helper 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/onlyoffice_bugzilla_helper.rb +2 -2
- data/lib/onlyoffice_bugzilla_helper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa8f152f01993c75b41a62070b59aaccc39c56d35487cf29aad32834e2aed432
|
4
|
+
data.tar.gz: eef1941b64d912297a1f7c81c1eb4a84d43b93055e347bb221d911f10994a513
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e99a3055e61faa6f0892cd8d370becc72472bdb5a54acc0af29e577a7ad4b2f9185eed2c82ffd874e6d2121f340e174d2e509a39417e35a34b085388735a8560
|
7
|
+
data.tar.gz: 2d85b5860ad6b30d360b9325a5ac0de9b22fbd2abce74b995b579c0616e04e58a8adc868708e6de5d25b45170dc2f8ed991aae5c9afceaf5d1ef07e6106dfa1b
|
@@ -34,8 +34,6 @@ module OnlyofficeBugzillaHelper
|
|
34
34
|
# @param string [String] string for error
|
35
35
|
# @return [Integer, Nil] result of bug id from url
|
36
36
|
def bug_id_from_string(string)
|
37
|
-
return nil unless string&.match?(URI::DEFAULT_PARSER.make_regexp)
|
38
|
-
|
39
37
|
uri = URI.parse(string)
|
40
38
|
return nil unless uri.host == url.host
|
41
39
|
return nil unless uri.path == @show_bug_path
|
@@ -44,6 +42,8 @@ module OnlyofficeBugzillaHelper
|
|
44
42
|
return nil if id.zero?
|
45
43
|
|
46
44
|
id
|
45
|
+
rescue URI::InvalidURIError
|
46
|
+
nil
|
47
47
|
end
|
48
48
|
|
49
49
|
# Read access token from file system
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onlyoffice_bugzilla_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ONLYOFFICE
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-04-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faker
|