mini_tree 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26a99772164b7332c0f3f41e6c546bb54169d22ebe6cbc1b0948b859b72afd13
4
- data.tar.gz: ba98b4540ee1473d84801c3384b20ed08c7b1ea6054699f7765dce0999f644e6
3
+ metadata.gz: 12d6779a95c606ab979615288138df0cc0b95a7258762c3958e951c66e27b31e
4
+ data.tar.gz: 9f7e59d5f541ec24dcbfd3fac9a5215c0f25df775b59eaec0ede937b6b05cbd4
5
5
  SHA512:
6
- metadata.gz: 5ed1aa746b44b269c9b70341363127fc1670a80672eed0c73e3e2ce48a05c4f75a6ba6378ca9b6df5c6634b3bcfe5349e574ed48d0efe0a23e57058e0097e799
7
- data.tar.gz: e8bbf9cf71eb303c2388d52e436632568e2907c5334cf3696edcfb9bb96229b8256efaf80b66394de15143d0aea6eb2e74534afeddd618f9ef3e5a9d1a34b835
6
+ metadata.gz: 44cd57701e82393b97a40dba307761f5cab89f85300f238e04674063b292c379d54ae57f751311c56280b83fa171a0061dff3c553769ca843270249d6091f27f
7
+ data.tar.gz: 1b67d0c973790ff6a20fefff8ad9a7bd797b405db72d75758d4dff00a73d6ccf6a99cf943675309642efc8a09e529fbe6a45309806ed2c602c8bbcec51173bcd
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2025 Dittmar Krall (www.matiq.com)
1
+ Copyright (c) 2025-2026 Dittmar Krall (www.matiq.com)
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -129,6 +129,6 @@ If you are curious you may search in particular for:
129
129
 
130
130
  ## License
131
131
 
132
- Copyright (c) 2025 Dittmar Krall (www.matiq.com),
132
+ Copyright (c) 2025-2026 Dittmar Krall (www.matiq.com),
133
133
  released as open source under the terms of the
134
134
  [MIT license](https://opensource.org/licenses/MIT).
@@ -1,5 +1,6 @@
1
1
  module MiniTree
2
- VERSION = "0.1.1" # 2025-12-06
2
+ VERSION = "0.1.2" # 2026-01-03
3
+ # VERSION = "0.1.1" # 2025-12-06
3
4
  # VERSION = "0.1.0" # 2025-12-06
4
5
  # VERSION = "0.0.4" # 2025-10-29
5
6
  # VERSION = "0.0.3" # 2025-10-28
@@ -1,5 +1,6 @@
1
1
  module MiniTree
2
- VERSION = "0.1.0" # 2025-12-06
2
+ VERSION = "0.1.1" # 2025-12-06
3
+ # VERSION = "0.1.0" # 2025-12-06
3
4
  # VERSION = "0.0.4" # 2025-10-29
4
5
  # VERSION = "0.0.3" # 2025-10-28
5
6
  # VERSION = "0.0.2" # 2025-10-27
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_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
  - Dittmar Krall
@@ -99,7 +99,6 @@ files:
99
99
  - app/javascript/controllers/tree_controller.js
100
100
  - app/views/application/_mini_tree_title.html.erb
101
101
  - app/views/mini_trees/_index.html.erb
102
- - app/views/mini_trees/_index.html.erb.bak
103
102
  - app/views/mini_trees/_item.html.erb
104
103
  - config/routes.rb
105
104
  - lib/mini_tree.rb
@@ -116,7 +115,7 @@ require_paths:
116
115
  - lib
117
116
  required_ruby_version: !ruby/object:Gem::Requirement
118
117
  requirements:
119
- - - ">"
118
+ - - ">="
120
119
  - !ruby/object:Gem::Version
121
120
  version: '3'
122
121
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -125,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
124
  - !ruby/object:Gem::Version
126
125
  version: '0'
127
126
  requirements: []
128
- rubygems_version: 3.6.9
127
+ rubygems_version: 4.0.3
129
128
  specification_version: 4
130
129
  summary: MiniTree a simple TreeView Rails 8+ gem.
131
130
  test_files: []
@@ -1,45 +0,0 @@
1
- <style>
2
- .mini-tree {
3
- .mini-tree-view, .nested {
4
- list-style: none;
5
- xpadding-left: 1rem;
6
- }
7
- span.title.topline {
8
- border-top: solid 2px red;
9
- border-top: solid 1px red;
10
- }
11
- span.title.bottomline {
12
- border-bottom: solid 2px red;
13
- border-bottom: solid 1px red;
14
- }
15
- .nested {
16
- padding-left: 1rem;
17
- }
18
- .tree-row {
19
- display: flex;
20
- gap: 0.5rem;
21
- }
22
- .toggle-btn {
23
- background: transparent;
24
- cursor: pointer;
25
- }
26
- .dragging { opacity: 0.5; }
27
- .hidden { display: none; }
28
- .toggle-btn, .toggle-space { width: 1rem; }
29
- .tree-row:hover { background: rgba(0,0,0,0.05); }
30
- }
31
- </style>
32
-
33
- <%
34
- list = locals[:list]
35
- owner = list.first.class.name[0..-5]
36
- %>
37
- <div class="mini-tree" data-item-id="0"
38
- data-turbo-prefetch="false"
39
- data-controller="tree" data-tree-owner-value="<%= owner %>">
40
- <ul class="mini-tree-view" data-tree-target="top">
41
- <%= render partial: "mini_trees/item",
42
- collection: list.where(parent_id: 0).order(:position)
43
- %>
44
- </ul>
45
- </div>