rom-mongodb 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/CHANGELOG.md +4 -0
- data/README.md +3 -2
- data/lib/rom/mongo/version.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: 4efd6cb73ac1e056f521e787c772e96397a77ae6602d745cbe508ade8e7a3655
|
4
|
+
data.tar.gz: d3d737341786e1f6410eecdff902648c3449ebe4d41cddd66b10bc9ec8b5b78f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b1dd23723984e246ff6ce3cfc7ea9acf0171327783f697adc316a04d1fe9be17c38bee8e411285571e9d2d75d16b5ba5f13a03442004e5f75e7147881feaa54
|
7
|
+
data.tar.gz: be7f6c1c9913575d559b51a0675813cc3940d420b0c752c3e8ef61e5d10c7622a245decf5ef46aa41ebf1c959424db9273c4a729ae8962980ae4be6c0f5a3013
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
4
4
|
|
5
|
+
## [0.1.2] - 2022-06-28
|
6
|
+
|
7
|
+
- Fixed docs, updated tests, version
|
8
|
+
|
5
9
|
## [0.1.1] - 2022-06-27
|
6
10
|
|
7
11
|
- Fixed docs, updated version
|
data/README.md
CHANGED
@@ -59,6 +59,7 @@ container = ROM.container(:mongo, connection) do |config|
|
|
59
59
|
attribute :email, ROM::Types::String
|
60
60
|
attribute :rating, ROM::Types::Integer
|
61
61
|
attribute :status, ROM::Types::Bool
|
62
|
+
attribute :orders?, ROM::Types::Array # optional attribute, if field does not exists will return nil
|
62
63
|
end
|
63
64
|
end
|
64
65
|
end
|
@@ -67,7 +68,7 @@ end
|
|
67
68
|
|
68
69
|
require 'rom/repository'
|
69
70
|
|
70
|
-
|
71
|
+
UserRepository = ::Class.new(ROM::Repository[:users]) do
|
71
72
|
commands(:create, :delete, update: :by_pk)
|
72
73
|
|
73
74
|
def all
|
@@ -79,7 +80,7 @@ User = ::Class.new(ROM::Repository[:users]) do
|
|
79
80
|
end
|
80
81
|
end
|
81
82
|
|
82
|
-
user_repository =
|
83
|
+
user_repository = UserRepository.new(container)
|
83
84
|
|
84
85
|
# Now you can do some manipulations with your repository
|
85
86
|
|
data/lib/rom/mongo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rom-mongodb
|
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
|
- Vladislav Trotsenko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongo
|