<?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.5&quot;
+  s.version = &quot;0.1.6&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>@@ -55,12 +55,16 @@ module DataMapper
             return rv
           end
           
-          query = {  taggable_class.tags.tag.name =&gt; tag_list.to_a,
+          query = {
+            taggable_class.tags.tag.name =&gt; tag_list.to_a,
             Tagging.properties[:taggable_type] =&gt; taggable_class.to_s,
-            :unique =&gt; true
-           }
-           query.merge!(Tagging.properties[:tagger_type] =&gt; tagger_class) if tagger_class
-           query.merge!(Tagging.properties[:tagger_id] =&gt; tagger_obj.id) if tagger_obj          
+              :unique =&gt; true
+          }
+          query.merge!(Tagging.properties[:tagger_type] =&gt; tagger_class) if tagger_class
+          query.merge!(Tagging.properties[:tagger_id] =&gt; tagger_obj.id) if tagger_obj          
+          (options.keys - [:match]).each do |key|
+            query[key] = options[key]
+          end
           
           unless options[:match] == :any
             conditions = &quot;SELECT COUNT(DISTINCT(tag_id)) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id WHERE &quot;
@@ -186,4 +190,4 @@ module DataMapper
       end # InstanceMethods
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/dm-is-taggable/is/tag.rb</filename>
    </modified>
    <modified>
      <diff>@@ -51,8 +51,8 @@ module DataMapper
         def taggable_class;self;end
         
         def find(options)
-           tagger, taggable, tags, options = extract_options(options)
-           options.merge!(:on =&gt; self, :by =&gt;tagger, :with =&gt; tags)
+          tagger, taggable, tags, options = extract_options(options)
+          options.merge!(:on =&gt; self, :by =&gt;tagger, :with =&gt; tags)
           Tag.find_taggables(options)
         end
 </diff>
      <filename>lib/dm-is-taggable/is/taggable.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 module DataMapper
   module Is
     module Taggable
-      VERSION = &quot;0.1.5&quot;
+      VERSION = &quot;0.1.6&quot;
       DEPENDENCY_VERSION = &quot;&gt;= 0.9.6&quot;
     end
   end</diff>
      <filename>lib/dm-is-taggable/is/version.rb</filename>
    </modified>
    <modified>
      <diff>@@ -297,5 +297,10 @@ if HAS_SQLITE3 || HAS_MYSQL || HAS_POSTGRES
         item[1].should be_a(Integer)
       end
     end
+
+    it &quot;should be able to specify conditions over find method&quot; do
+      result = Picture.find(:with =&gt; 'tag1', :id.not =&gt; [1])
+      result.map(&amp;:id).should_not be_include(1)
+    end
   end
 end</diff>
      <filename>spec/integration/taggable_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>eb14d9d07ad3068d12b259e3d0cf7f62c80505ca</id>
    </parent>
  </parents>
  <author>
    <name>takiuchi</name>
    <email>genki@s21g.com</email>
  </author>
  <url>http://github.com/aq1018/dm-is-taggable/commit/13817db925101749a0036a2447832acb8d785593</url>
  <id>13817db925101749a0036a2447832acb8d785593</id>
  <committed-date>2009-05-08T19:47:26-07:00</committed-date>
  <authored-date>2009-05-08T19:47:26-07:00</authored-date>
  <message>Changed the find method to accept options for conditions</message>
  <tree>4c800b71f09fb3b1cefaac5dca877d8ac2c2d3b3</tree>
  <committer>
    <name>takiuchi</name>
    <email>genki@s21g.com</email>
  </committer>
</commit>
