voog-kit 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +1 -7
- data/bin/kit +6 -5
- data/lib/voog/dtk/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ed26cef655b21f91a963a0747fd9227a16d270c
|
4
|
+
data.tar.gz: 5babe8d69df18f767e3f7d704fb88efdfacf9d2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6232baa6a43fe1e4ae01eedeffc0dfcf7b68dbe481eebd6c44d9c4baf3a5829dfe1d818e6c7aeb56ca1d735960b87a3bc9562129dbe94942c79e6146516fba9
|
7
|
+
data.tar.gz: 997aa20442c819223af501e32efad152e741c6875d171e658ded57561852b4e1652bbf38ac248733dd2b7949fcd15bf24d4f3ad8ebdcb173fd8ef3928b81c089
|
data/README.markdown
CHANGED
@@ -18,13 +18,7 @@ means it can be run from anywhere in your system.
|
|
18
18
|
|
19
19
|
|
20
20
|
### API token
|
21
|
-
To use the toolkit, you have to
|
22
|
-
page (http://yoursite.voog.com/admin/people/profile).
|
23
|
-
![generating the API token](https://dl.dropboxusercontent.com/u/10145790/generating_api_token.png)
|
24
|
-
|
25
|
-
You should see something like this:
|
26
|
-
|
27
|
-
![API token is generated](https://dl.dropboxusercontent.com/u/10145790/api_token_generated.png)
|
21
|
+
To use the toolkit, you have to provide your API token. [Here's a short guide how to generate one](https://www.voog.com/support/guides/stats-and-maintenance/how-to-generate-an-api-token).
|
28
22
|
|
29
23
|
Without this token, *kit* will not allow you to access or change your layout files.
|
30
24
|
|
data/bin/kit
CHANGED
@@ -269,6 +269,7 @@ pre do |global, command, options, args|
|
|
269
269
|
matched_protocol = host.match(/^https?:\/\//)
|
270
270
|
if (matched_protocol)
|
271
271
|
protocol_string = matched_protocol[0].slice(0, matched_protocol[0].length-3)
|
272
|
+
puts 'protocol string' + protocol_string
|
272
273
|
if options.fetch(:protocol, '').empty?
|
273
274
|
protocol = protocol_string
|
274
275
|
else
|
@@ -277,10 +278,10 @@ pre do |global, command, options, args|
|
|
277
278
|
protocol = protocol.empty? ? protocol_string : protocol
|
278
279
|
host = host.slice(matched_protocol[0].length, host.length)
|
279
280
|
else
|
280
|
-
protocol = options.fetch(:protocol, '')
|
281
|
+
protocol = options.fetch(:protocol, '')
|
281
282
|
end
|
282
283
|
else
|
283
|
-
protocol = options.fetch(:protocol, '')
|
284
|
+
protocol = options.fetch(:protocol, '')
|
284
285
|
end
|
285
286
|
|
286
287
|
if host && api_token
|
@@ -288,9 +289,8 @@ pre do |global, command, options, args|
|
|
288
289
|
host: host,
|
289
290
|
api_token: api_token,
|
290
291
|
block: @config_block || host,
|
291
|
-
overwrite: overwrite
|
292
|
-
|
293
|
-
})
|
292
|
+
overwrite: overwrite
|
293
|
+
}.tap { |h| h[:protocol] = protocol unless protocol.empty? })
|
294
294
|
end
|
295
295
|
|
296
296
|
@config = Voog::Dtk.read_config @config_block
|
@@ -309,6 +309,7 @@ pre do |global, command, options, args|
|
|
309
309
|
host ||= @config[:host]
|
310
310
|
api_token ||= @config[:api_token]
|
311
311
|
overwrite ||= @config[:overwrite]
|
312
|
+
protocol = protocol.empty? ? @config[:protocol] || 'http' : protocol
|
312
313
|
|
313
314
|
client = Voog::Client.new(host, api_token, protocol: protocol, raise_on_error: true)
|
314
315
|
@filemanager = Voog::Dtk::FileManager.new(client, {
|
data/lib/voog/dtk/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: voog-kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikk Pristavka
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-09-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -260,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
260
260
|
version: '0'
|
261
261
|
requirements: []
|
262
262
|
rubyforge_project:
|
263
|
-
rubygems_version: 2.
|
263
|
+
rubygems_version: 2.5.1
|
264
264
|
signing_key:
|
265
265
|
specification_version: 4
|
266
266
|
summary: Voog Developer Toolkit
|