radiant-taggable-extension 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -10,7 +10,7 @@ This extension differs from `tags` in a few ways that matter to me but may not t
10
10
  * We replace the keywords mechanism on pages rather than adding another one.
11
11
  * Anything can be tagged. By default we only do pages but other extensions can participate with a single line in a model class. See the [taggable_events](https://github.com/spanner/radiant-taggable_events-extension) extension for a minimal example or just put `is_taggable` at the top of a model class and see what happens.
12
12
  * We don't use `has_many_polymorphs` (it burns!)
13
- * Or any of the tagging libraries: it only takes a few named_scopes
13
+ * Or any of the tagging libraries: it only takes a few scopes
14
14
  * it's multi-site compatible: if our fork is installed then you get site-scoped tags and taggings.
15
15
 
16
16
  When you first install the extension you shouldn't see much difference: all we do out of the box is to take over (and make more prominent) the keywords field in the page-edit view.
@@ -81,7 +81,7 @@ Put this in your layout:
81
81
  <ul>
82
82
  <r:related_pages.each>
83
83
  <li><r:link /></li>
84
- <r:related_pages.each>
84
+ </r:related_pages.each>
85
85
  </ul>
86
86
  </r:if_tags>
87
87
 
@@ -100,7 +100,6 @@ Seek venture capital immediately.
100
100
  ## Requirements
101
101
 
102
102
  * Radiant 0.8.1
103
- * `will_paginate` gem
104
103
 
105
104
  This is no longer compatible with 0.7 because we're doing a lot of :having in the scopes and you need rails 2.3 for that.
106
105
 
@@ -121,5 +120,5 @@ Very likely. [Github issues](http://github.com/spanner/radiant-taggable-extensio
121
120
  ## Author and copyright
122
121
 
123
122
  * William Ross, for spanner. will at spanner.org
124
- * Copyright 2009 spanner ltd
123
+ * Copyright 2008-2010 spanner ltd
125
124
  * released under the same terms as Rails and/or Radiant
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.2.1
@@ -24,7 +24,8 @@ module TaggableModel # for inclusion into ActiveRecord::Base
24
24
  :joins => "INNER JOIN taggings as tt on tt.tagged_id = #{self.table_name}.id AND tt.tagged_type = '#{self.to_s}'",
25
25
  :conditions => ["tt.tag_id in(#{tags.map{ '?' }.join(',')})"] + tags.map(&:id),
26
26
  :group => column_names.map { |n| table_name + '.' + n }.join(','), # postgres is strict and requires that we group by all selected (but not aggregated) columns
27
- :order => "count(tt.id) DESC"
27
+ :order => "count(tt.id) DESC",
28
+ :readonly => false
28
29
  }
29
30
  }
30
31
 
@@ -33,7 +34,8 @@ module TaggableModel # for inclusion into ActiveRecord::Base
33
34
  :joins => "INNER JOIN taggings as tt on tt.tagged_id = #{self.table_name}.id AND tt.tagged_type = '#{self.to_s}'",
34
35
  :conditions => ["tt.tag_id in(#{tags.map{ '?' }.join(',')})"] + tags.map(&:id),
35
36
  :group => column_names.map { |n| table_name + '.' + n }.join(','), # postgres is strict and requires that we group by all selected (but not aggregated) columns
36
- :having => "count(tt.id) >= #{tags.length}"
37
+ :having => "count(tt.id) >= #{tags.length}",
38
+ :readonly => false
37
39
  }
38
40
  } do
39
41
  # count is badly sugared here: it omits the group and having clauses.
data/lib/taggable_page.rb CHANGED
@@ -17,7 +17,6 @@ module TaggablePage # for inclusion into Page
17
17
  module ClassMethods
18
18
  end
19
19
 
20
-
21
20
  module InstanceMethods
22
21
 
23
22
  # note varying logic here: tag clouds are used differently when describing a group.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{radiant-taggable-extension}
8
- s.version = "1.2.0"
8
+ s.version = "1.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["spanner"]
12
- s.date = %q{2010-09-10}
12
+ s.date = %q{2010-10-04}
13
13
  s.description = %q{General purpose tagging extension: more versatile but less focused than the tags extension}
14
14
  s.email = %q{will@spanner.org}
15
15
  s.extra_rdoc_files = [
@@ -1,5 +1,5 @@
1
1
  class TaggableExtension < Radiant::Extension
2
- version "1.2.0"
2
+ version "1.2.1"
3
3
  description "General purpose tagging and retrieval extension: more versatile but less focused than the tags extension"
4
4
  url "http://github.com/spanner/radiant-taggable-extension"
5
5
 
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: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - spanner
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-10 00:00:00 +01:00
18
+ date: 2010-10-04 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency