activeadmin-menu_tree 0.2.1 → 0.2.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: ae470640145da2a76875e361c8e1a5bb99838ff72894c9fc8f66dd266226004c
4
- data.tar.gz: bc6fe3ffe900a9e8a1430ca25a82815c32d67f3b0979df55fe9af4bd25d3e223
3
+ metadata.gz: f4c16b5f354db79d26599238e1b80d2bfb978c029a9209ea61ee37aaa5627f9e
4
+ data.tar.gz: 37937d45abb4268ec1a4ce475ab5b1c0cd4e0e5218ab7aeff5f43966945b209b
5
5
  SHA512:
6
- metadata.gz: aa4d16bdde948794cc92965ffa9ec94cfbed5fdcf102c6300d941dbd6f8b80a73b69ced428cd884d37f40c582eab88d283b18299893f97cb8a69ff34a839ebbd
7
- data.tar.gz: 53572e64a66d4aadd161f9d4f5c3d0d84ad4d9590d4310ef0c13334b205677ce447d45e4c7d4fbcb462c344d603e515152258b377d828dd829d2ac75bb786eea
6
+ metadata.gz: 6ea399628b6146c8232f6af9162960bf83afa0cdd97a49809ee114c32467d3a476fd111c24019aab5325af184d78fae58467b41bcb7c41d82602af342a2bd5d5
7
+ data.tar.gz: 1d5382a9f0b3957688cf218ead03e55e04fe1f9d4846969dde586ba18ae832a8a00bddd47bec1c8b57834372c0fc08b07723783cc47222c96a8b357b2e5aabb9
data/.rubocop.yml CHANGED
@@ -27,6 +27,9 @@ Style/StringLiteralsInInterpolation:
27
27
  Enabled: true
28
28
  EnforcedStyle: double_quotes
29
29
 
30
+ Style/TrailingCommaInArrayLiteral:
31
+ Enabled: false
32
+
30
33
  Style/TrailingCommaInHashLiteral:
31
34
  Enabled: false
32
35
 
@@ -36,11 +36,11 @@ module ActiveAdmin::MenuTree
36
36
 
37
37
  def format_options(item, index:, parent: nil)
38
38
  # TODO: validate option
39
+ options = item.except(:children)
39
40
  if item.key?(:name)
40
41
  ActiveAdmin::MenuTree.warn_deprecated("Use `id` key, instead of `name`.")
41
42
  options[:id] ||= item[:name]
42
43
  end
43
- options = item.except(:children)
44
44
  options[:priority] = index * 10
45
45
  options[:parent] = parent if parent.present?
46
46
  options
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveAdmin
4
4
  module MenuTree
5
- VERSION = "0.2.1"
5
+ VERSION = "0.2.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-menu_tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - shuuuuuny
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-14 00:00:00.000000000 Z
11
+ date: 2022-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin