the_sortable_tree 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -5
- data/lib/generators/the_sortable_tree/views_generator.rb +5 -0
- data/lib/the_sortable_tree/version.rb +1 -1
- metadata +10 -10
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# TheSortableTree v2.2.
|
1
|
+
# TheSortableTree v2.2.1
|
2
2
|
|
3
3
|
Nested Set + Drag&Drop GUI. Very fast! Best render helper! **2000 nodes/sec**. Ready for rails 4 ([RubyGems](http://rubygems.org/gems/the_sortable_tree))
|
4
4
|
|
@@ -24,7 +24,7 @@ Awesome nested set, Nested set, Ruby, Rails, Nested set view helper, Sortable ne
|
|
24
24
|
|
25
25
|
```ruby
|
26
26
|
gem 'awesome_nested_set' # or any similar gem (gem 'nested_set')
|
27
|
-
gem "the_sortable_tree", "~> 2.1
|
27
|
+
gem "the_sortable_tree", "~> 2.2.1"
|
28
28
|
```
|
29
29
|
|
30
30
|
Console
|
@@ -169,7 +169,7 @@ Options list:
|
|
169
169
|
|
170
170
|
1. **id** - id field of node
|
171
171
|
2. **title** - title field of node
|
172
|
-
3. **type** - type of tree [tree|sortable]
|
172
|
+
3. **type** - type of tree [tree|sortable|nested_options]
|
173
173
|
4. **namespace** - for example: **:admin**. **[]** - by default
|
174
174
|
5. **render_module** - your own Render Tree Helper
|
175
175
|
|
@@ -192,6 +192,7 @@ Render helpers for HTML tree generation
|
|
192
192
|
```ruby
|
193
193
|
bundle exec rails g the_sortable_tree:views tree
|
194
194
|
bundle exec rails g the_sortable_tree:views sortable
|
195
|
+
bundle exec rails g the_sortable_tree:views nested_options
|
195
196
|
```
|
196
197
|
|
197
198
|
Base Render helper of gem
|
@@ -240,8 +241,8 @@ Try to create view helpers for:
|
|
240
241
|
## I want to try! I need tests!
|
241
242
|
|
242
243
|
1. I'm develop gem with test app [the_sortable_tree_test_app](https://github.com/the-teacher/the_sortable_tree_test_app). You can clone it and see some testcase-pages for gem
|
243
|
-
2. Sorry, but I have not tests for this gem. Gem is so
|
244
|
-
3. You can write some tests, if your need.
|
244
|
+
2. Sorry, but I have not tests for this gem. Gem is so simple. It's easy to test only with test app.
|
245
|
+
3. You can write some tests, if your need. I will be happy certainly.
|
245
246
|
4. No! I know RSpec. I can write tests. But I have not reasons to write tests here.
|
246
247
|
|
247
248
|
## Аcknowledgment
|
@@ -8,6 +8,8 @@ module TheSortableTree
|
|
8
8
|
|
9
9
|
bundle exec rails g the_sortable_tree:views tree
|
10
10
|
bundle exec rails g the_sortable_tree:views sortable
|
11
|
+
bundle exec rails g the_sortable_tree:views nested_options
|
12
|
+
|
11
13
|
bundle exec rails g the_sortable_tree:views helper
|
12
14
|
|
13
15
|
bundle exec rails g the_sortable_tree:views assets
|
@@ -32,6 +34,9 @@ BANNER
|
|
32
34
|
elsif param_name == 'sortable'
|
33
35
|
puts "Copy of sortable tree render helper file"
|
34
36
|
copy_file "../helpers/render_sortable_tree_helper.rb", "app/helpers/render_sortable_tree_helper.rb"
|
37
|
+
elsif param_name == 'nested_options'
|
38
|
+
puts "Copy of nested options tree render helper file"
|
39
|
+
copy_file "../helpers/render_nested_options_helper.rb", "app/helpers/render_nested_options_helper.rb"
|
35
40
|
elsif param_name == 'helper'
|
36
41
|
puts "Copy of base nested set render helper file"
|
37
42
|
copy_file "../helpers/the_sortable_tree_helper.rb", "app/helpers/the_sortable_tree_helper.rb"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the_sortable_tree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &84277490 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *84277490
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sqlite3
|
27
|
-
requirement: &
|
27
|
+
requirement: &84277110 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *84277110
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &84276710 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *84276710
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec-rails
|
49
|
-
requirement: &
|
49
|
+
requirement: &84276420 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *84276420
|
58
58
|
description: Drag&Drop GUI for awesom_nested_set. Render Tree Helper. Very fast! Ready
|
59
59
|
for Rails 4
|
60
60
|
email:
|