artichoke 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +2 -2
- data/lib/artichoke/poller.rb +1 -1
- data/lib/artichoke/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3dcb93100a759eb97487d95700f6614f47303fb
|
4
|
+
data.tar.gz: e5939165b71ab1c3d4e74c3ef7243c58de15b2d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6706eec0d8ad3929e79bd17584ee3574318c70189f067676c4674a0c629257665d5a2121841896f40f51ff3729d5c6e68b4376e03430cb6ffb0ea0dbcf203d95
|
7
|
+
data.tar.gz: 16d592d40d824f22e093cbf543e9bf94b5f8e4033f2f2c96cbcdaad78640cfe240daf7cd38c9c48bc60209ecfb8f091c63a201b2e256b54d59243e7c9d9c2ce7
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
*.gem
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ Or install it yourself as:
|
|
15
15
|
|
16
16
|
## Configuration
|
17
17
|
|
18
|
-
Add this to
|
18
|
+
Add this to an initializer:
|
19
19
|
|
20
20
|
Artichoke::Connection.configure do |config|
|
21
21
|
config.username = 'ninja@gmail.com'
|
@@ -56,7 +56,7 @@ This is best used prior to an action that should trigger the email you want to e
|
|
56
56
|
# By default, the poller raises an error if no email was found
|
57
57
|
# within the determined timeout. However, you can pass the skip_error parameter
|
58
58
|
# in order to silence the error, so that you can assert no email was sent.
|
59
|
-
email = @poller.find({message_subject: "I wear Kimonos on weekends", timeout: 30, skip_error:
|
59
|
+
email = @poller.find({message_subject: "I wear Kimonos on weekends", timeout: 30, skip_error: true})
|
60
60
|
email.should be_nil
|
61
61
|
|
62
62
|
### Evaluating and Manipulating the returned Message object
|
data/lib/artichoke/poller.rb
CHANGED
@@ -28,7 +28,7 @@ module Artichoke
|
|
28
28
|
Timeout::timeout(options[:timeout]|| 75) do
|
29
29
|
while true do
|
30
30
|
client do
|
31
|
-
gm_string = "newer:#{@gmail_start_time.to_i} subject:"+options[:message_subject]
|
31
|
+
gm_string = "newer:#{@gmail_start_time.to_i} subject:"+options[:message_subject]+" "
|
32
32
|
if options[:attachments]
|
33
33
|
options[:attachments].each{|attachment| gm_string += attachment+" "}
|
34
34
|
gm_string+= " has:attachment"
|
data/lib/artichoke/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: artichoke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathaniel Ritholtz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-gmail-nritholtz
|
@@ -46,6 +46,7 @@ executables: []
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
+
- ".gitignore"
|
49
50
|
- README.md
|
50
51
|
- artichoke.gemspec
|
51
52
|
- lib/artichoke.rb
|