Skip to content
Browse files

get rid of jeweler

  • Loading branch information...
1 parent 155c223 commit 4d243c164458e3a02fee3693a929b84db174f3db @rramsden committed Mar 8, 2012
Showing with 55 additions and 65 deletions.
  1. +5 −11 Gemfile
  2. +22 −0 Gemfile.lock
  3. +1 −53 Rakefile
  4. +0 −1 lib/X11.rb
  5. +3 −0 lib/X11/version.rb
  6. +24 −0 ruby-x11.gemspec
View
16 Gemfile
@@ -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'
View
22 Gemfile.lock
@@ -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
54 Rakefile
@@ -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
1 lib/X11.rb
@@ -1,4 +1,3 @@
-require 'rubygems'
require 'socket'
require 'active_support'
require 'hexdump'
View
3 lib/X11/version.rb
@@ -0,0 +1,3 @@
+module X11
+ VERSION = "0.0.1"
+end
View
24 ruby-x11.gemspec
@@ -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

0 comments on commit 4d243c1

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