rom-mongodb 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c30e213b574cf292672be0548d51c3eddc3e01aa3dff0e662976c9981ccd489
4
- data.tar.gz: 2f81d203b9e0ebd3db067b023bd7b248660ea8d2622137819a2958e5cb106e7f
3
+ metadata.gz: 4efd6cb73ac1e056f521e787c772e96397a77ae6602d745cbe508ade8e7a3655
4
+ data.tar.gz: d3d737341786e1f6410eecdff902648c3449ebe4d41cddd66b10bc9ec8b5b78f
5
5
  SHA512:
6
- metadata.gz: 1bcbc635372cf993dd6d667b5153c50b00739a22441f0fedd357fd3e891051587a5b4f6f95f284caef621fd5cc0b42109848619f8fce968859c680a9eec8cdea
7
- data.tar.gz: 4fe80871e6a311d78625b46388b37b4fdd8d08c78efdaa5fb19765c7a0c7d1d410e684d51ed43e89fa898b7ba6ac250c1a32387e7ebb63bc608c97bf5e7cb8a4
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
- 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.2'
6
6
  end
7
7
  end
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.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-27 00:00:00.000000000 Z
11
+ date: 2022-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongo