varnish-rb 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'ffi'
4
+
5
+ group :development do
6
+ gem "bundler"
7
+ gem "jeweler"
8
+ gem "rake", "~> 0.9.2"
9
+ end
10
+
11
+ group :examples do
12
+ gem 'eventmachine'
13
+ end
@@ -0,0 +1,29 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ eventmachine (1.0.3)
5
+ eventmachine (1.0.3-java)
6
+ ffi (1.0.9)
7
+ ffi (1.0.9-java)
8
+ git (1.2.5)
9
+ jeweler (1.8.4)
10
+ bundler (~> 1.0)
11
+ git (>= 1.2.5)
12
+ rake
13
+ rdoc
14
+ json (1.7.7)
15
+ json (1.7.7-java)
16
+ rake (0.9.6)
17
+ rdoc (4.0.1)
18
+ json (~> 1.4)
19
+
20
+ PLATFORMS
21
+ java
22
+ ruby
23
+
24
+ DEPENDENCIES
25
+ bundler
26
+ eventmachine
27
+ ffi
28
+ jeweler
29
+ rake (~> 0.9.2)
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 ZephirWorks
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,52 @@
1
+ varnish-rb
2
+ ==========
3
+
4
+ varnish-rb provides a bridge between Ruby and [Varnish 3](http://varnish-cache.org/).
5
+
6
+
7
+ Low-level access to Varnishlog
8
+ ------------------------------
9
+
10
+ Low-level access to the varnishlog SHM is provided via Varnish::VSL and the underlying class Varnish::VSM.
11
+ Ruby methods are mapped to the corresponding C APIs through FFI. This guarantees extremely high performance
12
+ (around 200k entries per second) at the cost.
13
+
14
+ This API is currently undocumented, because the underlying varnishlog API is not officially supported and
15
+ subject to changes. See examples/log.rb for an example.
16
+
17
+
18
+ Varnishlog EventMachine connection
19
+ ----------------------------------
20
+
21
+ EM::VarnishLog::Connection is a subclass of EM::Connection that provides a stream of log entries. It processes
22
+ log entries in a background thread outside the reactor and pushes them onto an EM::Channel. Channel subscribers
23
+ within the reactor thread can receive these entries and process them further.
24
+
25
+ Due to the complexity of using threads with EventMachine, and the need for very high performance, this API is
26
+ currently tested only on JRuby (1.6.2 as of this writing).
27
+
28
+ Pushing one log entry at a time will incur a very high overhead that limits the number of entries that can be
29
+ processed per second. This gem provides an EM::BufferedChannel that implements double buffering. Using this channel
30
+ it is possible to process about 150k entries per second, corresponding to 3-4k HTTP requests per second. This
31
+ makes it possible to process moderate traffic in a development or preproduction environment, but you would have to
32
+ be out of your mind to use it in production.
33
+
34
+ See examples/log\_tail.rb and especially examples/request\_tail.rb for a taste of how to use this API.
35
+
36
+ Contributing to varnish-rb
37
+ ==========================
38
+
39
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
40
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
41
+ * Fork the project
42
+ * Start a feature/bugfix branch
43
+ * Commit and push until you are happy with your contribution
44
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
45
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
46
+
47
+ Copyright
48
+ =========
49
+
50
+ Copyright (c) 2011 ZephirWorks. See LICENSE.txt for
51
+ further details.
52
+
@@ -0,0 +1,52 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
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 = "varnish-rb"
18
+ gem.homepage = "http://github.com/andreacampi/varnish-rb"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{A bridge between Ruby and Varnish 3}
21
+ gem.description = %Q{varnish-rb provides a bridge between Ruby and [Varnish 3](http://varnish-cache.org/)}
22
+ gem.email = "andrea.campi@zephirworks.com"
23
+ gem.authors = ["Andrea Campi"]
24
+ end
25
+ Jeweler::RubygemsDotOrgTasks.new
26
+
27
+ # require 'rake/testtask'
28
+ # Rake::TestTask.new(:test) do |test|
29
+ # test.libs << 'lib' << 'test'
30
+ # test.pattern = 'test/**/test_*.rb'
31
+ # test.verbose = true
32
+ # end
33
+ #
34
+ # require 'rcov/rcovtask'
35
+ # Rcov::RcovTask.new do |test|
36
+ # test.libs << 'test'
37
+ # test.pattern = 'test/**/test_*.rb'
38
+ # test.verbose = true
39
+ # test.rcov_opts << '--exclude "gems/*"'
40
+ # end
41
+ #
42
+ # task :default => :test
43
+
44
+ require 'rdoc/task'
45
+ Rake::RDocTask.new do |rdoc|
46
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
47
+
48
+ rdoc.rdoc_dir = 'rdoc'
49
+ rdoc.title = "varnish-rb #{version}"
50
+ rdoc.rdoc_files.include('README*')
51
+ rdoc.rdoc_files.include('lib/**/*.rb')
52
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.2.0
@@ -0,0 +1,30 @@
1
+ require 'varnish'
2
+
3
+ class Log
4
+ def initialize
5
+ @vd = Varnish::VSM.VSM_New
6
+ Varnish::VSL.VSL_Setup(@vd)
7
+ Varnish::VSL.VSL_Open(@vd, 1)
8
+
9
+ @count = 0
10
+ @t = nil
11
+ end
12
+
13
+ def run
14
+ Varnish::VSL.VSL_Dispatch(@vd, self.method(:callback).to_proc, FFI::MemoryPointer.new(:pointer))
15
+ end
16
+
17
+ private
18
+ def callback(*args)
19
+ @t = Time.now if @count == 0
20
+ @count += 1
21
+
22
+ if (@count % 100000) == 0
23
+ puts "received #{@count} messages in #{(Time.now - @t).to_s} seconds"
24
+ @t = Time.now
25
+ end
26
+ return 0
27
+ end
28
+ end
29
+
30
+ Log.new.run
@@ -0,0 +1,21 @@
1
+ require 'eventmachine'
2
+ require 'em/varnish_log/connection'
3
+ require 'em/buffered_channel'
4
+
5
+ EM.run do
6
+ count = 0
7
+ t = nil
8
+
9
+ channel = EM::BufferedChannel.new
10
+ stream = EM::VarnishLog::Connection.new(channel)
11
+ stream.run
12
+
13
+ channel.subscribe do |msg|
14
+ t = Time.now if count == 0
15
+ count += 1
16
+ if (count % 100000) == 0
17
+ puts "received #{count} messages in #{(Time.now - t).to_s} seconds"
18
+ t = Time.now
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,27 @@
1
+ require 'em/varnish_log/connection'
2
+ require 'em/buffered_channel'
3
+
4
+ class RequestStream
5
+ def initialize
6
+ @channel = EM::BufferedChannel.new
7
+ @callbacks = []
8
+
9
+ listen
10
+ end
11
+
12
+ def onrequest(&block)
13
+ @callbacks << block
14
+ end
15
+
16
+ private
17
+
18
+ def listen
19
+ EM::VarnishLog::Connection.new(@channel).run
20
+
21
+ @channel.subscribe do |msg|
22
+ if msg[:tag] == :reqend
23
+ @callbacks.each { |c| c.call(msg) }
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,17 @@
1
+ require 'eventmachine'
2
+ require File.expand_path('request_stream', File.dirname(__FILE__))
3
+
4
+ EM.run do
5
+ count = 0
6
+ t = nil
7
+
8
+ stream = RequestStream.new
9
+ stream.onrequest do |data|
10
+ t = Time.now if count == 0
11
+ count += 1
12
+ if (count % 1000) == 0
13
+ puts "received #{count} requests in #{(Time.now - t).to_s} seconds"
14
+ t = Time.now
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,68 @@
1
+ require 'eventmachine'
2
+
3
+ module EM
4
+ #
5
+ # A subclass of EM::Channel that implements double buffering (using a
6
+ # circular array of arrays) to achieve higher packet rate.
7
+ #
8
+ # The buffer size and the number of buffers are critical to achieving good
9
+ # performance, you may need to tune them.
10
+ #
11
+ class BufferedChannel < EM::Channel
12
+ def initialize
13
+ super
14
+ @buffer = BufferSet.new(2000, 200)
15
+ end
16
+
17
+ def push(*items)
18
+ @buffer.push(*items) do |buf|
19
+ EM.schedule do
20
+ @subs.values.each do |s|
21
+ begin
22
+ buf.each do |i|
23
+ s.call i
24
+ end
25
+ ensure
26
+ buf.clear
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
32
+
33
+ class BufferSet
34
+ def initialize(size, nbufs)
35
+ @size = size
36
+ @nbufs = nbufs
37
+
38
+ @buffers = []
39
+
40
+ setup
41
+ end
42
+
43
+ def push(data)
44
+ raise "WTF #{@buffers.length}" unless @buffers.length == @nbufs
45
+
46
+ if @buffers[0].length > @size
47
+ if @buffers[1].length > 0
48
+ raise "panic! the next buffer is still full!"
49
+ end
50
+
51
+ buf = @buffers.shift
52
+ @buffers << buf
53
+
54
+ yield buf
55
+ end
56
+
57
+ @buffers.first << data
58
+ end
59
+
60
+ private
61
+ def setup
62
+ (0..@nbufs-1).each do |n|
63
+ @buffers[n] = []
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,56 @@
1
+ require 'eventmachine'
2
+ require 'varnish'
3
+
4
+ module EM
5
+ module VarnishLog
6
+ #
7
+ # A subclass of EM::Connection that reads from the Varnish log SHM and
8
+ # pushes single log entries on the channel passed to its constructor.
9
+ #
10
+ # Note that simply using an EM::Channel pretty much guarantees awful
11
+ # performance, suitable only for extremely low workloads in a development
12
+ # environment. The provided EM::BufferedChannel improves things quite a
13
+ # bit: it has proved able to push about 150k entries per second
14
+ # (corresponding to about 4k HTTP req/s), using a full CPU on a modern
15
+ # MBP.
16
+ #
17
+ class Connection
18
+ class << self
19
+ attr_reader :channel
20
+ end
21
+
22
+ def initialize(channel)
23
+ @channel = channel
24
+ end
25
+
26
+ def run
27
+ vd = Varnish::VSM.VSM_New
28
+ Varnish::VSL.VSL_Setup(vd)
29
+ Varnish::VSL.VSL_Open(vd, 1)
30
+
31
+ callback = Proc.new { |*args| cb(*args) }
32
+
33
+ Thread.new do
34
+ begin
35
+ Varnish::VSL.VSL_Dispatch(vd, callback, FFI::MemoryPointer.new(:pointer))
36
+ rescue => e
37
+ puts "exception in thread: #{e.inspect}"
38
+ ensure
39
+ EM.stop
40
+ end
41
+ end
42
+ rescue => e
43
+ puts "exception in post_init: #{e.inspect}"
44
+ end
45
+
46
+ private
47
+ def cb(priv, tag, fd, len, spec, ptr, bitmap)
48
+ str = ptr.read_string(len)
49
+ @channel.push(:tag => tag, :fd => fd, :data => str, :spec => spec, :bitmap => bitmap)
50
+ 0 # ok
51
+ rescue => e
52
+ puts "exception in cb: #{e.inspect}"
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,9 @@
1
+ module Varnish
2
+ LIBVARNISHAPI = [
3
+ 'libvarnishapi.1', # Mac OS X
4
+ 'libvarnishapi.so.1' # Debian / Ubuntu
5
+ ]
6
+ end
7
+
8
+ require 'varnish/vsm'
9
+ require 'varnish/vsl'
@@ -0,0 +1,2 @@
1
+ require 'varnish/utils/buffer_set'
2
+ require 'varnish/utils/timer'
@@ -0,0 +1,20 @@
1
+ module Varnish
2
+ module Utils
3
+ module Timer
4
+ def timer_init
5
+ @count = 0
6
+ @time = 0
7
+ @interval = 40000
8
+ end
9
+
10
+ def timer_count
11
+ @time = Time.now if @count == 0
12
+ @count += 1
13
+ if (@count % @interval) == 0
14
+ puts "Got #{@count} calls in #{(Time.now - @time).to_f}s"
15
+ @time = Time.now
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,17 @@
1
+ require 'varnish'
2
+ require 'ffi'
3
+ require 'varnish/vsl/enum'
4
+
5
+ module Varnish
6
+ module VSL
7
+ extend FFI::Library
8
+ ffi_lib Varnish::LIBVARNISHAPI
9
+ include Enum
10
+
11
+ callback :VSL_handler_f, [:pointer, VslTag, :int, :int, VslSpec, :pointer, :int64], :int
12
+
13
+ attach_function 'VSL_Setup', [ :pointer ], :void
14
+ attach_function 'VSL_Open', [ :pointer, :int ], :int
15
+ attach_function 'VSL_Dispatch', [ :pointer, :VSL_handler_f, :pointer ], :int
16
+ end
17
+ end
@@ -0,0 +1,81 @@
1
+ require 'varnish'
2
+ require 'ffi'
3
+
4
+ module Varnish
5
+ module VSL
6
+ module Enum
7
+ extend FFI::Library
8
+
9
+ VslTag = enum(
10
+ :debug,
11
+ :error,
12
+ :cli,
13
+ :statsess,
14
+ :reqend,
15
+ :sessionopen,
16
+ :sessionclose,
17
+ :backendopen,
18
+ :backendxid,
19
+ :backendreuse,
20
+ :backendclose,
21
+ :httpgarbage,
22
+ :backend,
23
+ :length,
24
+
25
+ :fetcherror,
26
+
27
+ :rxrequest,
28
+ :rxresponse,
29
+ :rxstatus,
30
+ :rxurl,
31
+ :rxprotocol,
32
+ :rxheader,
33
+
34
+ :txrequest,
35
+ :txresponse,
36
+ :txstatus,
37
+ :txurl,
38
+ :txprotocol,
39
+ :txheader,
40
+
41
+ :objrequest,
42
+ :objresponse,
43
+ :objstatus,
44
+ :objurl,
45
+ :objprotocol,
46
+ :objheader,
47
+
48
+ :lostheader,
49
+
50
+ :ttl,
51
+ :fetch_body,
52
+ :vcl_acl,
53
+ :vcl_call,
54
+ :vcl_trace,
55
+ :vcl_return,
56
+ :vcl_error,
57
+ :reqstart,
58
+ :hit,
59
+ :hitpass,
60
+ :expban,
61
+ :expkill,
62
+ :workthread,
63
+
64
+ :esi_xmlerror,
65
+
66
+ :hash,
67
+
68
+ :backend_health,
69
+ :vcl_log,
70
+
71
+ :gzip
72
+ )
73
+
74
+ VslSpec = enum(
75
+ :spec_unknown,
76
+ :spec_client,
77
+ :spec_backend
78
+ )
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,11 @@
1
+ require 'varnish'
2
+ require 'ffi'
3
+
4
+ module Varnish
5
+ module VSM
6
+ extend FFI::Library
7
+ ffi_lib Varnish::LIBVARNISHAPI
8
+
9
+ attach_function 'VSM_New', [], :pointer
10
+ end
11
+ end
@@ -0,0 +1,67 @@
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 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "varnish-rb"
8
+ s.version = "0.2.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Andrea Campi"]
12
+ s.date = "2013-03-29"
13
+ s.description = "varnish-rb provides a bridge between Ruby and [Varnish 3](http://varnish-cache.org/)"
14
+ s.email = "andrea.campi@zephirworks.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ "Gemfile",
21
+ "Gemfile.lock",
22
+ "LICENSE.txt",
23
+ "README.md",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "examples/log.rb",
27
+ "examples/log_tail.rb",
28
+ "examples/request_stream.rb",
29
+ "examples/request_tail.rb",
30
+ "lib/em/buffered_channel.rb",
31
+ "lib/em/varnish_log/connection.rb",
32
+ "lib/varnish.rb",
33
+ "lib/varnish/utils.rb",
34
+ "lib/varnish/utils/timer.rb",
35
+ "lib/varnish/vsl.rb",
36
+ "lib/varnish/vsl/enum.rb",
37
+ "lib/varnish/vsm.rb",
38
+ "varnish-rb.gemspec"
39
+ ]
40
+ s.homepage = "http://github.com/andreacampi/varnish-rb"
41
+ s.licenses = ["MIT"]
42
+ s.require_paths = ["lib"]
43
+ s.rubygems_version = "1.8.25"
44
+ s.summary = "A bridge between Ruby and Varnish 3"
45
+
46
+ if s.respond_to? :specification_version then
47
+ s.specification_version = 3
48
+
49
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
+ s.add_runtime_dependency(%q<ffi>, [">= 0"])
51
+ s.add_development_dependency(%q<bundler>, [">= 0"])
52
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
53
+ s.add_development_dependency(%q<rake>, ["~> 0.9.2"])
54
+ else
55
+ s.add_dependency(%q<ffi>, [">= 0"])
56
+ s.add_dependency(%q<bundler>, [">= 0"])
57
+ s.add_dependency(%q<jeweler>, [">= 0"])
58
+ s.add_dependency(%q<rake>, ["~> 0.9.2"])
59
+ end
60
+ else
61
+ s.add_dependency(%q<ffi>, [">= 0"])
62
+ s.add_dependency(%q<bundler>, [">= 0"])
63
+ s.add_dependency(%q<jeweler>, [">= 0"])
64
+ s.add_dependency(%q<rake>, ["~> 0.9.2"])
65
+ end
66
+ end
67
+
metadata ADDED
@@ -0,0 +1,133 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: varnish-rb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Andrea Campi
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-03-29 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: ffi
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: bundler
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: jeweler
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rake
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 0.9.2
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 0.9.2
78
+ description: varnish-rb provides a bridge between Ruby and [Varnish 3](http://varnish-cache.org/)
79
+ email: andrea.campi@zephirworks.com
80
+ executables: []
81
+ extensions: []
82
+ extra_rdoc_files:
83
+ - LICENSE.txt
84
+ - README.md
85
+ files:
86
+ - Gemfile
87
+ - Gemfile.lock
88
+ - LICENSE.txt
89
+ - README.md
90
+ - Rakefile
91
+ - VERSION
92
+ - examples/log.rb
93
+ - examples/log_tail.rb
94
+ - examples/request_stream.rb
95
+ - examples/request_tail.rb
96
+ - lib/em/buffered_channel.rb
97
+ - lib/em/varnish_log/connection.rb
98
+ - lib/varnish.rb
99
+ - lib/varnish/utils.rb
100
+ - lib/varnish/utils/timer.rb
101
+ - lib/varnish/vsl.rb
102
+ - lib/varnish/vsl/enum.rb
103
+ - lib/varnish/vsm.rb
104
+ - varnish-rb.gemspec
105
+ homepage: http://github.com/andreacampi/varnish-rb
106
+ licenses:
107
+ - MIT
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ segments:
119
+ - 0
120
+ hash: -2339583890201378041
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ requirements: []
128
+ rubyforge_project:
129
+ rubygems_version: 1.8.25
130
+ signing_key:
131
+ specification_version: 3
132
+ summary: A bridge between Ruby and Varnish 3
133
+ test_files: []