ruby-readability 0.7.0 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/ruby.yml +25 -0
- data/.rspec +1 -1
- data/README.md +3 -6
- data/lib/readability.rb +73 -21
- data/ruby-readability.gemspec +1 -4
- data/spec/fixtures/codinghorror.html +189 -0
- data/spec/fixtures/images/Confusion_of_Tongues.png +0 -0
- data/spec/fixtures/images/JohnPinhole.jpg +0 -0
- data/spec/fixtures/nested_images.html +11 -0
- data/spec/readability_spec.rb +315 -100
- data/spec/spec_helper.rb +0 -6
- metadata +28 -35
- data/.travis.yml +0 -6
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,86 +1,72 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-readability
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Cantino
|
8
8
|
- starrhorne
|
9
9
|
- libc
|
10
10
|
- Kyle Maxwell
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2024-08-29 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
|
-
- -
|
20
|
+
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '2.8'
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '2.8'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: rspec-expectations
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
|
-
- -
|
34
|
+
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: '2.8'
|
37
37
|
type: :development
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '2.8'
|
44
|
-
- !ruby/object:Gem::Dependency
|
45
|
-
name: rr
|
46
|
-
requirement: !ruby/object:Gem::Requirement
|
47
|
-
requirements:
|
48
|
-
- - '>='
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: '1.0'
|
51
|
-
type: :development
|
52
|
-
prerelease: false
|
53
|
-
version_requirements: !ruby/object:Gem::Requirement
|
54
|
-
requirements:
|
55
|
-
- - '>='
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: '1.0'
|
58
44
|
- !ruby/object:Gem::Dependency
|
59
45
|
name: nokogiri
|
60
46
|
requirement: !ruby/object:Gem::Requirement
|
61
47
|
requirements:
|
62
|
-
- -
|
48
|
+
- - ">="
|
63
49
|
- !ruby/object:Gem::Version
|
64
50
|
version: 1.6.0
|
65
51
|
type: :runtime
|
66
52
|
prerelease: false
|
67
53
|
version_requirements: !ruby/object:Gem::Requirement
|
68
54
|
requirements:
|
69
|
-
- -
|
55
|
+
- - ">="
|
70
56
|
- !ruby/object:Gem::Version
|
71
57
|
version: 1.6.0
|
72
58
|
- !ruby/object:Gem::Dependency
|
73
59
|
name: guess_html_encoding
|
74
60
|
requirement: !ruby/object:Gem::Requirement
|
75
61
|
requirements:
|
76
|
-
- -
|
62
|
+
- - ">="
|
77
63
|
- !ruby/object:Gem::Version
|
78
64
|
version: 0.0.4
|
79
65
|
type: :runtime
|
80
66
|
prerelease: false
|
81
67
|
version_requirements: !ruby/object:Gem::Requirement
|
82
68
|
requirements:
|
83
|
-
- -
|
69
|
+
- - ">="
|
84
70
|
- !ruby/object:Gem::Version
|
85
71
|
version: 0.0.4
|
86
72
|
description: Port of arc90's readability project to ruby
|
@@ -91,10 +77,10 @@ executables:
|
|
91
77
|
extensions: []
|
92
78
|
extra_rdoc_files: []
|
93
79
|
files:
|
94
|
-
- .
|
95
|
-
- .
|
96
|
-
- .
|
97
|
-
- .yardopts
|
80
|
+
- ".github/workflows/ruby.yml"
|
81
|
+
- ".gitignore"
|
82
|
+
- ".rspec"
|
83
|
+
- ".yardopts"
|
98
84
|
- Gemfile
|
99
85
|
- Guardfile
|
100
86
|
- LICENSE
|
@@ -108,9 +94,13 @@ files:
|
|
108
94
|
- spec/fixtures/boing_boing.html
|
109
95
|
- spec/fixtures/cant_read.html
|
110
96
|
- spec/fixtures/code.html
|
97
|
+
- spec/fixtures/codinghorror.html
|
98
|
+
- spec/fixtures/images/Confusion_of_Tongues.png
|
99
|
+
- spec/fixtures/images/JohnPinhole.jpg
|
111
100
|
- spec/fixtures/images/dim_1416768a.jpg
|
112
101
|
- spec/fixtures/images/sign_up_emails_682__703711a.gif
|
113
102
|
- spec/fixtures/images/sign_up_emails_682__703712a.gif
|
103
|
+
- spec/fixtures/nested_images.html
|
114
104
|
- spec/fixtures/nytimes.html
|
115
105
|
- spec/fixtures/sample.html
|
116
106
|
- spec/fixtures/samples/blogpost_with_links-fragments.rb
|
@@ -129,24 +119,23 @@ files:
|
|
129
119
|
homepage: http://github.com/cantino/ruby-readability
|
130
120
|
licenses: []
|
131
121
|
metadata: {}
|
132
|
-
post_install_message:
|
122
|
+
post_install_message:
|
133
123
|
rdoc_options: []
|
134
124
|
require_paths:
|
135
125
|
- lib
|
136
126
|
required_ruby_version: !ruby/object:Gem::Requirement
|
137
127
|
requirements:
|
138
|
-
- -
|
128
|
+
- - ">="
|
139
129
|
- !ruby/object:Gem::Version
|
140
130
|
version: '0'
|
141
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
132
|
requirements:
|
143
|
-
- -
|
133
|
+
- - ">="
|
144
134
|
- !ruby/object:Gem::Version
|
145
135
|
version: '0'
|
146
136
|
requirements: []
|
147
|
-
|
148
|
-
|
149
|
-
signing_key:
|
137
|
+
rubygems_version: 3.5.14
|
138
|
+
signing_key:
|
150
139
|
specification_version: 4
|
151
140
|
summary: Port of arc90's readability project to ruby
|
152
141
|
test_files:
|
@@ -154,9 +143,13 @@ test_files:
|
|
154
143
|
- spec/fixtures/boing_boing.html
|
155
144
|
- spec/fixtures/cant_read.html
|
156
145
|
- spec/fixtures/code.html
|
146
|
+
- spec/fixtures/codinghorror.html
|
147
|
+
- spec/fixtures/images/Confusion_of_Tongues.png
|
148
|
+
- spec/fixtures/images/JohnPinhole.jpg
|
157
149
|
- spec/fixtures/images/dim_1416768a.jpg
|
158
150
|
- spec/fixtures/images/sign_up_emails_682__703711a.gif
|
159
151
|
- spec/fixtures/images/sign_up_emails_682__703712a.gif
|
152
|
+
- spec/fixtures/nested_images.html
|
160
153
|
- spec/fixtures/nytimes.html
|
161
154
|
- spec/fixtures/sample.html
|
162
155
|
- spec/fixtures/samples/blogpost_with_links-fragments.rb
|