richurls 0.1.1 → 0.1.2
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/url_fetcher.rb +1 -1
- 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: 2ec11b4c8f6221d446ec0ea2584f81c5f0d9f83293434030d751fe93223672ba
|
4
|
+
data.tar.gz: ab40f384d4a576562c53aa10d78713126bb7c933ad5c88816ddd412177fe865b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97d76fb09a997653118643ff27f99800e263b3b2cf5b4266600ba5d6e224b655aeb075efe11c4f065a84ce196bc8b3d3b942e7d0387af8fc2861514333391f7f
|
7
|
+
data.tar.gz: ba981d36500d9b51f5a250c7e1c82382a8f27937c07ad28982a8cfcafe17a4fecd5209318bf075d9af48c9195c6211eaa14a4f221b91c21183cf46bdcd353966
|
data/Gemfile.lock
CHANGED
data/lib/url_fetcher.rb
CHANGED
@@ -38,7 +38,7 @@ module RichUrls
|
|
38
38
|
response = session.get(@url)
|
39
39
|
|
40
40
|
if response.status < 400
|
41
|
-
decorated = BodyDecorator.new(
|
41
|
+
decorated = BodyDecorator.new(response.url, response.body).decorate
|
42
42
|
redis.set(digest, Oj.dump(decorated), ex: CACHE_TIME)
|
43
43
|
decorated
|
44
44
|
else
|
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.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- grdw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|