teamwork 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.txt +5 -25
- data/lib/teamwork.rb +2 -2
- metadata +9 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abd48d0c8815278e93705a30d064e0a20ff2270d
|
4
|
+
data.tar.gz: 00b6599384b109938c5ce2c08b4080119cbba0da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5efb42c8c9387256c950c85dff8848ff125044cda9053a9e94a10ed78b68bc1fb200bcf213543d60fd81876c101d71a9901928803175747fd80ea89ea7ef3cf
|
7
|
+
data.tar.gz: c95de293977681410c7ca908b5ef464ad462e7f461662a1242fc8c785250d9325f9c81705ed1255ce814f3887a5f1c88ade1d6a5024c03ec864cb0a475383701
|
data/README.txt
CHANGED
@@ -2,7 +2,10 @@
|
|
2
2
|
|
3
3
|
== DESCRIPTION:
|
4
4
|
|
5
|
-
A gem wrapper for the
|
5
|
+
A gem wrapper for the TeamworkPM API
|
6
|
+
|
7
|
+
TeamworkPM: http://www.teamworkpm.net/
|
8
|
+
API: http://developer.teamworkpm.net/api
|
6
9
|
|
7
10
|
== INSTALL:
|
8
11
|
|
@@ -12,7 +15,7 @@ A gem wrapper for the {TeamworkPM}[http://www.teamworkpm.net/] {API}[http://deve
|
|
12
15
|
|
13
16
|
require 'teamwork'
|
14
17
|
|
15
|
-
api = Teamwork::API.new
|
18
|
+
api = Teamwork::API.new 'your-site-name', 'your-api-key'
|
16
19
|
|
17
20
|
api.people pageSize: 100
|
18
21
|
api.people pageSize: 100, page: 2
|
@@ -26,27 +29,4 @@ After checking out the source, run:
|
|
26
29
|
This task will install any missing dependencies, run the tests/specs,
|
27
30
|
and generate the RDoc.
|
28
31
|
|
29
|
-
== LICENSE:
|
30
|
-
|
31
|
-
(The MIT License)
|
32
|
-
|
33
|
-
Copyright (c) 2013 Ed Halferty
|
34
|
-
|
35
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
36
|
-
a copy of this software and associated documentation files (the
|
37
|
-
'Software'), to deal in the Software without restriction, including
|
38
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
39
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
40
|
-
permit persons to whom the Software is furnished to do so, subject to
|
41
|
-
the following conditions:
|
42
|
-
|
43
|
-
The above copyright notice and this permission notice shall be
|
44
|
-
included in all copies or substantial portions of the Software.
|
45
32
|
|
46
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
47
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
48
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
49
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
50
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
51
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
52
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/lib/teamwork.rb
CHANGED
@@ -4,7 +4,7 @@ require 'json'
|
|
4
4
|
|
5
5
|
module Teamwork
|
6
6
|
|
7
|
-
VERSION = "1.0.
|
7
|
+
VERSION = "1.0.6"
|
8
8
|
|
9
9
|
class API
|
10
10
|
|
@@ -86,7 +86,7 @@ module Teamwork
|
|
86
86
|
end
|
87
87
|
|
88
88
|
def attach_post_to_project(title, body, project_id)
|
89
|
-
@api_conn.post "projects/#{project_id}/
|
89
|
+
@api_conn.post "projects/#{project_id}/posts.json", { post: { title: title, body: body } }
|
90
90
|
end
|
91
91
|
end
|
92
92
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teamwork
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ed Halferty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -94,7 +94,11 @@ dependencies:
|
|
94
94
|
- - ~>
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '3.7'
|
97
|
-
description:
|
97
|
+
description: |-
|
98
|
+
A gem wrapper for the TeamworkPM API
|
99
|
+
|
100
|
+
TeamworkPM: http://www.teamworkpm.net/
|
101
|
+
API: http://developer.teamworkpm.net/api
|
98
102
|
email:
|
99
103
|
- edhalferty@gmail.com
|
100
104
|
executables:
|
@@ -139,6 +143,7 @@ rubyforge_project: teamwork
|
|
139
143
|
rubygems_version: 2.1.11
|
140
144
|
signing_key:
|
141
145
|
specification_version: 4
|
142
|
-
summary: A gem wrapper for the
|
146
|
+
summary: 'A gem wrapper for the TeamworkPM API TeamworkPM: http://www.teamworkpm.net/
|
147
|
+
API: http://developer.teamworkpm.net/api'
|
143
148
|
test_files:
|
144
149
|
- test/test_teamwork.rb
|