radiant-archive-extension 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,10 @@
1
1
  module ArchiveMenuRenderer
2
2
  def excluded_class_names
3
- Array(ArchiveMenuRenderer.instance_variable_get(:@excluded_class_names))
3
+ excluded_from_this = Array(ArchiveMenuRenderer.instance_variable_get(:@excluded_class_names))
4
+ if defined?(super)
5
+ return super + excluded_from_this
6
+ end
7
+ excluded_from_this
4
8
  end
5
9
  end
6
10
 
@@ -1,3 +1,3 @@
1
1
  module RadiantArchiveExtension
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
@@ -1,5 +1,11 @@
1
1
  require 'spec_helper'
2
2
 
3
+ module AnotherMenuRenderer
4
+ def excluded_class_names
5
+ ['AnotherPage']
6
+ end
7
+ end
8
+
3
9
  describe ArchiveMenuRenderer do
4
10
  context 'excluding classes from child list' do
5
11
  it 'should be retrievable by the extended object' do
@@ -8,6 +14,13 @@ describe ArchiveMenuRenderer do
8
14
  page.extend ArchiveMenuRenderer
9
15
  page.excluded_class_names.should include('SkippedPage')
10
16
  end
17
+ it 'should contain excluded_class_names from the super class' do
18
+ ArchiveMenuRenderer.instance_variable_set(:@excluded_class_names, ['SkippedPage'])
19
+ page = Object.new
20
+ page.extend ArchiveMenuRenderer
21
+ page.extend AnotherMenuRenderer
22
+ page.excluded_class_names.should include('AnotherPage')
23
+ end
11
24
  end
12
25
  end
13
26
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-archive-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
9
+ - 5
10
+ version: 1.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Radiant CMS Dev Team
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-05 00:00:00 Z
18
+ date: 2011-11-06 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Provides page types for news or blog archives.
@@ -50,7 +50,6 @@ files:
50
50
  - lib/radiant-archive-extension/version.rb
51
51
  - lib/radiant-archive-extension.rb
52
52
  - lib/tasks/archive_extension_tasks.rake
53
- - radiant-archive-extension-1.0.4.gem
54
53
  - radiant-archive-extension.gemspec
55
54
  - Rakefile
56
55
  - README
@@ -93,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
92
  requirements: []
94
93
 
95
94
  rubyforge_project:
96
- rubygems_version: 1.8.10
95
+ rubygems_version: 1.8.6
97
96
  signing_key:
98
97
  specification_version: 3
99
98
  summary: Archive for Radiant CMS