Skip to content

Commit 38afc74

Browse files
author
David Padilla
committed
Replaced Echoe with Jeweler
1 parent 9617a3b commit 38afc74

File tree

7 files changed

+130
-24
lines changed

7 files changed

+130
-24
lines changed

.document

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
README.rdoc
2+
lib/**/*.rb
3+
bin/*
4+
features/**/*.feature
5+
LICENSE

.gitignore

+20-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1+
## MAC OS
2+
.DS_Store
3+
4+
## TEXTMATE
5+
*.tmproj
6+
tmtags
7+
8+
## EMACS
9+
*~
10+
\#*
11+
.\#*
12+
13+
## VIM
14+
*.swp
15+
16+
## PROJECT::GENERAL
17+
coverage
18+
rdoc
119
pkg
2-
Manifest
3-
log
420
tmp
21+
22+
## PROJECT::SPECIFIC

LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2009 David Padilla
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Rakefile

+49-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,52 @@
11
require 'rubygems'
22
require 'rake'
3-
require 'echoe'
4-
5-
Echoe.new('rails3-jquery-autocomplete', '0.1.3') do |p|
6-
p.description = "Use jQuery's autocomplete plugin with Rails 3."
7-
p.url = "http://github.com/crowdint/rails3-jquery-autocomplete"
8-
p.author = "David Padilla"
9-
p.email = "[email protected]"
10-
p.ignore_pattern = ["tmp/*", "script/*"]
11-
p.development_dependencies = []
3+
4+
begin
5+
require 'jeweler'
6+
Jeweler::Tasks.new do |gem|
7+
gem.name = "rails3-jquery-autocomplete"
8+
gem.summary = %Q{Use jQuery's autocomplete plugin with Rails 3.}
9+
gem.description = %Q{Use jQuery's autocomplete plugin with Rails 3.}
10+
gem.email = "[email protected]"
11+
gem.homepage = "http://github.com/crowdint/rails3-jquery-autocomplete"
12+
gem.authors = ["David Padilla"]
13+
# gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
14+
end
15+
Jeweler::GemcutterTasks.new
16+
rescue LoadError
17+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
18+
end
19+
20+
require 'rake/testtask'
21+
Rake::TestTask.new(:test) do |test|
22+
test.libs << 'lib' << 'test'
23+
test.pattern = 'test/**/*_test.rb'
24+
test.verbose = true
25+
end
26+
27+
begin
28+
require 'rcov/rcovtask'
29+
Rcov::RcovTask.new do |test|
30+
test.libs << 'test'
31+
test.pattern = 'test/**/test_*.rb'
32+
test.verbose = true
33+
end
34+
rescue LoadError
35+
task :rcov do
36+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
37+
end
38+
end
39+
40+
task :test => :check_dependencies
41+
42+
task :default => :test
43+
44+
require 'rake/rdoctask'
45+
Rake::RDocTask.new do |rdoc|
46+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
47+
48+
rdoc.rdoc_dir = 'rdoc'
49+
rdoc.title = "rails3-jquery-autocomplete #{version}"
50+
rdoc.rdoc_files.include('README*')
51+
rdoc.rdoc_files.include('lib/**/*.rb')
1252
end

VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.1.3

rails3-jquery-autocomplete.gemspec

+31-9
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,44 @@
1+
# Generated by jeweler
2+
# DO NOT EDIT THIS FILE DIRECTLY
3+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
14
# -*- encoding: utf-8 -*-
25

36
Gem::Specification.new do |s|
47
s.name = %q{rails3-jquery-autocomplete}
5-
s.version = "0.1.2"
8+
s.version = "0.1.3"
69

7-
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
10+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
811
s.authors = ["David Padilla"]
9-
s.date = %q{2010-07-19}
12+
s.date = %q{2010-07-25}
1013
s.description = %q{Use jQuery's autocomplete plugin with Rails 3.}
11-
s.email = %q{[email protected]}
12-
s.extra_rdoc_files = ["README.markdown", "lib/autocomplete.rb", "lib/generators/autocomplete_generator.rb", "lib/generators/templates/autocomplete-rails.js"]
13-
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"]
14+
s.email = %q{[email protected]}
15+
s.extra_rdoc_files = [
16+
"LICENSE",
17+
"README.markdown"
18+
]
19+
s.files = [
20+
".gitignore",
21+
"README.markdown",
22+
"Rakefile",
23+
"init.rb",
24+
"lib/autocomplete.rb",
25+
"lib/generators/autocomplete_generator.rb",
26+
"lib/generators/templates/autocomplete-rails.js",
27+
"rails3-jquery-autocomplete.gemspec",
28+
"test/autocomplete_generator_test.rb",
29+
"test/controller_module_test.rb",
30+
"test/test_helper.rb"
31+
]
1432
s.homepage = %q{http://github.com/crowdint/rails3-jquery-autocomplete}
15-
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Rails3-jquery-autocomplete", "--main", "README.markdown"]
33+
s.rdoc_options = ["--charset=UTF-8"]
1634
s.require_paths = ["lib"]
17-
s.rubyforge_project = %q{rails3-jquery-autocomplete}
1835
s.rubygems_version = %q{1.3.7}
1936
s.summary = %q{Use jQuery's autocomplete plugin with Rails 3.}
20-
s.test_files = ["test/controller_module_test.rb", "test/test_helper.rb"]
37+
s.test_files = [
38+
"test/autocomplete_generator_test.rb",
39+
"test/controller_module_test.rb",
40+
"test/test_helper.rb"
41+
]
2142

2243
if s.respond_to? :specification_version then
2344
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
@@ -29,3 +50,4 @@ Gem::Specification.new do |s|
2950
else
3051
end
3152
end
53+

test/test_helper.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
require 'rubygems'
44
gem 'rails', '>=3.0.0.beta4'
55

6+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
7+
$LOAD_PATH.unshift(File.dirname(__FILE__))
8+
69
require "active_support"
710
require "active_record"
811
require "active_model"
912
require "action_controller"
1013
require "rails/railtie"
1114

12-
ENV["RAILS_ENV"] = "test"
13-
RAILS_ROOT = "anywhere"
14-
1515
require "#{File.dirname(__FILE__)}/../init"
1616

1717
class ApplicationController < ActionController::Base; end
@@ -30,4 +30,4 @@ class ActiveSupport::TestCase
3030
setup do
3131
@routes = Autocomplete::Routes
3232
end
33-
end
33+
end

0 commit comments

Comments
 (0)