active_scaffold_sortable_vho 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YTM4NGE4MWUxZDU1MTk1Y2ZiNWUyNDMwZmRhMDUxNTI1M2IyZTU3OA==
5
+ data.tar.gz: !binary |-
6
+ ZGEyOGNiMjVhZmY2NzE4ZGQxN2YxNzE1ZDBhODMzZGM2NmM0NGM4OA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ ZjMyZjA0NTVmYTQzYmRmN2U3N2Y2ZWZjYjhmMTZhZTQyYjg3MGRhZDM4MGQ5
10
+ MjljZDY1NGM4MGE3NGY3NGZiMjg2ZDM5ZGNkNzQ0YzA2ZmZjYjAyYTc3OGRi
11
+ NGIyNDI1ZGFhMzYzNGJkY2FhZTlhMzNmNWRkNzFiOGJiODUwOTg=
12
+ data.tar.gz: !binary |-
13
+ NjE3OWRiZmE0NDRhNGYxYTY4YTI0MGNiNzQ0YTQyZjNhNWJlNGUzMzE2MTE3
14
+ ZWIzNWU0MjQzOWNlMDc3NWZjNjBhMzQ0MzM1ZjQ3YjAwYzQ3NzhkYjNhNzBk
15
+ YjEyYzUyNTFmNGYwODllZTE5MjA3NGJkYWEwZjQyNGMyYWZjNmI=
@@ -0,0 +1,9 @@
1
+ <%= render :super %>
2
+ <% if ActiveScaffold.js_framework == :prototype %>
3
+ <%= sortable_element *sort_params %>
4
+ <% elsif ActiveScaffold.js_framework == :jquery %>
5
+ <% reorder_params = {}
6
+ reorder_params[:eid] = params[:eid] unless params[:eid].blank?
7
+ options = {:update => true, :action => 'reorder'} %>
8
+ <%= javascript_tag "ActiveScaffold.sortable('#{sort_params[0]}', #{url_for(:controller => controller_name).to_json}, #{options.to_json}, #{reorder_params.to_json});" %>
9
+ <% end %>
@@ -0,0 +1,10 @@
1
+ <%= render(:super, :locals => {:insert_at => :bottom}) %>
2
+ <%
3
+ unless nested_singular_association?
4
+ reorder_params = {}
5
+ reorder_params[:eid] = params[:eid] unless params[:eid].blank?
6
+ %>
7
+ <%= "ActiveScaffold.sortable('#{sort_params[0]}', #{controller_name.to_json}, #{reorder_params.to_json});" %>
8
+ <%
9
+ end if controller.send :successful?
10
+ %>
@@ -0,0 +1,11 @@
1
+ <%= render(:super) %>
2
+ <%
3
+ # if we are currently editing a nested belongs_to association do not do any sorting stuff
4
+ unless nested_singular_association?
5
+ reorder_params = {}
6
+ reorder_params[:eid] = params[:eid] unless params[:eid].blank?
7
+ %>
8
+ <%= "ActiveScaffold.sortable('#{sort_params[0]}', #{controller_name.to_json}, #{reorder_params.to_json});" %>
9
+ <%
10
+ end if controller.send :successful?
11
+ %>
@@ -0,0 +1,5 @@
1
+ <% if active_scaffold_config.sortable.refresh_list %>
2
+ <%= render :partial => 'refresh_list' %>
3
+ <% else %>
4
+ ActiveScaffold.stripe('<%= active_scaffold_tbody_id %>');
5
+ <% end %>
@@ -15,10 +15,7 @@ module ActiveScaffold::Actions
15
15
  action = config.send(action_name)
16
16
  action.columns.exclude(sortable_column) if action.respond_to? :columns
17
17
  end
18
-
19
- dir = File.join(ActiveScaffold::Config::Sortable.plugin_directory, 'frontends')
20
- base.add_active_scaffold_path File.join(dir, frontend, 'views') if config.frontend.to_sym != :default
21
- base.add_active_scaffold_path File.join(dir, 'default', 'views')
18
+ base.add_active_scaffold_path File.join(ActiveScaffold::Config::Sortable.plugin_directory, 'frontends', 'default' , 'views')
22
19
  end
23
20
  end
24
21
 
@@ -2,7 +2,7 @@ module ActiveScaffoldSortable
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold_sortable_vho
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
5
- prerelease:
4
+ version: 3.1.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Volker Hochstein
@@ -13,90 +12,105 @@ date: 2011-02-01 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: shoulda
16
- requirement: &7064900 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *7064900
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: bundler
27
- requirement: &7064420 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ! '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: 1.0.0
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *7064420
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: 1.0.0
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: rcov
38
- requirement: &7063940 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
45
  - - ! '>='
42
46
  - !ruby/object:Gem::Version
43
47
  version: '0'
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *7063940
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: active_scaffold_vho
49
- requirement: &7063460 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
59
  - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: 3.1.2
55
62
  type: :runtime
56
63
  prerelease: false
57
- version_requirements: *7063460
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: 3.1.2
58
69
  description: Sort Tree or List Structures by Drag n Drop
59
70
  email: activescaffold@googlegroups.com
60
71
  executables: []
61
72
  extensions: []
62
73
  extra_rdoc_files: []
63
74
  files:
75
+ - LICENSE.txt
76
+ - README.textile
64
77
  - app/assets/stylesheets/sortable.css
65
- - lib/active_scaffold_sortable_vho.rb
66
- - lib/active_scaffold_sortable.rb
67
- - lib/active_scaffold_sortable/version.rb
68
- - lib/active_scaffold_sortable/view_helpers.rb
69
- - lib/active_scaffold_sortable/config/core.rb
70
- - lib/active_scaffold_sortable/engine.rb
71
- - lib/active_scaffold_sortable/core.rb
78
+ - frontends/default/views/_list_with_header.html.erb
79
+ - frontends/default/views/on_create.js.erb
80
+ - frontends/default/views/on_update.js.erb
81
+ - frontends/default/views/reorder.js.erb
72
82
  - lib/active_scaffold/actions/sortable.rb
73
83
  - lib/active_scaffold/config/sortable.rb
74
84
  - lib/active_scaffold/helpers/sortable_helpers.rb
75
- - README.textile
76
- - LICENSE.txt
85
+ - lib/active_scaffold_sortable.rb
86
+ - lib/active_scaffold_sortable/config/core.rb
87
+ - lib/active_scaffold_sortable/core.rb
88
+ - lib/active_scaffold_sortable/engine.rb
89
+ - lib/active_scaffold_sortable/version.rb
90
+ - lib/active_scaffold_sortable/view_helpers.rb
91
+ - lib/active_scaffold_sortable_vho.rb
77
92
  homepage: http://github.com/vhochstein/active_scaffold_sortable
78
93
  licenses:
79
94
  - MIT
95
+ metadata: {}
80
96
  post_install_message:
81
97
  rdoc_options: []
82
98
  require_paths:
83
99
  - lib
84
100
  required_ruby_version: !ruby/object:Gem::Requirement
85
- none: false
86
101
  requirements:
87
102
  - - ! '>='
88
103
  - !ruby/object:Gem::Version
89
104
  version: '0'
90
105
  required_rubygems_version: !ruby/object:Gem::Requirement
91
- none: false
92
106
  requirements:
93
107
  - - ! '>='
94
108
  - !ruby/object:Gem::Version
95
109
  version: '0'
96
110
  requirements: []
97
111
  rubyforge_project:
98
- rubygems_version: 1.8.17
112
+ rubygems_version: 2.2.2
99
113
  signing_key:
100
- specification_version: 3
114
+ specification_version: 4
101
115
  summary: Drag n Drop Sorting for Activescaffold
102
116
  test_files: []