Permalink
Browse files

Migrating to non-Jeweler / raw gemspec

Per Yehuda Katz and the Bundler maintainers, there's no need to use
external tools (like Jeweler) to keep up a gemspec.

http://yehudakatz.com/2010/04/02/using-gemspecs-as-intended/
  • Loading branch information...
1 parent d57d012 commit acb17096cbf78ddf392dca5886ab0ec7d0b97182 @jgdavey committed Apr 12, 2010
Showing with 36 additions and 71 deletions.
  1. +3 −0 CHANGELOG.rdoc
  2. +1 −1 LICENSE
  3. +11 −25 Rakefile
  4. +0 −1 VERSION
  5. +3 −0 lib/tabletastic/version.rb
  6. +18 −44 tabletastic.gemspec
View
@@ -1,3 +1,6 @@
+Git
+* Updating to Rails3 API and idioms
+
v0.1.3 (Dec 28, 2009)
* Changing destroy action to have confirmation by default
View
@@ -1,4 +1,4 @@
-Copyright (c) 2009 Joshua Davey
+Copyright (c) 2010 Joshua Davey
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
View
@@ -1,29 +1,15 @@
-require 'rubygems'
-require 'rake'
-#
-# GEM = "tabletastic"
-# LONGDESCRIPTION = %Q{A table builder for active record collections \
-# that produces semantically rich and accessible markup}
-#
-# begin
-# require 'jeweler'
-# Jeweler::Tasks.new do |s|
-# s.name = GEM
-# s.summary = %Q{A smarter table builder for Rails collections}
-# s.description = LONGDESCRIPTION
-# s.email = "josh@joshuadavey.com"
-# s.homepage = "http://github.com/jgdavey/tabletastic"
-# s.authors = ["Joshua Davey"]
-# s.require_path = 'lib'
-#
-# s.add_development_dependency "rspec", ">= 1.2.9"
-# # 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: sudo gem install jeweler"
-# end
+$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
+require "tabletastic/version"
+task :build do
+ system "gem build tabletastic.gemspec"
+end
+
+task :release => :build do
+ system "gem push bundler-#{Tabletastic::VERSION}"
+end
+
+# == RSpec
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
View
@@ -1 +0,0 @@
-0.1.3
@@ -0,0 +1,3 @@
+module Tabletastic
+ VERSION = "0.2.0.pre"
+end
View
@@ -2,56 +2,30 @@
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
+lib = File.expand_path('../lib/', __FILE__)
+$:.unshift lib unless $:.include?(lib)
+
+require 'tabletastic/version'
Gem::Specification.new do |s|
- s.name = %q{tabletastic}
- s.version = "0.1.3"
+ s.name = 'tabletastic'
+ s.version = Tabletastic::VERSION
+ s.platform = Gem::Platform::RUBY
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Joshua Davey"]
- s.date = %q{2009-12-28}
+ s.email = 'josh@joshuadavey.com'
+ s.homepage = 'http://github.com/jgdavey/tabletastic'
+ s.date = '2010-04-10'
+
+ s.summary = 'A smarter table builder for Rails collections'
s.description = %q{A table builder for active record collections that produces semantically rich and accessible markup}
- s.email = %q{josh@joshuadavey.com}
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- ".document",
- ".gitignore",
- "CHANGELOG.rdoc",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "lib/tabletastic.rb",
- "rails/init.rb",
- "spec/spec.opts",
- "spec/spec_helper.rb",
- "spec/tabletastic_spec.rb",
- "tabletastic.gemspec"
- ]
- s.homepage = %q{http://github.com/jgdavey/tabletastic}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.5}
- s.summary = %q{A smarter table builder for Rails collections}
- s.test_files = [
- "spec/spec_helper.rb",
- "spec/tabletastic_spec.rb"
- ]
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ s.extra_rdoc_files = ["README.rdoc", "LICENSE"]
+ s.files = Dir.glob("{bin,lib}/**/*") + %w(LICENSE README.rdoc CHANGELOG.rdoc)
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
- else
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
- end
- else
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
- end
+ s.require_path = 'lib'
+ s.required_rubygems_version = ">= 1.3.5"
+ s.test_files = ["spec/spec_helper.rb","spec/tabletastic_spec.rb"]
+ s.add_development_dependency "rspec"
end

0 comments on commit acb1709

Please sign in to comment.