dobedobedo 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/dobedobedo.gemspec +1 -0
- data/lib/dobedobedo/task.rb +7 -2
- data/lib/dobedobedo/version.rb +1 -1
- metadata +18 -2
data/dobedobedo.gemspec
CHANGED
@@ -14,6 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
|
15
15
|
gem.add_dependency "oauth2"
|
16
16
|
gem.add_dependency "bundler"
|
17
|
+
gem.add_development_dependency "awesome_print"
|
17
18
|
gem.files = `git ls-files`.split($/)
|
18
19
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
19
20
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
data/lib/dobedobedo/task.rb
CHANGED
@@ -11,7 +11,7 @@ module Dobedobedo
|
|
11
11
|
if project_id.nil?
|
12
12
|
h = token.post("/workspaces/#{workspace_id}/tasks").parsed
|
13
13
|
else
|
14
|
-
h = token.post("/workspaces/#{workspace_id}/projects
|
14
|
+
h = token.post("/workspaces/#{workspace_id}/projects/#{project_id}/tasks").parsed
|
15
15
|
end
|
16
16
|
end
|
17
17
|
h.each do |k,v|
|
@@ -25,10 +25,15 @@ module Dobedobedo
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def update()
|
28
|
-
payload = {:name => @name, :description => @description, :
|
28
|
+
payload = {:name => @name, :description => @description, :deleted => @deleted}
|
29
29
|
@token.put("/workspaces/#{@workspace_id}/tasks/#{@id}", :body => payload)
|
30
30
|
end
|
31
31
|
|
32
|
+
def close()
|
33
|
+
payload = {:closed => true}
|
34
|
+
@token.put("/workspaces/#{@workspace_id}/tasks/#{@id}", :body => payload)
|
35
|
+
end
|
36
|
+
|
32
37
|
def delete()
|
33
38
|
@token.delete("/workspaces/#{@workspace_id}/tasks/#{@id}")
|
34
39
|
end
|
data/lib/dobedobedo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dobedobedo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth2
|
@@ -43,6 +43,22 @@ dependencies:
|
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: awesome_print
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
46
62
|
description: Interact with Do.com
|
47
63
|
email:
|
48
64
|
- kjp@brightleafsoftware.com
|