tracker_api 1.3.0 → 1.4.0

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: 9dc2de696a1c517bc437e3dac92cde8de81555f3
4
- data.tar.gz: 3c971c77b0a4876d3905ee9568c14615d667e013
3
+ metadata.gz: 95c257d1d093f0fbf0a014e2c25457cd9dd03c05
4
+ data.tar.gz: 844127ea9d688f84adede932ed234e2d7523fc06
5
5
  SHA512:
6
- metadata.gz: 75de7ef3018a102574b18a19d7b8412f5fcd4a6109d339e980cd16e2f89e0510aecb650f851ce5375dd16ca85a95622635730b3d26bac76659173df963eda3a0
7
- data.tar.gz: 209b2490d98b16bc4510bd48726ca6ff9c82cdad97b36c06e7108bc8ea246ed14e89e94e224ebc79e6d228869b8d485b4a09737d70d3413b931d0940686911c8
6
+ metadata.gz: a349ba891f44d3fd42945b7a7c1ddaefff6c682670203b98b6e3b0a0a1b97b22700ea9cf83e88d497cc37bfa75a4bb8c77c9a559f20cee49f63131c7d0f28e57
7
+ data.tar.gz: b848641dd32595362167d334cb394a6873e1ecc0a7148f673b0776efce040ce110e7183e9bf35ed5043c49d6c168adaf05ea0aa79246bb812394148ddc214466
@@ -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
@@ -1,3 +1,3 @@
1
1
  module TrackerApi
2
- VERSION = '1.3.0'
2
+ VERSION = '1.4.0'
3
3
  end
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.3.0
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-08-23 00:00:00.000000000 Z
11
+ date: 2016-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler