Permalink
Browse files

.

  • Loading branch information...
1 parent d3a9edd commit eefa5274560530c0670704292656a55d145e6233 Dhruv Bansal committed Aug 17, 2010
Showing with 27 additions and 13 deletions.
  1. +22 −7 graphiterb.gemspec
  2. +5 −5 lib/graphiterb.rb
  3. +0 −1 lib/graphiterb/script.rb
View
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = %q{graphiterb}
- s.version = "0.1.4"
+ s.version = "0.2.0"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Philip (flip) Kromer (@mrflip)"]
- s.date = %q{2010-07-20}
+ s.date = %q{2010-08-17}
s.description = %q{Uses http://github.com/mrflip/configliere and http://graphite.wikidot.com}
s.email = %q{info@infochimps.org}
s.extra_rdoc_files = [
@@ -24,12 +24,23 @@ Gem::Specification.new do |s|
"README.textile",
"Rakefile",
"VERSION",
+ "examples/api_call_monitor.rb",
+ "examples/file_monitor.rb",
+ "examples/loadavg_graphite_sender.rb",
+ "examples/run_servers.sh",
+ "examples/storage_monitor.rb",
+ "examples/toy.rb",
"graphiterb.gemspec",
"lib/graphiterb.rb",
- "lib/graphiterb/graphite_logger.rb",
- "lib/graphiterb/graphite_script.rb",
- "lib/graphiterb/graphite_sender.rb",
- "lib/graphiterb/graphite_system_logger.rb",
+ "lib/graphiterb/monitors.rb",
+ "lib/graphiterb/monitors/directory_tree.rb",
+ "lib/graphiterb/monitors/disk_space.rb",
+ "lib/graphiterb/script.rb",
+ "lib/graphiterb/sender.rb",
+ "lib/graphiterb/utils.rb",
+ "lib/graphiterb/utils/extensions.rb",
+ "lib/graphiterb/utils/log.rb",
+ "lib/graphiterb/utils/system.rb",
"spec/graphiterb_spec.rb",
"spec/spec.opts",
"spec/spec_helper.rb"
@@ -45,21 +56,25 @@ Gem::Specification.new do |s|
"examples/toy.rb",
"examples/storage_monitor.rb",
"examples/loadavg_graphite_sender.rb",
- "examples/file_monitor.rb"
+ "examples/file_monitor.rb",
+ "examples/api_call_monitor.rb"
]
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<configliere>, [">= 0"])
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
s.add_development_dependency(%q<yard>, [">= 0"])
else
+ s.add_dependency(%q<configliere>, [">= 0"])
s.add_dependency(%q<rspec>, [">= 1.2.9"])
s.add_dependency(%q<yard>, [">= 0"])
end
else
+ s.add_dependency(%q<configliere>, [">= 0"])
s.add_dependency(%q<rspec>, [">= 1.2.9"])
s.add_dependency(%q<yard>, [">= 0"])
end
View
@@ -1,5 +1,10 @@
require 'graphiterb/utils'
+module Graphiterb
+ autoload :Monitors, 'graphiterb/monitors'
+ autoload :Sender, 'graphiterb/sender'
+end
+
Settings.use :define, :config_file
Settings.define :log, :default => STDOUT, :description => "Log output for Graphiterb"
@@ -9,8 +14,3 @@
Settings.define :on_error_delay, :default => 0.1, :description => "How long to wait on connect errors", :required => true, :type => Float
Settings.read '/etc/graphiterb/graphiterb.yaml' if File.exist? '/etc/graphiterb/graphiterb.yaml'
-
-module Graphiterb
- autoload :Monitors, 'graphiterb/monitors'
- autoload :Sender, 'graphiterb/sender'
-end
View
@@ -2,5 +2,4 @@
require 'graphiterb'
Configliere.use :commandline, :config_file, :define
-Log = ::Logger.new($stderr) unless defined?(Log)
Settings.resolve!

0 comments on commit eefa527

Please sign in to comment.