Skip to content

Commit

Permalink
Goodbye jeweler
Browse files Browse the repository at this point in the history
  • Loading branch information
David Padilla committed Dec 9, 2010
1 parent 3ccdefe commit 1c9b303
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 190 deletions.
28 changes: 16 additions & 12 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# A sample Gemfile
source :gemcutter
#A sample Gemfile
#source :gemcutter

#gem 'rails', '~>3.0.0'
#gem 'sqlite3-ruby'
#gem 'jeweler'
#gem 'reek'
#gem 'mongoid', '>= 2.0.0.beta.17'
#gem 'formtastic'

#group :test do
#gem 'shoulda', '2.11.1'
#gem 'redgreen'
#end
#
gem 'rails', '3.0.0'
gem 'sqlite3-ruby'
gem 'jeweler'
gem 'reek'
gem 'mongoid', '>= 2.0.0.beta.17'
gem 'formtastic'
source "http://rubygems.org"

group :test do
gem 'shoulda', '2.11.1'
gem 'redgreen'
end
gemspec
132 changes: 57 additions & 75 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,62 +1,57 @@
PATH
remote: .
specs:
rails3-jquery-autocomplete (0.6.0)
rails (~> 3.0.0)

GEM
remote: http://rubygems.org/
specs:
abstract (1.0.0)
actionmailer (3.0.0)
actionpack (= 3.0.0)
mail (~> 2.2.5)
actionpack (3.0.0)
activemodel (= 3.0.0)
activesupport (= 3.0.0)
actionmailer (3.0.3)
actionpack (= 3.0.3)
mail (~> 2.2.9)
actionpack (3.0.3)
activemodel (= 3.0.3)
activesupport (= 3.0.3)
builder (~> 2.1.2)
erubis (~> 2.6.6)
i18n (~> 0.4.1)
i18n (~> 0.4)
rack (~> 1.2.1)
rack-mount (~> 0.6.12)
rack-test (~> 0.5.4)
rack-mount (~> 0.6.13)
rack-test (~> 0.5.6)
tzinfo (~> 0.3.23)
activemodel (3.0.0)
activesupport (= 3.0.0)
activemodel (3.0.3)
activesupport (= 3.0.3)
builder (~> 2.1.2)
i18n (~> 0.4.1)
activerecord (3.0.0)
activemodel (= 3.0.0)
activesupport (= 3.0.0)
arel (~> 1.0.0)
i18n (~> 0.4)
activerecord (3.0.3)
activemodel (= 3.0.3)
activesupport (= 3.0.3)
arel (~> 2.0.2)
tzinfo (~> 0.3.23)
activeresource (3.0.0)
activemodel (= 3.0.0)
activesupport (= 3.0.0)
activesupport (3.0.0)
arel (1.0.1)
activesupport (~> 3.0.0)
bson (1.1.1)
activeresource (3.0.3)
activemodel (= 3.0.3)
activesupport (= 3.0.3)
activesupport (3.0.3)
arel (2.0.6)
bson (1.1.4)
builder (2.1.2)
erubis (2.6.6)
abstract (>= 1.0.0)
formtastic (1.1.0)
actionpack (>= 2.3.0)
activesupport (>= 2.3.0)
i18n (>= 0.4.0)
gemcutter (0.6.1)
git (1.2.5)
i18n (0.4.1)
jeweler (1.4.0)
gemcutter (>= 0.1.0)
git (>= 1.2.5)
rubyforge (>= 2.0.0)
json_pure (1.4.6)
mail (2.2.9)
i18n (0.5.0)
json (1.4.6)
mail (2.2.12)
activesupport (>= 2.3.6)
i18n (~> 0.4.1)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.16)
mongo (1.0.9)
bson (>= 1.0.5)
mongoid (2.0.0.beta.19)
mongo (1.1.4)
bson (>= 1.1.1)
mongoid (2.0.0.beta.20)
activemodel (~> 3.0)
mongo (= 1.0.9)
mongo (~> 1.1)
tzinfo (~> 0.3.22)
will_paginate (~> 3.0.pre)
polyglot (0.3.1)
Expand All @@ -65,37 +60,25 @@ GEM
rack (>= 1.0.0)
rack-test (0.5.6)
rack (>= 1.0)
rails (3.0.0)
actionmailer (= 3.0.0)
actionpack (= 3.0.0)
activerecord (= 3.0.0)
activeresource (= 3.0.0)
activesupport (= 3.0.0)
bundler (~> 1.0.0)
railties (= 3.0.0)
railties (3.0.0)
actionpack (= 3.0.0)
activesupport (= 3.0.0)
rake (>= 0.8.4)
thor (~> 0.14.0)
rails (3.0.3)
actionmailer (= 3.0.3)
actionpack (= 3.0.3)
activerecord (= 3.0.3)
activeresource (= 3.0.3)
activesupport (= 3.0.3)
bundler (~> 1.0)
railties (= 3.0.3)
railties (3.0.3)
actionpack (= 3.0.3)
activesupport (= 3.0.3)
rake (>= 0.8.7)
thor (~> 0.14.4)
rake (0.8.7)
redgreen (1.2.2)
reek (1.2.8)
ruby2ruby (~> 1.2)
ruby_parser (~> 2.0)
sexp_processor (~> 3.0)
ruby2ruby (1.2.5)
ruby_parser (~> 2.0)
sexp_processor (~> 3.0)
ruby_parser (2.0.5)
sexp_processor (~> 3.0)
rubyforge (2.0.4)
json_pure (>= 1.1.7)
sexp_processor (3.0.5)
shoulda (2.11.1)
sqlite3-ruby (1.3.1)
thor (0.14.3)
treetop (1.4.8)
shoulda (2.11.3)
sqlite3-ruby (1.3.2)
thor (0.14.6)
treetop (1.4.9)
polyglot (>= 0.3.1)
tzinfo (0.3.23)
will_paginate (3.0.pre2)
Expand All @@ -104,11 +87,10 @@ PLATFORMS
ruby

DEPENDENCIES
formtastic
jeweler
json
mongoid (>= 2.0.0.beta.17)
rails (= 3.0.0)
rails (~> 3.0.0)
rails3-jquery-autocomplete!
redgreen
reek
shoulda (= 2.11.1)
shoulda (~> 2.11.1)
sqlite3-ruby
49 changes: 2 additions & 47 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,54 +1,9 @@
require 'rubygems'
require 'rake'

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 "rails", ">= 3.0.0"
gem.files = %w(README.markdown Rakefile) + Dir.glob("{lib,test}/**/*")

end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
require 'bundler'
Bundler::GemHelper.install_tasks

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
3 changes: 3 additions & 0 deletions lib/rails3-jquery-autocomplete/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Rails3JQueryAutocomplete
VERSION = '0.6.0'
end
72 changes: 16 additions & 56 deletions rails3-jquery-autocomplete.gemspec
Original file line number Diff line number Diff line change
@@ -1,68 +1,28 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "rails3-jquery-autocomplete/version"

Gem::Specification.new do |s|
s.name = %q{rails3-jquery-autocomplete}
s.version = "0.6.0"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.version = Rails3JQueryAutocomplete::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["David Padilla"]
s.date = %q{2010-12-05}
s.description = %q{Use jQuery's autocomplete plugin with Rails 3.}
s.email = %q{david.padilla@crowdint.com}
s.extra_rdoc_files = [
"LICENSE",
"README.markdown"
]
s.files = [
"README.markdown",
"Rakefile",
"lib/cucumber/autocomplete.rb",
"lib/generators/autocomplete_generator.rb",
"lib/generators/templates/autocomplete-rails.js",
"lib/rails3-jquery-autocomplete.rb",
"lib/rails3-jquery-autocomplete/autocomplete.rb",
"lib/rails3-jquery-autocomplete/form_helper.rb",
"lib/rails3-jquery-autocomplete/formtastic_plugin.rb",
"lib/rails3-jquery-autocomplete/helpers.rb",
"test/form_helper_test.rb",
"test/generators/generator_test.rb",
"test/helpers.rb",
"test/implementations_test.rb",
"test/support/active_record.rb",
"test/support/mongoid.rb",
"test/test_controller.rb",
"test/test_helper.rb"
]
s.homepage = %q{http://github.com/crowdint/rails3-jquery-autocomplete}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
s.summary = %q{Use jQuery's autocomplete plugin with Rails 3.}
s.test_files = [
"test/form_helper_test.rb",
"test/generators/generator_test.rb",
"test/helpers.rb",
"test/implementations_test.rb",
"test/support/active_record.rb",
"test/support/mongoid.rb",
"test/test_controller.rb",
"test/test_helper.rb"
]
s.description = %q{Use jQuery's autocomplete plugin with Rails 3.}

s.add_dependency('rails', '~>3.0.0')

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
s.add_development_dependency('sqlite3-ruby')
s.add_development_dependency('mongoid', '>= 2.0.0.beta.17')
s.add_development_dependency('redgreen')
s.add_development_dependency('shoulda', '~>2.11.1')
s.add_development_dependency('json')

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_development_dependency(%q<rails>, [">= 3.0.0"])
else
s.add_dependency(%q<rails>, [">= 3.0.0"])
end
else
s.add_dependency(%q<rails>, [">= 3.0.0"])
end
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
end

0 comments on commit 1c9b303

Please sign in to comment.