mako_rss 0.2.2 → 0.2.3

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: 36e2ef1d6c047979056ee71f1bc6b1b60ad42f8c
4
- data.tar.gz: da1e7fc95881733c0263c3f9a5e0bb9cdba579de
3
+ metadata.gz: 5201445c6691e5eef5f6e9a9f6c52d7689dddb49
4
+ data.tar.gz: 2d607663ad3e8c8c184f5b49b06e27dd5fbe8b69
5
5
  SHA512:
6
- metadata.gz: c171053333bb66e7781ecac1e3239447fa896358002eeae728f92608a9e4c62fa4f72cebd29855fecf1845d45e0770d9bc49438b141ddba6f954338e65080548
7
- data.tar.gz: bd83759022b68479a87eed75d5bb662af64f2c154e3fb6469d526fdce5e8b615bec48bf7351d2dd6382798d6516c16e8f12f6692ec9822fd669a3b9927563947
6
+ metadata.gz: d0728dfb13977584f14c236c373fbd52a1a8a05e327344c89627e94eab4be4875bdee602c713be77373e74ed3636b58e8948b9e37301c140898745edcb341900
7
+ data.tar.gz: 222358f8846c88346cc4fc0ac93916a41545905e5759745e599738e0be20a10522038c6cea22c9e93427dc007683d1d1721b477c0ba537c71f33343d09b2c9b4
data/lib/mako/article.rb CHANGED
@@ -37,7 +37,7 @@ module Mako
37
37
  if Mako.config.sanitize_images
38
38
  doc.css('img').each do |n|
39
39
  n.name = 'a'
40
- n.content = "📷 #{n['alt']}" || '📷 Image'
40
+ n.content = n['alt'] ? "📷 #{n['alt']}" : '📷 Image'
41
41
  n['href'] = URI.parse(n['src']).absolutize!(uri)
42
42
  end
43
43
  end
@@ -20,7 +20,7 @@ module Mako
20
20
  def fetch
21
21
  begin
22
22
  request = HTTParty.get(feed_url)
23
- rescue SocketError
23
+ rescue SocketError, HTTParty::RedirectionTooDeep
24
24
  Mako.errors.add_error "Could not complete request to #{feed_url}."
25
25
  self.ok = false
26
26
  return self
data/lib/mako/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mako
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mako_rss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Pike
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-08 00:00:00.000000000 Z
11
+ date: 2017-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  version: '0'
231
231
  requirements: []
232
232
  rubyforge_project:
233
- rubygems_version: 2.5.1
233
+ rubygems_version: 2.6.13
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: A static site feed reader