haveapi-client 0.26.2 → 0.26.4
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/cli.rb +11 -1
- data/lib/haveapi/client/validators/length.rb +1 -1
- data/lib/haveapi/client/version.rb +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: 990c16577799341bfe013e588b33b15e52c3acf973869a84ba3b051b99de57fd
|
|
4
|
+
data.tar.gz: 14d4be7d907a1ef7857f5e7fc56cf39a408958e20aa1d7f0e10f4737d9cc3309
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28eefedb8c494cf33f0b81729b34dfcc558affdcb9d3acabf8c58f49b6a0ec9cb55a9f6e8b4c32ad72da42e4f66a78125710aa861284bcc1fbe119f230998306
|
|
7
|
+
data.tar.gz: d42f140abba3ffa5851bb68a410061e64e23fd7a7e312d20ed82f36d6a143a1016e496773beb675aaf86248bf33809de994d0a55aba4d1d48324f4f119346325
|
data/lib/haveapi/cli/cli.rb
CHANGED
|
@@ -641,12 +641,22 @@ module HaveAPI::CLI
|
|
|
641
641
|
"#{Dir.home}/.haveapi-client.yml"
|
|
642
642
|
end
|
|
643
643
|
|
|
644
|
+
def system_config_path
|
|
645
|
+
'/etc/haveapi-client.yml'
|
|
646
|
+
end
|
|
647
|
+
|
|
644
648
|
def write_config
|
|
645
649
|
File.write(config_path, YAML.dump(@config))
|
|
646
650
|
end
|
|
647
651
|
|
|
648
652
|
def read_config
|
|
649
|
-
|
|
653
|
+
path = if File.exist?(config_path)
|
|
654
|
+
config_path
|
|
655
|
+
elsif File.exist?(system_config_path)
|
|
656
|
+
system_config_path
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
@config = YAML.load_file(path) if path
|
|
650
660
|
end
|
|
651
661
|
|
|
652
662
|
def server_config(url)
|
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.26.
|
|
4
|
+
version: 0.26.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jakub Skokan
|
|
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
169
169
|
- !ruby/object:Gem::Version
|
|
170
170
|
version: '0'
|
|
171
171
|
requirements: []
|
|
172
|
-
rubygems_version: 3.
|
|
172
|
+
rubygems_version: 3.7.2
|
|
173
173
|
specification_version: 4
|
|
174
174
|
summary: Ruby API and CLI for HaveAPI
|
|
175
175
|
test_files: []
|