radiant-taggable-extension 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,20 +1,7 @@
1
- - fields_for :asset, @asset do |fields|
2
- #extended-metadata{ :class => "row", :style => "display: none" }
3
- %table.fieldset{ :cellpadding => "0", :cellspacing => "0", :border => "0" }
4
- %tr
5
- %td.label
6
- = fields.label :caption
7
- %td.field
8
- = fields.text_field :caption, :class => 'textbox', :maxlength => 255
9
- -if @asset.new_record? || @asset.image?
10
- %tr
11
- %td.label
12
- Display
13
- %td.field{:style => 'text-align: left;'}
14
- = fields.check_box :furniture
15
- = fields.label :furniture, "Site furniture? (not shown in lists and galleries)"
16
- = render_region :extended_metadata
17
- %p
18
- %small
19
- %a{ :id => "more-extended-metadata", :href => "#", :onclick => "#{toggle_javascript_for('extended-metadata')}; return false;" } More
20
- %a{ :id => "less-extended-metadata", :href => "#", :onclick => "#{toggle_javascript_for('extended-metadata')}; return false;", :style => "display: none" } Less
1
+ %tr
2
+ %td.label
3
+ Display
4
+ %td.field{:style => 'text-align: left;'}
5
+ - fields_for :asset, @asset do |fields|
6
+ = fields.check_box :furniture
7
+ = fields.label :furniture, t('taggable_extension.site_furniture')
@@ -6,4 +6,6 @@ en:
6
6
  structural: "Structural?"
7
7
  page_id: "Pointer to page"
8
8
  visible: "Visible?"
9
- description: "Description (optional)"
9
+ description: "Description (optional)"
10
+ taggable_extension:
11
+ site_furniture: "Site furniture? (not shown in lists and galleries)"
@@ -1,5 +1,5 @@
1
1
  module RadiantTaggableExtension
2
- VERSION = '2.0.2'
2
+ VERSION = '2.0.3'
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"
@@ -25,7 +25,7 @@ module Taggable
25
25
  end
26
26
 
27
27
  def keywords=(somewords="")
28
- self.attached_tags = Tag.from_list(somewords)
28
+ self.attached_tags = Tag.from_list(somewords) || []
29
29
  end
30
30
 
31
31
  def keywords_before_type_cast # called by form_helper
@@ -73,7 +73,7 @@ describe SiteController do
73
73
  it "should redirect to a normalised form of the requested address" do
74
74
  get :show_page, :url => '/library/green/furiously'
75
75
  response.should be_redirect
76
- response.should redirect_to 'http://test.host/library/furiously/green'
76
+ response.should redirect_to 'http://test.host/library/furiously/green/'
77
77
  end
78
78
 
79
79
  it "should add a default Cache-Control header with public and max-age of 5 minutes" do
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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 2
10
- version: 2.0.2
9
+ - 3
10
+ version: 2.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - William Ross
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-05 00:00:00 Z
18
+ date: 2011-10-11 00:00:00 +01:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: sanitize
@@ -88,7 +89,7 @@ files:
88
89
  - public/javascripts/autocomplete.js
89
90
  - public/stylesheets/sass/admin/taggable.sass
90
91
  - public/stylesheets/sass/tagcloud.sass
91
- - radiant-taggable-extension-2.0.1.gem
92
+ - radiant-taggable-extension-2.0.2.gem
92
93
  - radiant-taggable-extension.gemspec
93
94
  - Rakefile
94
95
  - README.md
@@ -101,10 +102,11 @@ files:
101
102
  - spec/spec.opts
102
103
  - spec/spec_helper.rb
103
104
  - taggable_extension.rb
105
+ has_rdoc: true
104
106
  homepage: http://spanner.org/radiant/taggable
105
107
  licenses: []
106
108
 
107
- post_install_message: "\n Add this to your Gemfile with:\n\n gem 'radiant-taggable-extension', '~> 2.0.2'\n\n "
109
+ post_install_message: "\n Add this to your Gemfile with:\n\n gem 'radiant-taggable-extension', '~> 2.0.3'\n\n "
108
110
  rdoc_options: []
109
111
 
110
112
  require_paths:
@@ -130,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
132
  requirements: []
131
133
 
132
134
  rubyforge_project:
133
- rubygems_version: 1.8.10
135
+ rubygems_version: 1.5.3
134
136
  signing_key:
135
137
  specification_version: 3
136
138
  summary: Tagging, clouding and faceting extension for Radiant CMS
Binary file