Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bumped version with new except scope

  • Loading branch information...
commit 9d8ffc733688dc7d226f0c8bfc5cf4624fff040e 1 parent ac1e849
@rwdaigle rwdaigle authored
Showing with 15 additions and 3 deletions.
  1. +12 −0 CHANGELOG
  2. +3 −3 utility_scopes.gemspec
View
12 CHANGELOG
@@ -0,0 +1,12 @@
+0.2.0
+
+* Added except scope from danielmorrison (http://github.com/danielmorrison)
+
+ Article.except(1, 2, 3) # Get all articles whose id is NOT 1, 2 or 3
+ Article.except(@article) # Get all articles except the given one
+ Article.except(Article.published) # Get all UN-published articles (poor example
+ # since it executes full "published" query first)
+
+0.1.0
+
+* Initial release with limit, with (eager loading) and ordered scopes.
View
6 utility_scopes.gemspec
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.name = "utility_scopes"
- s.version = "0.1.0"
+ s.version = "0.2.0"
s.date = "2008-08-20"
s.summary = "A collection of utilitarian named scopes providing common functionality for ActiveRecord models"
@@ -14,9 +14,9 @@ Gem::Specification.new do |s|
s.has_rdoc = true
s.rdoc_options = ['--main', 'README.rdoc']
s.rdoc_options << '--inline-source' << '--charset=UTF-8'
- s.extra_rdoc_files = ['README.rdoc', 'Rakefile', 'LICENSE']
+ s.extra_rdoc_files = ['README.rdoc', 'Rakefile', 'LICENSE', 'CHANGELOG']
s.add_dependency 'activerecord', ['>= 2.1.0']
- s.files = %w(README.rdoc Rakefile LICENSE init.rb lib lib/utility_scopes lib/utility_scopes.rb lib/utility_scopes/eager.rb lib/utility_scopes/except.rb lib/utility_scopes/limited.rb lib/utility_scopes/ordered.rb spec spec/abstract_spec.rb spec/eager_spec.rb spec/except_spec.rb spec/limit_spec.rb spec/ordered_spec.rb spec/spec_helper.rb spec/fixtures spec/fixtures/article.rb)
+ s.files = %w(README.rdoc Rakefile LICENSE CHANGELOG init.rb lib lib/utility_scopes lib/utility_scopes.rb lib/utility_scopes/eager.rb lib/utility_scopes/except.rb lib/utility_scopes/limited.rb lib/utility_scopes/ordered.rb spec spec/abstract_spec.rb spec/eager_spec.rb spec/except_spec.rb spec/limit_spec.rb spec/ordered_spec.rb spec/spec_helper.rb spec/fixtures spec/fixtures/article.rb)
end
Please sign in to comment.
Something went wrong with that request. Please try again.