Permalink
Browse files

Merge pull request #2 from pivotalhalogen/master

Gemification
  • Loading branch information...
2 parents 1ba2d90 + fa09e00 commit 8336c5645c628cf57d1ba1373b3480fce01def02 Greg Brockman committed Oct 11, 2011
Showing with 45 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +4 −0 Gemfile
  3. +1 −0 Rakefile
  4. +32 −0 embedded-mongo.gemspec
  5. +1 −0 lib/embedded-mongo.rb
  6. +3 −0 lib/embedded-mongo/version.rb
View
4 .gitignore
@@ -0,0 +1,4 @@
+*.gem
+.bundle
+Gemfile.lock
+pkg/*
View
4 Gemfile
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in embedded-mongo.gemspec
+gemspec
View
1 Rakefile
@@ -0,0 +1 @@
+require "bundler/gem_tasks"
View
32 embedded-mongo.gemspec
@@ -0,0 +1,32 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "embedded-mongo/version"
+
+Gem::Specification.new do |s|
+ s.name = "embedded-mongo"
+ s.version = EmbeddedMongo::VERSION
+ s.authors = ["Greg Brockman"]
+ s.email = ["gdb@gregbrockman.com"]
+ s.homepage = "https://github.com/gdb/embedded-mongo"
+ s.summary = %q{A Ruby implementation of the MongoDB interface}
+ s.description = %q{embedded-mongo's goal is to provide the same interface as mongodb but
+ be embedded inside the calling process. This allows unit tests to be
+ run without the overhead of database roundtrips or the creation of
+ ad-hoc mock layers. It also allows one to start using the mongodb
+ interface for new projects without having to set up a real database.
+ I don't think there's a use-case for it in production, though I could
+ be wrong.
+ }
+
+ s.rubyforge_project = "embedded-mongo"
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+
+ # specify any dependencies here; for example:
+ # s.add_development_dependency "rspec"
+ # s.add_runtime_dependency "rest-client"
+ s.add_runtime_dependency "mongo"
+end
View
1 lib/embedded-mongo.rb
@@ -14,6 +14,7 @@ def self.log
end
end
+require "embedded-mongo/version"
require 'embedded-mongo/backend'
require 'embedded-mongo/backend/collection'
require 'embedded-mongo/backend/db'
View
3 lib/embedded-mongo/version.rb
@@ -0,0 +1,3 @@
+module EmbeddedMongo
+ VERSION = "0.0.1"
+end

0 comments on commit 8336c56

Please sign in to comment.