nokorexi 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/nokorexi.rb +6 -5
- data.tar.gz.sig +0 -0
- metadata +18 -18
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9aadf6b4ed40438741d8cb72269370725384600daa5554606e40a6c680a4be84
|
|
4
|
+
data.tar.gz: f70f28a7e8e55249a16e1b0d983dd1177a2fcae1b9135081d4b3f8cc116f8a76
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50dbae2b1ad4d0448cbe22ad96e86c21c48deb2dea1a67f32071390ba4281c60d4598114146f2e7955491b78da6d7a6a4c867bc14f6b3c64956c99daf7479fa4
|
|
7
|
+
data.tar.gz: 810d8692f1cb9baa0e9d3495f5bdbdbd05c1943b657319e9413d9e35bd45662aa8df2fdebf0685c1a10a96b7b77d6eec6a5fdfde8559b92d405676d85352024f
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/nokorexi.rb
CHANGED
|
@@ -12,17 +12,18 @@ class Nokorexi
|
|
|
12
12
|
attr_reader :to_doc, :to_s
|
|
13
13
|
|
|
14
14
|
def initialize(x, noscript: true, debug: false)
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
raws = RXFHelper.read(x).first
|
|
17
17
|
s = raws[/.*<\/html>$/m] || raws
|
|
18
18
|
puts 's: ' + s.inspect if debug
|
|
19
|
-
|
|
19
|
+
|
|
20
20
|
raw_doc = Nokogiri::HTML(s.gsub(" ",' '))
|
|
21
21
|
raw_doc.xpath('//script').each(&:remove) if noscript
|
|
22
|
-
|
|
22
|
+
yield(raw_doc) if block_given?
|
|
23
|
+
|
|
23
24
|
@to_s = xml = raw_doc.xpath('html').to_xml
|
|
24
25
|
@to_doc = Rexle.new(xml, debug: debug)
|
|
25
|
-
|
|
26
|
+
|
|
26
27
|
end
|
|
27
|
-
|
|
28
|
+
|
|
28
29
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nokorexi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
IfE+n6Nsn4mmYcgqnR+5A8Ut2JnVTJzYZ/lUeIJY3MPjH+7PDAtWb1HltA/iim3A
|
|
36
36
|
28fDHFSeSGWneCQs80GLobdt
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date:
|
|
38
|
+
date: 2022-01-23 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: nokogiri
|
|
@@ -43,20 +43,20 @@ dependencies:
|
|
|
43
43
|
requirements:
|
|
44
44
|
- - "~>"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '1.
|
|
46
|
+
version: '1.13'
|
|
47
47
|
- - ">="
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: 1.
|
|
49
|
+
version: 1.13.1
|
|
50
50
|
type: :runtime
|
|
51
51
|
prerelease: false
|
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
53
53
|
requirements:
|
|
54
54
|
- - "~>"
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: '1.
|
|
56
|
+
version: '1.13'
|
|
57
57
|
- - ">="
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
|
-
version: 1.
|
|
59
|
+
version: 1.13.1
|
|
60
60
|
- !ruby/object:Gem::Dependency
|
|
61
61
|
name: rexle
|
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -66,7 +66,7 @@ dependencies:
|
|
|
66
66
|
version: '1.5'
|
|
67
67
|
- - ">="
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: 1.5.
|
|
69
|
+
version: 1.5.14
|
|
70
70
|
type: :runtime
|
|
71
71
|
prerelease: false
|
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -76,29 +76,29 @@ dependencies:
|
|
|
76
76
|
version: '1.5'
|
|
77
77
|
- - ">="
|
|
78
78
|
- !ruby/object:Gem::Version
|
|
79
|
-
version: 1.5.
|
|
79
|
+
version: 1.5.14
|
|
80
80
|
- !ruby/object:Gem::Dependency
|
|
81
81
|
name: rxfhelper
|
|
82
82
|
requirement: !ruby/object:Gem::Requirement
|
|
83
83
|
requirements:
|
|
84
|
-
- - ">="
|
|
85
|
-
- !ruby/object:Gem::Version
|
|
86
|
-
version: 1.0.0
|
|
87
84
|
- - "~>"
|
|
88
85
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '1.
|
|
86
|
+
version: '1.1'
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: 1.1.4
|
|
90
90
|
type: :runtime
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
|
-
- - ">="
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: 1.0.0
|
|
97
94
|
- - "~>"
|
|
98
95
|
- !ruby/object:Gem::Version
|
|
99
|
-
version: '1.
|
|
96
|
+
version: '1.1'
|
|
97
|
+
- - ">="
|
|
98
|
+
- !ruby/object:Gem::Version
|
|
99
|
+
version: 1.1.4
|
|
100
100
|
description:
|
|
101
|
-
email:
|
|
101
|
+
email: digital.robertson@gmail.com
|
|
102
102
|
executables: []
|
|
103
103
|
extensions: []
|
|
104
104
|
extra_rdoc_files: []
|
|
@@ -127,5 +127,5 @@ rubyforge_project:
|
|
|
127
127
|
rubygems_version: 2.7.10
|
|
128
128
|
signing_key:
|
|
129
129
|
specification_version: 4
|
|
130
|
-
summary:
|
|
130
|
+
summary: Uses Nokogiri to produce valid XHTML for use as a Rexle document.
|
|
131
131
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|