swat 1.0.0
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.
- data/LICENSE +3 -0
- data/README +18 -0
- data/TODO +0 -0
- data/bin/swat +24 -0
- data/ext/Makefile +149 -0
- data/ext/eggaccelerators.c +657 -0
- data/ext/eggaccelerators.h +87 -0
- data/ext/eggaccelerators.o +0 -0
- data/ext/extconf.rb +84 -0
- data/ext/keybinder.c +49 -0
- data/ext/keybinder.o +0 -0
- data/ext/keybinder.so +0 -0
- data/ext/mkmf-gnome2.rb +286 -0
- data/ext/tomboykeybinder.c +320 -0
- data/ext/tomboykeybinder.h +27 -0
- data/ext/tomboykeybinder.o +0 -0
- data/lib/add_todo_dialog.rb +36 -0
- data/lib/list_helper.rb +67 -0
- data/lib/stat_box.rb +83 -0
- data/lib/swat.rb +51 -0
- data/lib/swat_meta_data.rb +61 -0
- data/lib/todo_context_menu.rb +22 -0
- data/lib/todo_data.rb +106 -0
- data/lib/todo_window.rb +169 -0
- data/lib/wish_list.rb +64 -0
- data/resources/add_todo.glade +114 -0
- data/resources/control_end_blue.png +0 -0
- data/resources/control_rewind_blue.png +0 -0
- data/resources/gedit-icon.png +0 -0
- data/resources/todo.org +27 -0
- data/resources/todo.png +0 -0
- data/resources/todo_window.glade +174 -0
- data/resources/toggle_icon.png +0 -0
- data/resources/working_window.glade +127 -0
- data/tests/test_helper.rb +7 -0
- data/tests/test_todo_data.rb +29 -0
- metadata +81 -0
@@ -0,0 +1,7 @@
|
|
1
|
+
# setup proper paths and stuff
|
2
|
+
require "rubygems"
|
3
|
+
require 'libglade2'
|
4
|
+
require "yaml"
|
5
|
+
require "ostruct"
|
6
|
+
SWAT_APP = File.expand_path(File.dirname(__FILE__)+"/..")
|
7
|
+
["lib"].each { |x| $LOAD_PATH.unshift("#{SWAT_APP}/#{x}"); $LOAD_PATH.unshift("#{SWAT_APP}/#{x}/keybinder")}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__) + "/../tests/test_helper")
|
2
|
+
require "todo_data"
|
3
|
+
context "For tick data in general" do
|
4
|
+
setup do
|
5
|
+
@todo_data = TodoData.new("/home/gnufied/snippets/todo.org")
|
6
|
+
end
|
7
|
+
specify "should have 3 categories" do
|
8
|
+
@todo_data.todo_container.keys.length.should.be(3)
|
9
|
+
@todo_data.todo_container["Backgroundrb Tasks"].length.should == 11
|
10
|
+
@todo_data.todo_container["Backgroundrb Tasks"][0].text.should == "log the message if worker quits"
|
11
|
+
@todo_data.todo_container["Backgroundrb Tasks"][0].flag.should == false
|
12
|
+
@todo_data.todo_container["Backgroundrb Tasks"][0].priority.should == 2
|
13
|
+
@todo_data.todo_container["Backgroundrb Tasks"][9].text.should == "Think about saving results from workers, which aren't around anymore."
|
14
|
+
@todo_data.todo_container["Backgroundrb Tasks"][9].flag.should == true
|
15
|
+
@todo_data.todo_container["Backgroundrb Tasks"][9].priority.should == 2
|
16
|
+
end
|
17
|
+
|
18
|
+
specify "should yield tasks which are yet to be done" do
|
19
|
+
category_yield_count = 0
|
20
|
+
@todo_data.open_tasks_with_index do |category,todo_array,index|
|
21
|
+
category_yield_count += 1
|
22
|
+
["Backgroundrb Tasks","Packet Tasks","Swat Tasks"].should.include(category)
|
23
|
+
priority_array = todo_array.map { |x| x.priority}
|
24
|
+
priority_array.should == [2, 2] if category == "Packet Tasks"
|
25
|
+
end
|
26
|
+
category_yield_count.should == 3
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
metadata
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.9.4
|
3
|
+
specification_version: 1
|
4
|
+
name: swat
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 1.0.0
|
7
|
+
date: 2007-12-13 00:00:00 +05:30
|
8
|
+
summary: Swat, A application for managing your todos
|
9
|
+
require_paths:
|
10
|
+
- libext
|
11
|
+
email: mail@gnufied.org
|
12
|
+
homepage: http://packet.googlecode.com/svn/branches/swat
|
13
|
+
rubyforge_project:
|
14
|
+
description: Swat, A application for managing your todos
|
15
|
+
autorequire:
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: false
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.8.5
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
post_install_message:
|
29
|
+
authors:
|
30
|
+
- Hemant Kumar
|
31
|
+
files:
|
32
|
+
- LICENSE
|
33
|
+
- README
|
34
|
+
- TODO
|
35
|
+
- bin/swat
|
36
|
+
- tests/test_todo_data.rb
|
37
|
+
- tests/test_helper.rb
|
38
|
+
- lib/swat_meta_data.rb
|
39
|
+
- lib/wish_list.rb
|
40
|
+
- lib/stat_box.rb
|
41
|
+
- lib/todo_data.rb
|
42
|
+
- lib/swat.rb
|
43
|
+
- lib/list_helper.rb
|
44
|
+
- lib/todo_context_menu.rb
|
45
|
+
- lib/todo_window.rb
|
46
|
+
- lib/add_todo_dialog.rb
|
47
|
+
- ext/mkmf-gnome2.rb
|
48
|
+
- ext/Makefile
|
49
|
+
- ext/keybinder.so
|
50
|
+
- ext/keybinder.c
|
51
|
+
- ext/tomboykeybinder.c
|
52
|
+
- ext/eggaccelerators.o
|
53
|
+
- ext/eggaccelerators.h
|
54
|
+
- ext/tomboykeybinder.h
|
55
|
+
- ext/eggaccelerators.c
|
56
|
+
- ext/tomboykeybinder.o
|
57
|
+
- ext/keybinder.o
|
58
|
+
- ext/extconf.rb
|
59
|
+
- resources/add_todo.glade
|
60
|
+
- resources/working_window.glade
|
61
|
+
- resources/todo.png
|
62
|
+
- resources/todo_window.glade
|
63
|
+
- resources/gedit-icon.png
|
64
|
+
- resources/control_end_blue.png
|
65
|
+
- resources/todo.org
|
66
|
+
- resources/control_rewind_blue.png
|
67
|
+
- resources/toggle_icon.png
|
68
|
+
test_files: []
|
69
|
+
|
70
|
+
rdoc_options: []
|
71
|
+
|
72
|
+
extra_rdoc_files: []
|
73
|
+
|
74
|
+
executables:
|
75
|
+
- swat
|
76
|
+
extensions:
|
77
|
+
- ext/extconf.rb
|
78
|
+
requirements: []
|
79
|
+
|
80
|
+
dependencies: []
|
81
|
+
|