feed_torrents 0.2.1 → 0.2.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
  SHA1:
3
- metadata.gz: f6cc9f35b4390852818e8771940c90480a94b261
4
- data.tar.gz: 2e60c8bec39bde2b4520ddbbe653fea6b0e948a8
3
+ metadata.gz: 7411b8200b438e66ce95e1d0bb3f81cbb8211291
4
+ data.tar.gz: ebb42046d0894cb26a3291e694c8f7f88ae32029
5
5
  SHA512:
6
- metadata.gz: f51383e6cae5add36e681f0d64ac64507ba1259dc698d2e2d70f3d0f97a3d08512b2a7ce262910e98425eb43df7d29ef2c6608de9ea9a372a6607dfeaea23ead
7
- data.tar.gz: 9d5cbbff0432f8d5dd32a8c7012bd815fa403f2d411881527ddeffe82a8de365c88d0734555570dca2c5b10fd66a6c2d7a78c1afb1a61c8811771a3de6cd9460
6
+ metadata.gz: 02cd8bd0cfd7b036da3b0358ee25e9e786717946e006b4122f2f34989d4e2b556ce77df8218978525e81b9ea5746fc711628f964d2b3812bec594230e1ded2e5
7
+ data.tar.gz: 750f23570668cc1a2fc32e20a2041df4b1cef33da74633147323d7a24568b5d622d208cbfcb82e053fc1a2679aa07fb9881a7db8b27bca7d865cafd22486dbfa
@@ -58,9 +58,12 @@ module FeedTorrents
58
58
 
59
59
  rss.items.each do |item|
60
60
  link = CGI.unescapeHTML(item.link)
61
+ title = CGI.unescapeHTML(item.title)
62
+ title = title.force_encoding('UTF-8')
61
63
 
62
- if matches_filter?(item.title)
63
- process(item.title, link) if FeedTorrents.configuration.filter_testing? || !already_processed?(link)
64
+
65
+ if matches_filter?(title)
66
+ process(title, link) if FeedTorrents.configuration.filter_testing? || !already_processed?(link)
64
67
  end
65
68
  end
66
69
  rescue Exception => e
@@ -34,6 +34,7 @@ module FeedTorrents
34
34
 
35
35
  info "Sending an email to #{options[:to].inspect} with subject: #{options[:subject].inspect}"
36
36
 
37
+ obj.charset = 'UTF-8'
37
38
  obj.deliver
38
39
  end
39
40
 
@@ -1,3 +1,3 @@
1
1
  module FeedTorrents
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feed_torrents
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom van Leeuwen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-26 00:00:00.000000000 Z
11
+ date: 2015-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine