startback 0.19.3 → 0.19.4

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: a46ae64f74d522af60d8efac5d0ea966587c556a12d791a4817c77a27b4eb74b
4
- data.tar.gz: 528fd26764c05ae46e88c4009dcfe801ad8c8fa95b57eb3ae158ae205b26be49
3
+ metadata.gz: c48ad9ab9ddaa6733cce35a924c08e57c68f6dae5151a9084f0cf50fe6584cf5
4
+ data.tar.gz: 6739fe6b17c7e044b3e714fa7abf4cf2f9df4bde01e90068a186f9e72178da03
5
5
  SHA512:
6
- metadata.gz: e64ba6da11affe1a7639cd1c5bec8ff9b1088c74eaad3f08f70e7280c95a5af624bcd1bd3d9ca965aec844aaaae3957ada94bcb4ac55ebd0a133b6f0154a99b4
7
- data.tar.gz: 405daa018fb688b1f00a2b814881cd7f30e7f43892d91d27ef4fbf0367579c160866674130ee5ac187002f0b36e978c840a9329721f9dd7b36668be1345cfd9e
6
+ metadata.gz: db0259e7543727285bac8dc2251f3a95a5b37f48233c290dffc7c7cbe3a15d56ab4af629d91bea05482af30c5259591f5444e3541772416806cc68cf2985e061
7
+ data.tar.gz: bb4c89e15a9e7fdfed688f73c29f28e24a30e15f486c33f702f89cca4041b099827fc819ec428b1b3e2429584deca834b99d3fcaa99b7d79ebdd25222f0f9cf5
@@ -87,8 +87,8 @@ module Startback
87
87
  store.set(cache_key, to_cache, caching_options)
88
88
  }
89
89
  rescue => ex
90
+ raise if raise_on_cache_fail? || pkey.nil?
90
91
  cache_fail(pkey, ex)
91
- raise if raise_on_cache_fail?
92
92
  load_entity(pkey)
93
93
  end
94
94
 
@@ -2,7 +2,7 @@ module Startback
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 19
5
- TINY = 3
5
+ TINY = 4
6
6
  end
7
7
  VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::TINY}"
8
8
  end
@@ -155,6 +155,11 @@ module Startback
155
155
  expect_any_instance_of(Caching::Logger).to receive(:cache_fail)
156
156
  expect(subject).to eql("a value")
157
157
  end
158
+
159
+ it 'does raise when an error occurs during primary key resolution' do
160
+ expect(cache).to receive(:primary_key).and_raise("Primary key failed")
161
+ expect{ subject }.to raise_error(/Primary key failed/)
162
+ end
158
163
  end
159
164
 
160
165
  describe "with prometheus listener too" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: startback
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.3
4
+ version: 0.19.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernard Lambeau