calamity 0.0.3 → 0.0.4

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.
@@ -77,7 +77,9 @@ command :finish do |c|
77
77
  c.action do |global_options,options,args|
78
78
  db = Calamity::DataAccess.new global_options[:database]
79
79
  args.each do |a|
80
- db.mark_finished a
80
+ task = Calamity::Task.new
81
+ task.name = a
82
+ db.mark_finished task
81
83
  end
82
84
  end
83
85
  end
@@ -1,3 +1,3 @@
1
1
  module Calamity
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
@@ -32,5 +32,13 @@ class TC_testCalamity < Test::Unit::TestCase
32
32
  project = `./bin/calamity --database="./test/calamity.db" list | grep foo | awk '{print $3}'`.strip
33
33
  assert(project.eql?("buildcalamity"))
34
34
  end
35
+
36
+ def test_finish_task
37
+ `./bin/calamity --database="./test/calamity.db" save foobar`
38
+ `./bin/calamity --database="./test/calamity.db" finish foobar`
39
+ foo = `./bin/calamity --database="./test/calamity.db" list | grep foo | awk '{print $1}'`.strip
40
+ assert(foo.eql?(""))
41
+
42
+ end
35
43
 
36
44
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kevin Beddingfield
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-03-22 00:00:00 -07:00
17
+ date: 2012-03-24 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency