varnish_rest_api 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/varnish_rest_api/varnish_base.rb +3 -1
- data/lib/varnish_rest_api/version.rb +2 -2
- data/varnish_rest_api.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 292f4c3c7f0f76325cb4767278282c396680a8f8
|
|
4
|
+
data.tar.gz: e2accf7cadcf58e045bd64b1ce2971eafd5a90ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a64873933fea987b59a601f214e178d0eeb9716bd71a965b2c03c3833a9958aab29d209a771285bf2b08da612973aa66354184060b12886c89343c258ad3ae52
|
|
7
|
+
data.tar.gz: 3f28aabe1ae29fb0ea1833d1b0cb22261f2c98c48029081b12a7a2ca4f1f3f702a704ec2d13acb4e7534328710e03cbbc358bc8c18d53af88b0aa088f10318c3
|
|
@@ -4,9 +4,10 @@ require 'json'
|
|
|
4
4
|
require 'ostruct'
|
|
5
5
|
require 'zk'
|
|
6
6
|
require 'socket'
|
|
7
|
+
require 'varnish_rest_api/version'
|
|
7
8
|
|
|
8
9
|
class VarnishBase
|
|
9
|
-
|
|
10
|
+
|
|
10
11
|
def initialize(params = {})
|
|
11
12
|
@mgmt_port = params.fetch(:mgmt_port, 6082)
|
|
12
13
|
@port = params.fetch(:port, 4567)
|
|
@@ -20,6 +21,7 @@ class VarnishBase
|
|
|
20
21
|
@varnishadm = "#{@varnishadm_path.to_s} -T #{@mgmt_host.to_s}:#{@mgmt_port.to_s} -S #{@secret.to_s}"
|
|
21
22
|
@hostname = Socket.gethostname
|
|
22
23
|
|
|
24
|
+
puts "varnish_rest_api version #{VarnishRestApiVersion::VERSION}"
|
|
23
25
|
puts "varnishadm command line: " + @varnishadm.to_s
|
|
24
26
|
|
|
25
27
|
if @use_zookeeper && !@zookeeper_host.empty?
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module
|
|
2
|
-
VERSION = "0.0.
|
|
1
|
+
module VarnishRestApiVersion
|
|
2
|
+
VERSION = "0.0.10"
|
|
3
3
|
end
|
data/varnish_rest_api.gemspec
CHANGED
|
@@ -5,7 +5,7 @@ require 'varnish_rest_api/version'
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "varnish_rest_api"
|
|
8
|
-
spec.version =
|
|
8
|
+
spec.version = VarnishRestApiVersion::VERSION
|
|
9
9
|
spec.authors = ["Jonathan Colby"]
|
|
10
10
|
spec.email = ["jcolby@team.mobile.de"]
|
|
11
11
|
spec.summary = %q{A sinatra rest api for varnish.}
|