get rid of jeweler

This commit is contained in:
Richard Ramsden 2012-03-08 21:51:31 -08:00
parent 155c223e40
commit 4d243c1644
6 changed files with 55 additions and 65 deletions

16
Gemfile
View file

@ -1,13 +1,7 @@
source "http://rubygems.org"
# Add dependencies required to use your gem here.
# Example:
# gem "activesupport", ">= 2.3.5"
# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
gem "shoulda", ">= 0"
gem "bundler", "~> 1.0.0"
gem "jeweler", "~> 1.6.4"
gem "rcov", ">= 0"
end
gemspec
gem 'rake'
gem 'active_support'
gem 'hexdump'

22
Gemfile.lock Normal file
View file

@ -0,0 +1,22 @@
PATH
remote: .
specs:
ruby-x11 (0.0.1)
GEM
remote: http://rubygems.org/
specs:
active_support (3.0.0)
activesupport (= 3.0.0)
activesupport (3.0.0)
hexdump (0.2.1)
rake (0.9.2.2)
PLATFORMS
ruby
DEPENDENCIES
active_support
hexdump
rake
ruby-x11!

View file

@ -1,53 +1 @@
# 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 = "X11"
gem.homepage = "http://github.com/rramsden/ruby-x11"
gem.license = "MIT"
gem.summary = %Q{Pure Ruby implementation of X Window System Protocol}
gem.description = %Q{TODO: longer description of your gem}
gem.email = "richard@rramsden.ca"
gem.authors = ["Richard Ramsden"]
# dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
test.rcov_opts << '--exclude "gems/*"'
end
task :default => :test
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "X11 #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
require "bundler/gem_tasks"

View file

@ -1,4 +1,3 @@
require 'rubygems'
require 'socket'
require 'active_support'
require 'hexdump'

3
lib/X11/version.rb Normal file
View file

@ -0,0 +1,3 @@
module X11
VERSION = "0.0.1"
end

24
ruby-x11.gemspec Normal file
View file

@ -0,0 +1,24 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "X11/version"
Gem::Specification.new do |s|
s.name = "ruby-x11"
s.version = X11::VERSION
s.authors = ["Richard Ramsden"]
s.email = ["richard@rramsden.ca"]
s.homepage = ""
s.summary = %q{TODO: Write a gem summary}
s.description = %q{TODO: Write a gem description}
s.rubyforge_project = "ruby-x11"
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