minimongo 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minimongo.rb +3 -5
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10694c3ed933a3b74129be6957395163ec02b976
|
4
|
+
data.tar.gz: 045736d382c05b0db57322145c51cc4370c8c799
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36268fb0ad9c8aa98143e276e3859af7334306e2ba874996b3e39e6e67e5a63114e87360f29cfa96d5d3fcd2f94edf7376dde95960f2adc15229ac0b5afb79cd
|
7
|
+
data.tar.gz: a17d5cb706f4f9e640b794e7392919350eebb6b919ab4f69f60d5d11e1d4bfaf95905363ced4890a423a825a9c8c6d4fad3bb2105d0cce81009727ce00d57a2a
|
data/lib/minimongo.rb
CHANGED
@@ -1,21 +1,19 @@
|
|
1
1
|
module Minimongo
|
2
2
|
|
3
3
|
# # # # # #
|
4
|
-
# Minimongo MongoDB Ruby
|
4
|
+
# Minimongo MongoDB tiny Ruby library.
|
5
5
|
# @homepage: https://github.com/fugroup/minimongo
|
6
6
|
# @author: Vidar <vidar@fugroup.net>, Fugroup Ltd.
|
7
7
|
# @license: MIT, contributions are welcome.
|
8
8
|
# # # # # #
|
9
9
|
|
10
|
+
class << self; attr_accessor :db; end
|
10
11
|
end
|
11
12
|
|
12
13
|
require_relative 'minimongo/query'
|
13
14
|
|
14
|
-
# Connect
|
15
|
-
# $db = Mongo::Client.new([ '127.0.0.1:27017' ], :database => "minimongo_#{MODE}")
|
16
|
-
|
17
15
|
# Indexing
|
18
|
-
#
|
16
|
+
# Minimongo.db[:profiles].indexes.create_one({:key => 1}, :unique => true)
|
19
17
|
|
20
18
|
# Info on MongoDB Driver
|
21
19
|
# https://docs.mongodb.com/ruby-driver/master/quick-start/
|
metadata
CHANGED
@@ -1,58 +1,58 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimongo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fugroup Limited
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongo
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bson_ext
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: futest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description: Helpers that sits right on top of mongodb
|
55
|
+
description: Helpers that sits right on top of mongodb with a nicer syntax
|
56
56
|
email: mail@fugroup.net
|
57
57
|
executables: []
|
58
58
|
extensions: []
|