metainspector 5.4.0 → 5.4.1

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: 273cd0ae91070bbf2937040d522fafad0ccde429
4
- data.tar.gz: f0be5b153236da195c05254237ca44a11140f213
3
+ metadata.gz: ef70ce77a81fb9913d7efc9638cb9b40ae39a6d3
4
+ data.tar.gz: 302ab1f5c39cb2c3357fa2b365b589900a8e01b2
5
5
  SHA512:
6
- metadata.gz: 1bdf4b3d45fff3711806da5a2cfd27c58e409e4b4d8b849302f1cff6e740ee14ad9e3783eda9622003e5438b65dd9e59ff5a2d507df5f97a473649878950d727
7
- data.tar.gz: 7848876a57432a1d208e25d8d10ae78357d3a07d076f9a2109fd53bb3add56827b742245e789ff1db6ad2247465ef054462a6dcc373e06394e34b1a298b744d8
6
+ metadata.gz: cdc124fe224875ca944a760398e101668d251afa20842100d29982ae643bddfb8d41105472f27c086ff35b9c80dab0813984085aa232a7fba440bf9e6119a37f
7
+ data.tar.gz: de826dff76e3f05b081f6c732f5f893936f094def30169f0df9386f5c87b160b80e787ba22895e3f7e92bdca9595e0bae63d6de10dc60c5cfe5168aa87b2c9b8
@@ -1,5 +1,17 @@
1
1
  # MetaInpector Changelog
2
2
 
3
+ ## [Changes in 5.4](https://github.com/jaimeiniesta/metainspector/compare/v5.3.0...v5.4.0)
4
+
5
+ Supports Gzipped responses.
6
+ Adds method `best_description` and makes `description` return just the meta description.
7
+ Removes support for Ruby 2.0.0 and adds support for 2.4.0.
8
+
9
+ ## [Changes in 5.3](https://github.com/jaimeiniesta/metainspector/compare/v5.2.0...v5.3.0)
10
+
11
+ Returns secondary description if meta description is empty.
12
+ Adds a custom timeout on top of the ones for Faraday, and sets defaults for timeouts.
13
+ Eliminates possible NULL char in HTML which breaks nokogiri.
14
+
3
15
  ## [Changes in 5.2](https://github.com/jaimeiniesta/metainspector/compare/v5.1.0...v5.2.0)
4
16
 
5
17
  Removes the deprecated `html_content_only` option, and replaces it by `allow_non_html_content`, by default `false`.
@@ -1,3 +1,3 @@
1
1
  module MetaInspector
2
- VERSION = '5.4.0'
2
+ VERSION = '5.4.1'
3
3
  end
@@ -14,14 +14,14 @@ Gem::Specification.new do |gem|
14
14
  gem.require_paths = ["lib"]
15
15
  gem.version = MetaInspector::VERSION
16
16
 
17
- gem.add_dependency 'nokogiri', '~> 1.6'
18
- gem.add_dependency 'faraday', '~> 0.9'
19
- gem.add_dependency 'faraday_middleware', '~> 0.10'
17
+ gem.add_dependency 'nokogiri', '~> 1.7'
18
+ gem.add_dependency 'faraday', '~> 0.11'
19
+ gem.add_dependency 'faraday_middleware', '~> 0.11'
20
20
  gem.add_dependency 'faraday-cookie_jar', '~> 0.0'
21
- gem.add_dependency 'faraday-http-cache', '~> 1.2'
22
- gem.add_dependency 'faraday-encoding', '~> 0.0.3'
23
- gem.add_dependency 'addressable', '~> 2.4'
24
- gem.add_dependency 'fastimage', '~> 2.0'
21
+ gem.add_dependency 'faraday-http-cache', '~> 2.0'
22
+ gem.add_dependency 'faraday-encoding', '~> 0.0'
23
+ gem.add_dependency 'addressable', '~> 2.5'
24
+ gem.add_dependency 'fastimage', '~> 2.1'
25
25
  gem.add_dependency 'nesty', '~> 1.0'
26
26
 
27
27
  gem.add_development_dependency 'rspec', '~> 3.0'
@@ -94,7 +94,7 @@ describe MetaInspector::Document do
94
94
  expect do
95
95
  image_url = MetaInspector::Document.new('http://pagerankalert.com/image.png', allow_non_html_content: true)
96
96
  image_url.title
97
- end.to_not raise_error(MetaInspector::ParserError)
97
+ end.to_not raise_error
98
98
  end
99
99
  end
100
100
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metainspector
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.0
4
+ version: 5.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaime Iniesta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-11 00:00:00.000000000 Z
11
+ date: 2017-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.6'
19
+ version: '1.7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.6'
26
+ version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.9'
33
+ version: '0.11'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.9'
40
+ version: '0.11'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: faraday_middleware
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.10'
47
+ version: '0.11'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.10'
54
+ version: '0.11'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: faraday-cookie_jar
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,56 +72,56 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.2'
75
+ version: '2.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.2'
82
+ version: '2.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: faraday-encoding
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.0.3
89
+ version: '0.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.0.3
96
+ version: '0.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: addressable
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '2.4'
103
+ version: '2.5'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '2.4'
110
+ version: '2.5'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: fastimage
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '2.0'
117
+ version: '2.1'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '2.0'
124
+ version: '2.1'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: nesty
127
127
  requirement: !ruby/object:Gem::Requirement