playbook_ui 14.6.0.pre.rc.0 → 14.6.0.pre.rc.2

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: d642516d659410a6a6143c4f1511481020a8cf8c14179ea0aff3d4a8e83d8780
4
- data.tar.gz: 5aa325d5b25798fac84ea63c76c49cfd06fca93a1c03b7806098edf019b29524
3
+ metadata.gz: 3d1992902a3da2e0fa2ab34acdc4ace3a0315eaa7a013cdf7e100d51bbed7edf
4
+ data.tar.gz: ca60f01740195b675e58bfd3a6c99b5dc670e33bf0ea99d8e80b9469e2436dcc
5
5
  SHA512:
6
- metadata.gz: cbaaa769fe00fa458fb70c7cfe7a6594b9d72973b701bcdb71a91bec271b47020312eb7c1000c74369b1e96de77652f490b0ebacc3bba584409f63bd6ce75672
7
- data.tar.gz: d638415f5ca989bb3ca0b39ab3fd80b2d8896382e69a7ffa273dd7c449b1d34496be14a8cef6b35de11a4c92408b9c0ad0b020071517cf9c0d04b15e60e30515
6
+ metadata.gz: 6b6d2092452c9718f4939d39ad5cdce6680ee9c12072fee31875cc611d70e475e76ed53bfd6b311f9516b6b06423aedc3843938a39247a1b007d029b54d865f2
7
+ data.tar.gz: 8d8270d9240aa63e2c5371600a5a95d1e38d76ac162f2bbae1c8f4918f6353c449e9e3890f489f7a992134a826cb1610ab95e9115eba101ffd49b00d71168220
@@ -45,7 +45,7 @@ module Playbook
45
45
 
46
46
  # rubocop:disable Naming/AccessorMethodName
47
47
  def get_kits
48
- menu = YAML.load_file(Playbook::Engine.root.join("dist/menu.yml"))
48
+ menu = ActiveSupport::ConfigurationFile.parse(Playbook::Engine.root.join("dist/menu.yml"))
49
49
  all_kits = []
50
50
  menu["kits"].each do |kit|
51
51
  kit_name = kit["name"]
@@ -61,7 +61,7 @@ module Playbook
61
61
  end
62
62
 
63
63
  def get_kits_pb_website
64
- menu = YAML.load_file(Rails.root.join("config/menu.yml"))
64
+ menu = ActiveSupport::ConfigurationFile.parse(Rails.root.join("config/menu.yml"))
65
65
  menu["kits"]
66
66
  end
67
67
  # rubocop:enable Naming/AccessorMethodName
@@ -84,9 +84,9 @@ module Playbook
84
84
  def pb_doc_kit_examples(kit, type)
85
85
  example_file = pb_doc_kit_path(kit, "example.yml")
86
86
  if File.exist?(example_file)
87
- examples_list = YAML.load_file(example_file)
88
- .inject({}) { |item, (k, v)| item[k.to_sym] = v; item }
89
- examples_list.dig(:examples, type) || []
87
+ ActiveSupport::ConfigurationFile.parse(example_file)
88
+ .transform_keys(&:to_sym)
89
+ .dig(:examples, type) || []
90
90
  else
91
91
  []
92
92
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.5.0"
5
- VERSION = "14.6.0.pre.rc.0"
5
+ VERSION = "14.6.0.pre.rc.2"
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: 14.6.0.pre.rc.0
4
+ version: 14.6.0.pre.rc.2
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: 2024-10-01 00:00:00.000000000 Z
12
+ date: 2024-10-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack