Permalink
Browse files

Use bundler to build up the gem.

  • Loading branch information...
1 parent 861e57b commit 913ebece8cd40e5679aaf70d996237cd10ae6132 @pupeno pupeno committed Jan 16, 2012
Showing with 79 additions and 40 deletions.
  1. +4 −0 .gitignore
  2. +4 −0 Gemfile
  3. +41 −37 Rakefile
  4. +3 −2 lib/table_builder.rb
  5. +3 −0 lib/table_builder/version.rb
  6. +24 −0 table_builder.gemspec
  7. +0 −1 uninstall.rb
View
@@ -0,0 +1,4 @@
+*.gem
+.bundle
+Gemfile.lock
+pkg/*
View
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in table_builder.gemspec
+gemspec
View
@@ -1,38 +1,42 @@
-require 'rake'
-require 'rake/testtask'
-require 'rake/rdoctask'
+require "bundler/gem_tasks"
-desc 'Default: run unit tests.'
-task :default => :test
-
-desc 'Test the table_builder plugin.'
-Rake::TestTask.new(:test) do |t|
- t.libs << 'lib'
- t.pattern = 'test/**/*_test.rb'
- t.verbose = true
-end
-
-desc 'Generate documentation for the table_builder plugin.'
-Rake::RDocTask.new(:rdoc) do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'TableBuilder'
- rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.rdoc_files.include('README')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "table_builder"
- gem.summary = %Q{Rails builder for creating tables and calendars inspired by ActionView's FormBuilder.}
- gem.description = %Q{Rails builder for creating tables and calendars inspired by ActionView's FormBuilder.}
- gem.email = ""
- gem.homepage = "http://github.com/maca/table_builder"
- gem.authors = ["Petrik de Heus"]
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
-end
+# require 'rake'
+# require 'rake/testtask'
+# require 'rake/rdoctask'
+#
+# desc 'Default: run unit tests.'
+# task :default => :test
+#
+# desc 'Test the table_builder plugin.'
+# Rake::TestTask.new(:test) do |t|
+# t.libs << 'lib'
+# t.pattern = 'test/**/*_test.rb'
+# t.verbose = true
+# end
+#
+# desc 'Generate documentation for the table_builder plugin.'
+# Rake::RDocTask.new(:rdoc) do |rdoc|
+# rdoc.rdoc_dir = 'rdoc'
+# rdoc.title = 'TableBuilder'
+# rdoc.options << '--line-numbers' << '--inline-source'
+# rdoc.rdoc_files.include('README')
+# rdoc.rdoc_files.include('lib/**/*.rb')
+# end
+#
+# require "bundler/gem_tasks"
+#
+# begin
+# require 'jeweler'
+# Jeweler::Tasks.new do |gem|
+# gem.name = "table_builder"
+# gem.summary = %Q{Rails builder for creating tables and calendars inspired by ActionView's FormBuilder.}
+# gem.description = %Q{Rails builder for creating tables and calendars inspired by ActionView's FormBuilder.}
+# gem.email = ""
+# gem.homepage = "http://github.com/maca/table_builder"
+# gem.authors = ["Petrik de Heus"]
+# # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
+# end
+# Jeweler::GemcutterTasks.new
+# rescue LoadError
+# puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
+# end
View
@@ -1,5 +1,6 @@
-require(File.expand_path(File.join(File.dirname(__FILE__), 'table_builder', 'table_builder.rb')))
-require(File.expand_path(File.join(File.dirname(__FILE__), 'table_builder', 'calendar_helper.rb')))
+require "table_builder/table_builder.rb"
+require "table_builder/calendar_helper.rb"
+require "table_builder/version.rb"
ActionView::Base.send :include, TableHelper
ActionView::Base.send :include, CalendarHelper
@@ -0,0 +1,3 @@
+module TableBuilder
+ VERSION = "0.0.1"
+end
View
@@ -0,0 +1,24 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "table_builder/version"
+
+Gem::Specification.new do |s|
+ s.name = "table_builder"
+ s.version = TableBuilder::VERSION
+ s.authors = ["Petrik de Heus"]
+ s.email = ["pupeno@watuhq.com"]
+ s.homepage = ""
+ s.summary = %q{Rails builder for creating tables and calendars inspired by ActionView's FormBuilder.}
+ s.description = %q{Rails builder for creating tables and calendars inspired by ActionView's FormBuilder.}
+
+ s.rubyforge_project = "table_builder"
+
+ 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"]
+
+ # specify any dependencies here; for example:
+ # s.add_development_dependency "rspec"
+ # s.add_runtime_dependency "rest-client"
+end
View
@@ -1 +0,0 @@
-# Uninstall hook code here

0 comments on commit 913ebec

Please sign in to comment.