semaphore_client 3.0.1 → 3.0.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7497e0cae01395d347bad875c060d852ef8fb5ea
|
|
4
|
+
data.tar.gz: 1c64411786e2d7d81a84adac66327b2846267117
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f0e2bde0bc0d8c631a3158eaa0fe5ce303e67611ea4b341cba46c1a7289b876d8906b32bca1aac30ba6e1e91f82bcc2a210b01334e0810c9c5620d23969ea0fb
|
|
7
|
+
data.tar.gz: 5d81c913baf059101f9d98eca1ed2c284ba72ae0a757a47c85bb74c207bb8a7eedbd34b076a0e082af4c804c7a2926e5583390b464cb54439b540900bb42bc2d
|
data/Gemfile.lock
CHANGED
|
@@ -19,32 +19,6 @@ class SemaphoreClient
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
def attach_to_project(config_file_id, project_id, params = nil, options = {})
|
|
23
|
-
attach_to_project!(config_file_id, project_id, params, options)
|
|
24
|
-
rescue SemaphoreClient::Exceptions::ResponseError
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
def attach_to_project!(config_file_id, project_id, params = nil, options = {})
|
|
28
|
-
path = "/projects/#{project_id}/config_files/#{config_file_id}"
|
|
29
|
-
|
|
30
|
-
@http_client.post(path, params, options)
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
def detach_from_project(config_file_id, project_id, params = nil, options = {})
|
|
36
|
-
detach_from_project!(config_file_id, project_id, params, options)
|
|
37
|
-
rescue SemaphoreClient::Exceptions::ResponseError
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
def detach_from_project!(config_file_id, project_id, params = nil, options = {})
|
|
41
|
-
path = "/projects/#{project_id}/config_files/#{config_file_id}"
|
|
42
|
-
|
|
43
|
-
@http_client.delete(path, params, options)
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
22
|
def list_for_secret(secret_id, params = nil, options = {})
|
|
49
23
|
list_for_secret!(secret_id, params, options)
|
|
50
24
|
rescue SemaphoreClient::Exceptions::ResponseError
|
|
@@ -19,32 +19,6 @@ class SemaphoreClient
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
def attach_to_project(env_var_id, project_id, params = nil, options = {})
|
|
23
|
-
attach_to_project!(env_var_id, project_id, params, options)
|
|
24
|
-
rescue SemaphoreClient::Exceptions::ResponseError
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
def attach_to_project!(env_var_id, project_id, params = nil, options = {})
|
|
28
|
-
path = "/projects/#{project_id}/env_vars/#{env_var_id}"
|
|
29
|
-
|
|
30
|
-
@http_client.post(path, params, options)
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
def detach_from_project(env_var_id, project_id, params = nil, options = {})
|
|
36
|
-
detach_from_project!(env_var_id, project_id, params, options)
|
|
37
|
-
rescue SemaphoreClient::Exceptions::ResponseError
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
def detach_from_project!(env_var_id, project_id, params = nil, options = {})
|
|
41
|
-
path = "/projects/#{project_id}/env_vars/#{env_var_id}"
|
|
42
|
-
|
|
43
|
-
@http_client.delete(path, params, options)
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
22
|
def list_for_secret(secret_id, params = nil, options = {})
|
|
49
23
|
list_for_secret!(secret_id, params, options)
|
|
50
24
|
rescue SemaphoreClient::Exceptions::ResponseError
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
class SemaphoreClient
|
|
2
2
|
module Model
|
|
3
3
|
class Project
|
|
4
|
-
attr_reader :id, :name, :users_url, :secrets_url, :
|
|
4
|
+
attr_reader :id, :name, :users_url, :secrets_url, :updated_at, :created_at
|
|
5
5
|
|
|
6
6
|
def self.load(attributes)
|
|
7
7
|
new.load(attributes)
|
|
@@ -18,8 +18,6 @@ class SemaphoreClient
|
|
|
18
18
|
@name = attributes[:name] if attributes.key?(:name)
|
|
19
19
|
@users_url = attributes[:users_url] if attributes.key?(:users_url)
|
|
20
20
|
@secrets_url = attributes[:secrets_url] if attributes.key?(:secrets_url)
|
|
21
|
-
@env_vars_url = attributes[:env_vars_url] if attributes.key?(:env_vars_url)
|
|
22
|
-
@config_files_url = attributes[:config_files_url] if attributes.key?(:config_files_url)
|
|
23
21
|
@updated_at = attributes[:updated_at] if attributes.key?(:updated_at)
|
|
24
22
|
@created_at = attributes[:created_at] if attributes.key?(:created_at)
|
|
25
23
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: semaphore_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jovan Ivanović
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-11-
|
|
11
|
+
date: 2017-11-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|