minimongo 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/minimongo.rb +3 -5
  3. metadata +9 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59784445f9e62ca5d5fd5b54e22087dba6e02106
4
- data.tar.gz: ac6bfae679e38780f9817041e2227921a21e4e82
3
+ metadata.gz: 10694c3ed933a3b74129be6957395163ec02b976
4
+ data.tar.gz: 045736d382c05b0db57322145c51cc4370c8c799
5
5
  SHA512:
6
- metadata.gz: 4b7c85269a9bbc321295d0a8b4aafa636e647347e9f0b68576c90700928ba4b23905a5117c0f6f1cc84ee6d2b5d23ebf9f8d6550a504a0afa21fa5f1b1ead74b
7
- data.tar.gz: d0be7b28ce831d5479b8979d10dcf7bc474a25c19574a58223d85178f23f5d0fc8c3f0b4c8bac7c75d76cf7ca6dec299354be3c4ee5e5ad4160af8f010eb9f84
6
+ metadata.gz: 36268fb0ad9c8aa98143e276e3859af7334306e2ba874996b3e39e6e67e5a63114e87360f29cfa96d5d3fcd2f94edf7376dde95960f2adc15229ac0b5afb79cd
7
+ data.tar.gz: a17d5cb706f4f9e640b794e7392919350eebb6b919ab4f69f60d5d11e1d4bfaf95905363ced4890a423a825a9c8c6d4fad3bb2105d0cce81009727ce00d57a2a
@@ -1,21 +1,19 @@
1
1
  module Minimongo
2
2
 
3
3
  # # # # # #
4
- # Minimongo MongoDB Ruby app helpers
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
- # $db[:profiles].indexes.create_one({:key => 1}, :unique => true)
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.1
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-26 00:00:00.000000000 Z
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: []