taskwarrior-web 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/lib/taskwarrior-web/app.rb +4 -3
- data/lib/taskwarrior-web/config.rb +6 -2
- data/{public → lib/taskwarrior-web/public}/css/gh-buttons.css +0 -0
- data/{public → lib/taskwarrior-web/public}/css/jquery-ui.css +0 -0
- data/{public → lib/taskwarrior-web/public}/css/jquery.tagsinput.css +0 -0
- data/{public → lib/taskwarrior-web/public}/css/styles.css +0 -0
- data/{public → lib/taskwarrior-web/public}/css/tipsy.css +0 -0
- data/{public → lib/taskwarrior-web/public}/favicon.ico +0 -0
- data/{public → lib/taskwarrior-web/public}/images/ajax-loader.gif +0 -0
- data/{public → lib/taskwarrior-web/public}/images/arrow_right_black.png +0 -0
- data/{public → lib/taskwarrior-web/public}/images/arrow_right_grey.png +0 -0
- data/{public → lib/taskwarrior-web/public}/images/bg_fallback.png +0 -0
- data/{public → lib/taskwarrior-web/public}/images/gh-icons.png +0 -0
- data/{public → lib/taskwarrior-web/public}/images/grid-view.png +0 -0
- data/{public → lib/taskwarrior-web/public}/images/icon_sprite.png +0 -0
- data/{public → lib/taskwarrior-web/public}/images/list-view.png +0 -0
- data/{public → lib/taskwarrior-web/public}/images/logo.png +0 -0
- data/{public → lib/taskwarrior-web/public}/images/progress_bar.gif +0 -0
- data/{public → lib/taskwarrior-web/public}/images/slider_handles.png +0 -0
- data/{public → lib/taskwarrior-web/public}/images/subnav_background.gif +0 -0
- data/{public → lib/taskwarrior-web/public}/images/tab_background.gif +0 -0
- data/{public → lib/taskwarrior-web/public}/images/tipsy.gif +0 -0
- data/{public → lib/taskwarrior-web/public}/images/ui-icons_222222_256x240.png +0 -0
- data/{public → lib/taskwarrior-web/public}/images/ui-icons_454545_256x240.png +0 -0
- data/{public → lib/taskwarrior-web/public}/js/application.js +0 -0
- data/{public → lib/taskwarrior-web/public}/js/jquery-ui.min.js +0 -0
- data/{public → lib/taskwarrior-web/public}/js/jquery.cookie.js +0 -0
- data/{public → lib/taskwarrior-web/public}/js/jquery.min.js +0 -0
- data/{public → lib/taskwarrior-web/public}/js/jquery.tagsinput.js +0 -0
- data/{public → lib/taskwarrior-web/public}/js/jquery.tipsy.js +0 -0
- data/{views → lib/taskwarrior-web/views}/404.erb +0 -0
- data/{views → lib/taskwarrior-web/views}/_navigation.erb +0 -0
- data/{views → lib/taskwarrior-web/views}/layout.erb +0 -0
- data/{views → lib/taskwarrior-web/views}/listing.erb +0 -0
- data/{views → lib/taskwarrior-web/views}/project.erb +0 -0
- data/{views → lib/taskwarrior-web/views}/projects.erb +0 -0
- data/{views → lib/taskwarrior-web/views}/task_form.erb +0 -0
- data/taskwarrior-web.gemspec +1 -1
- metadata +58 -58
data/CHANGELOG.md
CHANGED
data/lib/taskwarrior-web/app.rb
CHANGED
@@ -14,6 +14,8 @@ module TaskwarriorWeb
|
|
14
14
|
@@root = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
|
15
15
|
set :root, @@root
|
16
16
|
set :app_file, __FILE__
|
17
|
+
set :public_folder, File.dirname(__FILE__) + '/public'
|
18
|
+
set :views, File.dirname(__FILE__) + '/views'
|
17
19
|
|
18
20
|
def protected!
|
19
21
|
response['WWW-Authenticate'] = %(Basic realm="Taskworrior Web") and throw(:halt, [401, "Not authorized\n"]) and return unless authorized?
|
@@ -21,9 +23,8 @@ module TaskwarriorWeb
|
|
21
23
|
|
22
24
|
def authorized?
|
23
25
|
@auth ||= Rack::Auth::Basic::Request.new(request.env)
|
24
|
-
|
25
|
-
|
26
|
-
Digest::MD5.hexdigest(@auth.credentials[1]) == TaskwarriorWeb::Config.property('task-web.passwd')
|
26
|
+
values = [TaskwarriorWeb::Config.property('task-web.user'), TaskwarriorWeb::Config.property('task-web.passwd')]
|
27
|
+
@auth.provided? && @auth.basic? && @auth.credentials && @auth.credentials == values
|
27
28
|
end
|
28
29
|
|
29
30
|
# Before filter
|
@@ -4,8 +4,12 @@ module TaskwarriorWeb
|
|
4
4
|
class Config
|
5
5
|
|
6
6
|
def self.task_version
|
7
|
-
|
8
|
-
|
7
|
+
unless @task_version
|
8
|
+
version_line = `task version | grep '^task '`
|
9
|
+
@task_version = version_line.split.at(1)
|
10
|
+
end
|
11
|
+
|
12
|
+
@task_version
|
9
13
|
end
|
10
14
|
|
11
15
|
def self.file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/taskwarrior-web.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taskwarrior-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-03-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|
16
|
-
requirement: &
|
16
|
+
requirement: &70154504021780 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70154504021780
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: parseconfig
|
27
|
-
requirement: &
|
27
|
+
requirement: &70154504020500 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70154504020500
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: vegas
|
38
|
-
requirement: &
|
38
|
+
requirement: &70154504040200 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70154504040200
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rinku
|
49
|
-
requirement: &
|
49
|
+
requirement: &70154504039160 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70154504039160
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rake
|
60
|
-
requirement: &
|
60
|
+
requirement: &70154504036820 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70154504036820
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rack-test
|
71
|
-
requirement: &
|
71
|
+
requirement: &70154504034640 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70154504034640
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rspec
|
82
|
-
requirement: &
|
82
|
+
requirement: &70154504033940 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70154504033940
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: simplecov
|
93
|
-
requirement: &
|
93
|
+
requirement: &70154504049400 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70154504049400
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: guard-rspec
|
104
|
-
requirement: &
|
104
|
+
requirement: &70154504048520 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70154504048520
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: guard-bundler
|
115
|
-
requirement: &
|
115
|
+
requirement: &70154504047860 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,7 +120,7 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *70154504047860
|
124
124
|
description: This gem provides a graphical frontend for the Taskwarrior task manager.
|
125
125
|
It is based on Sinatra.
|
126
126
|
email:
|
@@ -145,38 +145,45 @@ files:
|
|
145
145
|
- lib/taskwarrior-web/command.rb
|
146
146
|
- lib/taskwarrior-web/config.rb
|
147
147
|
- lib/taskwarrior-web/helpers.rb
|
148
|
+
- lib/taskwarrior-web/public/css/gh-buttons.css
|
149
|
+
- lib/taskwarrior-web/public/css/jquery-ui.css
|
150
|
+
- lib/taskwarrior-web/public/css/jquery.tagsinput.css
|
151
|
+
- lib/taskwarrior-web/public/css/styles.css
|
152
|
+
- lib/taskwarrior-web/public/css/tipsy.css
|
153
|
+
- lib/taskwarrior-web/public/favicon.ico
|
154
|
+
- lib/taskwarrior-web/public/images/ajax-loader.gif
|
155
|
+
- lib/taskwarrior-web/public/images/arrow_right_black.png
|
156
|
+
- lib/taskwarrior-web/public/images/arrow_right_grey.png
|
157
|
+
- lib/taskwarrior-web/public/images/bg_fallback.png
|
158
|
+
- lib/taskwarrior-web/public/images/gh-icons.png
|
159
|
+
- lib/taskwarrior-web/public/images/grid-view.png
|
160
|
+
- lib/taskwarrior-web/public/images/icon_sprite.png
|
161
|
+
- lib/taskwarrior-web/public/images/list-view.png
|
162
|
+
- lib/taskwarrior-web/public/images/logo.png
|
163
|
+
- lib/taskwarrior-web/public/images/progress_bar.gif
|
164
|
+
- lib/taskwarrior-web/public/images/slider_handles.png
|
165
|
+
- lib/taskwarrior-web/public/images/subnav_background.gif
|
166
|
+
- lib/taskwarrior-web/public/images/tab_background.gif
|
167
|
+
- lib/taskwarrior-web/public/images/tipsy.gif
|
168
|
+
- lib/taskwarrior-web/public/images/ui-icons_222222_256x240.png
|
169
|
+
- lib/taskwarrior-web/public/images/ui-icons_454545_256x240.png
|
170
|
+
- lib/taskwarrior-web/public/js/application.js
|
171
|
+
- lib/taskwarrior-web/public/js/jquery-ui.min.js
|
172
|
+
- lib/taskwarrior-web/public/js/jquery.cookie.js
|
173
|
+
- lib/taskwarrior-web/public/js/jquery.min.js
|
174
|
+
- lib/taskwarrior-web/public/js/jquery.tagsinput.js
|
175
|
+
- lib/taskwarrior-web/public/js/jquery.tipsy.js
|
148
176
|
- lib/taskwarrior-web/runner.rb
|
149
177
|
- lib/taskwarrior-web/runners/v1.rb
|
150
178
|
- lib/taskwarrior-web/runners/v2.rb
|
151
179
|
- lib/taskwarrior-web/task.rb
|
152
|
-
-
|
153
|
-
-
|
154
|
-
-
|
155
|
-
-
|
156
|
-
-
|
157
|
-
-
|
158
|
-
-
|
159
|
-
- public/images/arrow_right_black.png
|
160
|
-
- public/images/arrow_right_grey.png
|
161
|
-
- public/images/bg_fallback.png
|
162
|
-
- public/images/gh-icons.png
|
163
|
-
- public/images/grid-view.png
|
164
|
-
- public/images/icon_sprite.png
|
165
|
-
- public/images/list-view.png
|
166
|
-
- public/images/logo.png
|
167
|
-
- public/images/progress_bar.gif
|
168
|
-
- public/images/slider_handles.png
|
169
|
-
- public/images/subnav_background.gif
|
170
|
-
- public/images/tab_background.gif
|
171
|
-
- public/images/tipsy.gif
|
172
|
-
- public/images/ui-icons_222222_256x240.png
|
173
|
-
- public/images/ui-icons_454545_256x240.png
|
174
|
-
- public/js/application.js
|
175
|
-
- public/js/jquery-ui.min.js
|
176
|
-
- public/js/jquery.cookie.js
|
177
|
-
- public/js/jquery.min.js
|
178
|
-
- public/js/jquery.tagsinput.js
|
179
|
-
- public/js/jquery.tipsy.js
|
180
|
+
- lib/taskwarrior-web/views/404.erb
|
181
|
+
- lib/taskwarrior-web/views/_navigation.erb
|
182
|
+
- lib/taskwarrior-web/views/layout.erb
|
183
|
+
- lib/taskwarrior-web/views/listing.erb
|
184
|
+
- lib/taskwarrior-web/views/project.erb
|
185
|
+
- lib/taskwarrior-web/views/projects.erb
|
186
|
+
- lib/taskwarrior-web/views/task_form.erb
|
180
187
|
- spec/app/app_spec.rb
|
181
188
|
- spec/app/helpers_spec.rb
|
182
189
|
- spec/models/command_spec.rb
|
@@ -184,13 +191,6 @@ files:
|
|
184
191
|
- spec/models/task_spec.rb
|
185
192
|
- spec/spec_helper.rb
|
186
193
|
- taskwarrior-web.gemspec
|
187
|
-
- views/404.erb
|
188
|
-
- views/_navigation.erb
|
189
|
-
- views/layout.erb
|
190
|
-
- views/listing.erb
|
191
|
-
- views/project.erb
|
192
|
-
- views/projects.erb
|
193
|
-
- views/task_form.erb
|
194
194
|
homepage: http://github.com/theunraveler/taskwarrior-web
|
195
195
|
licenses: []
|
196
196
|
post_install_message:
|
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
211
|
version: '0'
|
212
212
|
segments:
|
213
213
|
- 0
|
214
|
-
hash: -
|
214
|
+
hash: -2283855477715549866
|
215
215
|
requirements: []
|
216
216
|
rubyforge_project: taskwarrior-web
|
217
217
|
rubygems_version: 1.8.11
|