search_scope 0.1.3 → 0.1.4

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/README CHANGED
@@ -27,7 +27,7 @@ cd search_scope_test
27
27
  rake db:migrate
28
28
 
29
29
  #add to environment.rb (below the other config.gem examples)
30
- config.gem 'search_scope', :version => '0.1.0'
30
+ config.gem 'search_scope', :version => '>= 0.1.4'
31
31
 
32
32
  #install the gem (from the command line)
33
33
  rake gems:install
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('search_scope', '0.1.3') do |p|
5
+ Echoe.new('search_scope', '0.1.4') do |p|
6
6
  p.description = "Simplify searching a model by defining custom named_scopes."
7
7
  p.project = 'search-scope'
8
8
  p.url = "http://rubyforge.org/projects/search-scope"
data/lib/search_scope.rb CHANGED
@@ -19,7 +19,6 @@ module SearchScope
19
19
  end
20
20
 
21
21
  def search_scope(name, options = {}, &block)
22
- puts "***search_scope: #{name.inspect} - #{options.inspect}"
23
22
  #default the search to a LIKE search if nothing is given
24
23
  if options.blank?
25
24
  options = lambda { |term| { :conditions => ["#{table_name}.#{name} LIKE ?", "%#{term}%"] } }
data/search_scope.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{search_scope}
5
- s.version = "0.1.3"
5
+ s.version = "0.1.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ryan Owens"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: search_scope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Owens