lookbook 2.3.11 → 2.3.12
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 634043098ae2ae2c1e529d8ab5359e8b4894cc56679e47b71cc48da249c521ca
|
4
|
+
data.tar.gz: cd679fad55997bf1fc1c0163d0b32b2511f1ce3320190976c878305913fe80b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0d330de3e7379c0f549b713dc61d762fc88af7a5015f57ab3fc4e71b4b74fe8ca66d506177e84d661048196ed07d12abdef2d5e087e9b54468d427356220119
|
7
|
+
data.tar.gz: 37d98a9697d647294fcb4b2f8c718452b57d9a1b4d6941a32a3d8576a42e788ef673b328455cf22a8cbc4fa8afd529a6354034944c1536a9773629b61999cbf1
|
@@ -6,15 +6,14 @@ module Lookbook
|
|
6
6
|
@paths = paths
|
7
7
|
@after_parse_callbacks = []
|
8
8
|
@after_parse_once_callbacks = []
|
9
|
-
@parsing =
|
9
|
+
@parsing = Mutex.new
|
10
10
|
|
11
11
|
define_tags(tags)
|
12
12
|
YARD::Parser::SourceParser.after_parse_list { run_callbacks }
|
13
13
|
end
|
14
14
|
|
15
15
|
def parse(files = nil, &block)
|
16
|
-
|
17
|
-
@parsing = true
|
16
|
+
@parsing.synchronize do
|
18
17
|
@after_parse_once_callbacks << block if block
|
19
18
|
files_list = files ? files.select { |file| file.to_s.end_with?(".rb") } : paths
|
20
19
|
|
@@ -43,7 +42,6 @@ module Lookbook
|
|
43
42
|
def run_callbacks
|
44
43
|
callbacks.each { |cb| cb.call(YARD::Registry) }
|
45
44
|
@after_parse_once_callbacks = []
|
46
|
-
@parsing = false
|
47
45
|
end
|
48
46
|
|
49
47
|
def define_tags(tags = nil)
|
@@ -28,7 +28,10 @@ module Lookbook
|
|
28
28
|
def value_default
|
29
29
|
default_value_parts = object.parameters.find { |parts| parts[0].chomp(":") == name }
|
30
30
|
if default_value_parts
|
31
|
-
|
31
|
+
# fix issue with YARD argument parser not splitting args correctly (leaving a trailing comma or bracket)
|
32
|
+
# when one or more of the argument values is a negative number.
|
33
|
+
cleaned_value = default_value_parts[1].start_with?("-") ? default_value_parts[1].sub(/[,\)]$/, "") : default_value_parts[1]
|
34
|
+
host_class_instance.instance_eval(cleaned_value)
|
32
35
|
else
|
33
36
|
raise ParserError.new "Unknown method parameter '#{name}'"
|
34
37
|
end
|
data/lib/lookbook/version.rb
CHANGED
@@ -8030,7 +8030,7 @@ function $12b7aa006b8a97e1$var$toCamel(s) {
|
|
8030
8030
|
}
|
8031
8031
|
|
8032
8032
|
|
8033
|
-
var $
|
8033
|
+
var $e3048089509446aa$exports = {};
|
8034
8034
|
var $cbd28b10fa9798c7$exports = {};
|
8035
8035
|
|
8036
8036
|
$parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
|
@@ -12279,33 +12279,6 @@ function $506dabb2bf255b38$var$sizeSplits(sizes) {
|
|
12279
12279
|
}
|
12280
12280
|
|
12281
12281
|
|
12282
|
-
var $a87dacf5139b5e2f$exports = {};
|
12283
|
-
|
12284
|
-
$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
|
12285
|
-
|
12286
|
-
$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
|
12287
|
-
function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
|
12288
|
-
return {
|
12289
|
-
get store () {
|
12290
|
-
return store || this;
|
12291
|
-
},
|
12292
|
-
get id () {
|
12293
|
-
return this.$root.id;
|
12294
|
-
},
|
12295
|
-
get panels () {
|
12296
|
-
return Array.from(this.$refs.panels.children);
|
12297
|
-
},
|
12298
|
-
isActive (el) {
|
12299
|
-
return this.store.activeTab === this._getRef(el);
|
12300
|
-
},
|
12301
|
-
// protected
|
12302
|
-
_getRef (el) {
|
12303
|
-
return el.getAttribute("x-ref");
|
12304
|
-
}
|
12305
|
-
};
|
12306
|
-
}
|
12307
|
-
|
12308
|
-
|
12309
12282
|
var $0db07828cadc68e0$exports = {};
|
12310
12283
|
|
12311
12284
|
$parcel$defineInteropFlag($0db07828cadc68e0$exports);
|
@@ -12526,7 +12499,34 @@ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
|
|
12526
12499
|
}
|
12527
12500
|
|
12528
12501
|
|
12529
|
-
$
|
12502
|
+
var $a87dacf5139b5e2f$exports = {};
|
12503
|
+
|
12504
|
+
$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
|
12505
|
+
|
12506
|
+
$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
|
12507
|
+
function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
|
12508
|
+
return {
|
12509
|
+
get store () {
|
12510
|
+
return store || this;
|
12511
|
+
},
|
12512
|
+
get id () {
|
12513
|
+
return this.$root.id;
|
12514
|
+
},
|
12515
|
+
get panels () {
|
12516
|
+
return Array.from(this.$refs.panels.children);
|
12517
|
+
},
|
12518
|
+
isActive (el) {
|
12519
|
+
return this.store.activeTab === this._getRef(el);
|
12520
|
+
},
|
12521
|
+
// protected
|
12522
|
+
_getRef (el) {
|
12523
|
+
return el.getAttribute("x-ref");
|
12524
|
+
}
|
12525
|
+
};
|
12526
|
+
}
|
12527
|
+
|
12528
|
+
|
12529
|
+
$e3048089509446aa$exports = {
|
12530
12530
|
"button": $cbd28b10fa9798c7$exports,
|
12531
12531
|
"code": $99486586f6691564$exports,
|
12532
12532
|
"copy_button": $47a1c62621be0c54$exports,
|
@@ -12535,9 +12535,9 @@ $c9dfaeb25bf110ce$exports = {
|
|
12535
12535
|
"filter": $e9904a14dabf652d$exports,
|
12536
12536
|
"nav": $d92d9d5253f84566$exports,
|
12537
12537
|
"split_layout": $506dabb2bf255b38$exports,
|
12538
|
-
"tab_panels": $a87dacf5139b5e2f$exports,
|
12539
12538
|
"tabs": $0db07828cadc68e0$exports,
|
12540
|
-
"viewport": $6d64716f0b34fdf4$exports
|
12539
|
+
"viewport": $6d64716f0b34fdf4$exports,
|
12540
|
+
"tab_panels": $a87dacf5139b5e2f$exports
|
12541
12541
|
};
|
12542
12542
|
|
12543
12543
|
|
@@ -13721,7 +13721,7 @@ const $22969b543678f572$var$prefix = window.APP_NAME;
|
|
13721
13721
|
// Components
|
13722
13722
|
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $5792afa4170ed552$export$2e2bcd8739ae039));
|
13723
13723
|
[
|
13724
|
-
$
|
13724
|
+
$e3048089509446aa$exports,
|
13725
13725
|
$6178ee12f80cbf68$exports,
|
13726
13726
|
$d56e5cced44001d2$exports
|
13727
13727
|
].forEach((scripts)=>{
|