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: 7b3425c21fe12d0b3b87c2e2778c3f2ef4abe8c6
4
- data.tar.gz: d73153d137682f9611e565c6b7310a3e9c844fc8
3
+ metadata.gz: 14193c9d47cefbf3d0d4e5f8b7516cbcee6892fa
4
+ data.tar.gz: 31735e6f582782438eddfa77610e72e742f22e19
5
5
  SHA512:
6
- metadata.gz: 13722ad3bed450a0a7bfcfffea340b1a7e1f82962359d55fc261772f707223dea373c961038b45a7e90c418631a0bed74410d575349d4a8cf0fc7df31168a3b3
7
- data.tar.gz: 4781ab0a7b610d9baa571a06112421d76aa797f36a075bc5248e3d6e261ebc7d50a5595fb2e5cce6cd175237bdfe157c616ff69f43023472d16ed5ee03f5d794
6
+ metadata.gz: e1c81ec8ea138a8820231d3d943d3c7ad023a1bf9e022e113fe76bbef46493ac1340ed843df7df6837f2f01bdbd4d991aa53c36ebd67a827cab2be6f0145c2b1
7
+ data.tar.gz: fabab663a38ed21d7ec87e08f90cc19b8f756363d94efdf8d02f86ccaf5c0d5cc3ed4783d1d918f43a82689650b724ef5ff1b76fa98449a01399325ca3de65cd
@@ -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
  [![Gem Version](https://badge.fury.io/rb/active_admin-sortable_tree.svg)](http://badge.fury.io/rb/active_admin-sortable_tree)
4
- [![Build Status](https://travis-ci.org/zorab47/activeadmin-sortable-tree.svg?branch=master)](https://travis-ci.org/zorab47/activeadmin-sortable-tree)
4
+ [![Build Status](https://travis-ci.org/zorab47/active_admin-sortable_tree.svg?branch=master)](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)
@@ -29,7 +29,7 @@ body.active_admin
29
29
  height: 3em
30
30
  background: lighten($cOddRowBackground, 10%)
31
31
  border: 1px dashed $cRowSelected
32
- +box-sizing(border-box)
32
+ box-sizing: border-box
33
33
 
34
34
  &.cantdoit
35
35
  border: 1px dashed $cRowError
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module SortableTree
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
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.2.1
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: 2015-04-16 00:00:00.000000000 Z
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.css.sass
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.4.5
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