gwtf 0.4.1 → 0.4.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.
- data/bin/gwtf +6 -2
- data/lib/gwtf/commands/remind_command.rb +3 -1
- data/lib/gwtf/version.rb +1 -1
- metadata +4 -4
data/bin/gwtf
CHANGED
|
@@ -44,8 +44,12 @@ pre do |global,command,options,args|
|
|
|
44
44
|
project_dir = File.join(global[:data], global[:project])
|
|
45
45
|
|
|
46
46
|
unless File.directory?(project_dir)
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
if command.name == :new
|
|
48
|
+
puts "Created a new project %s in %s" % [global[:project], project_dir]
|
|
49
|
+
Gwtf::Items.setup(project_dir)
|
|
50
|
+
else
|
|
51
|
+
raise "Unknown project %s" % [global[:project]]
|
|
52
|
+
end
|
|
49
53
|
end
|
|
50
54
|
|
|
51
55
|
@items = Gwtf::Items.new(project_dir, global[:project])
|
|
@@ -42,7 +42,9 @@ command [:remind, :rem] do |c|
|
|
|
42
42
|
item = @items.load_item(args.first)
|
|
43
43
|
|
|
44
44
|
unless options[:ifopen] && item.closed?
|
|
45
|
-
|
|
45
|
+
options[:recipient].split(",").each do |recipient|
|
|
46
|
+
item.send_reminder(recipient.strip, options[:done], Gwtf.notifier_for_address(recipient.strip))
|
|
47
|
+
end
|
|
46
48
|
end
|
|
47
49
|
end
|
|
48
50
|
end
|
data/lib/gwtf/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gwtf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 11
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 4
|
|
9
|
-
-
|
|
10
|
-
version: 0.4.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.4.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- R.I.Pienaar
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2012-03-
|
|
18
|
+
date: 2012-03-28 00:00:00 +01:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|