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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47f6b90c7716327174578dac48fe345df877f4f1
4
- data.tar.gz: 0e1c6fb43575a4fde7f8c01f028e67902ffb1412
3
+ metadata.gz: 63e97f664a87948261278b516a89c3e947ce1182
4
+ data.tar.gz: 01b117b7c8cd1826b33970471d31965590c5179c
5
5
  SHA512:
6
- metadata.gz: d41c90cd7d69bec7c11911accf93b6815f35ac63724764e7df9a3b71f397ee2567a42f8fe02bd2daf971734b34ac2239ab7c1d52e52f7bb0f1a4466f6b46fea4
7
- data.tar.gz: 49ec4eb921d986e2a11620059a85a7063d22170f4a4883f86c9703f6a77e5f9bfdecf6e84fd8c429d9ddd554d256df34c750f536e79f2f2874781061013356df
6
+ metadata.gz: 84abd4ee854e8da8307402e06182b76d1744db228cbeddf60ae967326f2a358d97e5cdde03dc662957cfe39985dd2f66c856501503075686b1792b7756ab6789
7
+ data.tar.gz: dca303e834003a07fa065027f4c458a33a6a951bcdcb18217f30ad820f403a349f0e86607dd1bb63ed1c9e6fcdbb898d57795d5aa25ab5f6e00d7a69996c554c
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -0,0 +1,12 @@
1
+ bundler_args: --without development
2
+ language: ruby
3
+
4
+ before_install:
5
+ - rvm get head
6
+
7
+ rvm:
8
+ - 2.1.2
9
+ - 2.1.1
10
+ - 2.1.0
11
+ - 2.0.0
12
+ - 1.9.3
data/Gemfile CHANGED
@@ -6,12 +6,12 @@ gem 'yard'
6
6
 
7
7
  group :development do
8
8
  gem 'pry'
9
- gem 'debugger'
9
+ gem 'byebug'
10
10
  end
11
11
 
12
12
  group :test do
13
13
  gem 'coveralls', require: false
14
- gem 'rspec', '>= 2.14'
14
+ gem 'rspec', '~> 3.0'
15
15
  end
16
16
 
17
17
  gemspec
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-----
@@ -1,3 +1,3 @@
1
1
  module ReadabilityParser
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -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/pdionne-gem-public_cert.pem']
23
- gem.signing_key = File.expand_path("~/.gem/pdionne-gem-private_key.pem") if $0 =~ /gem\z/
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.8.4"
26
- gem.add_dependency "faraday_middleware", "~> 0.9.0"
27
- gem.add_dependency "hashie", "~> 1.2.0"
28
- gem.add_dependency "multi_xml", "~> 0.5.2"
29
- gem.add_dependency "multi_json", "~> 1.7.2"
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
- pending
56
+ skip
57
57
  end
58
58
 
59
59
  it "catches Readability Parser API errors" do
60
- pending
60
+ skip
61
61
  end
62
62
  end
63
63
  end
@@ -2,6 +2,6 @@ require 'spec_helper'
2
2
 
3
3
  describe ReadabilityParser::Error do
4
4
  it "raises the correct error based on api HTTP response code" do
5
- pending
5
+ skip
6
6
  end
7
7
  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).should be_a_kind_of(ReadabilityParser::Client)
11
+ expect(ReadabilityParser.new).to be_a_kind_of(ReadabilityParser::Client)
12
12
  end
13
13
  end
14
14
  end
@@ -4,7 +4,6 @@ require 'rspec'
4
4
  require 'readability_parser'
5
5
 
6
6
  RSpec.configure do |config|
7
- config.treat_symbols_as_metadata_keys_with_true_values = true
8
7
  config.filter_run focus: true
9
8
  config.filter_run_excluding skip: true
10
9
  config.run_all_when_everything_filtered = true
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
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
  bmUucGhpbDEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYD
15
- Y29tMB4XDTEzMDMwOTEzMjMzNVoXDTE0MDMwOTEzMjMzNVowQjEUMBIGA1UEAwwL
15
+ Y29tMB4XDTE0MDcxNDE0NTE0OFoXDTE1MDcxNDE0NTE0OFowQjEUMBIGA1UEAwwL
16
16
  ZGlvbm5lLnBoaWwxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixk
17
- ARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALtGK2NoFyVX
18
- seKlfHb8nuhBy8rw1nP3JVHWoyqalLs0t3axUWe6sDCgQXAOL3FtkfYPYlyX6X4s
19
- FggcSySUt0PvGdas0ym/lW+sfGT6gXDBKbPvkWFNtpXaIJ8FLhqnJR2m57b8R6pf
20
- VMBDka95N80Xu9NQrAesF+wW/c6ZiAON2VDsWabZEfj146y7ZvviB7pZHlPznI4W
21
- GVfOk0MCl0Q60Jyk7WwNec+NA9rG7vE/dWdGOKfxU6ZJnC6drC3kBsBKkRZs+GRh
22
- 6XoCAsrKbRwb/ZI3A1S/J9yvq/NQ1B/U3CisBFht+CbdspeXVUDx5dffDVxnxdo/
23
- w2R3wJMvD2MCAwEAAaN9MHswCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0O
24
- BBYEFA+69dGxvFtLxJ+aH8l4UO9yy853MCAGA1UdEQQZMBeBFWRpb25uZS5waGls
17
+ ARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPAnIUIT51jC
18
+ 2iMwhJWDe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L/pVLkcx1s94/dmKy45N5yX6AxJ50RBMtPpVGTnXCA68plB2hYu7UVhyw5
29
+ x/hfKYaRBs1f/AZVaCHfgcIWSJYZIZ3X32PkYSlWJA2ROd/u25y8upo8myZC92r5
30
+ 43TXU6gCzN7VhxGu/S0jyaQEA7j5tJrhrhfUOCG62B6qhi43N/isFN3PtVwRN5XZ
31
+ ZpR7cUXWbK6hss65VhNnmbSkT3wqsHXyUbr4QNlhYhc=
32
32
  -----END CERTIFICATE-----
33
- date: 2013-11-14 00:00:00.000000000 Z
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.8.4
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.8.4
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.0
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.0
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: 1.2.0
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: 1.2.0
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.2
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.2
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.7.2
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.7.2
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
- - .yardopts
112
+ - ".gitignore"
113
+ - ".rspec"
114
+ - ".travis.yml"
115
+ - ".yardopts"
115
116
  - Gemfile
116
117
  - README.md
117
118
  - Rakefile
118
- - certs/pdionne-gem-public_cert.pem
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.1.9
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
- ZGlvbm5lLnBoaWwxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixk
6
- ARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALtGK2NoFyVX
7
- seKlfHb8nuhBy8rw1nP3JVHWoyqalLs0t3axUWe6sDCgQXAOL3FtkfYPYlyX6X4s
8
- FggcSySUt0PvGdas0ym/lW+sfGT6gXDBKbPvkWFNtpXaIJ8FLhqnJR2m57b8R6pf
9
- VMBDka95N80Xu9NQrAesF+wW/c6ZiAON2VDsWabZEfj146y7ZvviB7pZHlPznI4W
10
- GVfOk0MCl0Q60Jyk7WwNec+NA9rG7vE/dWdGOKfxU6ZJnC6drC3kBsBKkRZs+GRh
11
- 6XoCAsrKbRwb/ZI3A1S/J9yvq/NQ1B/U3CisBFht+CbdspeXVUDx5dffDVxnxdo/
12
- w2R3wJMvD2MCAwEAAaN9MHswCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0O
13
- BBYEFA+69dGxvFtLxJ+aH8l4UO9yy853M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