radiant-taggable-extension 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module RadiantTaggableExtension
2
- VERSION = '2.0.1'
2
+ VERSION = '2.0.2'
3
3
  SUMMARY = %q{Tagging, clouding and faceting extension for Radiant CMS}
4
4
  DESCRIPTION = %q{General purpose tagging and retrieval extension: more versatile but less focused than the tags extension. A good way to support faceted search.}
5
5
  URL = "http://spanner.org/radiant/taggable"
@@ -245,7 +245,7 @@ module Radius
245
245
  attributes = options.inject(' ') { |s, (k, v)| s << %{#{k.downcase}="#{v}" } }.strip
246
246
  text = tag.double? ? tag.expand : tag.render('tag:name')
247
247
  if tag.locals.page.respond_to?(:requested_tags)
248
- href = tag.locals.page.path(tag.locals.page.requested_tags + tag.locals.tag)
248
+ href = tag.locals.page.path(tag.locals.page.requested_tags + [tag.locals.tag])
249
249
  elsif base_path = options.delete('base')
250
250
  href = clean_path(base_path + '/-' + tag.locals.tag.clean_title)
251
251
  elsif library = LibraryPage.first
@@ -59,7 +59,7 @@ module Taggable
59
59
  # The normal `path` method is extended to append the (sorted and deduped) tags attached to the page request
60
60
  #
61
61
  def path_with_tags(tags = requested_tags)
62
- clean_path( path_without_tags + '/' + tags.uniq.sort.map(&:clean_title).to_param )
62
+ clean_path( path_without_tags + '/' + tags.uniq.compact.sort.map(&:clean_title).to_param )
63
63
  end
64
64
 
65
65
  private
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-taggable-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 1
10
- version: 2.0.1
9
+ - 2
10
+ version: 2.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - William Ross
@@ -88,6 +88,7 @@ files:
88
88
  - public/javascripts/autocomplete.js
89
89
  - public/stylesheets/sass/admin/taggable.sass
90
90
  - public/stylesheets/sass/tagcloud.sass
91
+ - radiant-taggable-extension-2.0.1.gem
91
92
  - radiant-taggable-extension.gemspec
92
93
  - Rakefile
93
94
  - README.md
@@ -103,7 +104,7 @@ files:
103
104
  homepage: http://spanner.org/radiant/taggable
104
105
  licenses: []
105
106
 
106
- post_install_message: "\n Add this to your Gemfile with:\n\n gem 'radiant-taggable-extension', '~> 2.0.1'\n\n "
107
+ post_install_message: "\n Add this to your Gemfile with:\n\n gem 'radiant-taggable-extension', '~> 2.0.2'\n\n "
107
108
  rdoc_options: []
108
109
 
109
110
  require_paths: