Skip to content

Commit

Permalink
get rid of jeweler, use bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
nashby committed Mar 24, 2012
1 parent 2e27d1e commit 3e14af5
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 84 deletions.
12 changes: 4 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
**/*/log/*
**/*/tmp/*
*~
coverage/*
*.sqlite3
rdoc/*
simple_form.gemspec
pkg
.bundle/
pkg/
rdoc/
gemfiles/*.lock
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source :rubygems

gemspec

gem 'rake'
gem 'rdoc'
65 changes: 65 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
PATH
remote: .
specs:
mail_form (1.3.0)
actionmailer (~> 3.0)

GEM
remote: http://rubygems.org/
specs:
actionmailer (3.2.2)
actionpack (= 3.2.2)
mail (~> 2.4.0)
actionpack (3.2.2)
activemodel (= 3.2.2)
activesupport (= 3.2.2)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.1)
rack (~> 1.4.0)
rack-cache (~> 1.1)
rack-test (~> 0.6.1)
sprockets (~> 2.1.2)
activemodel (3.2.2)
activesupport (= 3.2.2)
builder (~> 3.0.0)
activesupport (3.2.2)
i18n (~> 0.6)
multi_json (~> 1.0)
builder (3.0.0)
erubis (2.7.0)
hike (1.2.1)
i18n (0.6.0)
journey (1.0.3)
json (1.6.5)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.18)
multi_json (1.1.0)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
rack-test (0.6.1)
rack (>= 1.0)
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
sprockets (2.1.2)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)

PLATFORMS
ruby

DEPENDENCIES
mail_form!
rake
rdoc
44 changes: 15 additions & 29 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,41 +1,27 @@
# coding: utf-8
# encoding: UTF-8

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require File.join(File.dirname(__FILE__), "lib", "mail_form", "version")
require 'rdoc/task'

desc 'Default: run unit tests.'
task :default => :test

desc 'Run tests for MailForm.'
desc 'Test the mail_form plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'test'
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end

desc 'Generate documentation for MailForm.'
Rake::RDocTask.new(:rdoc) do |rdoc|
desc 'Generate documentation for the mail_form plugin.'
RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'MailForm'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('MIT-LICENSE')
rdoc.options << '--line-numbers'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end

begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "mail_form"
s.version = MailForm::VERSION
s.summary = "Send e-mail straight from forms in Rails with I18n, validations, attachments and request information."
s.email = "contact@plataformatec.com.br"
s.homepage = "http://github.com/plataformatec/mail_form"
s.description = "Send e-mail straight from forms in Rails with I18n, validations, attachments and request information."
s.authors = ['José Valim', 'Carlos Antônio']
s.files = FileList["[A-Z]*", "{lib,views}/**/*"]
end

Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install jeweler"
end
1 change: 0 additions & 1 deletion init.rb

This file was deleted.

60 changes: 14 additions & 46 deletions mail_form.gemspec
Original file line number Diff line number Diff line change
@@ -1,54 +1,22 @@
# 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 "mail_form/version"

Gem::Specification.new do |s|
s.name = %q{mail_form}
s.version = "1.3.0"
s.name = "mail_form"
s.version = MailForm::VERSION.dup
s.platform = Gem::Platform::RUBY
s.summary = "Send e-mail straight from forms in Rails with I18n, validations, attachments and request information."
s.email = "contact@plataformatec.com.br"
s.homepage = "https://github.com/plataformatec/mail_form"
s.description = "{Send e-mail straight from forms in Rails with I18n, validations, attachments and request information."
s.authors = ['José Valim', 'Carlos Antônio']

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Jos\303\251 Valim", "Carlos Ant\303\264nio"]
s.date = %q{2010-05-26}
s.description = %q{Send e-mail straight from forms in Rails with I18n, validations, attachments and request information.}
s.email = %q{contact@plataformatec.com.br}
s.extra_rdoc_files = [
"README.rdoc"
]
s.files = [
"CHANGELOG",
"MIT-LICENSE",
"README.rdoc",
"Rakefile",
"lib/generators/rails/mail_form_generator.rb",
"lib/generators/rails/templates/model.rb",
"lib/mail_form.rb",
"lib/mail_form/base.rb",
"lib/mail_form/delivery.rb",
"lib/mail_form/notifier.rb",
"lib/mail_form/shim.rb",
"lib/mail_form/version.rb",
"lib/mail_form/views/mail_form/contact.erb"
]
s.homepage = %q{http://github.com/plataformatec/mail_form}
s.rdoc_options = ["--charset=UTF-8"]
s.files = Dir["CHANGELOG", "MIT-LICENSE", "README.rdoc", "lib/**/*"]
s.test_files = Dir["test/**/*"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.6}
s.summary = %q{Send e-mail straight from forms in Rails with I18n, validations, attachments and request information.}
s.test_files = [
"test/mail_form_test.rb",
"test/resource_test.rb",
"test/test_helper.rb"
]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
s.rubyforge_project = "mail_form"

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
else
end
else
end
s.add_dependency('actionmailer', '~> 3.0')
end

0 comments on commit 3e14af5

Please sign in to comment.