active_admin-sortable_tree 0.2.1 → 0.3.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14193c9d47cefbf3d0d4e5f8b7516cbcee6892fa
|
4
|
+
data.tar.gz: 31735e6f582782438eddfa77610e72e742f22e19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1c81ec8ea138a8820231d3d943d3c7ad023a1bf9e022e113fe76bbef46493ac1340ed843df7df6837f2f01bdbd4d991aa53c36ebd67a827cab2be6f0145c2b1
|
7
|
+
data.tar.gz: fabab663a38ed21d7ec87e08f90cc19b8f756363d94efdf8d02f86ccaf5c0d5cc3ed4783d1d918f43a82689650b724ef5ff1b76fa98449a01399325ca3de65cd
|
data/Changelog.md
CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
|
5
5
|
## [Unreleased]
|
6
6
|
|
7
|
+
## [0.3.0] - 2016-09-08
|
8
|
+
|
9
|
+
- Rename sortable.css.sass to sortable.sass to fix deprecation warnings
|
10
|
+
- Update usage of box-sizing to fix Bourbon deprecation warning
|
11
|
+
|
7
12
|
## [0.2.1] - 2015-04-15
|
8
13
|
|
9
14
|
- Suppress list styles on sortable indexes when batch actions are disabled.
|
@@ -15,13 +20,20 @@ All notable changes to this project will be documented in this file.
|
|
15
20
|
|
16
21
|
- Shrink gem file size by excluding spec files and dummy application.
|
17
22
|
|
18
|
-
## 0.1.0 - 2014-11-19
|
23
|
+
## [0.1.0] - 2014-11-19
|
19
24
|
|
20
25
|
- Add option to disable sorting: `sortable: false`, which causes the index view
|
21
26
|
to be a static tree view.
|
22
27
|
- Ensure the default actions honor authorization checks
|
23
28
|
([#43](https://github.com/nebirhos/activeadmin-sortable-tree/pull/43)).
|
24
29
|
|
30
|
+
## 0.0.1 - 2014-08-07
|
31
|
+
|
32
|
+
- Published to Rubygems.
|
33
|
+
|
25
34
|
|
26
35
|
[unreleased]: https://github.com/zorab47/active_admin-sortable_tree/compare/v0.2.0...HEAD
|
36
|
+
[0.1.0]: https://github.com/zorab47/active_admin-sortable_tree/compare/v0.0.1...v0.1.0
|
27
37
|
[0.2.0]: https://github.com/zorab47/active_admin-sortable_tree/compare/v0.1.0...v0.2.0
|
38
|
+
[0.2.1]: https://github.com/zorab47/active_admin-sortable_tree/compare/v0.2.0...v0.2.1
|
39
|
+
[0.2.1]: https://github.com/zorab47/active_admin-sortable_tree/compare/v0.2.1...v0.3.0
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# ActiveAdmin::SortableTree
|
2
2
|
|
3
3
|
[](http://badge.fury.io/rb/active_admin-sortable_tree)
|
4
|
-
[](https://travis-ci.org/zorab47/active_admin-sortable_tree)
|
5
5
|
|
6
6
|
This gem adds a tree and a list view to your ActiveAdmin resource index, both
|
7
7
|
sortable via drag'n'drop.
|
@@ -89,6 +89,15 @@ ActiveAdmin.register Page do
|
|
89
89
|
end
|
90
90
|
```
|
91
91
|
|
92
|
+
**Note**: If you are using the [acts_as_list](https://github.com/swanandp/acts_as_list) gem to manage a `:position` field (not required, but allows for other nice programmatic manipulation of ordered model lists), you must ensure a zero-based index for your list using the `top_of_list` option:
|
93
|
+
|
94
|
+
```ruby
|
95
|
+
class Page < ActiveRecord::Base
|
96
|
+
# Make this list act like a zero-indexed array to avoid off-by-one errors in your sorting
|
97
|
+
acts_as_list top_of_list: 0
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
92
101
|
|
93
102
|
## Usage (generic ActiveAdmin index)
|
94
103
|
|
@@ -155,6 +164,10 @@ ActiveAdminSortableEvent.add('ajaxDone', function (){
|
|
155
164
|
})
|
156
165
|
```
|
157
166
|
|
167
|
+
## Semantic Versioning
|
168
|
+
|
169
|
+
ActiveAdmin::SortableTree follows [semantic versioning](http://semver.org).
|
170
|
+
|
158
171
|
## Alternatives
|
159
172
|
|
160
173
|
- [Active Admin Sortable](https://github.com/neo/activeadmin-sortable)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_admin-sortable_tree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francesco Disperati
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-09-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -136,7 +136,7 @@ files:
|
|
136
136
|
- MIT-LICENSE
|
137
137
|
- README.md
|
138
138
|
- app/assets/javascripts/active_admin/sortable.js.coffee
|
139
|
-
- app/assets/stylesheets/active_admin/sortable.
|
139
|
+
- app/assets/stylesheets/active_admin/sortable.sass
|
140
140
|
- lib/active_admin/sortable_tree.rb
|
141
141
|
- lib/active_admin/sortable_tree/controller_actions.rb
|
142
142
|
- lib/active_admin/sortable_tree/engine.rb
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
167
|
rubyforge_project:
|
168
|
-
rubygems_version: 2.
|
168
|
+
rubygems_version: 2.5.1
|
169
169
|
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: Add drag and drop sorting to ActiveAdmin resources
|