Browse files

Failed attempt to get utility-scopes up on rubyforge w/ hoe

  • Loading branch information...
1 parent 0274758 commit 9b91afa3a202bee03bf6a3ed6a7f10751b285d96 @rwdaigle rwdaigle committed Aug 23, 2008
Showing with 60 additions and 21 deletions.
  1. +1 −0 .gitignore
  2. +2 −2 CHANGELOG
  3. +19 −17 LICENSE
  4. +19 −0 Manifest.txt
  5. +16 −2 Rakefile
  6. +3 −0 lib/version.rb
View
1 .gitignore
@@ -1 +1,2 @@
doc
+pkg
View
4 CHANGELOG
@@ -1,4 +1,4 @@
-0.2.0
+== 0.2.0
* Added except scope from danielmorrison (http://github.com/danielmorrison)
@@ -7,6 +7,6 @@
Article.except(Article.published) # Get all UN-published articles (poor example
# since it executes full "published" query first)
-0.1.0
+== 0.1.0
* Initial release with limit, with (eager loading) and ordered scopes.
View
36 LICENSE
@@ -1,18 +1,20 @@
Copyright (c) 2008 Ryan Daigle
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
19 Manifest.txt
@@ -0,0 +1,19 @@
+CHANGELOG
+LICENSE
+Manifest.txt
+README.textile
+Rakefile
+init.rb
+lib/utility_scopes.rb
+lib/utility_scopes/eager.rb
+lib/utility_scopes/except.rb
+lib/utility_scopes/limited.rb
+lib/utility_scopes/ordered.rb
+lib/version.rb
+spec/abstract_spec.rb
+spec/eager_spec.rb
+spec/except_spec.rb
+spec/fixtures/article.rb
+spec/limit_spec.rb
+spec/ordered_spec.rb
+spec/spec_helper.rb
View
18 Rakefile
@@ -1,18 +1,32 @@
require 'rubygems'
require 'rake'
require 'rake/rdoctask'
+require 'hoe'
+require './lib/version.rb'
# TODO add task to execute specs
desc 'Generate RDoc documentation.'
Rake::RDocTask.new(:rdoc) do |rdoc|
- rdoc.rdoc_files.include('README.rdoc', 'LICENSE', 'Rakefile').
+ rdoc.rdoc_files.include('README.textile', 'LICENSE', 'CHANGELOG', 'Rakefile').
include('lib/**/*.rb')
- rdoc.main = "README.rdoc"
+ rdoc.main = "README.textile"
rdoc.title = "utility_scopes documentation"
rdoc.rdoc_dir = 'doc' # rdoc output folder
rdoc.options << '--inline-source' << '--charset=UTF-8'
rdoc.options << '--webcvs=http://github.com/yfactorial/utility_scopes/tree/master/'
+end
+
+task :release_and_publish => [:release, :publish_docs]
+
+Hoe.new('UtilityScopes', UtilityScopes::VERSION) do |p|
+ p.name = 'utility-scopes'
+ p.summary = "A collection of utilitarian named scopes for your ActiveRecord models."
+ p.url = "http://github.com/yfactorial/utility_scopes/tree/master"
+ p.remote_rdoc_dir = '' # Release to root
+ p.changes = p.paragraphs_of('CHANGELOG', 0..1).join("\n\n")
+ p.extra_deps << ['activerecord', '>= 2.1.0']
+ p.developer('Ryan Daigle', 'ryan@yfactorial.com')
end
View
3 lib/version.rb
@@ -0,0 +1,3 @@
+module UtilityScopes
+ VERSION = '0.2.0'
+end

0 comments on commit 9b91afa

Please sign in to comment.