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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72b4a8cc278e61fab2fd24f2b8196bb2e0d3561a3e4d866b215c4f41bd8e4291
4
- data.tar.gz: cf9e5ca2a161577e7a3b808df7dd6f93ab0a28514c7fc9c8580315aa41a760a1
3
+ metadata.gz: 2ec11b4c8f6221d446ec0ea2584f81c5f0d9f83293434030d751fe93223672ba
4
+ data.tar.gz: ab40f384d4a576562c53aa10d78713126bb7c933ad5c88816ddd412177fe865b
5
5
  SHA512:
6
- metadata.gz: f3eae092297b97e80098ecdd2f865065dea7b3876f57539a0d2ddaf209853864a4630e164c74e0c85fad3ca95ab62acd991d5c65e41b9dc51030fdf2da8ee96a
7
- data.tar.gz: '0359b5031e226a6662469d72344cb954130f66c5ed9223717f0ba5a0d24932c3e8f51299b29eca7062b7164fb3c057cacb986d9f1dbc6b91cf07d41387abfa73'
6
+ metadata.gz: 97d76fb09a997653118643ff27f99800e263b3b2cf5b4266600ba5d6e224b655aeb075efe11c4f065a84ce196bc8b3d3b942e7d0387af8fc2861514333391f7f
7
+ data.tar.gz: ba981d36500d9b51f5a250c7e1c82382a8f27937c07ad28982a8cfcafe17a4fecd5209318bf075d9af48c9195c6211eaa14a4f221b91c21183cf46bdcd353966
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- richurls (0.1.1)
4
+ richurls (0.1.2)
5
5
  oj (~> 3)
6
6
  ox (~> 2)
7
7
  patron (~> 0.13)
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(@url, response.body).decorate
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
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'richurls'
6
- spec.version = '0.1.1'
6
+ spec.version = '0.1.2'
7
7
  spec.authors = ['grdw']
8
8
  spec.email = ['gerard@wetransfer.com']
9
9
 
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.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-09 00:00:00.000000000 Z
11
+ date: 2020-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj