gnugeek-is_taggable 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/CHANGELOG +3 -0
  2. data/lib/is_taggable.rb +2 -2
  3. metadata +1 -1
data/CHANGELOG CHANGED
@@ -4,3 +4,6 @@
4
4
 
5
5
  [0.0.1]
6
6
  * (05 Feb 2009) Gemified
7
+
8
+ [0.0.2]
9
+ * (02 Mar 2009) Made find_alls case insensitive
@@ -41,9 +41,9 @@ module IsTaggable
41
41
  return [] if tag_or_tags.nil? || tag_or_tags.empty?
42
42
  case tag_or_tags
43
43
  when Array, IsTaggable::TagList
44
- all(:include => ['tags', 'taggings'], :conditions => conditions ).select { |record| tag_or_tags.all? { |tag| record.tags.map(&:name).include?(tag) } } || []
44
+ all(:include => ['tags', 'taggings'], :conditions => conditions ).select { |record| tag_or_tags.all? { |tag| record.tags.map(&:name).map(&:upcase).include?(tag.upcase) } } || []
45
45
  else
46
- all(:include => ['tags', 'taggings'], :conditions => conditions).select { |record| record.tags.map(&:name).include?(tag_or_tags) } || []
46
+ all(:include => ['tags', 'taggings'], :conditions => conditions).select { |record| record.tags.map(&:name).map(&:upcase).include?(tag_or_tags.upcase) } || []
47
47
  end
48
48
  end
49
49
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gnugeek-is_taggable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - giraffesoft,Karmi,Brian Knox