ruby-readability-discourse 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.travis.yml +6 -0
- data/.yardopts +3 -0
- data/Gemfile +12 -0
- data/Guardfile +9 -0
- data/LICENSE +202 -0
- data/README.md +107 -0
- data/Rakefile +6 -0
- data/bin/readability +41 -0
- data/lib/readability.rb +492 -0
- data/lib/ruby-readability.rb +1 -0
- data/ruby-readability.gemspec +25 -0
- data/spec/fixtures/bbc.html +2069 -0
- data/spec/fixtures/boing_boing.html +876 -0
- data/spec/fixtures/cant_read.html +426 -0
- data/spec/fixtures/code.html +13 -0
- data/spec/fixtures/images/dim_1416768a.jpg +0 -0
- data/spec/fixtures/images/sign_up_emails_682__703711a.gif +0 -0
- data/spec/fixtures/images/sign_up_emails_682__703712a.gif +0 -0
- data/spec/fixtures/nytimes.html +58 -0
- data/spec/fixtures/sample.html +1198 -0
- data/spec/fixtures/samples/blogpost_with_links-fragments.rb +10 -0
- data/spec/fixtures/samples/blogpost_with_links.html +137 -0
- data/spec/fixtures/samples/channel4-1-fragments.rb +13 -0
- data/spec/fixtures/samples/channel4-1.html +1330 -0
- data/spec/fixtures/samples/foxnews-india1-fragments.rb +13 -0
- data/spec/fixtures/samples/foxnews-india1.html +2058 -0
- data/spec/fixtures/samples/globemail-ottawa-cuts-fragments.rb +31 -0
- data/spec/fixtures/samples/globemail-ottawa-cuts.html +2410 -0
- data/spec/fixtures/should_not_truncate.txt +1077 -0
- data/spec/fixtures/thesun.html +1122 -0
- data/spec/readability_spec.rb +544 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +11 -0
- metadata +152 -0
data/spec/spec.opts
ADDED
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,152 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruby-readability-discourse
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andrew Cantino
|
8
|
+
- starrhorne
|
9
|
+
- libc
|
10
|
+
- Kyle Maxwell
|
11
|
+
autorequire:
|
12
|
+
bindir: bin
|
13
|
+
cert_chain: []
|
14
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: rspec
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2.8'
|
23
|
+
type: :development
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.8'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec-expectations
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '2.8'
|
37
|
+
type: :development
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
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
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: nokogiri
|
60
|
+
requirement: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 1.4.2
|
65
|
+
type: :runtime
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: 1.4.2
|
72
|
+
- !ruby/object:Gem::Dependency
|
73
|
+
name: guess_html_encoding
|
74
|
+
requirement: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 0.0.4
|
79
|
+
type: :runtime
|
80
|
+
prerelease: false
|
81
|
+
version_requirements: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 0.0.4
|
86
|
+
description: Port of arc90's readability project to ruby
|
87
|
+
email:
|
88
|
+
- andrew@iterationlabs.com
|
89
|
+
executables:
|
90
|
+
- readability
|
91
|
+
extensions: []
|
92
|
+
extra_rdoc_files: []
|
93
|
+
files:
|
94
|
+
- ".gitignore"
|
95
|
+
- ".rspec"
|
96
|
+
- ".travis.yml"
|
97
|
+
- ".yardopts"
|
98
|
+
- Gemfile
|
99
|
+
- Guardfile
|
100
|
+
- LICENSE
|
101
|
+
- README.md
|
102
|
+
- Rakefile
|
103
|
+
- bin/readability
|
104
|
+
- lib/readability.rb
|
105
|
+
- lib/ruby-readability.rb
|
106
|
+
- ruby-readability.gemspec
|
107
|
+
- spec/fixtures/bbc.html
|
108
|
+
- spec/fixtures/boing_boing.html
|
109
|
+
- spec/fixtures/cant_read.html
|
110
|
+
- spec/fixtures/code.html
|
111
|
+
- spec/fixtures/images/dim_1416768a.jpg
|
112
|
+
- spec/fixtures/images/sign_up_emails_682__703711a.gif
|
113
|
+
- spec/fixtures/images/sign_up_emails_682__703712a.gif
|
114
|
+
- spec/fixtures/nytimes.html
|
115
|
+
- spec/fixtures/sample.html
|
116
|
+
- spec/fixtures/samples/blogpost_with_links-fragments.rb
|
117
|
+
- spec/fixtures/samples/blogpost_with_links.html
|
118
|
+
- spec/fixtures/samples/channel4-1-fragments.rb
|
119
|
+
- spec/fixtures/samples/channel4-1.html
|
120
|
+
- spec/fixtures/samples/foxnews-india1-fragments.rb
|
121
|
+
- spec/fixtures/samples/foxnews-india1.html
|
122
|
+
- spec/fixtures/samples/globemail-ottawa-cuts-fragments.rb
|
123
|
+
- spec/fixtures/samples/globemail-ottawa-cuts.html
|
124
|
+
- spec/fixtures/should_not_truncate.txt
|
125
|
+
- spec/fixtures/thesun.html
|
126
|
+
- spec/readability_spec.rb
|
127
|
+
- spec/spec.opts
|
128
|
+
- spec/spec_helper.rb
|
129
|
+
homepage: http://github.com/cantino/ruby-readability
|
130
|
+
licenses: []
|
131
|
+
metadata: {}
|
132
|
+
post_install_message:
|
133
|
+
rdoc_options: []
|
134
|
+
require_paths:
|
135
|
+
- lib
|
136
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
requirements: []
|
147
|
+
rubyforge_project: ruby-readability-discourse
|
148
|
+
rubygems_version: 2.2.0
|
149
|
+
signing_key:
|
150
|
+
specification_version: 4
|
151
|
+
summary: Port of arc90's readability project to ruby
|
152
|
+
test_files: []
|