Permalink
Browse files

Kick jeweller out 🔫

  • Loading branch information...
1 parent 772cf0e commit a299f0b34c6ba5069cf2e85b5a6b0e2e3f086393 @nikitug committed Mar 30, 2013
Showing with 19 additions and 94 deletions.
  1. +1 −9 Gemfile
  2. +3 −28 Rakefile
  3. +15 −57 xbuilder.gemspec
View
10 Gemfile
@@ -1,11 +1,3 @@
source "http://rubygems.org"
-gem "blankslate"
-gem "libxml-ruby", ">= 2.3.3"
-
-group :development do
- gem "rdoc", "~> 3.12"
- gem "bundler"
- gem "jeweler", "~> 1.8.3"
- gem "simplecov", require: false
-end
+gemspec
View
@@ -1,28 +1,5 @@
-# encoding: utf-8
-
-require 'rubygems'
-require 'bundler'
-begin
- Bundler.setup(:default, :development)
-rescue Bundler::BundlerError => e
- $stderr.puts e.message
- $stderr.puts "Run `bundle install` to install missing gems"
- exit e.status_code
-end
-require 'rake'
-
-require 'jeweler'
-Jeweler::Tasks.new do |gem|
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
- gem.name = "xbuilder"
- gem.version = "0.9"
- gem.homepage = "http://github.com/nikitug/xbuilder"
- gem.summary = %[API-compatible Builder implementation using libxml.]
- gem.email = "nikita@afanasenko.name"
- gem.authors = ["Nikita Afanasenko"]
- # dependencies defined in Gemfile
-end
-Jeweler::RubygemsDotOrgTasks.new
+require 'bundler/gem_tasks'
+require 'bundler/setup'
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
@@ -35,10 +12,8 @@ task :default => :test
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
-
rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "Xbuilder #{version}"
+ rdoc.title = 'Xbuilder'
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
View
@@ -1,66 +1,24 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
-# -*- encoding: utf-8 -*-
-
Gem::Specification.new do |s|
s.name = "xbuilder"
s.version = "0.9"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Nikita Afanasenko"]
- s.date = "2012-08-26"
- s.email = "nikita@afanasenko.name"
- s.extra_rdoc_files = [
- "README.rdoc"
- ]
- s.files = [
- "Gemfile",
- "README.rdoc",
- "Rakefile",
- "lib/xbuilder.rb",
- "lib/xbuilder_template.rb",
- "test/helper.rb",
- "test/performance.rb",
- "test/test_xbuilder.rb",
- "xbuilder.gemspec"
- ]
+ s.email = ["nikita@afanasenko.name"]
s.homepage = "http://github.com/nikitug/xbuilder"
- s.require_paths = ["lib"]
- s.rubygems_version = "1.8.15"
+
s.summary = "API-compatible Builder implementation using libxml."
- if s.respond_to? :specification_version then
- s.specification_version = 3
+ s.files = Dir["lib/**/*.rb"] + Dir["test/**/*"] + %w[Gemfile README.rdoc Rakefile]
+ s.test_files = Dir["test/**/*"]
+ s.require_paths = ["lib"]
+ s.extra_rdoc_files = ["README.rdoc"]
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<blankslate>, [">= 0"])
- s.add_runtime_dependency(%q<libxml-ruby>, [">= 2.3.3"])
- s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
- s.add_development_dependency(%q<simplecov>, [">= 0"])
- s.add_development_dependency(%q<nokogiri>, [">= 0"])
- s.add_development_dependency(%q<builder>, [">= 0"])
- else
- s.add_dependency(%q<blankslate>, [">= 0"])
- s.add_dependency(%q<libxml-ruby>, [">= 2.3.3"])
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
- s.add_dependency(%q<simplecov>, [">= 0"])
- s.add_dependency(%q<nokogiri>, [">= 0"])
- s.add_dependency(%q<builder>, [">= 0"])
- end
- else
- s.add_dependency(%q<blankslate>, [">= 0"])
- s.add_dependency(%q<libxml-ruby>, [">= 2.3.3"])
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
- s.add_dependency(%q<simplecov>, [">= 0"])
- s.add_dependency(%q<nokogiri>, [">= 0"])
- s.add_dependency(%q<builder>, [">= 0"])
- end
-end
+ s.add_runtime_dependency "blankslate"
+ s.add_runtime_dependency "libxml-ruby", ">= 2.3.3"
+ s.add_development_dependency "rdoc", "~> 3.12"
+ s.add_development_dependency "rake"
+ s.add_development_dependency "bundler"
+ s.add_development_dependency "simplecov"
+ s.add_development_dependency "nokogiri"
+ s.add_development_dependency "builder"
+end

0 comments on commit a299f0b

Please sign in to comment.