gmail_todo 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/todo +1 -1
- data/lib/gmail_todo.rb +12 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 841e95b4df367f8a291646d7e37f2c83502a51cb
|
4
|
+
data.tar.gz: fa41ead79b2f78ec84714ff44ac8a922cb79bf68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99f5049962730f6b2a344b3ff5218b2405067b6046cf8320ff3d414532c12585f37b45c815b3c9dae06ca56209b8d35e2baaa97bbebe8441bfa72d343b7a2541
|
7
|
+
data.tar.gz: 240550597986216b150afafe2710e552cb559ae85669a282465aa39fd02b1843b3d6a10bfd6d3b3c6d820800be59318d3ddc79a1ceca965e7edd07f5c7b4e10d
|
data/bin/todo
CHANGED
data/lib/gmail_todo.rb
CHANGED
@@ -12,17 +12,24 @@ class GmailToDo
|
|
12
12
|
@password = credentials["gmail"]["password"]
|
13
13
|
end
|
14
14
|
|
15
|
-
def
|
16
|
-
|
15
|
+
def username
|
16
|
+
@username
|
17
|
+
end
|
18
|
+
|
19
|
+
def password
|
20
|
+
@password
|
21
|
+
end
|
22
|
+
|
23
|
+
def send_todo(todo, details = nil)
|
24
|
+
gmail = Gmail.connect(username, password)
|
17
25
|
|
18
26
|
gmail.deliver do
|
19
|
-
to
|
27
|
+
to gmail.username
|
20
28
|
subject "[ToDo] #{todo}"
|
29
|
+
body "#{details}"
|
21
30
|
end
|
22
31
|
|
23
32
|
gmail.logout
|
24
33
|
end
|
25
34
|
|
26
35
|
end
|
27
|
-
|
28
|
-
gm = GmailToDo.new
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gmail_todo
|
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
|
- Kevin Hughes
|
@@ -20,7 +20,7 @@ extra_rdoc_files: []
|
|
20
20
|
files:
|
21
21
|
- bin/todo
|
22
22
|
- lib/gmail_todo.rb
|
23
|
-
homepage:
|
23
|
+
homepage: https://github.com/pickle27/gmail_todo
|
24
24
|
licenses:
|
25
25
|
- MIT
|
26
26
|
metadata: {}
|