Permalink
Browse files

updated gemfile

  • Loading branch information...
1 parent d4692e1 commit 3ebff35da1204a46c66a534100f3d130532f4eef @derailed committed Apr 20, 2012
Showing with 53 additions and 38 deletions.
  1. +12 −0 Gemfile.lock
  2. +11 −38 Rakefile
  3. +30 −0 mongo3.gemspec
View
@@ -3,11 +3,21 @@ GEM
specs:
agnostic-will_paginate (3.0.0)
arrayfields (4.7.4)
+ bones (3.8.0)
+ little-plugger (~> 1.1.3)
+ loquacious (~> 1.9.1)
+ rake (>= 0.8.7)
+ bones-git (1.3.0)
+ bones (>= 3.6)
+ git (>= 1.2.5)
bson (1.5.2)
bson_ext (1.5.2)
bson (= 1.5.2)
chronic (0.6.7)
fattr (2.2.1)
+ git (1.2.5)
+ little-plugger (1.1.3)
+ loquacious (1.9.1)
main (4.8.1)
arrayfields (~> 4.7.4)
chronic (~> 0.6.2)
@@ -36,6 +46,8 @@ PLATFORMS
DEPENDENCIES
agnostic-will_paginate
+ bones
+ bones-git
bson
bson_ext
main
View
@@ -1,41 +1,14 @@
-# Look in the tasks/setup.rb file for the various options that can be
-# configured in this Rakefile. The .rake files in the tasks directory
-# are where the options are used.
-begin
- require 'bones'
- Bones.setup
-rescue LoadError
- begin
- load 'tasks/setup.rb'
- rescue LoadError
- raise RuntimeError, '### please install the "bones" gem ###'
- end
-end
-
-ensure_in_path 'lib'
-require 'mongo3'
+require 'bundler'
+Bundler::GemHelper.install_tasks
-task :default => 'spec:run'
+task :default => 'test:run'
+task 'gem:release' => 'test:run'
-PROJ.name = 'mongo3'
-PROJ.authors = 'Fernand Galiana'
-PROJ.email = 'fernand.galiana@gmail.com'
-PROJ.url = 'http://www.mongo3.com'
-PROJ.version = Mongo3::VERSION
-PROJ.ruby_opts = %w[-W0]
-PROJ.readme = 'README.rdoc'
-PROJ.rcov.opts = ["--sort", "coverage", "-T"]
-PROJ.ignore_file = "*.log"
-PROJ.spec.opts << '--color'
-PROJ.rdoc.include = %w[.rb]
+def ensure_in_path( *args )
+ args.each do |path|
+ path = File.expand_path(path)
+ $:.unshift(path) if test(?d, path) and not $:.include?(path)
+ end
+end
-# Dependencies
-depend_on "mongo" , ">= 1.0.1"
-depend_on "bson" , ">= 1.0.1"
-depend_on "bson_ext" , ">= 1.0.1"
-depend_on "agnostic-will_paginate", ">= 3.0.0"
-depend_on "memcache-client" , ">= 1.5.0"
-depend_on "mongo_rack" , ">= 0.0.1"
-depend_on "main" , ">= 4.2.0"
-depend_on "json" , ">= 1.2.0"
-depend_on "sinatra" , ">= 0.9.4"
+ensure_in_path 'lib'
View
@@ -0,0 +1,30 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "mongo3"
+
+Gem::Specification.new do |s|
+ s.name = 'mongo3'
+ s.version = Mongo3::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Fernand Galiana"]
+ s.email = ["fernand.galiana@gmail.com"]
+ s.homepage = 'http://www.mongo3.com'
+ s.summary = 'Rule your mongoDB clusters'
+ s.description = 'Console to administer MongoDB'
+ s.rubyforge_project = "mongo3"
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {specs}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+ s.required_ruby_version = ">= 1.9.2"
+ s.required_rubygems_version = ">= 1.3.7"
+ s.add_runtime_dependency 'mongo' , '>= 1.0.1'
+ s.add_runtime_dependency 'bson' , '>= 1.0.1'
+ s.add_runtime_dependency 'bson_ext' , '>= 1.0.1'
+ s.add_runtime_dependency 'agnostic-will_paginate', '>= 3.0.0'
+ s.add_runtime_dependency 'memcache-client' , '>= 1.5.0'
+ s.add_runtime_dependency 'mongo_rack' , '>= 0.0.1'
+ s.add_runtime_dependency 'main' , '>= 4.2.0'
+ s.add_runtime_dependency 'json' , '>= 1.2.0'
+ s.add_runtime_dependency 'sinatra' , '>= 1.3.0'
+end

0 comments on commit 3ebff35

Please sign in to comment.