richurls 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/richurls.rb +4 -5
- data/lib/url_fetcher.rb +1 -3
- data/richurls.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4030ed06bc0c13f5707d3a061e6561eb8229fa48b6d3499fbe7d434c7fa0d433
|
4
|
+
data.tar.gz: 8e324278bcc431ddd8cffe70ce17cf0d81dc8e3e9dbe13d93508f38e6a4efef5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ed70d90e7231dc89c0d7c152ffbdf085339c65ddf8737a9d997874dc67a34900b5768b5529f8e76bb6a2f557458f51411fd3923bd9416ae09815b4afb5996c9
|
7
|
+
data.tar.gz: 319f776fd40d680038bd134b620c779a49d263a858afc703f44b1eedf22bb6e58ee5016011ccbc8a075b917a32b83d0c42c54f2ff5c18b26657566a303513e9d
|
data/Gemfile.lock
CHANGED
data/lib/richurls.rb
CHANGED
@@ -7,7 +7,6 @@ require_relative 'url_fetcher'
|
|
7
7
|
require_relative 'body_decorator'
|
8
8
|
|
9
9
|
module RichUrls
|
10
|
-
DEFAULT_USER_AGENT = 'richurls'.freeze
|
11
10
|
class MalformedURLError < StandardError; end
|
12
11
|
|
13
12
|
def self.cache
|
@@ -23,12 +22,12 @@ module RichUrls
|
|
23
22
|
@cache ||= wrapper
|
24
23
|
end
|
25
24
|
|
26
|
-
def self.
|
27
|
-
@
|
25
|
+
def self.headers=(headers)
|
26
|
+
@headers ||= headers
|
28
27
|
end
|
29
28
|
|
30
|
-
def self.
|
31
|
-
@
|
29
|
+
def self.headers
|
30
|
+
@headers || {}
|
32
31
|
end
|
33
32
|
|
34
33
|
def self.enrich(url, filter: [], cache_time: nil)
|
data/lib/url_fetcher.rb
CHANGED
data/richurls.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: richurls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- grdw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|