varnish_rest_api 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/varnish_rest_api/version.rb +1 -1
- data/lib/varnish_rest_api.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae703a598982aad3abcd7b589de82bb0331b2d06
|
4
|
+
data.tar.gz: f185b8711f8f34680750d82de4b9dbc110862296
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb283094540e45ff59d4238ba798f37a4305c46e3c23c45877bb421893b2ce364abae3ef4a74f3d7054ad05838a14a6f0cc8af5378d1fcb3ee694aabe5dadec2
|
7
|
+
data.tar.gz: 543b67ee11c630f29d4abffade9873a7f94d471ec463c001daf563bf9cd618ec5924c833b880028fabfa6cf52ed9fba49f18a4b7aed38651260861172f42a697
|
data/lib/varnish_rest_api.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
require 'sinatra/base'
|
2
2
|
require 'varnish_rest_api/varnish_base'
|
3
|
+
require 'varnish_rest_api/version'
|
3
4
|
require 'yaml'
|
4
5
|
|
5
6
|
class VarnishRestApi < Sinatra::Application
|
6
7
|
|
7
8
|
CONFIG_FILE = "varnish_rest_api.yaml"
|
8
|
-
CONFIG_PATHS = [ '/etc/' + CONFIG_FILE,
|
9
|
+
CONFIG_PATHS = [ '/etc/' + CONFIG_FILE, File.dirname(__FILE__) + '/' + CONFIG_FILE ]
|
10
|
+
CONFIG_PATHS.insert(1, ENV['HOME'] + '/' + CONFIG_FILE) if ENV['HOME']
|
9
11
|
CONFIG = CONFIG_PATHS.detect {|config| File.file?(config) }
|
10
12
|
|
11
13
|
if !CONFIG
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: varnish_rest_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Colby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|