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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 292f4c3c7f0f76325cb4767278282c396680a8f8
4
- data.tar.gz: e2accf7cadcf58e045bd64b1ce2971eafd5a90ed
3
+ metadata.gz: ae703a598982aad3abcd7b589de82bb0331b2d06
4
+ data.tar.gz: f185b8711f8f34680750d82de4b9dbc110862296
5
5
  SHA512:
6
- metadata.gz: a64873933fea987b59a601f214e178d0eeb9716bd71a965b2c03c3833a9958aab29d209a771285bf2b08da612973aa66354184060b12886c89343c258ad3ae52
7
- data.tar.gz: 3f28aabe1ae29fb0ea1833d1b0cb22261f2c98c48029081b12a7a2ca4f1f3f702a704ec2d13acb4e7534328710e03cbbc358bc8c18d53af88b0aa088f10318c3
6
+ metadata.gz: cb283094540e45ff59d4238ba798f37a4305c46e3c23c45877bb421893b2ce364abae3ef4a74f3d7054ad05838a14a6f0cc8af5378d1fcb3ee694aabe5dadec2
7
+ data.tar.gz: 543b67ee11c630f29d4abffade9873a7f94d471ec463c001daf563bf9cd618ec5924c833b880028fabfa6cf52ed9fba49f18a4b7aed38651260861172f42a697
@@ -1,3 +1,3 @@
1
1
  module VarnishRestApiVersion
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -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, ENV['HOME'] + '/' + CONFIG_FILE , File.dirname(__FILE__) + '/' + 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.10
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-04 00:00:00.000000000 Z
11
+ date: 2015-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra