the_sortable_tree 1.9.1 → 1.9.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -28,52 +28,6 @@ With New Comment form and reply functionality
28
28
 
29
29
  ![TheSortableTree](https://github.com/the-teacher/the_sortable_tree/raw/dev/comments.gif)
30
30
 
31
- ### Can I use gem with Rails 2 or Rails 3.0?
32
-
33
- There is no strong dependencies for Rails 3.
34
-
35
- Take files from the gem and put it in your Rails 2 application.
36
-
37
- And fix errors :) Ha-Ha-Ha! You can ask me if you will do it.
38
-
39
- ### LiveDemo and App for testcase creating
40
-
41
- https://github.com/the-teacher/the_sortable_tree_test_app
42
-
43
- ### Changelog
44
-
45
- 1.9.1 - Rewrite with coffee => **assets/javascripts/sortable/base.js.coffee**
46
-
47
- 1.9.0 - 1) **Helper API changed!** 2) Comments tree with sand form and reply fu! 3) Way to manual set sortable Model klass into controller.
48
-
49
- 1.8.6 - fixed CamelCase names definition (by andisthejackass)
50
-
51
- 1.8.5 - helper can rendering a part tree
52
-
53
- 1.8.0 - stable release
54
-
55
- ### Is it fast?
56
-
57
- Hmmmm...
58
-
59
- * Development env
60
- * 584 elements
61
- * 3 levels deep
62
-
63
- Rendered by 50 sec.
64
-
65
- I think it is good result for rendering by partials.
66
-
67
- ### It's can be faster?
68
-
69
- Perhaps. Read next idea to learn more. There is no implementation now, sorry.
70
-
71
- https://github.com/the-teacher/the_sortable_tree/issues/milestones?with_issues=no
72
-
73
- ### ERB vs HAML vs SLIM
74
-
75
- HAML by default. You can use any Template Engine, but convert partials by yourself, plz.
76
-
77
31
  ### Install
78
32
 
79
33
  gem 'haml'
@@ -175,7 +129,9 @@ end
175
129
  <%= csrf_meta_tags %>
176
130
 
177
131
  <%= javascript_include_tag 'jquery.ui.nestedSortable' %>
132
+
178
133
  <%= javascript_include_tag 'sortable/base' %>
134
+ <%= javascript_include_tag 'comments/base' %>
179
135
 
180
136
  <%= stylesheet_link_tag 'tree', :media => :all %>
181
137
  <%= stylesheet_link_tag 'sortable', :media => :all %>
@@ -325,6 +281,53 @@ end
325
281
 
326
282
  **_controls** - control elements for current node
327
283
 
284
+ ### Can I use gem with Rails 2 or Rails 3.0?
285
+
286
+ There is no strong dependencies for Rails 3.
287
+
288
+ Take files from the gem and put it in your Rails 2 application.
289
+
290
+ And fix errors :) Ha-Ha-Ha! You can ask me if you will do it.
291
+
292
+ ### LiveDemo and App for testcase creating
293
+
294
+ https://github.com/the-teacher/the_sortable_tree_test_app
295
+
296
+ ### Changelog
297
+
298
+ 1.9.2 - View Generators updated
299
+
300
+ 1.9.1 - Rewrite with coffee => **assets/javascripts/sortable/base.js.coffee**
301
+
302
+ 1.9.0 - 1) **Helper API changed!** 2) Comments tree with sand form and reply fu! 3) Way to manual set sortable Model klass into controller.
303
+
304
+ 1.8.6 - fixed CamelCase names definition (by andisthejackass)
305
+
306
+ 1.8.5 - helper can rendering a part tree
307
+
308
+ 1.8.0 - stable release
309
+
310
+ ### Is it fast?
311
+
312
+ Hmmmm...
313
+
314
+ * Development env
315
+ * 584 elements
316
+ * 3 levels deep
317
+
318
+ Rendered by 50 sec.
319
+
320
+ I think it is good result for rendering by partials.
321
+
322
+ ### It's can be faster?
323
+
324
+ Perhaps. Read next idea to learn more. There is no implementation now, sorry.
325
+
326
+ https://github.com/the-teacher/the_sortable_tree/issues/milestones?with_issues=no
327
+
328
+ ### ERB vs HAML vs SLIM
329
+
330
+ HAML by default. You can use any Template Engine, but convert partials by yourself, plz.
328
331
 
329
332
  ### Contributors
330
333
 
@@ -15,8 +15,10 @@ rails g the_sortable_tree:views MODEL [tree|sortable|comments]
15
15
  # comments
16
16
  # tree
17
17
  if ARGV[1] == 'sortable'
18
+ directory "../assets/javascripts/sortable", "app/assets/javascripts/sortable"
18
19
  directory "sortable/base", "app/views/#{folder}/sortable/base"
19
20
  elsif ARGV[1] == 'comments'
21
+ directory "../assets/javascripts/comments", "app/assets/javascripts/comments"
20
22
  directory "comments/base", "app/views/#{folder}/comments/base"
21
23
  else
22
24
  directory "tree/base", "app/views/#{folder}/tree/base"
@@ -1,3 +1,3 @@
1
1
  module TheSortableTree
2
- VERSION = "1.9.1"
2
+ VERSION = "1.9.2"
3
3
  end
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: 1.9.1
4
+ version: 1.9.2
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: 2012-05-08 00:00:00.000000000Z
12
+ date: 2012-05-09 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &71085670 !ruby/object:Gem::Requirement
16
+ requirement: &83556380 !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: *71085670
24
+ version_requirements: *83556380
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &71085460 !ruby/object:Gem::Requirement
27
+ requirement: &83556170 !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: *71085460
35
+ version_requirements: *83556170
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &71085230 !ruby/object:Gem::Requirement
38
+ requirement: &83555940 !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: *71085230
46
+ version_requirements: *83555940
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec-rails
49
- requirement: &71085020 !ruby/object:Gem::Requirement
49
+ requirement: &83555730 !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: *71085020
57
+ version_requirements: *83555730
58
58
  description: Sortable awesom_nested_set, Drag&Drop GUI for awesom_nested_set, View
59
59
  Helper for nested set, Nested Comments
60
60
  email:
@@ -91,7 +91,7 @@ files:
91
91
  - app/assets/stylesheets/tree.css.scss
92
92
  - app/assets/stylesheets/comments_tree.css.scss
93
93
  - app/assets/stylesheets/sortable.css.scss
94
- - app/assets/javascripts/comments/comments.js.coffee
94
+ - app/assets/javascripts/comments/base.js.coffee
95
95
  - app/assets/javascripts/sortable/base.js.coffee
96
96
  - app/assets/javascripts/jquery.ui.nestedSortable.js
97
97
  - app/views/comments/base/_children.html.haml