gazer 0.2.41 → 0.2.42
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/.ruby-version +1 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +20 -20
- data/lib/gzr/command.rb +8 -6
- data/lib/gzr/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a778eafa848d0fed39847e648457923f248355c84fcdc46ac659cb254bf44a96
|
|
4
|
+
data.tar.gz: b70966d2e4b233e5739c5595f4b0a7b34be662fe6f2d73de48142ec915377fb1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90f24e564a4d026e79544455f010adec376ab299ee2d7ad58b0242beaa5f388dfcae5eddc393c7bdf3cfab6042296d9699db687fc535ae2e23ce19ced6d309ad
|
|
7
|
+
data.tar.gz: 273aa7ec357bf6a0f4c6ebc412e55a58d5002615b5cd66b3c4df63cd6f0bba530333ba40ce25b3b475d7a241457817fb7081131063c834e4041e022b532e3358
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ruby-2.
|
|
1
|
+
ruby-2.5.8
|
data/Gemfile
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
RUBY_VERSION = File.read(File.join(File.dirname(__FILE__), '.ruby-version')).split('-').last.chomp
|
|
23
23
|
|
|
24
|
-
ruby '2.
|
|
24
|
+
ruby '2.5.8', engine: 'ruby', engine_version: RUBY_VERSION
|
|
25
25
|
|
|
26
26
|
source "https://rubygems.org"
|
|
27
27
|
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
gazer (0.2.
|
|
4
|
+
gazer (0.2.42)
|
|
5
5
|
looker-sdk (~> 0.0.7)
|
|
6
6
|
netrc (~> 0.11.0)
|
|
7
7
|
pastel (~> 0.7.2)
|
|
@@ -18,7 +18,7 @@ GEM
|
|
|
18
18
|
public_suffix (>= 2.0.2, < 5.0)
|
|
19
19
|
diff-lcs (1.3)
|
|
20
20
|
equatable (0.5.0)
|
|
21
|
-
faraday (0.17.
|
|
21
|
+
faraday (0.17.3)
|
|
22
22
|
multipart-post (>= 1.2, < 3)
|
|
23
23
|
kramdown (1.16.2)
|
|
24
24
|
looker-sdk (0.0.7)
|
|
@@ -30,33 +30,33 @@ GEM
|
|
|
30
30
|
pastel (0.7.2)
|
|
31
31
|
equatable (~> 0.5.0)
|
|
32
32
|
tty-color (~> 0.4.0)
|
|
33
|
-
public_suffix (4.0.
|
|
33
|
+
public_suffix (4.0.6)
|
|
34
34
|
rake (12.3.3)
|
|
35
35
|
rouge (3.1.1)
|
|
36
|
-
rspec (3.
|
|
37
|
-
rspec-core (~> 3.
|
|
38
|
-
rspec-expectations (~> 3.
|
|
39
|
-
rspec-mocks (~> 3.
|
|
40
|
-
rspec-core (3.
|
|
41
|
-
rspec-support (~> 3.
|
|
42
|
-
rspec-expectations (3.
|
|
36
|
+
rspec (3.9.0)
|
|
37
|
+
rspec-core (~> 3.9.0)
|
|
38
|
+
rspec-expectations (~> 3.9.0)
|
|
39
|
+
rspec-mocks (~> 3.9.0)
|
|
40
|
+
rspec-core (3.9.2)
|
|
41
|
+
rspec-support (~> 3.9.3)
|
|
42
|
+
rspec-expectations (3.9.2)
|
|
43
43
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
44
|
-
rspec-support (~> 3.
|
|
45
|
-
rspec-mocks (3.
|
|
44
|
+
rspec-support (~> 3.9.0)
|
|
45
|
+
rspec-mocks (3.9.1)
|
|
46
46
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
47
|
-
rspec-support (~> 3.
|
|
48
|
-
rspec-support (3.
|
|
47
|
+
rspec-support (~> 3.9.0)
|
|
48
|
+
rspec-support (3.9.3)
|
|
49
49
|
rubyzip (1.3.0)
|
|
50
50
|
sawyer (0.8.2)
|
|
51
51
|
addressable (>= 2.3.5)
|
|
52
52
|
faraday (> 0.8, < 2.0)
|
|
53
|
-
strings (0.1.
|
|
53
|
+
strings (0.1.8)
|
|
54
54
|
strings-ansi (~> 0.1)
|
|
55
55
|
unicode-display_width (~> 1.5)
|
|
56
56
|
unicode_utils (~> 1.4)
|
|
57
|
-
strings-ansi (0.
|
|
57
|
+
strings-ansi (0.2.0)
|
|
58
58
|
thor (0.20.3)
|
|
59
|
-
timers (4.3.
|
|
59
|
+
timers (4.3.2)
|
|
60
60
|
tty (0.8.1)
|
|
61
61
|
bundler (~> 1.16, < 2.0)
|
|
62
62
|
equatable (~> 0.5.0)
|
|
@@ -129,9 +129,9 @@ GEM
|
|
|
129
129
|
tty-screen (~> 0.6.4)
|
|
130
130
|
tty-tree (0.1.0)
|
|
131
131
|
tty-which (0.3.0)
|
|
132
|
-
unicode-display_width (1.
|
|
132
|
+
unicode-display_width (1.7.0)
|
|
133
133
|
unicode_utils (1.4.0)
|
|
134
|
-
wisper (2.0.
|
|
134
|
+
wisper (2.0.1)
|
|
135
135
|
|
|
136
136
|
PLATFORMS
|
|
137
137
|
ruby
|
|
@@ -144,7 +144,7 @@ DEPENDENCIES
|
|
|
144
144
|
tty (~> 0.8)
|
|
145
145
|
|
|
146
146
|
RUBY VERSION
|
|
147
|
-
ruby 2.
|
|
147
|
+
ruby 2.5.8p224
|
|
148
148
|
|
|
149
149
|
BUNDLED WITH
|
|
150
150
|
1.17.3
|
data/lib/gzr/command.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# The MIT
|
|
1
|
+
# The MIT icense (MIT)
|
|
2
2
|
|
|
3
3
|
# Copyright (c) 2018 Mike DeAngelo Looker Data Sciences, Inc.
|
|
4
4
|
|
|
@@ -169,8 +169,7 @@ module Gzr
|
|
|
169
169
|
def find_vis_config_reference(obj, &block)
|
|
170
170
|
if obj.respond_to?(:'has_key?') && obj.has_key?(:vis_config)
|
|
171
171
|
yield (obj[:vis_config])
|
|
172
|
-
|
|
173
|
-
if obj.is_a? Enumerable
|
|
172
|
+
elsif obj.is_a? Enumerable
|
|
174
173
|
obj.each { |o| find_vis_config_reference(o,&block) }
|
|
175
174
|
end
|
|
176
175
|
end
|
|
@@ -187,19 +186,20 @@ module Gzr
|
|
|
187
186
|
|
|
188
187
|
if obj.respond_to?(:'has_key?') && obj.has_key?(:collection_id) && obj.has_key?(:palette_id)
|
|
189
188
|
yield(obj,default_colors)
|
|
190
|
-
|
|
191
|
-
if obj.is_a? Enumerable
|
|
189
|
+
elsif obj.is_a? Enumerable
|
|
192
190
|
obj.each { |o| find_color_palette_reference(o,default_colors,&block) }
|
|
193
191
|
end
|
|
194
192
|
end
|
|
195
193
|
|
|
196
194
|
def color_palette_lookup!(obj)
|
|
197
|
-
|
|
195
|
+
say_warning("performing color_palette_lookup! on #{obj.inspect}") if @options[:debug]
|
|
196
|
+
return nil unless obj.respond_to?(:'has_key?')
|
|
198
197
|
palettes = []
|
|
199
198
|
palettes += obj[:categoricalPalettes] if obj[:categoricalPalettes]
|
|
200
199
|
palettes += obj[:sequentialPalettes] if obj[:sequentialPalettes]
|
|
201
200
|
palettes += obj[:divergingPalettes] if obj[:divergingPalettes]
|
|
202
201
|
obj[:palettes]=palettes
|
|
202
|
+
say_warning("got palettes #{palettes.inspect}") if @options[:debug]
|
|
203
203
|
obj
|
|
204
204
|
end
|
|
205
205
|
|
|
@@ -227,9 +227,11 @@ module Gzr
|
|
|
227
227
|
cc = default_colors
|
|
228
228
|
if !(force_default && o[:collection_default])
|
|
229
229
|
# look up color collection by id
|
|
230
|
+
say_warning("attempting to match palette on id #{o[:collection_id]}") if @options[:debug]
|
|
230
231
|
cc = color_palette_lookup!(color_collection(o[:collection_id]))
|
|
231
232
|
if cc.nil?
|
|
232
233
|
# find color collection by name
|
|
234
|
+
say_warning("no match on id, attempting to match palette on name #{o[:collection_label]}") if @options[:debug]
|
|
233
235
|
ccs = all_color_collections()&.select { |cc| o[:collection_label] == cc[:label]}
|
|
234
236
|
if ccs.nil? || ccs.length == 0
|
|
235
237
|
# no color collection found. Use default.
|
data/lib/gzr/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gazer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.42
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike DeAngelo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-09-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tty-reader
|
|
@@ -357,7 +357,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
357
357
|
- !ruby/object:Gem::Version
|
|
358
358
|
version: '0'
|
|
359
359
|
requirements: []
|
|
360
|
-
|
|
360
|
+
rubyforge_project:
|
|
361
|
+
rubygems_version: 2.7.6.2
|
|
361
362
|
signing_key:
|
|
362
363
|
specification_version: 4
|
|
363
364
|
summary: Command line tool to manage the content of a Looker instance.
|