mongous 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +1 -1
- data/README.ja.adoc +1 -1
- data/lib/mongous/document.rb +2 -2
- data/lib/mongous/extention.rb +2 -2
- data/lib/mongous/filter.rb +2 -2
- data/lib/mongous/version.rb +1 -1
- data/mongous.gemspec +1 -1
- data/sample/save_basic_1.rb +6 -1
- data/sample/save_basic_2.rb +1 -6
- data/sample/save_basic_3.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f126c03248f80e7dd9c674ddff08879a994ecf36d8c443d0bb43694f6a6fd53
|
4
|
+
data.tar.gz: d9c694cfd344075ec4d744a71562281ba61dac5c3df011154df0b65cd443041e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 867d5753bac0b0a1bea9b82b4a650fcda7233465cc9e03529488e533464ec86a0d9e387afa220bdc019de07522af96e53e644fbbd92d9e5e465c69af47b9b15e
|
7
|
+
data.tar.gz: e0cf057b86df920b3e2f47c26c6fedb8bcbf2ccdb5232cebb3ba3b0fd02ee7b71c90274e0ac3a168d01c5d4cd396131ba5872e286c039b91103924e1bb752689
|
data/README.adoc
CHANGED
data/README.ja.adoc
CHANGED
data/lib/mongous/document.rb
CHANGED
data/lib/mongous/extention.rb
CHANGED
data/lib/mongous/filter.rb
CHANGED
@@ -102,12 +102,12 @@ module Mongous
|
|
102
102
|
|
103
103
|
def first
|
104
104
|
doc = do_find.first
|
105
|
-
@klass.new(
|
105
|
+
@klass.new( doc ) if doc
|
106
106
|
end
|
107
107
|
|
108
108
|
def all
|
109
109
|
do_find.map do |doc|
|
110
|
-
@klass.new(
|
110
|
+
@klass.new( doc )
|
111
111
|
end
|
112
112
|
end
|
113
113
|
|
data/lib/mongous/version.rb
CHANGED
data/mongous.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
|
9
9
|
spec.summary = %q{ Mongo wrapper library. }
|
10
10
|
spec.description = %q{ Yet another lightweight mongo wrapper library. }
|
11
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
11
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
|
12
12
|
|
13
13
|
# Specify which files should be added to the gem when it is released.
|
14
14
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
data/sample/save_basic_1.rb
CHANGED
@@ -8,6 +8,11 @@ class Book
|
|
8
8
|
end
|
9
9
|
|
10
10
|
|
11
|
-
book = Book.new
|
11
|
+
book = Book.new
|
12
|
+
book.title = "title basic 2"
|
13
|
+
book.author = "Bob"
|
14
|
+
book.style = "A5"
|
15
|
+
book.price = 2000
|
16
|
+
book.page = 200
|
12
17
|
book.save
|
13
18
|
|
data/sample/save_basic_2.rb
CHANGED
@@ -8,11 +8,6 @@ class Book
|
|
8
8
|
end
|
9
9
|
|
10
10
|
|
11
|
-
book = Book.new
|
12
|
-
book.title = "title basic 2"
|
13
|
-
book.author = "Bob"
|
14
|
-
book.style = "A5"
|
15
|
-
book.price = 2000
|
16
|
-
book.page = 200
|
11
|
+
book = Book.new( title: "title basic 1", author: "Alice", style: "A4", price: 1000, page: 100 )
|
17
12
|
book.save
|
18
13
|
|
data/sample/save_basic_3.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongous
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ARIMA Yasuhiro
|
@@ -132,7 +132,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
132
|
requirements:
|
133
133
|
- - ">="
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
version: 2.
|
135
|
+
version: 2.6.0
|
136
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
138
|
- - ">="
|