-
Notifications
You must be signed in to change notification settings - Fork 5
/
gutter.rb
40 lines (35 loc) · 880 Bytes
/
gutter.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Shoes.setup do
gem 'httparty'
gem 'htmlentities'
end
require 'httparty'
require 'yaml'
require 'htmlentities'
require 'lib/user'
require 'lib/post'
require 'lib/config'
require 'lib/ui/timeline_ui'
require 'lib/ui/settings_ui'
require 'lib/ui/gutter_ui'
require 'lib/ui/notify'
require 'lib/accounts/twitter'
require 'lib/helpers/tiny_url_support'
font 'vendor/fonts/coolvetica.ttf'
# this should go away, but caching is broken in Ubuntu 8.10 (ruby 1.8.7 lib)
cache = File.join(LIB_DIR, "+data")
File.delete(cache) if File.exists?(cache)
Shoes.app :title => 'Gutter', :width => 400 do
extend GutterUI
extend Notify
extend TinyURLSupport
background black
stroke white
## -- setup
@config = GutterConfig.get_conf || GutterConfig.new
@content = stack
if @config.user && @config.password && get_auth.authorized
ui_start
else
get_login
end
end