From 912cc489c0dc7cc5161b689b4125bbcba8a77389 Mon Sep 17 00:00:00 2001 From: Rick Bradley Date: Tue, 12 Jul 2016 17:05:50 -0500 Subject: [PATCH] (maint) clean up statsd inclusion and require lines The library is actually required as 'statsd' and not 'ruby-statsd', best I can tell. --- Gemfile | 2 +- lib/vmpooler/statsd.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index fb32937..9c9a05c 100644 --- a/Gemfile +++ b/Gemfile @@ -12,7 +12,7 @@ gem 'rbvmomi', '>= 1.8' gem 'redis', '>= 3.2' gem 'sinatra', '>= 1.4' gem 'net-ldap', '<= 0.12.1' # keep compatibility w/ jruby & mri-1.9.3 -gem 'statsd-ruby', '>= 1.3.0' +gem 'statsd-ruby', '>= 1.3.0', :require => 'statsd' # Test deps group :test do diff --git a/lib/vmpooler/statsd.rb b/lib/vmpooler/statsd.rb index 60d8b21..ac2ccc2 100644 --- a/lib/vmpooler/statsd.rb +++ b/lib/vmpooler/statsd.rb @@ -1,5 +1,5 @@ require 'rubygems' unless defined?(Gem) -require 'statsd-ruby' +require 'statsd' module Vmpooler class Statsd