tracker_api 1.3.0 → 1.4.0
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/tracker_api/client.rb +8 -0
- data/lib/tracker_api/endpoints/workspace.rb +6 -0
- data/lib/tracker_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95c257d1d093f0fbf0a014e2c25457cd9dd03c05
|
4
|
+
data.tar.gz: 844127ea9d688f84adede932ed234e2d7523fc06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a349ba891f44d3fd42945b7a7c1ddaefff6c682670203b98b6e3b0a0a1b97b22700ea9cf83e88d497cc37bfa75a4bb8c77c9a559f20cee49f63131c7d0f28e57
|
7
|
+
data.tar.gz: b848641dd32595362167d334cb394a6873e1ecc0a7148f673b0776efce040ce110e7183e9bf35ed5043c49d6c168adaf05ea0aa79246bb812394148ddc214466
|
data/lib/tracker_api/client.rb
CHANGED
@@ -128,6 +128,14 @@ module TrackerApi
|
|
128
128
|
Endpoints::Project.new(self).get(id, params)
|
129
129
|
end
|
130
130
|
|
131
|
+
# Create a new workspace.
|
132
|
+
#
|
133
|
+
# @param [Hash] params attributes to create the workspace with
|
134
|
+
# @return [TrackerApi::Resources::Workspace] newly created Workspace
|
135
|
+
def create_workspace(params)
|
136
|
+
Endpoints::Workspace.new(self).create(params)
|
137
|
+
end
|
138
|
+
|
131
139
|
# Get workspace
|
132
140
|
#
|
133
141
|
# @param [Hash] params
|
@@ -12,6 +12,12 @@ module TrackerApi
|
|
12
12
|
|
13
13
|
Resources::Workspace.new({ client: client }.merge(data))
|
14
14
|
end
|
15
|
+
|
16
|
+
def create(params={})
|
17
|
+
data = client.post("/my/workspaces", params: params).body
|
18
|
+
|
19
|
+
Resources::Workspace.new({ client: client }.merge(data))
|
20
|
+
end
|
15
21
|
end
|
16
22
|
end
|
17
23
|
end
|
data/lib/tracker_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tracker_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Forest Carlisle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|