couchbase-orm 2.0.2 → 2.0.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: c8b7c269a581fc829e659ea6f09d490cb270fbe13c13d3cc774738e69d9ca703
4
- data.tar.gz: c0a3712a6b16a40521da6ba695c33ff7bc67fe14c8b89fe3f78b9b9ea15d97b8
3
+ metadata.gz: 4b1c270b19952db6f6a7bc422257c1489258fcf709ecc162da7adbd6e45861a1
4
+ data.tar.gz: 82c22d5c7f91ed310f71b3a974740cc3efbd5268d53595e505dc50f4be249126
5
5
  SHA512:
6
- metadata.gz: 6b7d81af4130a5651a3f8a3bd9cd172fefc7a83b9a44799139a930dc75f761a5be564804eeca50342bee8aa65586f6c3862aba6f5d547dbc533d06b37362577d
7
- data.tar.gz: cab5660184ef2ce5bb8a5f00cabf862a048a247fb6ff0db3bbd0527de1612a10462895d59c509efc26638cfa96da4519506cfc6c91403106dbb1842ff20a0110
6
+ metadata.gz: ac3f259e1ac2d43e96b6ff5b357c64c8d88ec60175c20cf60ab5309dc15b7d3f021458cdc32c8c766019d21d6c8f3b737328e2f1430f626c45c038925d2dd576
7
+ data.tar.gz: 6df624744dbd4f5ac634e181c077095e15122dcb6f4e1f8848542d71563d6705bd3d0103ed5416888d58903878d922aeebcb0e4f0e972eecdbf6dd7839c240a2
@@ -6,6 +6,12 @@ Gem::Specification.new do |gem|
6
6
  gem.license = 'Apache-2.0'
7
7
  gem.authors = ['Stephen von Takach', 'Gauthier Monserand', 'Pierre Merlin', 'Julien Burnet-Fauche']
8
8
  gem.homepage = 'https://github.com/Couchbase-Ecosystem/couchbase-ruby-orm'
9
+ gem.metadata = {
10
+ "source_code_uri" => "https://github.com/Couchbase-Ecosystem/couchbase-ruby-orm",
11
+ "bug_tracker_uri" => "https://github.com/Couchbase-Ecosystem/couchbase-ruby-orm/issues",
12
+ "documentation_uri" => "https://couchbase-ruby-orm.com/",
13
+ "homepage_uri" => "https://github.com/Couchbase-Ecosystem/couchbase-ruby-orm"
14
+ }
9
15
  gem.summary = 'Couchbase ORM for Rails'
10
16
  gem.description = 'A Couchbase ORM for Rails'
11
17
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true, encoding: ASCII-8BIT
2
2
 
3
3
  module CouchbaseOrm
4
- VERSION = '2.0.2'
4
+ VERSION = '2.0.3'
5
5
  end
data/spec/base_spec.rb CHANGED
@@ -124,6 +124,20 @@ describe CouchbaseOrm::Base do
124
124
  BaseTest.bucket.default_collection.remove 'doc_1'
125
125
  end
126
126
 
127
+ it "raises ActiveModel::UnknownAttributeError on loading objects with unexpected properties even valued to null" do
128
+ too_much_properties_valued_to_null_doc = {
129
+ type: BaseTest.design_document,
130
+ name: 'Pierre',
131
+ job: 'dev',
132
+ age: nil
133
+ }
134
+ BaseTest.bucket.default_collection.upsert 'doc_1', too_much_properties_valued_to_null_doc
135
+
136
+ expect { BaseTest.find_by_id('doc_1') }.to raise_error(ActiveModel::UnknownAttributeError)
137
+
138
+ BaseTest.bucket.default_collection.remove 'doc_1'
139
+ end
140
+
127
141
  it "loads objects even if there is a missing property in doc" do
128
142
  missing_properties_doc = {
129
143
  type: BaseTest.design_document,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couchbase-orm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen von Takach
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2024-07-08 00:00:00.000000000 Z
14
+ date: 2024-07-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activemodel
@@ -298,7 +298,11 @@ files:
298
298
  homepage: https://github.com/Couchbase-Ecosystem/couchbase-ruby-orm
299
299
  licenses:
300
300
  - Apache-2.0
301
- metadata: {}
301
+ metadata:
302
+ source_code_uri: https://github.com/Couchbase-Ecosystem/couchbase-ruby-orm
303
+ bug_tracker_uri: https://github.com/Couchbase-Ecosystem/couchbase-ruby-orm/issues
304
+ documentation_uri: https://couchbase-ruby-orm.com/
305
+ homepage_uri: https://github.com/Couchbase-Ecosystem/couchbase-ruby-orm
302
306
  post_install_message:
303
307
  rdoc_options: []
304
308
  require_paths:
@@ -314,7 +318,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
314
318
  - !ruby/object:Gem::Version
315
319
  version: '0'
316
320
  requirements: []
317
- rubygems_version: 3.3.26
321
+ rubygems_version: 3.4.10
318
322
  signing_key:
319
323
  specification_version: 4
320
324
  summary: Couchbase ORM for Rails