teamwork-pm 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3500f90391343dde0c4b421bdb24e8f968c1c548
4
- data.tar.gz: 688cae68b2bb51c0a62b27ce14cb298c77e0bee4
3
+ metadata.gz: fc482a5b487de5cbc625344dbf1e1d5217f12b75
4
+ data.tar.gz: a2a07e39ece6216f05b388a8ffa4dae196ecf0d0
5
5
  SHA512:
6
- metadata.gz: 77f4fdd1ae877ff8b525413405423ff026ce68188d8b564291a58854269fa251cf5e058d3f651e3bacd17795cc83058c2131cdcbceb15c3d0baab1786941b178
7
- data.tar.gz: 66c567c7357b06bb6dbbb691f99fb76593759aa541036d233801cd00fe0ff6754f164303abaa0196184d160e3523a4ed0b069702286a1980b1ff5ef3521021a1
6
+ metadata.gz: 643600bc8813f99d99f02bf820ffaf3f599bf6cba2b5520c559a274ab856334041b7ab2f8c744c5a74f080493236ccffbfc96b400d93ec369f10c13bd4415418
7
+ data.tar.gz: b8ee34227e9a56cdbcd34de02c8579ac157e7fc51ed51fd90ee9e980634d8300a894310d32738f36b91b14fa19e91b151408c5644556683c1e3e7f01c04f7555
@@ -5,7 +5,7 @@ require 'json'
5
5
 
6
6
  module Teamwork
7
7
 
8
- VERSION = "0.0.3"
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', {
@@ -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: 'digital', api_key:'1doom333toe3')
6
+ api = Teamwork::API.new(project_name: 'tegandigital', api_key:'doom333toe')
7
7
  # project_id = api.create_project('test 11z','Test Client')
8
- api.archive_project("142792")
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.3
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-04 00:00:00.000000000 Z
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.2.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/