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: d91f464b804e371a0d679c23537e2d3f029a86c34df289ff8010332b64c6b4b7
4
- data.tar.gz: '0938778b28ff37108e4918a528dcc138c424ffd9c824bb6ab60e51f6f27e1bc1'
3
+ metadata.gz: 634043098ae2ae2c1e529d8ab5359e8b4894cc56679e47b71cc48da249c521ca
4
+ data.tar.gz: cd679fad55997bf1fc1c0163d0b32b2511f1ce3320190976c878305913fe80b9
5
5
  SHA512:
6
- metadata.gz: 22a1dff1b1c1d2fcffe417e5afcedbd1c1e8999a9f8ec118b275f6a783656ace2d824fa1a42e0398a7b06b7b3c873dbb1b1b23a92818158b75c9eee37e351518
7
- data.tar.gz: e3f76fda4b95ce57f7ce72928734282e95a3c0ba1ca8e46483fd6c5c773f3eca103f196663c717c46797f54e6c0f9bf18425a35ca3bb4fff70ca883b78cc1f74
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 = false
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
- unless @parsing
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
- host_class_instance.instance_eval(default_value_parts[1])
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
@@ -1,3 +1,3 @@
1
1
  module Lookbook
2
- VERSION = "2.3.11"
2
+ VERSION = "2.3.12"
3
3
  end
@@ -8030,7 +8030,7 @@ function $12b7aa006b8a97e1$var$toCamel(s) {
8030
8030
  }
8031
8031
 
8032
8032
 
8033
- var $c9dfaeb25bf110ce$exports = {};
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
- $c9dfaeb25bf110ce$exports = {
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
- $c9dfaeb25bf110ce$exports,
13724
+ $e3048089509446aa$exports,
13725
13725
  $6178ee12f80cbf68$exports,
13726
13726
  $d56e5cced44001d2$exports
13727
13727
  ].forEach((scripts)=>{