Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt committed Nov 20, 2010
0 parents commit d86f4d5
Show file tree
Hide file tree
Showing 7 changed files with 111 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pkg/*
*.gem
.bundle
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "http://rubygems.org"

gemspec
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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 changes: 54 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -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 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require 'bundler'
Bundler::GemHelper.install_tasks
5 changes: 5 additions & 0 deletions lib/mongoid/plugins.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Mongoid
module Plugins
VERSION = "0.0.1"
end
end
24 changes: 24 additions & 0 deletions mongoid-plugins.gemspec
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d86f4d5

Please sign in to comment.