playbook_ui 13.10.0.pre.alpha.PLAY1046multilevelsingleselectphase21323 → 13.10.0.pre.alpha.play845addswiftkitspage1332

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,7 +46,18 @@ module Playbook
46
46
  # rubocop:disable Naming/AccessorMethodName
47
47
  def get_kits
48
48
  menu = YAML.load_file(Playbook::Engine.root.join("dist/menu.yml"))
49
- menu["kits"]
49
+ all_kits = []
50
+ menu["kits"].each do |kit|
51
+ kit_name = kit["name"]
52
+ components = kit["components"].map { |c| c["name"] }
53
+
54
+ all_kits << if components.size == 1
55
+ components.first
56
+ else
57
+ { kit_name => components }
58
+ end
59
+ end
60
+ all_kits
50
61
  end
51
62
 
52
63
  def get_kits_pb_website
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.10.0"
5
- VERSION = "13.10.0.pre.alpha.PLAY1046multilevelsingleselectphase21323"
5
+ VERSION = "13.10.0.pre.alpha.play845addswiftkitspage1332"
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.10.0.pre.alpha.PLAY1046multilevelsingleselectphase21323
4
+ version: 13.10.0.pre.alpha.play845addswiftkitspage1332
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-10-24 00:00:00.000000000 Z
12
+ date: 2023-10-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack