graphiterb 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/graphiterb.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{graphiterb}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Philip (flip) Kromer (@mrflip)"]
@@ -38,7 +38,6 @@ Gem::Specification.new do |s|
38
38
  "lib/graphiterb/script.rb",
39
39
  "lib/graphiterb/sender.rb",
40
40
  "lib/graphiterb/utils.rb",
41
- "lib/graphiterb/utils/extensions.rb",
42
41
  "lib/graphiterb/utils/log.rb",
43
42
  "lib/graphiterb/utils/system.rb",
44
43
  "spec/graphiterb_spec.rb",
@@ -2,5 +2,4 @@ require 'rubygems'
2
2
  require 'graphiterb'
3
3
 
4
4
  Configliere.use :commandline, :config_file, :define
5
- Log = ::Logger.new($stderr) unless defined?(Log)
6
5
  Settings.resolve!
@@ -1,9 +1,9 @@
1
1
  require 'rubygems'
2
2
  require 'socket'
3
3
  require 'configliere'
4
+ require 'active_support'
4
5
 
5
6
  require 'graphiterb/utils/log'
6
- require 'graphiterb/utils/extensions'
7
7
 
8
8
  module Graphiterb
9
9
 
data/lib/graphiterb.rb CHANGED
@@ -1,5 +1,10 @@
1
1
  require 'graphiterb/utils'
2
2
 
3
+ module Graphiterb
4
+ autoload :Monitors, 'graphiterb/monitors'
5
+ autoload :Sender, 'graphiterb/sender'
6
+ end
7
+
3
8
  Settings.use :define, :config_file
4
9
 
5
10
  Settings.define :log, :default => STDOUT, :description => "Log output for Graphiterb"
@@ -9,8 +14,3 @@ Settings.define :update_delay, :default => 30, :description => "How l
9
14
  Settings.define :on_error_delay, :default => 0.1, :description => "How long to wait on connect errors", :required => true, :type => Float
10
15
 
11
16
  Settings.read '/etc/graphiterb/graphiterb.yaml' if File.exist? '/etc/graphiterb/graphiterb.yaml'
12
-
13
- module Graphiterb
14
- autoload :Monitors, 'graphiterb/monitors'
15
- autoload :Sender, 'graphiterb/sender'
16
- end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiterb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Philip (flip) Kromer (@mrflip)
@@ -93,7 +93,6 @@ files:
93
93
  - lib/graphiterb/script.rb
94
94
  - lib/graphiterb/sender.rb
95
95
  - lib/graphiterb/utils.rb
96
- - lib/graphiterb/utils/extensions.rb
97
96
  - lib/graphiterb/utils/log.rb
98
97
  - lib/graphiterb/utils/system.rb
99
98
  - spec/graphiterb_spec.rb
@@ -1,7 +0,0 @@
1
- class Array
2
-
3
- def sum
4
- inject(0.0) { |partial_sum, element| partial_sum += element }
5
- end
6
-
7
- end