activeadmin-menu_tree 0.1.1 → 0.1.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: 915be184b52128a375b2b76397c266148d5a6f27847a704913623b71cec64aaa
4
- data.tar.gz: dab0db630d9510882682eb5ca72f6cc268c2f531e17e4f094b2b48aec25ccb61
3
+ metadata.gz: b04ec690f0cea481508a2359ede3943c33c5353e32fd1ae07d0da5e43fc66a8a
4
+ data.tar.gz: b8d28caed2ce7f24facabfd707b96e710d84a20a0ec96d89350f605e73763406
5
5
  SHA512:
6
- metadata.gz: 9dc782fd55db0218d961c296afe543178d0a618708fe8009ed0b0bfcd408c7ecdc7bdbeab19135c0d6ddfa79d2805d118d85d5b30508f67ee0e9bcbdd8bc5192
7
- data.tar.gz: 5d8832823ad3112ecf687257e3948e3bc532331ca2dd9ca58e6a7d4c266112c2504f9b6a4054f8a6f720b3815574cadfcfeb7efc4d757885e8efd4d0f13b81da
6
+ metadata.gz: ff9dd6bf9962dda1a7b96c3c42dbf7b369f3d74d13ee8ff660129f74e9d77ea66c43bd928a28eeb8b9ca802e240eaf1a612f903155f031f8f027e93de02ebf7d
7
+ data.tar.gz: 697f1a4fd51a1832c2cfce26d363ee3f328cc953580a93229b4e3226145a0fbc4767dca6e02f025b4b23fbf1139bf5b0da29edce9b213ed4aada24f6e8a9ebb8
data/.rubocop.yml CHANGED
@@ -11,6 +11,7 @@ AllCops:
11
11
  ExtraDetails: true
12
12
  Exclude:
13
13
  - 'spec/dummy/**/*'
14
+ - 'vendor/bundle/**/*'
14
15
 
15
16
  Style/ClassAndModuleChildren:
16
17
  Enabled: false
data/Makefile CHANGED
@@ -1,7 +1,7 @@
1
1
  .PHONY: rake/* rbs/* typeprof/* steep/*
2
2
 
3
3
  rake/tasks:
4
- rake --tasks
4
+ bundle exec rake --tasks
5
5
 
6
6
  rbs/prototype: rbs/prototype/lib
7
7
 
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.metadata["homepage_uri"] = spec.homepage
18
18
  spec.metadata["source_code_uri"] = "https://github.com/shuuuuun/activeadmin-menu_tree"
19
19
  # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
20
+ spec.metadata["rubygems_mfa_required"] = "true"
20
21
 
21
22
  # Specify which files should be added to the gem when it is released.
22
23
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -38,9 +38,10 @@ module ActiveAdmin::MenuTree
38
38
  end
39
39
 
40
40
  def format_options(item, index:, parent: nil)
41
+ # TODO: validate option
41
42
  options = item.except(:children)
42
43
  options[:priority] = index * 10
43
- options[:label] ||= item[:name]&.pluralize&.titleize || ""
44
+ options[:id] ||= item[:name]
44
45
  options[:parent] = parent if parent.present?
45
46
  options
46
47
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveAdmin
4
4
  module MenuTree
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.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.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - shuuuuuny
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-03 00:00:00.000000000 Z
11
+ date: 2021-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin
@@ -77,6 +77,7 @@ licenses:
77
77
  metadata:
78
78
  homepage_uri: https://github.com/shuuuuun/activeadmin-menu_tree
79
79
  source_code_uri: https://github.com/shuuuuun/activeadmin-menu_tree
80
+ rubygems_mfa_required: 'true'
80
81
  post_install_message:
81
82
  rdoc_options: []
82
83
  require_paths:
@@ -92,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
93
  - !ruby/object:Gem::Version
93
94
  version: '0'
94
95
  requirements: []
95
- rubygems_version: 3.2.28
96
+ rubygems_version: 3.2.31
96
97
  signing_key:
97
98
  specification_version: 4
98
99
  summary: Allows ActiveAdmin menus to be managed in tree format.