feed_torrents 0.2.0 → 0.2.1

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: cf83fb778aefc240479941d0dcecfbfe9b95a6dc
4
- data.tar.gz: 8b9816f8fdb7847acc646b86b536f1149651a4d1
3
+ metadata.gz: f6cc9f35b4390852818e8771940c90480a94b261
4
+ data.tar.gz: 2e60c8bec39bde2b4520ddbbe653fea6b0e948a8
5
5
  SHA512:
6
- metadata.gz: ee95f2a04e4a01254b521306f1634f986bcaa87b5d583e6ee5fcbe9c9188867e829887777b8e989e2d6c7d9b1d42063024ead27ee0c7bbf5cabb48f91bbcd38f
7
- data.tar.gz: 4ccaf70f894a93fb19121de46a359519c8e38cdc70696ca1d5a2fc04e77e2a2df1e460a8b5fecb48252a3b9a20ceb4aff442b519eef765ad1233f05a64e13f23
6
+ metadata.gz: f51383e6cae5add36e681f0d64ac64507ba1259dc698d2e2d70f3d0f97a3d08512b2a7ce262910e98425eb43df7d29ef2c6608de9ea9a372a6607dfeaea23ead
7
+ data.tar.gz: 9d5cbbff0432f8d5dd32a8c7012bd815fa403f2d411881527ddeffe82a8de365c88d0734555570dca2c5b10fd66a6c2d7a78c1afb1a61c8811771a3de6cd9460
@@ -30,7 +30,7 @@ module FeedTorrents
30
30
  fh.close
31
31
  FeedTorrents.store.persist(@link)
32
32
 
33
- FeedTorrents::Mail.new.send_email("Downloaded torrent #{@title}")
33
+ FeedTorrents::Mail.new.send_email(@title, @title)
34
34
  end
35
35
  end
36
36
  end
@@ -8,10 +8,10 @@ module FeedTorrents
8
8
  mail(subject: "#{PREFIX}Test email", body: 'test email')
9
9
  end
10
10
 
11
- def send_email(subject)
11
+ def send_email(subject, body)
12
12
  return unless FeedTorrents.configuration.email[:enabled]
13
13
 
14
- mail(subject: "#{PREFIX}#{subject}", body: 'See subject! :-)')
14
+ mail(subject: "#{PREFIX}#{subject}", body: body)
15
15
  end
16
16
 
17
17
  private
@@ -1,3 +1,3 @@
1
1
  module FeedTorrents
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
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.0
4
+ version: 0.2.1
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-22 00:00:00.000000000 Z
11
+ date: 2015-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine