readability_parser 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.travis.yml +12 -0
- data/Gemfile +2 -2
- data/README.md +6 -1
- data/certs/gem-public_cert.pem +21 -0
- data/lib/readability_parser/version.rb +1 -1
- data/readability_parser.gemspec +7 -7
- data/spec/readability_parser/client_spec.rb +2 -2
- data/spec/readability_parser/error_spec.rb +1 -1
- data/spec/readability_parser_spec.rb +1 -1
- data/spec/spec_helper.rb +0 -1
- metadata +45 -44
- metadata.gz.sig +0 -0
- data/certs/pdionne-gem-public_cert.pem +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63e97f664a87948261278b516a89c3e947ce1182
|
4
|
+
data.tar.gz: 01b117b7c8cd1826b33970471d31965590c5179c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84abd4ee854e8da8307402e06182b76d1744db228cbeddf60ae967326f2a358d97e5cdde03dc662957cfe39985dd2f66c856501503075686b1792b7756ab6789
|
7
|
+
data.tar.gz: dca303e834003a07fa065027f4c458a33a6a951bcdcb18217f30ad820f403a349f0e86607dd1bb63ed1c9e6fcdbb898d57795d5aa25ab5f6e00d7a69996c554c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
# Readability Parser
|
2
2
|
A tiny ruby wrapper for Readability's [Parser API](http://www.readability.com/developers/api/parser)
|
3
3
|
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/readability_parser.png)](http://badge.fury.io/rb/readability_parser)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/phildionne/readability_parser.png)](https://codeclimate.com/github/phildionne/readability_parser)
|
6
|
+
[![Dependency Status](https://gemnasium.com/phildionne/readability_parser.png)](https://gemnasium.com/phildionne/readability_parser)
|
7
|
+
[![Build Status](https://travis-ci.org/phildionne/readability_parser.png)](https://travis-ci.org/phildionne/readability_parser)
|
8
|
+
|
4
9
|
## Installation
|
5
10
|
Add this line to your application's Gemfile:
|
6
11
|
|
@@ -22,7 +27,7 @@ or set multiple options with a block:
|
|
22
27
|
|
23
28
|
```ruby
|
24
29
|
ReadabilityParser.configure do |readability|
|
25
|
-
readability.api_token = READABILITY_API_TOKEN
|
30
|
+
readability.api_token = READABILITY_API_TOKEN
|
26
31
|
readability.format = :json
|
27
32
|
end
|
28
33
|
```
|
@@ -0,0 +1,21 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDfDCCAmSgAwIBAgIBATANBgkqhkiG9w0BAQUFADBCMRQwEgYDVQQDDAtkaW9u
|
3
|
+
bmUucGhpbDEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYD
|
4
|
+
Y29tMB4XDTE0MDcxNDE0NTE0OFoXDTE1MDcxNDE0NTE0OFowQjEUMBIGA1UEAwwL
|
5
|
+
ZGlvbm5lLnBoaWwxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixk
|
6
|
+
ARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPAnIUIT51jC
|
7
|
+
2iMwhJWDe+D8N8nnIQEZQ6Iqc41WDAAfhFVnvSfxx6NOK4JdcfAqvEkSTNXlrM0p
|
8
|
+
f2WBAiLXSyMSXGEbTEnILD1RDtpj+zMr4dHLAd5bkrXTaV7IK8MhZ+/FnbJER+m3
|
9
|
+
6qwDfwHkXqaFFYmZrGZh1lM0h7I0+O4zaRm05ixcMfgWr7lex1zpffk/ttMmd2Sl
|
10
|
+
EHIURJmq+GXHoJnK5og2xshhk0rK4qVKCtstsuo1HMf7Lb/tmpGD6td3ibkMPdxf
|
11
|
+
p1aZq4K1vmRh9G/bYBzmRwDVNj6K0xQ50d/0JRtdJG6MWe57kfBdmrfG6ZtUCsYU
|
12
|
+
gTyScDSKBfUCAwEAAaN9MHswCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0O
|
13
|
+
BBYEFJbzGHKTBAkaDvK53edSBvuP4wrLMCAGA1UdEQQZMBeBFWRpb25uZS5waGls
|
14
|
+
QGdtYWlsLmNvbTAgBgNVHRIEGTAXgRVkaW9ubmUucGhpbEBnbWFpbC5jb20wDQYJ
|
15
|
+
KoZIhvcNAQEFBQADggEBAIRuOdnpiKISIGrqWTC4KBnyNkqizjGVu2w2Eh6pxrjm
|
16
|
+
QxNJafUokxWzMmFhUhAynUKAq9NMMYtvKpKh9JeZHP5C5hbmCOC596WPG1GHpXLa
|
17
|
+
k3jxSjL/pVLkcx1s94/dmKy45N5yX6AxJ50RBMtPpVGTnXCA68plB2hYu7UVhyw5
|
18
|
+
x/hfKYaRBs1f/AZVaCHfgcIWSJYZIZ3X32PkYSlWJA2ROd/u25y8upo8myZC92r5
|
19
|
+
43TXU6gCzN7VhxGu/S0jyaQEA7j5tJrhrhfUOCG62B6qhi43N/isFN3PtVwRN5XZ
|
20
|
+
ZpR7cUXWbK6hss65VhNnmbSkT3wqsHXyUbr4QNlhYhc=
|
21
|
+
-----END CERTIFICATE-----
|
data/readability_parser.gemspec
CHANGED
@@ -19,12 +19,12 @@ Gem::Specification.new do |gem|
|
|
19
19
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
20
20
|
gem.require_paths = ["lib"]
|
21
21
|
|
22
|
-
gem.cert_chain = ['certs/
|
23
|
-
gem.signing_key = File.expand_path("~/.gem/
|
22
|
+
gem.cert_chain = ['certs/gem-public_cert.pem']
|
23
|
+
gem.signing_key = File.expand_path("~/.gem/gem-private_key.pem") if $0 =~ /gem\z/
|
24
24
|
|
25
|
-
gem.add_dependency "faraday", "~> 0.
|
26
|
-
gem.add_dependency "faraday_middleware", "~> 0.9
|
27
|
-
gem.add_dependency "hashie", "~>
|
28
|
-
gem.add_dependency "multi_xml", "~> 0.5
|
29
|
-
gem.add_dependency "multi_json", "~> 1.
|
25
|
+
gem.add_dependency "faraday", "~> 0.9"
|
26
|
+
gem.add_dependency "faraday_middleware", "~> 0.9"
|
27
|
+
gem.add_dependency "hashie", "~> 3.2"
|
28
|
+
gem.add_dependency "multi_xml", "~> 0.5"
|
29
|
+
gem.add_dependency "multi_json", "~> 1.10"
|
30
30
|
end
|
@@ -53,11 +53,11 @@ describe ReadabilityParser::Client do
|
|
53
53
|
before { ReadabilityParser.api_token = '1234' }
|
54
54
|
|
55
55
|
it "catches Faraday connection errors" do
|
56
|
-
|
56
|
+
skip
|
57
57
|
end
|
58
58
|
|
59
59
|
it "catches Readability Parser API errors" do
|
60
|
-
|
60
|
+
skip
|
61
61
|
end
|
62
62
|
end
|
63
63
|
end
|
@@ -8,7 +8,7 @@ describe ReadabilityParser do
|
|
8
8
|
|
9
9
|
describe "#new" do
|
10
10
|
it "is a ReadabilityParser::Client" do
|
11
|
-
(ReadabilityParser.new).
|
11
|
+
expect(ReadabilityParser.new).to be_a_kind_of(ReadabilityParser::Client)
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: readability_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philippe Dionne
|
@@ -12,96 +12,96 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDfDCCAmSgAwIBAgIBATANBgkqhkiG9w0BAQUFADBCMRQwEgYDVQQDDAtkaW9u
|
14
14
|
bmUucGhpbDEVMB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
QxNJafUokxWzMmFhUhAynUKAq9NMMYtvKpKh9JeZHP5C5hbmCOC596WPG1GHpXLa
|
28
|
+
k3jxSjL/pVLkcx1s94/dmKy45N5yX6AxJ50RBMtPpVGTnXCA68plB2hYu7UVhyw5
|
29
|
+
x/hfKYaRBs1f/AZVaCHfgcIWSJYZIZ3X32PkYSlWJA2ROd/u25y8upo8myZC92r5
|
30
|
+
43TXU6gCzN7VhxGu/S0jyaQEA7j5tJrhrhfUOCG62B6qhi43N/isFN3PtVwRN5XZ
|
31
|
+
ZpR7cUXWbK6hss65VhNnmbSkT3wqsHXyUbr4QNlhYhc=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
33
|
+
date: 2014-07-14 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: faraday
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - ~>
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.
|
41
|
+
version: '0.9'
|
42
42
|
type: :runtime
|
43
43
|
prerelease: false
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - ~>
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.
|
48
|
+
version: '0.9'
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: faraday_middleware
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - ~>
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.9
|
55
|
+
version: '0.9'
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
58
|
version_requirements: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - ~>
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0.9
|
62
|
+
version: '0.9'
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
64
|
name: hashie
|
65
65
|
requirement: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - ~>
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: '3.2'
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - ~>
|
74
|
+
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: '3.2'
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
name: multi_xml
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - ~>
|
81
|
+
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0.5
|
83
|
+
version: '0.5'
|
84
84
|
type: :runtime
|
85
85
|
prerelease: false
|
86
86
|
version_requirements: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- - ~>
|
88
|
+
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 0.5
|
90
|
+
version: '0.5'
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: multi_json
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- - ~>
|
95
|
+
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: 1.
|
97
|
+
version: '1.10'
|
98
98
|
type: :runtime
|
99
99
|
prerelease: false
|
100
100
|
version_requirements: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - ~>
|
102
|
+
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: 1.
|
104
|
+
version: '1.10'
|
105
105
|
description: A tiny ruby wrapper for Readability's content parser api
|
106
106
|
email:
|
107
107
|
- dionne.phil@gmail.com
|
@@ -109,13 +109,14 @@ executables: []
|
|
109
109
|
extensions: []
|
110
110
|
extra_rdoc_files: []
|
111
111
|
files:
|
112
|
-
- .gitignore
|
113
|
-
- .rspec
|
114
|
-
- .
|
112
|
+
- ".gitignore"
|
113
|
+
- ".rspec"
|
114
|
+
- ".travis.yml"
|
115
|
+
- ".yardopts"
|
115
116
|
- Gemfile
|
116
117
|
- README.md
|
117
118
|
- Rakefile
|
118
|
-
- certs/
|
119
|
+
- certs/gem-public_cert.pem
|
119
120
|
- lib/readability_parser.rb
|
120
121
|
- lib/readability_parser/api/content.rb
|
121
122
|
- lib/readability_parser/article.rb
|
@@ -142,17 +143,17 @@ require_paths:
|
|
142
143
|
- lib
|
143
144
|
required_ruby_version: !ruby/object:Gem::Requirement
|
144
145
|
requirements:
|
145
|
-
- -
|
146
|
+
- - ">="
|
146
147
|
- !ruby/object:Gem::Version
|
147
148
|
version: '0'
|
148
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
150
|
requirements:
|
150
|
-
- -
|
151
|
+
- - ">="
|
151
152
|
- !ruby/object:Gem::Version
|
152
153
|
version: '0'
|
153
154
|
requirements: []
|
154
155
|
rubyforge_project:
|
155
|
-
rubygems_version: 2.
|
156
|
+
rubygems_version: 2.2.2
|
156
157
|
signing_key:
|
157
158
|
specification_version: 4
|
158
159
|
summary: Interact with the article parsing featureset of Readability. This means grabbing
|
metadata.gz.sig
CHANGED
Binary file
|
@@ -1,21 +0,0 @@
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
2
|
-
MIIDfDCCAmSgAwIBAgIBATANBgkqhkiG9w0BAQUFADBCMRQwEgYDVQQDDAtkaW9u
|
3
|
-
bmUucGhpbDEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYD
|
4
|
-
Y29tMB4XDTEzMDMwOTEzMjMzNVoXDTE0MDMwOTEzMjMzNVowQjEUMBIGA1UEAwwL
|
5
|
-
ZGlvbm5lLnBoaW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