# -*- encoding: utf-8 -*- # stub: sinatra-mongo 0.0.1 ruby lib Gem::Specification.new do |s| s.name = "sinatra-mongo".freeze s.version = "0.0.1".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Joshua Nichols".freeze] s.date = "2009-12-09" s.description = "= sinatra-mongo\n\nExtends Sinatra with an extension method for dealing with monogodb using the ruby driver.\n\n\nInstall it with gem:\n\n $ gem install sinatra-mongo\n\nNow we can use it an example application.\n\n require 'sinatra'\n require 'sinatra/mongo'\n \n # Specify the database to use. Defaults to mongo://localhost:27017/default,\n # so you will almost definitely want to change this.\n #\n # Alternatively, you can specify the MONGO_URL as an environment variable\n set :mongo, 'mongo://localhost:27017/sinatra-mongo-example'\n \n # At this point, you can access the Mongo::Database object using the 'mongo' helper:\n \n puts mongo[\"testCollection\"].insert {\"name\" => \"MongoDB\", \"type\" => \"database\", \"count\" => 1, \"info\" => {\"x\" => 203, \"y\" => '102'}}\n \n get '/' do\n mongo[\"testCollection\"].find_one\n end\n\nIf you need to use authentication, you can specify this in the mongo uri:\n\n set :mongo, 'mongo://myuser:mypass@localhost:27017/sinatra-mongo-example'\n\n== Mongo Reference\n\n * http://www.mongodb.org/display/DOCS/Ruby+Tutorial\n\n== Note on Patches/Pull Requests\n \n* Fork the project.\n* Make your feature addition or bug fix.\n* Add tests for it. This is important so I don't break it in a\n future version unintentionally.\n* Commit, do not mess with rakefile, version, or history.\n (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)\n* Send me a pull request. Bonus points for topic branches.\n\n== Copyright\n\nCopyright (c) 2009 Joshua Nichols. See LICENSE for details.\n".freeze s.email = "josh@technicalpickles.com".freeze s.extra_rdoc_files = ["LICENSE".freeze, "README.rdoc".freeze] s.files = [".document".freeze, ".gitignore".freeze, "LICENSE".freeze, "README.rdoc".freeze, "Rakefile".freeze, "lib/sinatra/mongo.rb".freeze, "spec/sinatra-mongo_spec.rb".freeze, "spec/spec.opts".freeze, "spec/spec_helper.rb".freeze] s.homepage = "http://github.com/technicalpickles/sinatra-mongo".freeze s.rdoc_options = ["--charset=UTF-8".freeze] s.rubygems_version = "3.5.10".freeze s.summary = "A light extension to sinatra for using mongo".freeze s.test_files = ["spec/sinatra-mongo_spec.rb".freeze, "spec/spec_helper.rb".freeze] s.specification_version = 3 s.add_development_dependency(%q.freeze, [">= 1.2.9".freeze]) s.add_runtime_dependency(%q.freeze, [">= 0".freeze]) s.add_runtime_dependency(%q.freeze, [">= 0.9.4".freeze]) end