richurls 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -6
- data/lib/xml_handler.rb +3 -2
- data/richurls.gemspec +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: 56ae1a2ddcbb5362ab88c9ab4c5eb3efc753259414393dd1154d27bb2dce5817
|
4
|
+
data.tar.gz: f8eebb6559ee52ddd862bb19e9e5d182f9ad666aa88f9abb9811b8636f2b97d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b881909bd4b8be25c4cc6f88efc86095cdab8a39905675d32c975cfef70d7812171be10f1a00e0c8b45299ad0f3b868b54fabdc9fd9d65d749d6509593e04eb8
|
7
|
+
data.tar.gz: b21842a2d396d6a3a016b82da7ad7c53c3063c1c3759bb36524afe0c49b11593afd9d1d406490e320000532f80535cc7deefc1b93a529ea748f49bb50b9822af
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
richurls (0.2.
|
4
|
+
richurls (0.2.2)
|
5
5
|
oj (~> 3)
|
6
6
|
ox (~> 2)
|
7
7
|
patron (~> 0.13)
|
@@ -12,36 +12,38 @@ GEM
|
|
12
12
|
ast (2.4.0)
|
13
13
|
diff-lcs (1.3)
|
14
14
|
jaro_winkler (1.5.4)
|
15
|
-
oj (3.10.
|
15
|
+
oj (3.10.5)
|
16
16
|
ox (2.13.2)
|
17
17
|
parallel (1.19.1)
|
18
|
-
parser (2.7.0.
|
18
|
+
parser (2.7.0.4)
|
19
19
|
ast (~> 2.4.0)
|
20
20
|
patron (0.13.3)
|
21
21
|
rainbow (3.0.0)
|
22
22
|
redis (4.1.3)
|
23
|
+
rexml (3.2.4)
|
23
24
|
rspec (3.9.0)
|
24
25
|
rspec-core (~> 3.9.0)
|
25
26
|
rspec-expectations (~> 3.9.0)
|
26
27
|
rspec-mocks (~> 3.9.0)
|
27
28
|
rspec-core (3.9.1)
|
28
29
|
rspec-support (~> 3.9.1)
|
29
|
-
rspec-expectations (3.9.
|
30
|
+
rspec-expectations (3.9.1)
|
30
31
|
diff-lcs (>= 1.2.0, < 2.0)
|
31
32
|
rspec-support (~> 3.9.0)
|
32
33
|
rspec-mocks (3.9.1)
|
33
34
|
diff-lcs (>= 1.2.0, < 2.0)
|
34
35
|
rspec-support (~> 3.9.0)
|
35
36
|
rspec-support (3.9.2)
|
36
|
-
rubocop (0.
|
37
|
+
rubocop (0.80.1)
|
37
38
|
jaro_winkler (~> 1.5.1)
|
38
39
|
parallel (~> 1.10)
|
39
40
|
parser (>= 2.7.0.1)
|
40
41
|
rainbow (>= 2.2.2, < 4.0)
|
42
|
+
rexml
|
41
43
|
ruby-progressbar (~> 1.7)
|
42
44
|
unicode-display_width (>= 1.4.0, < 1.7)
|
43
45
|
ruby-progressbar (1.10.1)
|
44
|
-
unicode-display_width (1.6.
|
46
|
+
unicode-display_width (1.6.1)
|
45
47
|
|
46
48
|
PLATFORMS
|
47
49
|
ruby
|
data/lib/xml_handler.rb
CHANGED
@@ -41,9 +41,10 @@ module RichUrls
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def attr(name, str)
|
44
|
-
return unless WHITELISTED_ATTRS.include?(name)
|
45
|
-
|
46
44
|
el = @elements.last
|
45
|
+
|
46
|
+
return unless el && WHITELISTED_ATTRS.include?(name)
|
47
|
+
|
47
48
|
el.attributes[name] = str
|
48
49
|
|
49
50
|
raise StopParsingError if stop?(name, el)
|
data/richurls.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: richurls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- grdw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|