Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initial commit

  • Loading branch information...
commit d86f4d529495116cac7f03c93b9b811d38ad8193 0 parents
@benedikt authored
3  .gitignore
@@ -0,0 +1,3 @@
+pkg/*
+*.gem
+.bundle
3  Gemfile
@@ -0,0 +1,3 @@
+source "http://rubygems.org"
+
+gemspec
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2010 Benedikt Deicke
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
54 README.rdoc
@@ -0,0 +1,54 @@
+= mongoid-plugins
+
+Easily add and configure plugins for Mongoid
+
+== Requirements
+
+* mongoid (>= 2.0.0.beta.20)
+
+== Install
+
+To install mongoid-plugins, simply add it to your Gemfile:
+
+ gem 'mongoid-plugins', :require => 'mongoid/plugins'
+
+In order to get the latest development version of mongoid-plugins:
+
+ gem 'mongoid-plugins', :git => 'git://github.com/benedikt/mongoid-plugins', :require => 'mongoid/plugins'
+
+You might want to remove the <tt>:require => 'mongoid/plugins'</tt> option and explicitly <tt>require 'mongoid/plugins'</tt> where needed and finally run
+
+ bundle install
+
+
+== Usage
+
+Read the API documentation at http://benedikt.github.com/mongoid-plugins and take a look at the Mongoid::Plugins module
+
+ class Node
+ include Mongoid::Document
+
+ plugin Mongoid::Tree do |c|
+ c.parent = :parent
+ c.children = :children
+ end
+ end
+
+
+== Writing Plugins
+
+
+
+== Known issues
+
+See http://github.com/benedikt/mongoid-plugins/issues
+
+
+== Repository
+
+See http://github.com/benedikt/mongoid-plugins and feel free to fork it!
+
+
+== Copyright
+
+Copyright (c) 2010 Benedikt Deicke. See LICENSE for details.
2  Rakefile
@@ -0,0 +1,2 @@
+require 'bundler'
+Bundler::GemHelper.install_tasks
5 lib/mongoid/plugins.rb
@@ -0,0 +1,5 @@
+module Mongoid
+ module Plugins
+ VERSION = "0.0.1"
+ end
+end
24 mongoid-plugins.gemspec
@@ -0,0 +1,24 @@
+$:.push File.expand_path("../lib", __FILE__)
+require "mongoid/plugins"
+
+Gem::Specification.new do |s|
+ s.name = "mongoid-plugins"
+ s.version = Mongoid::Plugins::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = "Benedikt Deicke"
+ s.email = "benedikt@synatic.net"
+ s.homepage = "http://rubygems.org/gems/mongoid-plugins"
+ s.summary = "Easily add and configure plugins for Mongoid"
+ s.description = "Easily add and configure plugins for Mongoid"
+
+ s.has_rdoc = true
+ s.rdoc_options = ['--main', 'README.rdoc', '--charset=UTF-8']
+ s.extra_rdoc_files = ['README.rdoc', 'LICENSE']
+
+ s.files = Dir.glob('{lib,spec}/**/*') + %w(LICENSE README.rdoc Rakefile Gemfile Gemfile.lock .rspec)
+
+ s.add_runtime_dependency('mongoid', ['>= 2.0.0.beta.20'])
+ s.add_development_dependency('rspec', ['~> 2.0'])
+ s.add_development_dependency('autotest', ['>= 4.3.2'])
+ s.add_development_dependency('hanna', ['>= 0.1.12'])
+end
Please sign in to comment.
Something went wrong with that request. Please try again.