geekmail 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,8 +2,13 @@
2
2
 
3
3
  Small ruby script that checks the count of emails in your IMAP inbox.
4
4
 
5
- For it to use, please add a config file called .geekmail.conf in your home directory.
6
- It should be a yaml file like this:
5
+ To install, please run
6
+ gem install geekmail
7
+
8
+ followed by adding a geek shell script like:
9
+ echo "`geekmail` unhandled emails"
10
+
11
+ The script needs a configuration for your email server. Please add a ~/.geekmail.conf file (with correct permissions) that looks something like this:
7
12
 
8
13
  config:
9
14
  host: imap.gmail.com
@@ -11,6 +16,13 @@ It should be a yaml file like this:
11
16
  username: YOUR_EMAIL
12
17
  password: YOUR_PASSWORD
13
18
 
19
+ Troubleshooting tip:
20
+ As geektools does not have the same value for $PATH as your shell, you might need to add some extra paths to your geektool shell command. In my case I also had to export the GEM_PATH. I ended up with the following command:
21
+ export GEM_PATH=/usr/local/Cellar/gems/1.8;
22
+ export PATH=$PATH:/usr/local/bin:/Users/seb/.gem/ruby/1.8/bin;
23
+ echo "`geekmail` unhandled emails"
24
+
25
+
14
26
  == Contributing to geekmail
15
27
 
16
28
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -1,7 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- # -*- ruby -*-
3
-
4
- require 'rubygems'
2
+ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
5
3
  require 'geekmail'
6
-
7
- puts Geekmail.run
4
+ puts Geekmail.run
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{geekmail}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sebastian Probst Eide"]
12
- s.date = %q{2010-11-21}
12
+ s.date = %q{2010-11-22}
13
13
  s.default_executable = %q{geekmail}
14
14
  s.description = %q{This is meant to be used with Geektool to display the number of emails in your inbox that you need to handle}
15
15
  s.email = %q{sebastian.probst.eide@gmail.com}
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
28
28
  "VERSION",
29
29
  "bin/geekmail",
30
30
  "geekmail.gemspec",
31
+ "geektool setting.glet",
31
32
  "lib/geekmail.rb",
32
33
  "test/helper.rb",
33
34
  "test/test_geekmail.rb"
@@ -0,0 +1,114 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>BackgroundColor</key>
6
+ <data>
7
+ BAtzdHJlYW10eXBlZIHoA4QBQISEhAdOU0NvbG9yAISECE5TT2JqZWN0AIWEAWMBhARm
8
+ ZmZmg73pjT6DvemNPoO96Y0+g+xROD6G
9
+ </data>
10
+ <key>Command</key>
11
+ <string>export GEM_PATH=/usr/local/Cellar/gems/1.8;
12
+ export PATH=$PATH:/usr/local/bin:/Users/seb/.gem/ruby/1.8/bin;
13
+ echo "`geekmail` unhandled emails"</string>
14
+ <key>DisplayStatusImage</key>
15
+ <false/>
16
+ <key>DoesOverrideText</key>
17
+ <false/>
18
+ <key>DropShadow</key>
19
+ <false/>
20
+ <key>FailureImage</key>
21
+ <data>
22
+ TU0AKgAABAj///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAGgAAACAAAAAaAAAA
23
+ DQAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAgAAQFYGBYWqyso
24
+ KOExLy/9Kygo4RgWFqoAAQFXAAAACAAAAAAAAAAAAAAAAP///wAAAAAAAAAAAAAAAAgG
25
+ BgZ8Rz4+8qWXl//c09P/6+Tl/93T0/+ll5f/Rz4+8gYGBnwAAAAIAAAAAAAAAAD///8A
26
+ AAA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8AAAAAAAAAAAAAAAAAAAAAAQAAAAUAAAALAAAAEAAAABMAAAARAAAACwAAAAUAAAAB
42
+ AAAAAAAAAAAAAAAAAA0BAAADAAAAAQAQAAABAQADAAAAAQAQAAABAgADAAAABAAABKoB
43
+ AwADAAAAAQABAAABBgADAAAAAQACAAABEQAEAAAAAQAAAAgBEgADAAAAAQABAAABFQAD
44
+ AAAAAQAEAAABFgADAAAAAQAQAAABFwAEAAAAAQAABAABHAADAAAAAQABAAABUgADAAAA
45
+ AQACAAABUwADAAAABAAABLIAAAAAAAgACAAIAAgAAQABAAEAAQ==
46
+ </data>
47
+ <key>FontFamily</key>
48
+ <string>HelveticaNeue-UltraLight</string>
49
+ <key>FontSize</key>
50
+ <real>28</real>
51
+ <key>ForceCR</key>
52
+ <false/>
53
+ <key>GeekletFrame</key>
54
+ <string>{{1, 340}, {250, 35}}</string>
55
+ <key>HasShadow</key>
56
+ <false/>
57
+ <key>Identifier</key>
58
+ <string>org.tynsoe.geeklet.shell</string>
59
+ <key>KeepOnTop</key>
60
+ <false/>
61
+ <key>Name</key>
62
+ <string>Geekmail</string>
63
+ <key>OverrideText</key>
64
+ <string></string>
65
+ <key>RefreshInterval</key>
66
+ <integer>30</integer>
67
+ <key>RightToLeft</key>
68
+ <false/>
69
+ <key>SetLocale</key>
70
+ <true/>
71
+ <key>StatusImagePosition</key>
72
+ <integer>1</integer>
73
+ <key>SuccessImage</key>
74
+ <data>
75
+ TU0AKgAABAj///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAGgAAACAAAAAaAAAA
76
+ DQAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAgBAQFYFhUWqygn
77
+ KOEvLi/9KCco4RYVFqsBAQFYAAAACAAAAAAAAAAAAAAAAP///wAAAAAAAAAAAAAAAAgG
78
+ AwZ8Pj0+8peYl//S0tP/4+Tl/9LS0/+XmJf/Pj0+8gYDBnwAAAAIAAAAAAAAAAD///8A
79
+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AAAAAAAAAD/
94
+ //8AAAAAAAAAAAAAAAAAAAAAAQAAAAUAAAALAAAAEAAAABMAAAASAAAADAAAAAUAAAAB
95
+ AAAAAAAAAAAAAAAAAA0BAAADAAAAAQAQAAABAQADAAAAAQAQAAABAgADAAAABAAABKoB
96
+ AwADAAAAAQABAAABBgADAAAAAQACAAABEQAEAAAAAQAAAAgBEgADAAAAAQABAAABFQAD
97
+ AAAAAQAEAAABFgADAAAAAQAQAAABFwAEAAAAAQAABAABHAADAAAAAQABAAABUgADAAAA
98
+ AQACAAABUwADAAAABAAABLIAAAAAAAgACAAIAAgAAQABAAEAAQ==
99
+ </data>
100
+ <key>TextAlignment</key>
101
+ <integer>0</integer>
102
+ <key>TextColor</key>
103
+ <data>
104
+ BAtzdHJlYW10eXBlZIHoA4QBQISEhAdOU0NvbG9yAISECE5TT2JqZWN0AIWEAWMBhARm
105
+ ZmZmAQEBAYY=
106
+ </data>
107
+ <key>TextStrikethrough</key>
108
+ <integer>0</integer>
109
+ <key>TextUnderline</key>
110
+ <integer>0</integer>
111
+ <key>Timeout</key>
112
+ <integer>100</integer>
113
+ </dict>
114
+ </plist>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geekmail
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sebastian Probst Eide
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-21 00:00:00 +00:00
18
+ date: 2010-11-22 00:00:00 +00:00
19
19
  default_executable: geekmail
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -97,6 +97,7 @@ files:
97
97
  - VERSION
98
98
  - bin/geekmail
99
99
  - geekmail.gemspec
100
+ - geektool setting.glet
100
101
  - lib/geekmail.rb
101
102
  - test/helper.rb
102
103
  - test/test_geekmail.rb