modelize 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/modelize.rb +24 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e3849fd51ef2ef1189f6d17e6a29d48cb6be22dc
|
4
|
+
data.tar.gz: 97d21d0bf7e98101a4a87873938987823321757b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a93165bcd2b3787bac08166959b5ca60e4963039979179cd520fefd70f7ba4f88569eeca2fda2c62addff706132fa869063495e8884baa7caf519aa89020ea84
|
7
|
+
data.tar.gz: 1b6e2649b32962b1530ff5b0ad823372a8199c1b4aa95be1ffd9921e92a496fa94c1182d6a65ad67cc8a58ba4b520ab4f5b11a325413393d240fb2721130cbbc
|
data/lib/modelize.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
module Modelize
|
2
|
+
|
3
|
+
# # # # # #
|
4
|
+
# Modelize MongoDB Documents for Minimongo and the Ruby Driver
|
5
|
+
# @homepage: https://github.com/fugroup/modelize
|
6
|
+
# @author: Vidar <vidar@fugroup.net>, Fugroup Ltd.
|
7
|
+
# @license: MIT, contributions are welcome.
|
8
|
+
# # # # # #
|
9
|
+
|
10
|
+
class << self; attr_accessor :enable, :module, :debug; end
|
11
|
+
|
12
|
+
# Disable / enable modelizing
|
13
|
+
@enable = true
|
14
|
+
|
15
|
+
# Which module the model class is in, ex: Fu::Models
|
16
|
+
@module = ''
|
17
|
+
|
18
|
+
# Debug option
|
19
|
+
@debug = false
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
require_relative 'modelize/ext'
|
24
|
+
require_relative 'modelize/core'
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: modelize
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Fugroup Limited
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-04 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Automatically turn MongoDB BSON Documents into custom models
|
14
|
+
email: mail@fugroup.net
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/modelize.rb
|
20
|
+
homepage: https://github.com/fugroup/modelize
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubyforge_project:
|
40
|
+
rubygems_version: 2.5.1
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: Modelize MongoDB Documents
|
44
|
+
test_files: []
|