teamwork-pm 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.
- checksums.yaml +4 -4
- data/lib/teamwork.rb +9 -1
- data/test/test_teamwork.rb +4 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc482a5b487de5cbc625344dbf1e1d5217f12b75
|
4
|
+
data.tar.gz: a2a07e39ece6216f05b388a8ffa4dae196ecf0d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 643600bc8813f99d99f02bf820ffaf3f599bf6cba2b5520c559a274ab856334041b7ab2f8c744c5a74f080493236ccffbfc96b400d93ec369f10c13bd4415418
|
7
|
+
data.tar.gz: b8ee34227e9a56cdbcd34de02c8579ac157e7fc51ed51fd90ee9e980634d8300a894310d32738f36b91b14fa19e91b151408c5644556683c1e3e7f01c04f7555
|
data/lib/teamwork.rb
CHANGED
@@ -5,7 +5,7 @@ require 'json'
|
|
5
5
|
|
6
6
|
module Teamwork
|
7
7
|
|
8
|
-
VERSION = "0.0.
|
8
|
+
VERSION = "0.0.4"
|
9
9
|
|
10
10
|
class API
|
11
11
|
|
@@ -61,6 +61,14 @@ module Teamwork
|
|
61
61
|
get_company_id(name)
|
62
62
|
end
|
63
63
|
|
64
|
+
def projects()
|
65
|
+
request_params = {
|
66
|
+
status: "ACTIVE"
|
67
|
+
}
|
68
|
+
response = @api_conn.get "projects.json", request_params
|
69
|
+
response.body
|
70
|
+
end
|
71
|
+
|
64
72
|
def create_project(name, client_name)
|
65
73
|
company_id = get_or_create_company(client_name)
|
66
74
|
@api_conn.post('projects.json', {
|
data/test/test_teamwork.rb
CHANGED
@@ -3,9 +3,11 @@ require "../lib/teamwork"
|
|
3
3
|
|
4
4
|
class TestTeamwork < MiniTest::Unit::TestCase
|
5
5
|
def test_sanity
|
6
|
-
api = Teamwork::API.new(project_name: '
|
6
|
+
api = Teamwork::API.new(project_name: 'tegandigital', api_key:'doom333toe')
|
7
7
|
# project_id = api.create_project('test 11z','Test Client')
|
8
|
-
api.
|
8
|
+
projects = api.projects
|
9
|
+
puts projects
|
10
|
+
|
9
11
|
# task_lists = api.get_tasks('87494')
|
10
12
|
# task_lists.each do |task_list|
|
11
13
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teamwork-pm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Clark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
142
|
rubyforge_project:
|
143
|
-
rubygems_version: 2.
|
143
|
+
rubygems_version: 2.4.5
|
144
144
|
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: 'A gem wrapper for the TeamworkPM API TeamworkPM: http://www.teamworkpm.net/
|