Permalink
Browse files

Merge pull request #4 from sonots/Gemfile

Fix gmetric.gemspec
  • Loading branch information...
2 parents 52f0170 + 900b31a commit 710e06a24a67764be47b99b1811352986b69904e @igrigorik committed Mar 11, 2013
Showing with 16 additions and 5 deletions.
  1. +2 −0 .gitignore
  2. +3 −0 Gemfile
  3. +5 −2 gmetric.gemspec
  4. +0 −1 spec/gmetric_spec.rb
  5. +6 −2 spec/helper.rb
View
2 .gitignore
@@ -0,0 +1,2 @@
+Gemfile.lock
+.ruby-version
View
3 Gemfile
@@ -0,0 +1,3 @@
+source "http://rubygems.org"
+
+gemspec
View
7 gmetric.gemspec
@@ -13,10 +13,10 @@ Gem::Specification.new do |s|
s.description = %q{Pure Ruby interface for generating Ganglia gmetric packets}
s.email = %q{ilya@igvita.com}
s.extra_rdoc_files = [
- "README.rdoc"
+ "README.md"
]
s.files = [
- "README.rdoc",
+ "README.md",
"Rakefile",
"VERSION",
"gmetric.gemspec",
@@ -44,5 +44,8 @@ Gem::Specification.new do |s|
end
else
end
+ s.add_development_dependency "rake"
+ s.add_development_dependency "rspec"
+ s.add_development_dependency "eventmachine"
end
View
1 spec/gmetric_spec.rb
@@ -88,7 +88,6 @@ def hex(data)
it "should use EM reactor if used within event loop" do
pending 'stub out connection class'
- require 'rubygems'
require 'eventmachine'
EventMachine.run do
Ganglia::GMetric.send("127.0.0.1", 1111, {
View
8 spec/helper.rb
@@ -1,2 +1,6 @@
-require "lib/gmetric"
-require "spec"
+require 'rubygems'
+require 'bundler'
+Bundler.setup(:default, :test)
+Bundler.require(:default, :test)
+
+require "rspec"

0 comments on commit 710e06a

Please sign in to comment.