rom-mongodb 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -1
- data/.circleci/gemspec_compatible +1 -1
- data/.circleci/gemspec_latest +1 -1
- data/CHANGELOG.md +8 -0
- data/README.md +3 -2
- data/lib/rom/mongo/version.rb +1 -1
- data/rom-mongodb.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4575bdb26dd28e2cc5df6204e6f710269cb6bef0030802b11e1d3bc995249e9
|
4
|
+
data.tar.gz: 5b09da1d440b2b2f730cb859f23420ba5e00304376d166abed94a276dadf8f69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74fd7173d3f9fc73f7f8ac5ba552b7aa26b53ec7e1ba2418914b8e1c46a3959e22d7dd42dc29d30e2e3f0847751333e50597cf4951f80775478e515d83fb6483
|
7
|
+
data.tar.gz: 7b7b8c87ec8f5d10b8699d92ff55c6f1c6d303980a22dae52e11d4dd14aff6afc935d1ffd5c9415fc6d63a6f47d96b3f6255eec800b13a59ba144a8466317ae9
|
data/.circleci/config.yml
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| ::File.basename(f) }
|
30
30
|
spec.require_paths = ['lib']
|
31
31
|
|
32
|
-
spec.add_runtime_dependency 'mongo', '~> 2.
|
32
|
+
spec.add_runtime_dependency 'mongo', '~> 2.18', '>= 2.18.1'
|
33
33
|
spec.add_runtime_dependency 'rom-core', '~> 5.2', '>= 5.2.6'
|
34
34
|
|
35
35
|
spec.add_development_dependency 'ffaker', '~> 2.21'
|
data/.circleci/gemspec_latest
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| ::File.basename(f) }
|
30
30
|
spec.require_paths = ['lib']
|
31
31
|
|
32
|
-
spec.add_runtime_dependency 'mongo', '~> 2.
|
32
|
+
spec.add_runtime_dependency 'mongo', '~> 2.18', '>= 2.18.1'
|
33
33
|
spec.add_runtime_dependency 'rom-core', '~> 5.2', '>= 5.2.6'
|
34
34
|
|
35
35
|
spec.add_development_dependency 'bundler-audit', '~> 0.9.1'
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
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.3] - 2022-10-06
|
6
|
+
|
7
|
+
- Updated runtime dependencies, version
|
8
|
+
|
9
|
+
## [0.1.2] - 2022-06-28
|
10
|
+
|
11
|
+
- Fixed docs, updated tests, version
|
12
|
+
|
5
13
|
## [0.1.1] - 2022-06-27
|
6
14
|
|
7
15
|
- 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
data/rom-mongodb.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| ::File.basename(f) }
|
30
30
|
spec.require_paths = ['lib']
|
31
31
|
|
32
|
-
spec.add_runtime_dependency 'mongo', '~> 2.
|
32
|
+
spec.add_runtime_dependency 'mongo', '~> 2.18', '>= 2.18.1'
|
33
33
|
spec.add_runtime_dependency 'rom-core', '~> 5.2', '>= 5.2.6'
|
34
34
|
|
35
35
|
spec.add_development_dependency 'ffaker', '~> 2.21'
|
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.3
|
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-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongo
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.18'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 2.
|
22
|
+
version: 2.18.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '2.
|
29
|
+
version: '2.18'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 2.
|
32
|
+
version: 2.18.1
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rom-core
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|