hammock 0.3.2 → 0.3.3

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.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.3.3 2009-05-28
2
+ On suggest, :limit => 0 means no limit now, as it should.
3
+
4
+
1
5
  == 0.3.2 2009-05-28
2
6
  Accidentally pushed 0.3.1 in an unknown state - bumped to 0.3.2 to be safe.
3
7
 
data/hammock.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{hammock}
5
- s.version = "0.3.2"
5
+ s.version = "0.3.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ben Hoskings"]
@@ -14,7 +14,7 @@ module Hammock
14
14
  log "Invalid columns #{(given_fields - fields).inspect}."
15
15
  else
16
16
  find(:all,
17
- :limit => limit,
17
+ :limit => (limit unless limit.zero?),
18
18
  :order => fields.map {|f| "#{f} ASC" }.join(', '),
19
19
  :conditions => [
20
20
  fields.map {|f|
data/lib/hammock.rb CHANGED
@@ -4,7 +4,7 @@ require 'ambition'
4
4
  require 'ambition/adapters/active_record'
5
5
 
6
6
  module Hammock
7
- VERSION = '0.3.2'
7
+ VERSION = '0.3.3'
8
8
 
9
9
  def self.included base # :nodoc:
10
10
  puts "Loading Hammock from #{loaded_from_gem? ? 'gem' : 'plugin'}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Hoskings