Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replaced Echoe with Jeweler

  • Loading branch information...
commit 38afc7423111ffc18e8a1d007680b4ba48c963e0 1 parent 9617a3b
David Padilla authored
View
5 .document
@@ -0,0 +1,5 @@
+README.rdoc
+lib/**/*.rb
+bin/*
+features/**/*.feature
+LICENSE
View
22 .gitignore
@@ -1,4 +1,22 @@
+## MAC OS
+.DS_Store
+
+## TEXTMATE
+*.tmproj
+tmtags
+
+## EMACS
+*~
+\#*
+.\#*
+
+## VIM
+*.swp
+
+## PROJECT::GENERAL
+coverage
+rdoc
pkg
-Manifest
-log
tmp
+
+## PROJECT::SPECIFIC
View
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2009 David Padilla
+
+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
58 Rakefile
@@ -1,12 +1,52 @@
require 'rubygems'
require 'rake'
-require 'echoe'
-
-Echoe.new('rails3-jquery-autocomplete', '0.1.3') do |p|
- p.description = "Use jQuery's autocomplete plugin with Rails 3."
- p.url = "http://github.com/crowdint/rails3-jquery-autocomplete"
- p.author = "David Padilla"
- p.email = "david@crowdint.com"
- p.ignore_pattern = ["tmp/*", "script/*"]
- p.development_dependencies = []
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "rails3-jquery-autocomplete"
+ gem.summary = %Q{Use jQuery's autocomplete plugin with Rails 3.}
+ gem.description = %Q{Use jQuery's autocomplete plugin with Rails 3.}
+ gem.email = "david.padilla@crowdint.com"
+ gem.homepage = "http://github.com/crowdint/rails3-jquery-autocomplete"
+ gem.authors = ["David Padilla"]
+ # gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
+ end
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
+end
+
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/*_test.rb'
+ test.verbose = true
+end
+
+begin
+ require 'rcov/rcovtask'
+ Rcov::RcovTask.new do |test|
+ test.libs << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+ end
+rescue LoadError
+ task :rcov do
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
+ end
+end
+
+task :test => :check_dependencies
+
+task :default => :test
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "rails3-jquery-autocomplete #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
end
View
1  VERSION
@@ -0,0 +1 @@
+0.1.3
View
40 rails3-jquery-autocomplete.gemspec
@@ -1,23 +1,44 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{rails3-jquery-autocomplete}
- s.version = "0.1.2"
+ s.version = "0.1.3"
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["David Padilla"]
- s.date = %q{2010-07-19}
+ s.date = %q{2010-07-25}
s.description = %q{Use jQuery's autocomplete plugin with Rails 3.}
- s.email = %q{david@crowdint.com}
- s.extra_rdoc_files = ["README.markdown", "lib/autocomplete.rb", "lib/generators/autocomplete_generator.rb", "lib/generators/templates/autocomplete-rails.js"]
- s.files = ["README.markdown", "Rakefile", "init.rb", "lib/autocomplete.rb", "lib/generators/autocomplete_generator.rb", "lib/generators/templates/autocomplete-rails.js", "rails3-jquery-autocomplete.gemspec", "test/controller_module_test.rb", "test/test_helper.rb", "Manifest"]
+ s.email = %q{david.padilla@crowdint.com}
+ s.extra_rdoc_files = [
+ "LICENSE",
+ "README.markdown"
+ ]
+ s.files = [
+ ".gitignore",
+ "README.markdown",
+ "Rakefile",
+ "init.rb",
+ "lib/autocomplete.rb",
+ "lib/generators/autocomplete_generator.rb",
+ "lib/generators/templates/autocomplete-rails.js",
+ "rails3-jquery-autocomplete.gemspec",
+ "test/autocomplete_generator_test.rb",
+ "test/controller_module_test.rb",
+ "test/test_helper.rb"
+ ]
s.homepage = %q{http://github.com/crowdint/rails3-jquery-autocomplete}
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Rails3-jquery-autocomplete", "--main", "README.markdown"]
+ s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
- s.rubyforge_project = %q{rails3-jquery-autocomplete}
s.rubygems_version = %q{1.3.7}
s.summary = %q{Use jQuery's autocomplete plugin with Rails 3.}
- s.test_files = ["test/controller_module_test.rb", "test/test_helper.rb"]
+ s.test_files = [
+ "test/autocomplete_generator_test.rb",
+ "test/controller_module_test.rb",
+ "test/test_helper.rb"
+ ]
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
@@ -29,3 +50,4 @@ Gem::Specification.new do |s|
else
end
end
+
View
8 test/test_helper.rb
@@ -3,15 +3,15 @@
require 'rubygems'
gem 'rails', '>=3.0.0.beta4'
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+
require "active_support"
require "active_record"
require "active_model"
require "action_controller"
require "rails/railtie"
-ENV["RAILS_ENV"] = "test"
-RAILS_ROOT = "anywhere"
-
require "#{File.dirname(__FILE__)}/../init"
class ApplicationController < ActionController::Base; end
@@ -30,4 +30,4 @@ class ActiveSupport::TestCase
setup do
@routes = Autocomplete::Routes
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.