easymongo 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a74df8d35081f9de37e9587ef1256c67683fc0c7
4
- data.tar.gz: 36a35bf556d02bd4378a8ba5f64d42ef24c39eed
3
+ metadata.gz: 8d612fc89a257596fd35e80f1629e5550cdbfb17
4
+ data.tar.gz: 26836d20c334424a8810fabb07ebb4a964ad4e0d
5
5
  SHA512:
6
- metadata.gz: ae68168f09e312070def9f09022002790770a09f635c3700a3406296e17b392d9e9b329b5280b1c3ffcf6eb9daeec2a84bb60847e3cf67b680a67e280765cef0
7
- data.tar.gz: '084053b5a8af6a604afee5d41d221f786220695a901ec0a7d3afad37e09f24ac3986db76f3a6e779026d6cfe81660fe09c53a323802ab81e18edb91155775b1e'
6
+ metadata.gz: 309ee8e6905648d77883c91d7b98a6d497cfa34abf9721b1d01cc8cde1b127445dbae9114bb5e8a0639855e10bcc7774449fa3e3449ccdb3b100b2f2775e1ff4
7
+ data.tar.gz: 91c0275971f8151fde13623270395505929edaf99fcd678236b82a5152633fff82f5fa59ed29d976554aa1d3f8c14185e150a1bc9d276866fcd1d4d1c11b9320
@@ -1,3 +1,8 @@
1
+ **Version 0.0.6** - *2017-07-20*
2
+
3
+ - Added projection and skip
4
+
5
+
1
6
  **Version 0.0.5** - *2017-07-16*
2
7
 
3
8
  - Added projection and skip
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'easymongo'
3
- s.version = '0.0.6'
3
+ s.version = '0.0.7'
4
4
  s.date = '2017-07-20'
5
5
  s.summary = "Super Easy MongoDB client"
6
6
  s.description = "The way MongoDB for Ruby should be, can't get easier than this"
@@ -4,7 +4,7 @@ module Easymongo
4
4
  class Document
5
5
 
6
6
  # Takes a BSON::Document
7
- def initialize(doc)
7
+ def initialize(doc = {})
8
8
 
9
9
  # Replace _id with id
10
10
  doc['id'] = doc.delete('_id')
@@ -39,7 +39,7 @@ module Easymongo
39
39
 
40
40
  # Dynamically write value
41
41
  def method_missing(name, *args, &block)
42
- return attr(name[0..-2], args.first) if args.size == 1 and name[-1] == '='
42
+ return attr(name[0..-2], args[0]) if args.size == 1 and name[-1] == '='
43
43
  end
44
44
 
45
45
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easymongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fugroup Limited