Permalink
Browse files

moving dependecy declarations to gemspec

  • Loading branch information...
1 parent f4f102a commit dfd5ed65d9d4f44c138b446b398c05a22b2706e1 @steelThread committed Jan 11, 2012
Showing with 41 additions and 47 deletions.
  1. +1 −20 Gemfile
  2. +14 −17 Gemfile.lock
  3. +0 −1 lib/redmon.rb
  4. +16 −0 redmon.gemspec
  5. +10 −9 spec/app_spec.rb
View
21 Gemfile
@@ -1,22 +1,3 @@
source "http://rubygems.org"
-gem "bson_ext", ">= 1.4.0"
-gem "sinatra", ">= 1.2.6"
-gem "redis", ">= 2.2.2"
-gem "eventmachine"
-gem "em-hiredis"
-gem "json"
-gem "i18n"
-gem "haml"
-gem "rack"
-gem "rack-test"
-gem "yajl-ruby", :git => "git://github.com/brianmario/yajl-ruby.git"
-gem "thin"
-gem "activesupport"
-
-group :test do
- gem "rake"
- gem "rspec", "~> 2.6.0"
- gem "shoulda", ">= 0"
- gem "bundler", "~> 1.0.0"
-end
+gemspec
View
@@ -1,8 +1,17 @@
-GIT
- remote: git://github.com/brianmario/yajl-ruby.git
- revision: b08b3f7ffd2fe5fad051f9d4a78db7ce71d7a5fc
+PATH
+ remote: .
specs:
- yajl-ruby (1.1.0)
+ redmon (0.0.1)
+ activesupport
+ bson_ext (>= 1.4.0)
+ em-hiredis
+ eventmachine
+ haml
+ i18n
+ rack
+ redis (>= 2.2.2)
+ sinatra (>= 1.2.6)
+ thin
GEM
remote: http://rubygems.org/
@@ -20,7 +29,6 @@ GEM
haml (3.1.4)
hiredis (0.3.2)
i18n (0.6.0)
- json (1.6.4)
multi_json (1.0.4)
rack (1.4.0)
rack-protection (1.2.0)
@@ -52,20 +60,9 @@ PLATFORMS
ruby
DEPENDENCIES
- activesupport
- bson_ext (>= 1.4.0)
bundler (~> 1.0.0)
- em-hiredis
- eventmachine
- haml
- i18n
- json
- rack
rack-test
rake
- redis (>= 2.2.2)
+ redmon!
rspec (~> 2.6.0)
shoulda
- sinatra (>= 1.2.6)
- thin
- yajl-ruby!
View
@@ -5,7 +5,6 @@
require 'redis'
require 'sinatra/base'
require 'thin'
-require 'yajl'
module Redmon
extend self
View
@@ -18,5 +18,21 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
+ s.add_dependency "bson_ext", ">= 1.4.0"
+ s.add_dependency "sinatra", ">= 1.2.6"
+ s.add_dependency "redis", ">= 2.2.2"
+ s.add_dependency "eventmachine"
+ s.add_dependency "em-hiredis"
+ s.add_dependency "i18n"
+ s.add_dependency "haml"
+ s.add_dependency "rack"
+ s.add_dependency "thin"
+ s.add_dependency "activesupport"
+
s.add_development_dependency "rspec"
+ s.add_development_dependency "rack-test"
+ s.add_development_dependency "rake"
+ s.add_development_dependency "rspec", "~> 2.6.0"
+ s.add_development_dependency "shoulda", ">= 0"
+ s.add_development_dependency "bundler", "~> 1.0.0"
end
View
@@ -8,6 +8,16 @@ def app
Redmon::App.new Redmon::DEFAULT_OPTS
end
+ def stub_redis_cmd(cmd, *args)
+ mock_redis.should_receive(cmd).with(*args).and_return({})
+ end
+
+ def mock_redis
+ redis = Redis.new
+ Redis.stub(:new).and_return(redis)
+ redis
+ end
+
describe "GET /" do
it "should render the app" do
get "/"
@@ -77,13 +87,4 @@ def app
end
end
- def stub_redis_cmd(cmd, *args)
- mock_redis.should_receive(cmd).with(*args).and_return({})
- end
-
- def mock_redis
- redis = Redis.new
- Redis.stub(:new).and_return(redis)
- redis
- end
end

0 comments on commit dfd5ed6

Please sign in to comment.