Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 41 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,24 +1,55 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.3.6)
builder (3.2.2)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
eventmachine (1.0.3)
eventmachine (1.0.3-java)
ffi (1.0.9)
ffi (1.0.9-java)
git (1.2.5)
jeweler (1.8.4)
bundler (~> 1.0)
faraday (0.9.0)
multipart-post (>= 1.2, < 3)
ffi (1.9.3)
git (1.2.8)
github_api (0.12.1)
addressable (~> 2.3)
descendants_tracker (~> 0.0.4)
faraday (~> 0.8, < 0.10)
hashie (>= 3.2)
multi_json (>= 1.7.5, < 2.0)
nokogiri (~> 1.6.3)
oauth2
hashie (3.3.1)
highline (1.6.21)
jeweler (2.0.1)
builder
bundler (>= 1.0)
git (>= 1.2.5)
github_api
highline (>= 1.6.15)
nokogiri (>= 1.5.10)
rake
rdoc
json (1.7.7)
json (1.7.7-java)
json (1.8.1)
jwt (1.0.0)
mini_portile (0.6.0)
multi_json (1.10.1)
multi_xml (0.5.5)
multipart-post (2.0.0)
nokogiri (1.6.3.1)
mini_portile (= 0.6.0)
oauth2 (1.0.0)
faraday (>= 0.8, < 0.10)
jwt (~> 1.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (~> 1.2)
rack (1.5.2)
rake (0.9.6)
rdoc (4.0.1)
rdoc (4.1.1)
json (~> 1.4)
thread_safe (0.3.4)

PLATFORMS
java
ruby

DEPENDENCIES
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.0
0.2.1
5 changes: 4 additions & 1 deletion lib/em/varnish_log/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ def initialize(channel)
@channel = channel
end

def run
def run(options = {})
vd = Varnish::VSM.VSM_New
Varnish::VSL.VSL_Setup(vd)
if Varnish::VSM.VSM_n_Arg(vd, options[:instance]) != 1
raise 'instance inconnu'
end
Varnish::VSL.VSL_Open(vd, 1)

callback = Proc.new { |*args| cb(*args) }
Expand Down
1 change: 1 addition & 0 deletions lib/varnish/vsm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ module VSM
ffi_lib Varnish::LIBVARNISHAPI

attach_function 'VSM_New', [], :pointer
attach_function 'VSM_n_Arg', [:pointer, :string], :int
end
end
8 changes: 3 additions & 5 deletions varnish-rb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = "varnish-rb"
s.version = "0.2.0"
s.version = "0.2.1"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Andrea Campi"]
s.date = "2013-03-29"
s.date = "2014-09-01"
s.description = "varnish-rb provides a bridge between Ruby and [Varnish 3](http://varnish-cache.org/)"
s.email = "[email protected]"
s.extra_rdoc_files = [
Expand All @@ -30,8 +30,6 @@ Gem::Specification.new do |s|
"lib/em/buffered_channel.rb",
"lib/em/varnish_log/connection.rb",
"lib/varnish.rb",
"lib/varnish/utils.rb",
"lib/varnish/utils/timer.rb",
"lib/varnish/vsl.rb",
"lib/varnish/vsl/enum.rb",
"lib/varnish/vsm.rb",
Expand All @@ -40,7 +38,7 @@ Gem::Specification.new do |s|
s.homepage = "http://github.com/andreacampi/varnish-rb"
s.licenses = ["MIT"]
s.require_paths = ["lib"]
s.rubygems_version = "1.8.25"
s.rubygems_version = "1.8.23"
s.summary = "A bridge between Ruby and Varnish 3"

if s.respond_to? :specification_version then
Expand Down