Skip to content
Browse files

'Gemifize' the plugin :)

  • Loading branch information...
1 parent eb397e0 commit e94c89104868c05945a5723376f016656e129739 @nicolasblanco nicolasblanco committed
Showing with 48 additions and 0 deletions.
  1. +1 −0 Gemfile
  2. +20 −0 LICENSE
  3. +27 −0 Rakefile
View
1 Gemfile
@@ -1,6 +1,7 @@
source :rubygems
gem "rspec-rails", ">= 2.0.0.beta.17"
+gem 'jeweler'
gem "rails", ">= 3.0.0.beta4"
gem "ruby-debug"
View
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2010 Novagile, Written by Nicolas Blanco.
+
+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
27 Rakefile
@@ -3,6 +3,33 @@ require "rake/rdoctask"
require "rspec"
require "rspec/core/rake_task"
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "scoped_search"
+ gem.summary = %Q{Easily implement search forms and column ordering based on your models scopes}
+ gem.description = %Q{Easily implement search forms and column ordering based on your models scopes. For Rails 3, compatible with ActiveRecord and Mongoid.}
+ gem.email = "slainer68@gmail.com"
+ gem.homepage = "http://github.com/novagile/scoped_search"
+ gem.authors = ["slainer68"]
+ gem.add_development_dependency "rspec", ">= 1.2.9"
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
+ end
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
+end
+
Rspec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = "spec/**/*_spec.rb"
end
+
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "scoped_search #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
+

0 comments on commit e94c891

Please sign in to comment.
Something went wrong with that request. Please try again.