minimongo 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/minimongo.rb +24 -0
- metadata +86 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 59784445f9e62ca5d5fd5b54e22087dba6e02106
|
4
|
+
data.tar.gz: ac6bfae679e38780f9817041e2227921a21e4e82
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4b7c85269a9bbc321295d0a8b4aafa636e647347e9f0b68576c90700928ba4b23905a5117c0f6f1cc84ee6d2b5d23ebf9f8d6550a504a0afa21fa5f1b1ead74b
|
7
|
+
data.tar.gz: d0be7b28ce831d5479b8979d10dcf7bc474a25c19574a58223d85178f23f5d0fc8c3f0b4c8bac7c75d76cf7ca6dec299354be3c4ee5e5ad4160af8f010eb9f84
|
data/lib/minimongo.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
module Minimongo
|
2
|
+
|
3
|
+
# # # # # #
|
4
|
+
# Minimongo MongoDB Ruby app helpers
|
5
|
+
# @homepage: https://github.com/fugroup/minimongo
|
6
|
+
# @author: Vidar <vidar@fugroup.net>, Fugroup Ltd.
|
7
|
+
# @license: MIT, contributions are welcome.
|
8
|
+
# # # # # #
|
9
|
+
|
10
|
+
end
|
11
|
+
|
12
|
+
require_relative 'minimongo/query'
|
13
|
+
|
14
|
+
# Connect
|
15
|
+
# $db = Mongo::Client.new([ '127.0.0.1:27017' ], :database => "minimongo_#{MODE}")
|
16
|
+
|
17
|
+
# Indexing
|
18
|
+
# $db[:profiles].indexes.create_one({:key => 1}, :unique => true)
|
19
|
+
|
20
|
+
# Info on MongoDB Driver
|
21
|
+
# https://docs.mongodb.com/ruby-driver/master/quick-start/
|
22
|
+
# http://zetcode.com/db/mongodbruby/
|
23
|
+
# http://recipes.sinatrarb.com/p/databases/mongo
|
24
|
+
# https://github.com/steveren/ruby-driver-sample-app/blob/master/lib/neighborhood.rb
|
metadata
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: minimongo
|
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: 2016-12-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: mongo
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bson_ext
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: futest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: Helpers that sits right on top of mongodb
|
56
|
+
email: mail@fugroup.net
|
57
|
+
executables: []
|
58
|
+
extensions: []
|
59
|
+
extra_rdoc_files: []
|
60
|
+
files:
|
61
|
+
- lib/minimongo.rb
|
62
|
+
homepage: https://github.com/fugroup/minimongo
|
63
|
+
licenses:
|
64
|
+
- MIT
|
65
|
+
metadata: {}
|
66
|
+
post_install_message:
|
67
|
+
rdoc_options: []
|
68
|
+
require_paths:
|
69
|
+
- lib
|
70
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
requirements: []
|
81
|
+
rubyforge_project:
|
82
|
+
rubygems_version: 2.5.1
|
83
|
+
signing_key:
|
84
|
+
specification_version: 4
|
85
|
+
summary: MongoDB Helpers for flat space apps
|
86
|
+
test_files: []
|