artichoke 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/artichoke/message.rb +4 -0
- data/lib/artichoke/poller.rb +1 -1
- data/lib/artichoke/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 550ebb71e2037df7fa25189df7e044fd58af64a7
|
4
|
+
data.tar.gz: 28fa4660f4a66c5fd84199a6778361fd132cca3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c2314722aea5c9e38fce359ad979e5f7872fbfe89d82bf43662f2d6d44fe3bc4784521abf74af45311984d1a47c45a4727b1d4f9e2411181f8a59afe0f126c6
|
7
|
+
data.tar.gz: 90cea1186458eabb8e755530a1acc7034177cb3053d93392a787a587a9013f3220a28fac3a3945fc48e4f7f1058f3ce0d37ffb921d4eca207756ab01867ac3f7
|
data/README.md
CHANGED
@@ -62,7 +62,7 @@ This is best used prior to an action that should trigger the email you want to e
|
|
62
62
|
### Evaluating and Manipulating the returned Message object
|
63
63
|
|
64
64
|
# You can now do evaluations on the email, such as reading the body
|
65
|
-
email.
|
65
|
+
email.message_content.should have_content "I am forever in your debt master..."
|
66
66
|
|
67
67
|
# You can also evaluate attachments by calling email.attachments
|
68
68
|
# or return the first attachment's filename by using
|
data/lib/artichoke/message.rb
CHANGED
data/lib/artichoke/poller.rb
CHANGED
@@ -36,7 +36,7 @@ module Artichoke
|
|
36
36
|
@gmail.inbox.emails(:gm => gm_string).each do |email|
|
37
37
|
message = email.message
|
38
38
|
if (message.date.to_i >= @gmail_start_time.to_i) && (message.subject == options[:message_subject])
|
39
|
-
body =
|
39
|
+
body = message.text_part ? message.text_part.decoded : message.html_part.decoded
|
40
40
|
return Message.new(message) if (options[:content]|| []).all?{|c| body =~ /#{c}/}
|
41
41
|
end
|
42
42
|
end
|
data/lib/artichoke/version.rb
CHANGED