playbook_ui 13.7.0.pre.alpha.play845allkitsbytypes1231 → 13.7.0.pre.alpha.play845allkitsbytypes1234

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0b8cac5dd42eb708babe77ff84918647d9567e47c925f0f7fe504005022b6b3
4
- data.tar.gz: 148f59c50932c96be2daced7de11300638a93eec93bbb7dbfcddd4f35d82e8da
3
+ metadata.gz: 7d3e7de3fa5bd590a56b31fc26671e30a8f03e45826b03866b6ba0ac78de2e62
4
+ data.tar.gz: d42d60a7e982a9242a89142107e015f2e2275d44df9721b6f4cb934136951a8a
5
5
  SHA512:
6
- metadata.gz: 4bcd59ed4bf47015e6b62143b732712c5088819f072b3e8867254bd5485351151207b0dfcaac93533034be7547fd7f8e46594d04bd87c41dcc33bbd028e65755
7
- data.tar.gz: 2ba8e6f75b4922efaf1c5cb4ba5a9bba51f75310c77dc0193f21fda489eee4ffac71b51a0c7f97393d9caf795b0429bd12cacfe80089f87649ec183a4457876e
6
+ metadata.gz: 3c6a74fd29a0968d88d5709a184017753c170a33a2191c5dccf36e86b3b27ea92e062c70abcb8d83d8d2a7ff97262e62b014d7843d7b95288857e0515e5a9e4a
7
+ data.tar.gz: d98ba8cf28ca0fb3d39b20e67d9bccb51ed37c3150b28ba6edb4d7839cfabf2ea7281e9387513844d1c317e597dd685f88722e5f9e9a07d95f69345853ae49e3
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module PlaybookWebsite
3
+ module Playbook
4
4
  module PbDocHelper
5
5
  def pb_kit_title(title)
6
6
  title.remove("pb_").titleize.tr("_", " ")
@@ -43,14 +43,16 @@ module PlaybookWebsite
43
43
  # rubocop:enable Style/StringConcatenation
44
44
 
45
45
  def get_kits(type = "rails")
46
- MENU["kits"][type]
46
+ menu = YAML.load_file(Playbook::Engine.root.join("dist/menu.yml"))
47
+ menu["kits"][type]
47
48
  end
48
49
 
49
50
  def aggregate_kits
51
+ menu = YAML.load_file(Playbook::Engine.root.join("dist/menu.yml"))
50
52
  all_kits = []
51
53
 
52
54
  # Loop over each type (rails, react, swift, etc.)
53
- MENU["kits"].each do |_type, kits|
55
+ menu["kits"].each do |_type, kits|
54
56
  kits.each do |kit|
55
57
  case kit
56
58
  when Hash
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.7.0"
5
- VERSION = "13.7.0.pre.alpha.play845allkitsbytypes1231"
5
+ VERSION = "13.7.0.pre.alpha.play845allkitsbytypes1234"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.7.0.pre.alpha.play845allkitsbytypes1231
4
+ version: 13.7.0.pre.alpha.play845allkitsbytypes1234
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX