iobuffer 0.1.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "rspec", ">= 2.1.0"
10
+ gem "bundler", "~> 1.0.0"
11
+ gem "jeweler", "~> 1.5.1"
12
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,26 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ diff-lcs (1.1.2)
5
+ git (1.2.5)
6
+ jeweler (1.5.1)
7
+ bundler (~> 1.0.0)
8
+ git (>= 1.2.5)
9
+ rake
10
+ rake (0.8.7)
11
+ rspec (2.2.0)
12
+ rspec-core (~> 2.2)
13
+ rspec-expectations (~> 2.2)
14
+ rspec-mocks (~> 2.2)
15
+ rspec-core (2.2.1)
16
+ rspec-expectations (2.2.0)
17
+ diff-lcs (~> 1.1.2)
18
+ rspec-mocks (2.2.0)
19
+
20
+ PLATFORMS
21
+ ruby
22
+
23
+ DEPENDENCIES
24
+ bundler (~> 1.0.0)
25
+ jeweler (~> 1.5.1)
26
+ rspec (>= 2.1.0)
File without changes
data/Rakefile CHANGED
@@ -1,9 +1,74 @@
1
- require 'rake'
1
+ require 'rubygems'
2
+ require 'bundler'
2
3
  require 'rake/clean'
3
4
 
4
- Dir['tasks/**/*.rake'].each { |task| load task }
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "iobuffer"
18
+ gem.homepage = "http://github.com/tarcieri/iobuffer"
19
+ gem.license = "MIT"
20
+ gem.summary = "Fast C-based I/O buffering"
21
+ gem.description = "iobuffer is a fast, C-based byte queue for storing arbitrary amounts of data until it can be written to the network"
22
+ gem.email = "tony@medioh.com"
23
+ gem.authors = ["Tony Arcieri"]
24
+
25
+ # Include your dependencies below. Runtime dependencies are required when using your gem,
26
+ # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
27
+ # gem.add_runtime_dependency 'jabber4r', '> 0.1'
28
+
29
+ gem.add_development_dependency 'rspec', '>= 2.1.0'
30
+ end
31
+ Jeweler::RubygemsDotOrgTasks.new
32
+
33
+ require 'rspec/core'
34
+ require 'rspec/core/rake_task'
35
+ RSpec::Core::RakeTask.new(:spec) do |spec|
36
+ spec.pattern = FileList['spec/**/*_spec.rb']
37
+ spec.rspec_opts = %w(-fs -c)
38
+ end
5
39
 
6
40
  task :default => [:compile, :spec]
7
41
 
42
+ require 'rake/rdoctask'
43
+ Rake::RDocTask.new do |rdoc|
44
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
45
+
46
+ rdoc.rdoc_dir = 'rdoc'
47
+ rdoc.title = "iobuffer #{version}"
48
+ rdoc.rdoc_files.include('README*')
49
+ rdoc.rdoc_files.include('lib/**/*.rb')
50
+ end
51
+
52
+ ext_so = "ext/iobuffer.#{Config::MAKEFILE_CONFIG['DLEXT']}"
53
+ ext_files = FileList[
54
+ "ext/*.c",
55
+ "ext/*.h",
56
+ "ext/extconf.rb",
57
+ "ext/Makefile",
58
+ "lib"
59
+ ]
60
+
61
+ desc "Compile the IO::Buffer extension"
62
+ task :compile => ["ext/Makefile", ext_so ]
63
+
64
+ file "ext/Makefile" => %w[ext/extconf.rb] do
65
+ Dir.chdir('ext') { ruby "extconf.rb" }
66
+ end
67
+
68
+ file ext_so => ext_files do
69
+ Dir.chdir('ext') { sh 'make' }
70
+ cp ext_so, "lib"
71
+ end
72
+
8
73
  CLEAN.include ["**/*.o", "**/*.log", "pkg"]
9
- CLEAN.include ["ext/Makefile", "**/iobuffer.#{Config::CONFIG['DLEXT']}"]
74
+ CLEAN.include ["ext/Makefile", "**/iobuffer.#{Config::MAKEFILE_CONFIG['DLEXT']}"]
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.0
data/ext/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ Makefile
2
+ iobuffer.*
3
+ mkmf.log
4
+ conftest.dSYM
data/iobuffer.gemspec CHANGED
@@ -1,27 +1,66 @@
1
- require 'rubygems'
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
2
5
 
3
- GEMSPEC = Gem::Specification.new do |s|
4
- s.name = "iobuffer"
5
- s.version = "0.1.3"
6
- s.authors = "Tony Arcieri"
7
- s.email = "tony@medioh.com"
8
- s.date = "2009-11-28"
9
- s.summary = "Fast C-based buffer for non-blocking I/O"
10
- s.platform = Gem::Platform::RUBY
11
- s.required_ruby_version = '>= 1.8.6'
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{iobuffer}
8
+ s.version = "1.0.0"
12
9
 
13
- # Gem contents
14
- s.files = Dir.glob("{lib,ext,spec,tasks}/**/*.{rb,c}") + ['Rakefile', 'iobuffer.gemspec']
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Tony Arcieri"]
12
+ s.date = %q{2010-12-15}
13
+ 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}
14
+ s.email = %q{tony@medioh.com}
15
+ s.extensions = ["ext/extconf.rb"]
16
+ s.extra_rdoc_files = [
17
+ "LICENSE",
18
+ "README.rdoc"
19
+ ]
20
+ s.files = [
21
+ "CHANGES",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "ext/.gitignore",
29
+ "ext/extconf.rb",
30
+ "ext/iobuffer.c",
31
+ "iobuffer.gemspec",
32
+ "lib/.gitignore",
33
+ "spec/buffer_spec.rb"
34
+ ]
35
+ s.homepage = %q{http://github.com/tarcieri/iobuffer}
36
+ s.licenses = ["MIT"]
37
+ s.require_paths = ["lib"]
38
+ s.rubygems_version = %q{1.3.7}
39
+ s.summary = %q{Fast C-based I/O buffering}
40
+ s.test_files = [
41
+ "spec/buffer_spec.rb"
42
+ ]
15
43
 
16
- # RubyForge info
17
- s.homepage = "http://rev.rubyforge.org"
18
- s.rubyforge_project = "rev"
44
+ if s.respond_to? :specification_version then
45
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
46
+ s.specification_version = 3
19
47
 
20
- # RDoc settings
21
- s.has_rdoc = true
22
- s.rdoc_options = %w(--title IO::Buffer --main README --line-numbers)
23
- s.extra_rdoc_files = ["LICENSE", "README", "CHANGES"]
24
-
25
- # Extensions
26
- s.extensions = Dir["ext/**/extconf.rb"]
48
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
+ s.add_development_dependency(%q<rspec>, [">= 2.1.0"])
50
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
51
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
52
+ s.add_development_dependency(%q<rspec>, [">= 2.1.0"])
53
+ else
54
+ s.add_dependency(%q<rspec>, [">= 2.1.0"])
55
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
56
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
57
+ s.add_dependency(%q<rspec>, [">= 2.1.0"])
58
+ end
59
+ else
60
+ s.add_dependency(%q<rspec>, [">= 2.1.0"])
61
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
62
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
63
+ s.add_dependency(%q<rspec>, [">= 2.1.0"])
64
+ end
27
65
  end
66
+
data/lib/.gitignore ADDED
@@ -0,0 +1 @@
1
+ iobuffer.*
data/spec/buffer_spec.rb CHANGED
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../lib/iobuffer'
1
+ require File.expand_path(File.dirname(__FILE__) + '/../lib/iobuffer')
2
2
 
3
3
  describe IO::Buffer do
4
4
  before :each do
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iobuffer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ hash: 23
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 0
10
+ version: 1.0.0
5
11
  platform: ruby
6
12
  authors:
7
13
  - Tony Arcieri
@@ -9,11 +15,74 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-11-28 00:00:00 -07:00
18
+ date: 2010-12-15 00:00:00 -07:00
13
19
  default_executable:
14
- dependencies: []
15
-
16
- description:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ type: :development
23
+ prerelease: false
24
+ name: rspec
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 11
31
+ segments:
32
+ - 2
33
+ - 1
34
+ - 0
35
+ version: 2.1.0
36
+ requirement: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ type: :development
39
+ prerelease: false
40
+ name: bundler
41
+ version_requirements: &id002 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ hash: 23
47
+ segments:
48
+ - 1
49
+ - 0
50
+ - 0
51
+ version: 1.0.0
52
+ requirement: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ type: :development
55
+ prerelease: false
56
+ name: jeweler
57
+ version_requirements: &id003 !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ hash: 1
63
+ segments:
64
+ - 1
65
+ - 5
66
+ - 1
67
+ version: 1.5.1
68
+ requirement: *id003
69
+ - !ruby/object:Gem::Dependency
70
+ type: :development
71
+ prerelease: false
72
+ name: rspec
73
+ version_requirements: &id004 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ hash: 11
79
+ segments:
80
+ - 2
81
+ - 1
82
+ - 0
83
+ version: 2.1.0
84
+ requirement: *id004
85
+ description: iobuffer is a fast, C-based byte queue for storing arbitrary amounts of data until it can be written to the network
17
86
  email: tony@medioh.com
18
87
  executables: []
19
88
 
@@ -21,48 +90,54 @@ extensions:
21
90
  - ext/extconf.rb
22
91
  extra_rdoc_files:
23
92
  - LICENSE
24
- - README
25
- - CHANGES
93
+ - README.rdoc
26
94
  files:
95
+ - CHANGES
96
+ - Gemfile
97
+ - Gemfile.lock
98
+ - LICENSE
99
+ - README.rdoc
100
+ - Rakefile
101
+ - VERSION
102
+ - ext/.gitignore
27
103
  - ext/extconf.rb
28
104
  - ext/iobuffer.c
29
- - spec/buffer_spec.rb
30
- - Rakefile
31
105
  - iobuffer.gemspec
32
- - LICENSE
33
- - README
34
- - CHANGES
106
+ - lib/.gitignore
107
+ - spec/buffer_spec.rb
35
108
  has_rdoc: true
36
- homepage: http://rev.rubyforge.org
37
- licenses: []
38
-
109
+ homepage: http://github.com/tarcieri/iobuffer
110
+ licenses:
111
+ - MIT
39
112
  post_install_message:
40
- rdoc_options:
41
- - --title
42
- - IO::Buffer
43
- - --main
44
- - README
45
- - --line-numbers
113
+ rdoc_options: []
114
+
46
115
  require_paths:
47
116
  - lib
48
117
  required_ruby_version: !ruby/object:Gem::Requirement
118
+ none: false
49
119
  requirements:
50
120
  - - ">="
51
121
  - !ruby/object:Gem::Version
52
- version: 1.8.6
53
- version:
122
+ hash: 3
123
+ segments:
124
+ - 0
125
+ version: "0"
54
126
  required_rubygems_version: !ruby/object:Gem::Requirement
127
+ none: false
55
128
  requirements:
56
129
  - - ">="
57
130
  - !ruby/object:Gem::Version
131
+ hash: 3
132
+ segments:
133
+ - 0
58
134
  version: "0"
59
- version:
60
135
  requirements: []
61
136
 
62
- rubyforge_project: rev
63
- rubygems_version: 1.3.5
137
+ rubyforge_project:
138
+ rubygems_version: 1.3.7
64
139
  signing_key:
65
140
  specification_version: 3
66
- summary: Fast C-based buffer for non-blocking I/O
67
- test_files: []
68
-
141
+ summary: Fast C-based I/O buffering
142
+ test_files:
143
+ - spec/buffer_spec.rb