haveapi-client 0.18.2 → 0.19.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/haveapi/cli/authentication/token.rb +1 -1
- data/lib/haveapi/client/action.rb +4 -0
- data/lib/haveapi/client/authentication/base.rb +4 -0
- data/lib/haveapi/client/authentication/token.rb +1 -1
- data/lib/haveapi/client/client.rb +4 -0
- data/lib/haveapi/client/communicator.rb +4 -0
- data/lib/haveapi/client/resource.rb +4 -4
- data/lib/haveapi/client/version.rb +1 -1
- data/shell.nix +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac1bb48d5286801855f0c23b4cd48c49fbea73de060c3ed8e9ae9c85ffd2c737
|
4
|
+
data.tar.gz: 65ec182f18a96523983d7a0e6562625fedf5df26e1ed2dedd5c410934cd00b83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fa5d7039fa7041c70058167a83498df449d49ff44e3f286277f76c3ef2dc70178caaf14f4f269c769f46394995f8b644c678aa2d809a0f1dd8bd6bdb532c715
|
7
|
+
data.tar.gz: 1f72f01b0de09b58d9fd950bcfef59d87f36f101a23be4d66ca6e7672911784f30a5d87d192a7477438d348b4bbe05759d246318e645527b3440a55171ad6977
|
@@ -69,7 +69,7 @@ module HaveAPI::Client::Authentication
|
|
69
69
|
lifetime: @opts[:lifetime],
|
70
70
|
interval: @opts[:interval] || 300,
|
71
71
|
}
|
72
|
-
request_credentials.each { |name| input[name] = @opts[name] }
|
72
|
+
request_credentials.each { |name| input[name] = @opts[name] if @opts[name] }
|
73
73
|
|
74
74
|
cont, next_action, token = login_step(:request, input)
|
75
75
|
return if cont == :done
|
@@ -26,6 +26,10 @@ module HaveAPI::Client
|
|
26
26
|
@identity = 'haveapi-client-ruby'
|
27
27
|
end
|
28
28
|
|
29
|
+
def inspect
|
30
|
+
"#<#{self.class.name} @url=#{@url} @version=#{@version} @auth=#{@auth.class.name}>"
|
31
|
+
end
|
32
|
+
|
29
33
|
# @return [:compatible] if perfectly compatible
|
30
34
|
# @return [:imperfect] if minor version differs
|
31
35
|
# @return [false] if not compatible
|
@@ -13,6 +13,10 @@ module HaveAPI::Client
|
|
13
13
|
@resources = {}
|
14
14
|
end
|
15
15
|
|
16
|
+
def inspect
|
17
|
+
"#<#{self.class.name} @name=#{@name} @prepared_args=#{@prepared_args} @actions=#{@actions.keys.inspect} @resources=#{@resources.keys.inspect}>"
|
18
|
+
end
|
19
|
+
|
16
20
|
def setup(description)
|
17
21
|
@description = description
|
18
22
|
|
@@ -46,10 +50,6 @@ module HaveAPI::Client
|
|
46
50
|
end
|
47
51
|
end
|
48
52
|
|
49
|
-
def inspect
|
50
|
-
super
|
51
|
-
end
|
52
|
-
|
53
53
|
# Create a new instance of a resource. The created instance
|
54
54
|
# is not persistent until ResourceInstance#save is called.
|
55
55
|
def new
|
data/shell.nix
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haveapi-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Skokan
|
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
198
|
- !ruby/object:Gem::Version
|
199
199
|
version: '0'
|
200
200
|
requirements: []
|
201
|
-
rubygems_version: 3.4.
|
201
|
+
rubygems_version: 3.4.22
|
202
202
|
signing_key:
|
203
203
|
specification_version: 4
|
204
204
|
summary: Ruby API and CLI for HaveAPI
|