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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c30e213b574cf292672be0548d51c3eddc3e01aa3dff0e662976c9981ccd489
4
- data.tar.gz: 2f81d203b9e0ebd3db067b023bd7b248660ea8d2622137819a2958e5cb106e7f
3
+ metadata.gz: a4575bdb26dd28e2cc5df6204e6f710269cb6bef0030802b11e1d3bc995249e9
4
+ data.tar.gz: 5b09da1d440b2b2f730cb859f23420ba5e00304376d166abed94a276dadf8f69
5
5
  SHA512:
6
- metadata.gz: 1bcbc635372cf993dd6d667b5153c50b00739a22441f0fedd357fd3e891051587a5b4f6f95f284caef621fd5cc0b42109848619f8fce968859c680a9eec8cdea
7
- data.tar.gz: 4fe80871e6a311d78625b46388b37b4fdd8d08c78efdaa5fb19765c7a0c7d1d410e684d51ed43e89fa898b7ba6ac250c1a32387e7ebb63bc608c97bf5e7cb8a4
6
+ metadata.gz: 74fd7173d3f9fc73f7f8ac5ba552b7aa26b53ec7e1ba2418914b8e1c46a3959e22d7dd42dc29d30e2e3f0847751333e50597cf4951f80775478e515d83fb6483
7
+ data.tar.gz: 7b7b8c87ec8f5d10b8699d92ff55c6f1c6d303980a22dae52e11d4dd14aff6afc935d1ffd5c9415fc6d63a6f47d96b3f6255eec800b13a59ba144a8466317ae9
data/.circleci/config.yml CHANGED
@@ -117,7 +117,7 @@ jobs:
117
117
  - checkout
118
118
  - <<: *use_compatible_gemspec
119
119
  - ruby/install-deps:
120
- bundler-version: "2.3.16"
120
+ bundler-version: "2.3.23"
121
121
  with-cache: false
122
122
  path: './vendor/custom_bundle'
123
123
  - run:
@@ -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.17', '>= 2.17.1'
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'
@@ -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.17', '>= 2.17.1'
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
- User = ::Class.new(ROM::Repository[:users]) do
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 = User.new(container)
83
+ user_repository = UserRepository.new(container)
83
84
 
84
85
  # Now you can do some manipulations with your repository
85
86
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ROM
4
4
  module Mongo
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
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.17', '>= 2.17.1'
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.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-27 00:00:00.000000000 Z
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.17'
19
+ version: '2.18'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 2.17.1
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.17'
29
+ version: '2.18'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 2.17.1
32
+ version: 2.18.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rom-core
35
35
  requirement: !ruby/object:Gem::Requirement