<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,7 +2,7 @@
 
 Gem::Specification.new do |s|
   s.name = %q{dm-is-taggable}
-  s.version = &quot;0.1.6&quot;
+  s.version = &quot;0.1.7&quot;
 
   s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 0&quot;) if s.respond_to? :required_rubygems_version=
   s.authors = [&quot;Aaron Qian, Maxime Guilbot&quot;]</diff>
      <filename>dm-is-taggable.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -22,11 +22,13 @@ module DataMapper
       
       module TaggingClassMethods
         def total(options = {})
-          property = DataMapper::Property.new(Tagging, :&quot;count(*)&quot;, Integer)
+          property = DataMapper::Property.new(Tagging, :&quot;count(*)&quot;,
+            Integer, :auto_validation =&gt; false)
           order = options[:order] || :desc
           dir = DataMapper::Query::Direction.new(property, order)
           tag_id_to_count = Tagging.aggregate(:all.count,
             options.merge(:fields =&gt; [:tag_id], :order =&gt; [dir]))
+          return [] if tag_id_to_count.empty?
           tag_ids, counts = tag_id_to_count.transpose
           Tag.all(:id =&gt; tag_ids).zip counts
         end</diff>
      <filename>lib/dm-is-taggable/is/tagging.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 module DataMapper
   module Is
     module Taggable
-      VERSION = &quot;0.1.6&quot;
+      VERSION = &quot;0.1.7&quot;
       DEPENDENCY_VERSION = &quot;&gt;= 0.9.6&quot;
     end
   end</diff>
      <filename>lib/dm-is-taggable/is/version.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>13817db925101749a0036a2447832acb8d785593</id>
    </parent>
  </parents>
  <author>
    <name>takiuchi</name>
    <email>genki@s21g.com</email>
  </author>
  <url>http://github.com/aq1018/dm-is-taggable/commit/dab5fe2d25f4f86378864fee21b5462780d30e8f</url>
  <id>dab5fe2d25f4f86378864fee21b5462780d30e8f</id>
  <committed-date>2009-05-08T21:45:43-07:00</committed-date>
  <authored-date>2009-05-08T21:45:43-07:00</authored-date>
  <message>Fixed a bug.</message>
  <tree>b53e8dd960bd41f4ceb4f0e3b280fc47906e627b</tree>
  <committer>
    <name>takiuchi</name>
    <email>genki@s21g.com</email>
  </committer>
</commit>
