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 CHANGED
@@ -34,7 +34,7 @@ unless defined? RADIANT_ROOT
34
34
  end
35
35
 
36
36
  require 'rake'
37
- require 'rake/rdoctask'
37
+ require 'rdoc/task'
38
38
  require 'rake/testtask'
39
39
 
40
40
  rspec_base = File.expand_path(RADIANT_ROOT + '/vendor/plugins/rspec/lib')
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.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
- display_atts << att if Page.column_names.include?("#{att}") || Page.instance_methods.include?("#{att}")
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
@@ -9,6 +9,7 @@ module PageListView::AdminPageControllerExtensions
9
9
 
10
10
  def index_with_page_list_view
11
11
  if params[:view] && params[:view] == 'list'
12
+ @template_name = 'index'
12
13
  render :action => "page_list_view" and return
13
14
  else
14
15
  index_without_page_list_view
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{radiant-page_list_view-extension}
8
- s.version = "1.0.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 = %q{2011-04-25}
13
- s.description = %q{Enables viewing site pages in a list sortable by attibute.}
14
- s.email = %q{avonderluft@avlux.net}
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 = %q{https://github.com/avonderluft/radiant-page_list_view-extension}
44
+ s.homepage = "https://github.com/avonderluft/radiant-page_list_view-extension"
46
45
  s.require_paths = ["lib"]
47
- s.rubygems_version = %q{1.6.2}
48
- s.summary = %q{Page List View Extension for Radiant CMS}
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
@@ -1,4 +1,5 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ # require File.dirname(__FILE__) + '/../spec_helper'
2
+ require 'spec_helper'
2
3
 
3
4
  Admin::PagesController.module_eval { def rescue_action(e); raise e; end }
4
5
 
@@ -1,4 +1,5 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ # require File.dirname(__FILE__) + '/../spec_helper'
2
+ require 'spec_helper'
2
3
 
3
4
  describe Page, "with list view extensions" do
4
5
  dataset :users_and_pages
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
- hash: 23
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
- date: 2011-04-25 00:00:00 -07:00
20
- default_executable:
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
- prerelease: false
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
- version_requirements: *id001
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
- hash: 3
87
- segments:
70
+ requirements:
71
+ - - ! '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ segments:
88
75
  - 0
89
- version: "0"
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
- hash: 3
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.6.2
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: []