richurls 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +6 -0
- data/Gemfile.lock +1 -1
- data/lib/body_decorator.rb +1 -0
- data/lib/xml_handler.rb +3 -0
- data/richurls.gemspec +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: 708ee687cae619b4181d746a5654be2d3e7113b8d52494fa2211a5085b89f52b
|
4
|
+
data.tar.gz: 237bb78f3e46d26298944560bbbe02283998f8044eb0216e0de4fdcd3dc70c62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68815be064f5b4dbda9af5d7d9030dca75c323debe384a22871671a9092194888e2b102524f58b1082083b59b3fa9605d570d50f7b83e3ba1fec42100d6b5fec
|
7
|
+
data.tar.gz: 852e95350f1f3de6ce7f7e3366450626c355c514ec63ba302b545fc1b9fadefd68f9f0f2741802df3c798afe1ab486a940c5d8e20a800cddc5002ff79a4c4bb4
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
data/lib/body_decorator.rb
CHANGED
data/lib/xml_handler.rb
CHANGED
@@ -17,6 +17,7 @@ module RichUrls
|
|
17
17
|
src
|
18
18
|
].freeze
|
19
19
|
|
20
|
+
StopParsingError = Class.new(StandardError)
|
20
21
|
El = Struct.new(:name, :attributes)
|
21
22
|
|
22
23
|
attr_accessor :elements
|
@@ -46,6 +47,8 @@ module RichUrls
|
|
46
47
|
|
47
48
|
el = @elements.last
|
48
49
|
el.attributes[name] = str
|
50
|
+
|
51
|
+
raise StopParsingError if name == WHITELISTED_ATTRS.last
|
49
52
|
end
|
50
53
|
|
51
54
|
def text(str)
|
data/richurls.gemspec
CHANGED