radiant-page_list_view-extension 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/app/helpers/admin/list_view_helper.rb +5 -1
- data/lib/page_list_view/admin_page_controller_extensions.rb +1 -0
- data/radiant-page_list_view-extension.gemspec +8 -14
- data/spec/controllers/admin_page_controller_extensions_spec.rb +2 -1
- data/spec/models/page_extensions_spec.rb +2 -1
- metadata +35 -55
- data/pkg/radiant-page_list_view-extension-1.0.0.gem +0 -0
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
@@ -12,9 +12,13 @@ module Admin::ListViewHelper
|
|
12
12
|
display_atts = []
|
13
13
|
unless config['page_list_view.display_attributes'].nil?
|
14
14
|
config['page_list_view.display_attributes'].split.each do |att|
|
15
|
-
|
15
|
+
# Some elements are symbols, map them all to Strings
|
16
|
+
if Page.column_names.map{|a| a.to_s}.include?(att) || Page.instance_methods.map{|a| a.to_s}.include?(att)
|
17
|
+
display_atts << att
|
18
|
+
end
|
16
19
|
end
|
17
20
|
end
|
21
|
+
# default columns if none specified in config table page_list_view.display_attributes
|
18
22
|
display_atts = %w{title parent_title slug class_name status_name updated_by_name updated_at} if display_atts.empty?
|
19
23
|
@list_display_attributes ||= returning display_atts do |atts|
|
20
24
|
end
|
@@ -4,14 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "1.0.
|
7
|
+
s.name = "radiant-page_list_view-extension"
|
8
|
+
s.version = "1.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Andrew vonderLuft", "Sean Cribbs"]
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
12
|
+
s.date = "2013-01-24"
|
13
|
+
s.description = "Enables viewing site pages in a list sortable by attibute."
|
14
|
+
s.email = "avonderluft@avlux.net"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"README.textile"
|
17
17
|
]
|
@@ -30,7 +30,6 @@ Gem::Specification.new do |s|
|
|
30
30
|
"lib/page_list_view/page_extensions.rb",
|
31
31
|
"lib/tasks/page_list_view_extension_tasks.rake",
|
32
32
|
"page_list_view_extension.rb",
|
33
|
-
"pkg/radiant-page_list_view-extension-1.0.0.gem",
|
34
33
|
"public/images/admin/application_cascade.png",
|
35
34
|
"public/images/admin/application_side_tree.png",
|
36
35
|
"public/images/admin/application_view_detail.png",
|
@@ -42,15 +41,10 @@ Gem::Specification.new do |s|
|
|
42
41
|
"spec/spec.opts",
|
43
42
|
"spec/spec_helper.rb"
|
44
43
|
]
|
45
|
-
s.homepage =
|
44
|
+
s.homepage = "https://github.com/avonderluft/radiant-page_list_view-extension"
|
46
45
|
s.require_paths = ["lib"]
|
47
|
-
s.rubygems_version =
|
48
|
-
s.summary =
|
49
|
-
s.test_files = [
|
50
|
-
"spec/controllers/admin_page_controller_extensions_spec.rb",
|
51
|
-
"spec/models/page_extensions_spec.rb",
|
52
|
-
"spec/spec_helper.rb"
|
53
|
-
]
|
46
|
+
s.rubygems_version = "1.8.24"
|
47
|
+
s.summary = "Page List View Extension for Radiant CMS"
|
54
48
|
|
55
49
|
if s.respond_to? :specification_version then
|
56
50
|
s.specification_version = 3
|
metadata
CHANGED
@@ -1,49 +1,40 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-page_list_view-extension
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 0
|
10
|
-
version: 1.0.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Andrew vonderLuft
|
14
9
|
- Sean Cribbs
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
dependencies:
|
22
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2013-01-24 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
23
16
|
name: radiant
|
24
|
-
|
25
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
26
18
|
none: false
|
27
|
-
requirements:
|
28
|
-
- -
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
hash: 57
|
31
|
-
segments:
|
32
|
-
- 0
|
33
|
-
- 9
|
34
|
-
- 1
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
35
22
|
version: 0.9.1
|
36
23
|
type: :runtime
|
37
|
-
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 0.9.1
|
38
31
|
description: Enables viewing site pages in a list sortable by attibute.
|
39
32
|
email: avonderluft@avlux.net
|
40
33
|
executables: []
|
41
|
-
|
42
34
|
extensions: []
|
43
|
-
|
44
|
-
extra_rdoc_files:
|
35
|
+
extra_rdoc_files:
|
45
36
|
- README.textile
|
46
|
-
files:
|
37
|
+
files:
|
47
38
|
- .gitmodules
|
48
39
|
- HELP.textile
|
49
40
|
- README.textile
|
@@ -58,7 +49,6 @@ files:
|
|
58
49
|
- lib/page_list_view/page_extensions.rb
|
59
50
|
- lib/tasks/page_list_view_extension_tasks.rake
|
60
51
|
- page_list_view_extension.rb
|
61
|
-
- pkg/radiant-page_list_view-extension-1.0.0.gem
|
62
52
|
- public/images/admin/application_cascade.png
|
63
53
|
- public/images/admin/application_side_tree.png
|
64
54
|
- public/images/admin/application_view_detail.png
|
@@ -69,41 +59,31 @@ files:
|
|
69
59
|
- spec/models/page_extensions_spec.rb
|
70
60
|
- spec/spec.opts
|
71
61
|
- spec/spec_helper.rb
|
72
|
-
has_rdoc: true
|
73
62
|
homepage: https://github.com/avonderluft/radiant-page_list_view-extension
|
74
63
|
licenses: []
|
75
|
-
|
76
64
|
post_install_message:
|
77
65
|
rdoc_options: []
|
78
|
-
|
79
|
-
require_paths:
|
66
|
+
require_paths:
|
80
67
|
- lib
|
81
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
69
|
none: false
|
83
|
-
requirements:
|
84
|
-
- -
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
|
87
|
-
segments:
|
70
|
+
requirements:
|
71
|
+
- - ! '>='
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
segments:
|
88
75
|
- 0
|
89
|
-
|
90
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
hash: -1233973595738094653
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
78
|
none: false
|
92
|
-
requirements:
|
93
|
-
- -
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
|
96
|
-
segments:
|
97
|
-
- 0
|
98
|
-
version: "0"
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
99
83
|
requirements: []
|
100
|
-
|
101
84
|
rubyforge_project:
|
102
|
-
rubygems_version: 1.
|
85
|
+
rubygems_version: 1.8.24
|
103
86
|
signing_key:
|
104
87
|
specification_version: 3
|
105
88
|
summary: Page List View Extension for Radiant CMS
|
106
|
-
test_files:
|
107
|
-
- spec/controllers/admin_page_controller_extensions_spec.rb
|
108
|
-
- spec/models/page_extensions_spec.rb
|
109
|
-
- spec/spec_helper.rb
|
89
|
+
test_files: []
|
Binary file
|