Skip to content
This repository
Browse code

get rid of jeweler, use bundler

  • Loading branch information...
commit 3e14af55f09ca2834bff4f662d87e5f2e495024c 1 parent 2e27d1e
Vasiliy Ermolovich authored March 24, 2012
12  .gitignore
... ...
@@ -1,8 +1,4 @@
1  
-**/*/log/*
2  
-**/*/tmp/*
3  
-*~
4  
-coverage/*
5  
-*.sqlite3
6  
-rdoc/*
7  
-simple_form.gemspec
8  
-pkg
  1
+.bundle/
  2
+pkg/
  3
+rdoc/
  4
+gemfiles/*.lock
6  Gemfile
... ...
@@ -0,0 +1,6 @@
  1
+source :rubygems
  2
+
  3
+gemspec
  4
+
  5
+gem 'rake'
  6
+gem 'rdoc'
65  Gemfile.lock
... ...
@@ -0,0 +1,65 @@
  1
+PATH
  2
+  remote: .
  3
+  specs:
  4
+    mail_form (1.3.0)
  5
+      actionmailer (~> 3.0)
  6
+
  7
+GEM
  8
+  remote: http://rubygems.org/
  9
+  specs:
  10
+    actionmailer (3.2.2)
  11
+      actionpack (= 3.2.2)
  12
+      mail (~> 2.4.0)
  13
+    actionpack (3.2.2)
  14
+      activemodel (= 3.2.2)
  15
+      activesupport (= 3.2.2)
  16
+      builder (~> 3.0.0)
  17
+      erubis (~> 2.7.0)
  18
+      journey (~> 1.0.1)
  19
+      rack (~> 1.4.0)
  20
+      rack-cache (~> 1.1)
  21
+      rack-test (~> 0.6.1)
  22
+      sprockets (~> 2.1.2)
  23
+    activemodel (3.2.2)
  24
+      activesupport (= 3.2.2)
  25
+      builder (~> 3.0.0)
  26
+    activesupport (3.2.2)
  27
+      i18n (~> 0.6)
  28
+      multi_json (~> 1.0)
  29
+    builder (3.0.0)
  30
+    erubis (2.7.0)
  31
+    hike (1.2.1)
  32
+    i18n (0.6.0)
  33
+    journey (1.0.3)
  34
+    json (1.6.5)
  35
+    mail (2.4.4)
  36
+      i18n (>= 0.4.0)
  37
+      mime-types (~> 1.16)
  38
+      treetop (~> 1.4.8)
  39
+    mime-types (1.18)
  40
+    multi_json (1.1.0)
  41
+    polyglot (0.3.3)
  42
+    rack (1.4.1)
  43
+    rack-cache (1.2)
  44
+      rack (>= 0.4)
  45
+    rack-test (0.6.1)
  46
+      rack (>= 1.0)
  47
+    rake (0.9.2.2)
  48
+    rdoc (3.12)
  49
+      json (~> 1.4)
  50
+    sprockets (2.1.2)
  51
+      hike (~> 1.2)
  52
+      rack (~> 1.0)
  53
+      tilt (~> 1.1, != 1.3.0)
  54
+    tilt (1.3.3)
  55
+    treetop (1.4.10)
  56
+      polyglot
  57
+      polyglot (>= 0.3.1)
  58
+
  59
+PLATFORMS
  60
+  ruby
  61
+
  62
+DEPENDENCIES
  63
+  mail_form!
  64
+  rake
  65
+  rdoc
44  Rakefile
... ...
@@ -1,41 +1,27 @@
1  
-# coding: utf-8
  1
+# encoding: UTF-8
  2
+
  3
+require 'bundler'
  4
+Bundler::GemHelper.install_tasks
2 5
 
3  
-require 'rake'
4 6
 require 'rake/testtask'
5  
-require 'rake/rdoctask'
6  
-require File.join(File.dirname(__FILE__), "lib", "mail_form", "version")
  7
+require 'rdoc/task'
  8
+
  9
+desc 'Default: run unit tests.'
  10
+task :default => :test
7 11
 
8  
-desc 'Run tests for MailForm.'
  12
+desc 'Test the mail_form plugin.'
9 13
 Rake::TestTask.new(:test) do |t|
10  
-  t.libs   << 'test'
  14
+  t.libs << 'lib'
  15
+  t.libs << 'test'
11 16
   t.pattern = 'test/**/*_test.rb'
12 17
   t.verbose = true
13 18
 end
14 19
 
15  
-desc 'Generate documentation for MailForm.'
16  
-Rake::RDocTask.new(:rdoc) do |rdoc|
  20
+desc 'Generate documentation for the mail_form plugin.'
  21
+RDoc::Task.new(:rdoc) do |rdoc|
17 22
   rdoc.rdoc_dir = 'rdoc'
18 23
   rdoc.title    = 'MailForm'
19  
-  rdoc.options << '--line-numbers' << '--inline-source'
20  
-  rdoc.rdoc_files.include('README')
21  
-  rdoc.rdoc_files.include('MIT-LICENSE')
  24
+  rdoc.options << '--line-numbers'
  25
+  rdoc.rdoc_files.include('README.rdoc')
22 26
   rdoc.rdoc_files.include('lib/**/*.rb')
23 27
 end
24  
-
25  
-begin
26  
-  require 'jeweler'
27  
-  Jeweler::Tasks.new do |s|
28  
-    s.name = "mail_form"
29  
-    s.version = MailForm::VERSION
30  
-    s.summary = "Send e-mail straight from forms in Rails with I18n, validations, attachments and request information."
31  
-    s.email = "contact@plataformatec.com.br"
32  
-    s.homepage = "http://github.com/plataformatec/mail_form"
33  
-    s.description = "Send e-mail straight from forms in Rails with I18n, validations, attachments and request information."
34  
-    s.authors = ['José Valim', 'Carlos Antônio']
35  
-    s.files =  FileList["[A-Z]*", "{lib,views}/**/*"]
36  
-  end
37  
-
38  
-  Jeweler::GemcutterTasks.new
39  
-rescue LoadError
40  
-  puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install jeweler"
41  
-end
1  init.rb
... ...
@@ -1 +0,0 @@
1  
-require 'mail_form'
60  mail_form.gemspec
... ...
@@ -1,54 +1,22 @@
1  
-# Generated by jeweler
2  
-# DO NOT EDIT THIS FILE DIRECTLY
3  
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4 1
 # -*- encoding: utf-8 -*-
  2
+$:.push File.expand_path("../lib", __FILE__)
  3
+require "mail_form/version"
5 4
 
6 5
 Gem::Specification.new do |s|
7  
-  s.name = %q{mail_form}
8  
-  s.version = "1.3.0"
  6
+  s.name        = "mail_form"
  7
+  s.version     = MailForm::VERSION.dup
  8
+  s.platform    = Gem::Platform::RUBY
  9
+  s.summary     = "Send e-mail straight from forms in Rails with I18n, validations, attachments and request information."
  10
+  s.email       = "contact@plataformatec.com.br"
  11
+  s.homepage    = "https://github.com/plataformatec/mail_form"
  12
+  s.description = "{Send e-mail straight from forms in Rails with I18n, validations, attachments and request information."
  13
+  s.authors     = ['José Valim', 'Carlos Antônio']
9 14
 
10  
-  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11  
-  s.authors = ["Jos\303\251 Valim", "Carlos Ant\303\264nio"]
12  
-  s.date = %q{2010-05-26}
13  
-  s.description = %q{Send e-mail straight from forms in Rails with I18n, validations, attachments and request information.}
14  
-  s.email = %q{contact@plataformatec.com.br}
15  
-  s.extra_rdoc_files = [
16  
-    "README.rdoc"
17  
-  ]
18  
-  s.files = [
19  
-    "CHANGELOG",
20  
-     "MIT-LICENSE",
21  
-     "README.rdoc",
22  
-     "Rakefile",
23  
-     "lib/generators/rails/mail_form_generator.rb",
24  
-     "lib/generators/rails/templates/model.rb",
25  
-     "lib/mail_form.rb",
26  
-     "lib/mail_form/base.rb",
27  
-     "lib/mail_form/delivery.rb",
28  
-     "lib/mail_form/notifier.rb",
29  
-     "lib/mail_form/shim.rb",
30  
-     "lib/mail_form/version.rb",
31  
-     "lib/mail_form/views/mail_form/contact.erb"
32  
-  ]
33  
-  s.homepage = %q{http://github.com/plataformatec/mail_form}
34  
-  s.rdoc_options = ["--charset=UTF-8"]
  15
+  s.files         = Dir["CHANGELOG", "MIT-LICENSE", "README.rdoc", "lib/**/*"]
  16
+  s.test_files    = Dir["test/**/*"]
35 17
   s.require_paths = ["lib"]
36  
-  s.rubygems_version = %q{1.3.6}
37  
-  s.summary = %q{Send e-mail straight from forms in Rails with I18n, validations, attachments and request information.}
38  
-  s.test_files = [
39  
-    "test/mail_form_test.rb",
40  
-     "test/resource_test.rb",
41  
-     "test/test_helper.rb"
42  
-  ]
43 18
 
44  
-  if s.respond_to? :specification_version then
45  
-    current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
46  
-    s.specification_version = 3
  19
+  s.rubyforge_project = "mail_form"
47 20
 
48  
-    if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
49  
-    else
50  
-    end
51  
-  else
52  
-  end
  21
+  s.add_dependency('actionmailer', '~> 3.0')
53 22
 end
54  
-

0 notes on commit 3e14af5

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