motor-admin 0.1.89 → 0.1.93

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: c11b6ca50b9db4ff1164f0a435380e50e29c2ca15eb40af4675ea9d0de584fb0
4
- data.tar.gz: 3f4a499cb9d3ba5f696ec56581bee182099dd6c1a59276587e814e8905d39a16
3
+ metadata.gz: 873aaf9ea64c158b7079000c6ccfa2c649a1b55a53550b5c60e7cb487197e2dc
4
+ data.tar.gz: f39f5222455c05b651c29009525590f53fb96cbc201c1444e7b5da2a7b823ef0
5
5
  SHA512:
6
- metadata.gz: fe5a9690d4d0e4eed7e0100c45f4665075fc0304d271059a5a0208d1fb08de112f0ce9aac7d40859c1e617a579a0eb5b8ec52a0122233d9bc1292868e7369c4a
7
- data.tar.gz: 340a4ccd0c42e86dc03878376a91a0ce6a3394f91e20330eb764325b81f1866c5afc6859ce6c8e97c34d8ae9e8cb80863017c478172b0b2da5b0c1d37f772f9e
6
+ metadata.gz: 41f23810248736f2163fb36ac189f02049336685afb0e4dfd95a15ab417a6b07d5c9024507c8ee95c1cef9441a1011aed662a306b7a38fe602dcfde1dd2c88de
7
+ data.tar.gz: 5fc8c69f0ab4cb0ff38020c79eade4305e824b635d04cf1bf536799853fbe7147876f9de5d3247190f1b49f648fd52fe1bc2f3d2dad41417545cf0c5756266ae
@@ -249,3 +249,7 @@ en:
249
249
  source: Source
250
250
  resource: Resource
251
251
  add_association: Add Association
252
+ there_are_unsaved_changes_from: "There are unsaved changes from %{timestamp}"
253
+ clear: Clear
254
+ restore: Restore
255
+ more: More
@@ -249,6 +249,10 @@ es:
249
249
  source: Fuente
250
250
  resource: Recurso
251
251
  add_association: Añadir Asociación
252
+ there_are_unsaved_changes_from: "Hay cambios sin guardar de %{timestamp}"
253
+ clear: Quitar
254
+ restore: Restaurar
255
+ more: Más
252
256
  i:
253
257
  locale: es
254
258
  select:
@@ -10,6 +10,8 @@ module Motor
10
10
  def call(model, cache_key:)
11
11
  configs = Motor::Configs::LoadFromCache.load_resources(cache_key: cache_key)
12
12
 
13
+ return model if configs.blank?
14
+
13
15
  maybe_fetch_from_cache(
14
16
  model,
15
17
  cache_key,
@@ -176,7 +178,7 @@ module Motor
176
178
  end
177
179
 
178
180
  def maybe_fetch_from_cache(model, cache_key, miss_cache_block, postprocess_block)
179
- return yield unless cache_key
181
+ return miss_cache_block.call unless cache_key
180
182
 
181
183
  if CACHE_HASH[model.name] && CACHE_HASH[model.name][:key] == cache_key
182
184
  CACHE_HASH[model.name][:value]
data/lib/motor/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Motor
4
- VERSION = '0.1.89'
4
+ VERSION = '0.1.93'
5
5
  end
@@ -2068,11 +2068,11 @@
2068
2068
  "mail-opened.svg": "icons/mail-opened.svg",
2069
2069
  "mail.svg": "icons/mail.svg",
2070
2070
  "mailbox.svg": "icons/mailbox.svg",
2071
- "main-3af8fa3cc8c04a20887d.css.gz": "main-3af8fa3cc8c04a20887d.css.gz",
2072
- "main-3af8fa3cc8c04a20887d.js.LICENSE.txt": "main-3af8fa3cc8c04a20887d.js.LICENSE.txt",
2073
- "main-3af8fa3cc8c04a20887d.js.gz": "main-3af8fa3cc8c04a20887d.js.gz",
2074
- "main.css": "main-3af8fa3cc8c04a20887d.css",
2075
- "main.js": "main-3af8fa3cc8c04a20887d.js",
2071
+ "main-c4ace020d904a7af49a0.css.gz": "main-c4ace020d904a7af49a0.css.gz",
2072
+ "main-c4ace020d904a7af49a0.js.LICENSE.txt": "main-c4ace020d904a7af49a0.js.LICENSE.txt",
2073
+ "main-c4ace020d904a7af49a0.js.gz": "main-c4ace020d904a7af49a0.js.gz",
2074
+ "main.css": "main-c4ace020d904a7af49a0.css",
2075
+ "main.js": "main-c4ace020d904a7af49a0.js",
2076
2076
  "man.svg": "icons/man.svg",
2077
2077
  "manual-gearbox.svg": "icons/manual-gearbox.svg",
2078
2078
  "map-2.svg": "icons/map-2.svg",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motor-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.89
4
+ version: 0.1.93
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Matsyburka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-17 00:00:00.000000000 Z
11
+ date: 2021-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-filter
@@ -1500,8 +1500,8 @@ files:
1500
1500
  - ui/dist/icons/zoom-money.svg.gz
1501
1501
  - ui/dist/icons/zoom-out.svg.gz
1502
1502
  - ui/dist/icons/zoom-question.svg.gz
1503
- - ui/dist/main-3af8fa3cc8c04a20887d.css.gz
1504
- - ui/dist/main-3af8fa3cc8c04a20887d.js.gz
1503
+ - ui/dist/main-c4ace020d904a7af49a0.css.gz
1504
+ - ui/dist/main-c4ace020d904a7af49a0.js.gz
1505
1505
  - ui/dist/manifest.json
1506
1506
  homepage:
1507
1507
  licenses: