Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Nuke Jeweler and modernize

  • Loading branch information...
commit ed1f684d8a45c75b80c75540f7767b870ee20009 1 parent 1ccca98
@tarcieri authored
View
1  .gitignore
@@ -1,3 +1,4 @@
pkg
.bundle
tmp
+Gemfile.lock
View
4 .rspec
@@ -0,0 +1,4 @@
+--color
+--format documentation
+--backtrace
+--default_path spec
View
15 Gemfile
@@ -1,13 +1,4 @@
-source "http://rubygems.org"
-# Add dependencies required to use your gem here.
-# Example:
-# gem "activesupport", ">= 2.3.5"
+source :rubygems
-# Add dependencies to develop your gem here.
-# Include everything needed to run rake, tests, features, etc.
-group :development do
- gem "rspec", ">= 2.1.0"
- gem "bundler", "~> 1.0.0"
- gem "jeweler", "~> 1.5.1"
- gem "rake-compiler", "~> 0.7.5", :require => false
-end
+# Specify your gem's dependencies in iobuffer.gemspec
+gemspec
View
30 Gemfile.lock
@@ -1,30 +0,0 @@
-GEM
- remote: http://rubygems.org/
- specs:
- diff-lcs (1.1.2)
- git (1.2.5)
- jeweler (1.5.1)
- bundler (~> 1.0.0)
- git (>= 1.2.5)
- rake
- rake (0.8.7)
- rake-compiler (0.7.5)
- rake
- rspec (2.2.0)
- rspec-core (~> 2.2)
- rspec-expectations (~> 2.2)
- rspec-mocks (~> 2.2)
- rspec-core (2.2.1)
- rspec-expectations (2.2.0)
- diff-lcs (~> 1.1.2)
- rspec-mocks (2.2.0)
-
-PLATFORMS
- ruby
- x86-mingw32
-
-DEPENDENCIES
- bundler (~> 1.0.0)
- jeweler (~> 1.5.1)
- rake-compiler (~> 0.7.5)
- rspec (>= 2.1.0)
View
59 Rakefile
@@ -1,56 +1,9 @@
-require 'rubygems'
-require 'bundler'
-require 'rake/clean'
+#!/usr/bin/env rake
+require "bundler/gem_tasks"
+require "rake/clean"
-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'
+Dir[File.expand_path("../tasks/**/*.rake", __FILE__)].each { |task| load task }
-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 = "iobuffer"
- gem.homepage = "http://github.com/tarcieri/iobuffer"
- gem.license = "MIT"
- gem.summary = "Fast C-based I/O buffering"
- gem.description = "iobuffer is a fast, C-based byte queue for storing arbitrary amounts of data until it can be written to the network"
- gem.email = "tony@medioh.com"
- gem.authors = ["Tony Arcieri"]
-
- # Include your dependencies below. Runtime dependencies are required when using your gem,
- # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
- # gem.add_runtime_dependency 'jabber4r', '> 0.1'
-
- gem.add_development_dependency 'rspec', '>= 2.1.0'
- gem.add_development_dependency 'rake-compiler', '~> 0.7.5'
-end
-Jeweler::RubygemsDotOrgTasks.new
+task :default => %w(compile spec)
-require 'rspec/core'
-require 'rspec/core/rake_task'
-RSpec::Core::RakeTask.new(:spec) do |spec|
- spec.pattern = FileList['spec/**/*_spec.rb']
- spec.rspec_opts = %w(-fs -c)
-end
-
-task :default => [:compile, :spec]
-
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
-
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "iobuffer #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
-
-require 'rake/extensiontask'
-Rake::ExtensionTask.new('iobuffer') do |ext|
- ext.ext_dir = 'ext'
-end
+CLEAN.include "**/*.o", "**/*.so", "**/*.bundle", "pkg", "tmp"
View
83 iobuffer.gemspec
@@ -1,66 +1,25 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+$:.push File.expand_path('../lib', __FILE__)
+require "iobuffer/version"
-Gem::Specification.new do |s|
- s.name = %q{iobuffer}
- s.version = "1.0.0"
+Gem::Specification.new do |gem|
+ gem.name = "iobuffer"
+ gem.version = IO::Buffer::VERSION
+ gem.platform = Gem::Platform::RUBY
+ gem.summary = "fast buffers for non-blocking IO"
+ gem.description = gem.summary
+ gem.licenses = ['MIT']
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Tony Arcieri"]
- s.date = %q{2010-12-15}
- s.description = %q{iobuffer is a fast, C-based byte queue for storing arbitrary amounts of data until it can be written to the network}
- s.email = %q{tony@medioh.com}
- s.extensions = ["ext/extconf.rb"]
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- "CHANGES",
- "Gemfile",
- "Gemfile.lock",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "ext/.gitignore",
- "ext/extconf.rb",
- "ext/iobuffer.c",
- "iobuffer.gemspec",
- "lib/.gitignore",
- "spec/buffer_spec.rb"
- ]
- s.homepage = %q{http://github.com/tarcieri/iobuffer}
- s.licenses = ["MIT"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Fast C-based I/O buffering}
- s.test_files = [
- "spec/buffer_spec.rb"
- ]
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
-
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<rspec>, [">= 2.1.0"])
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
- s.add_development_dependency(%q<rspec>, [">= 2.1.0"])
- else
- s.add_dependency(%q<rspec>, [">= 2.1.0"])
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
- s.add_dependency(%q<rspec>, [">= 2.1.0"])
- end
- else
- s.add_dependency(%q<rspec>, [">= 2.1.0"])
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
- s.add_dependency(%q<rspec>, [">= 2.1.0"])
- end
-end
+ gem.authors = ['Tony Arcieri']
+ gem.email = ['tony.arcieri@gmail.com']
+ gem.homepage = 'https://github.com/tarcieri/iobuffer'
+
+ gem.required_rubygems_version = '>= 1.3.6'
+
+ gem.files = Dir['README.md', 'lib/**/*', 'ext/**/*.{c,rb}']
+ gem.require_path = 'lib'
+ gem.add_development_dependency 'rake-compiler'
+ gem.add_development_dependency 'rake'
+ gem.add_development_dependency 'rspec'
+end
View
5 lib/iobuffer/version.rb
@@ -0,0 +1,5 @@
+class IO
+ class Buffer
+ VERSION = "1.1.0"
+ end
+end
View
4 tasks/extension.rake
@@ -0,0 +1,4 @@
+require 'rake/extensiontask'
+Rake::ExtensionTask.new('iobuffer') do |ext|
+ ext.ext_dir = 'ext'
+end
View
7 tasks/rspec.rake
@@ -0,0 +1,7 @@
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new
+
+RSpec::Core::RakeTask.new(:rcov) do |task|
+ task.rcov = true
+end
Please sign in to comment.
Something went wrong with that request. Please try again.