Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Switch from Jeweler to Bundler and modernize

  • Loading branch information...
commit 9ee4989b187f07da240d9c6bc1676ce2ea51e3ea 1 parent 29a1f68
@tarcieri authored
View
3  .rspec
@@ -0,0 +1,3 @@
+--color
+--format documentation
+--backtrace
View
4 Gemfile
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in cool.io.gemspec
+gemspec
View
30 Gemfile.lock
@@ -0,0 +1,30 @@
+PATH
+ remote: .
+ specs:
+ cool.io (1.1.0)
+ iobuffer (>= 1.0.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ diff-lcs (1.1.2)
+ iobuffer (1.0.0)
+ rake (0.9.2)
+ rake-compiler (0.7.9)
+ rake
+ rspec (2.6.0)
+ rspec-core (~> 2.6.0)
+ rspec-expectations (~> 2.6.0)
+ rspec-mocks (~> 2.6.0)
+ rspec-core (2.6.4)
+ rspec-expectations (2.6.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.6.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ cool.io!
+ rake-compiler (~> 0.7.9)
+ rspec (>= 2.6.0)
View
41 Rakefile
@@ -1,42 +1,14 @@
-require 'rubygems'
-require 'rake'
+require 'bundler/gem_tasks'
require 'rake/clean'
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "cool.io"
- gem.summary = "The cool event framework for Ruby"
- gem.description = "A Ruby wrapper around the libev high performance event library"
- gem.email = "tony@medioh.com"
- gem.homepage = "http://github.com/tarcieri/cool.io"
- gem.authors = ["Tony Arcieri"]
- gem.add_dependency "iobuffer", ">= 0.1.3"
- gem.add_development_dependency "rspec", ">= 2.1.0"
- gem.add_development_dependency "rake-compiler", "~> 0.7.5"
- gem.extensions = FileList["ext/**/extconf.rb"].to_a
-
- # 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: gem install jeweler"
-end
-
require 'rspec/core/rake_task'
-RSpec::Core::RakeTask.new(:spec) do |spec|
- spec.pattern = 'spec/**/*_spec.rb'
- spec.rspec_opts = %w[-fs -c -b]
-end
+RSpec::Core::RakeTask.new
-RSpec::Core::RakeTask.new(:rcov) do |spec|
- spec.pattern = 'spec/**/*_spec.rb'
- spec.rcov = true
- spec.rspec_opts = %w[-fs -c -b]
+RSpec::Core::RakeTask.new(:rcov) do |task|
+ task.rcov = true
end
task :default => %w(compile spec)
-task :spec => :check_dependencies
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
@@ -77,7 +49,7 @@ def specs_command
-e '%w[#{files.join(' ')}].each { |f| require f }'"
end
-namespace :test do
+namespace :spec do
desc "run specs with valgrind"
task :valgrind => :compile do
system "valgrind --num-callers=15 \
@@ -85,5 +57,4 @@ namespace :test do
--tool=memcheck --leak-check=yes --track-fds=yes \
--show-reachable=yes #{specs_command}"
end
-end
-
+end
View
1  VERSION
@@ -1 +0,0 @@
-1.0.1
View
157 cool.io.gemspec
@@ -1,138 +1,29 @@
-# 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 "cool.io/version"
-Gem::Specification.new do |s|
- s.name = %q{cool.io}
- s.version = "1.0.0"
+module Cool
+ # Allow Coolio module to be referenced as Cool.io
+ def self.io; Coolio; end
+end
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Tony Arcieri"]
- s.date = %q{2010-12-13}
- s.description = %q{A Ruby wrapper around the libev high performance event library}
- s.email = %q{tony@medioh.com}
+Gem::Specification.new do |s|
+ s.name = "cool.io"
+ s.version = Coolio::VERSION
+ s.authors = ["Tony Arcieri"]
+ s.email = ["tony.arcieri@gmail.com"]
+ s.homepage = "http://coolio.github.com"
+ s.summary = "A cool framework for doing high performance I/O in Ruby"
+ s.description = "Cool.io provides a high performance event framework for Ruby which uses the libev C library"
s.extensions = ["ext/cool.io/extconf.rb", "ext/http11_client/extconf.rb"]
- s.extra_rdoc_files = [
- "LICENSE",
- "README.markdown"
- ]
- s.files = [
- "CHANGES",
- "LICENSE",
- "README.markdown",
- "Rakefile",
- "VERSION",
- "cool.io.gemspec",
- "examples/dslified_echo_client.rb",
- "examples/dslified_echo_server.rb",
- "examples/echo_client.rb",
- "examples/echo_server.rb",
- "examples/google.rb",
- "examples/httpclient.rb",
- "ext/cool.io/.gitignore",
- "ext/cool.io/cool.io.h",
- "ext/cool.io/cool.io_ext.c",
- "ext/cool.io/ev_wrap.h",
- "ext/cool.io/extconf.rb",
- "ext/cool.io/iowatcher.c",
- "ext/cool.io/libev.c",
- "ext/cool.io/loop.c",
- "ext/cool.io/stat_watcher.c",
- "ext/cool.io/timer_watcher.c",
- "ext/cool.io/utils.c",
- "ext/cool.io/watcher.c",
- "ext/cool.io/watcher.h",
- "ext/http11_client/.gitignore",
- "ext/http11_client/LICENSE",
- "ext/http11_client/ext_help.h",
- "ext/http11_client/extconf.rb",
- "ext/http11_client/http11_client.c",
- "ext/http11_client/http11_parser.c",
- "ext/http11_client/http11_parser.h",
- "ext/http11_client/http11_parser.rl",
- "ext/libev/Changes",
- "ext/libev/LICENSE",
- "ext/libev/README",
- "ext/libev/README.embed",
- "ext/libev/ev.c",
- "ext/libev/ev.h",
- "ext/libev/ev_epoll.c",
- "ext/libev/ev_kqueue.c",
- "ext/libev/ev_poll.c",
- "ext/libev/ev_port.c",
- "ext/libev/ev_select.c",
- "ext/libev/ev_vars.h",
- "ext/libev/ev_win32.c",
- "ext/libev/ev_wrap.h",
- "ext/libev/test_libev_win32.c",
- "lib/.gitignore",
- "lib/cool.io.rb",
- "lib/cool.io/async_watcher.rb",
- "lib/cool.io/dns_resolver.rb",
- "lib/cool.io/dsl.rb",
- "lib/cool.io/eventmachine.rb",
- "lib/cool.io/http_client.rb",
- "lib/cool.io/io.rb",
- "lib/cool.io/iowatcher.rb",
- "lib/cool.io/listener.rb",
- "lib/cool.io/loop.rb",
- "lib/cool.io/meta.rb",
- "lib/cool.io/server.rb",
- "lib/cool.io/socket.rb",
- "lib/cool.io/timer_watcher.rb",
- "lib/coolio.rb",
- "lib/rev.rb",
- "spec/async_watcher_spec.rb",
- "spec/dns_spec.rb",
- "spec/possible_tests/schedules_other_threads.rb",
- "spec/possible_tests/test_on_resolve_failed.rb",
- "spec/possible_tests/test_resolves.rb",
- "spec/possible_tests/test_write_during_resolve.rb",
- "spec/possible_tests/works_straight.rb",
- "spec/spec_helper.rb",
- "spec/timer_watcher_spec.rb",
- "spec/unix_listener_spec.rb",
- "spec/unix_server_spec.rb"
- ]
- s.homepage = %q{http://github.com/tarcieri/cool.io}
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{The cool event framework for Ruby}
- s.test_files = [
- "examples/dslified_echo_client.rb",
- "examples/dslified_echo_server.rb",
- "examples/echo_client.rb",
- "examples/echo_server.rb",
- "examples/google.rb",
- "examples/httpclient.rb",
- "spec/async_watcher_spec.rb",
- "spec/dns_spec.rb",
- "spec/possible_tests/schedules_other_threads.rb",
- "spec/possible_tests/test_on_resolve_failed.rb",
- "spec/possible_tests/test_resolves.rb",
- "spec/possible_tests/test_write_during_resolve.rb",
- "spec/possible_tests/works_straight.rb",
- "spec/spec_helper.rb",
- "spec/timer_watcher_spec.rb",
- "spec/unix_listener_spec.rb",
- "spec/unix_server_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_runtime_dependency(%q<iobuffer>, [">= 0.1.3"])
- s.add_development_dependency(%q<rspec>, [">= 2.1.0"])
- else
- s.add_dependency(%q<iobuffer>, [">= 0.1.3"])
- s.add_dependency(%q<rspec>, [">= 2.1.0"])
- end
- else
- s.add_dependency(%q<iobuffer>, [">= 0.1.3"])
- s.add_dependency(%q<rspec>, [">= 2.1.0"])
- end
-end
+ 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"]
+
+ s.add_dependency "iobuffer", ">= 1.0.0"
+
+ s.add_development_dependency "rake-compiler", "~> 0.7.9"
+ s.add_development_dependency "rspec", ">= 2.6.0"
+end
View
6 lib/cool.io.rb
@@ -1,5 +1,5 @@
#--
-# Copyright (C)2007-10 Tony Arcieri
+# Copyright (C)2011 Tony Arcieri
# You can redistribute this under the terms of the Ruby license
# See file LICENSE for details
#++
@@ -21,12 +21,10 @@
require "cool.io/dsl"
module Coolio
- VERSION = File.read(File.expand_path('../../VERSION', __FILE__)).strip
- def self.version; VERSION; end
def self.inspect; "Cool.io"; end
end
module Cool
# Allow Coolio module to be referenced as Cool.io
def self.io; Coolio; end
-end
+end
View
5 lib/cool.io/version.rb
@@ -0,0 +1,5 @@
+module Coolio
+ VERSION = "1.1.0"
+
+ def self.version; VERSION; end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.