motor-admin 0.1.88 → 0.1.92

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: 415aa5a525bed1a18e83449929aa31d2ff26efbeb74e5fb2fd34aabe647917ff
4
- data.tar.gz: a3374ce520a91cf756d1062db6fdde8ac157c36b0d5bdcd6b2a35549a4af3a49
3
+ metadata.gz: 2bcd022ae5a70e624b20a9892c84695378eb2e439d58006d017cc3d537adc1f3
4
+ data.tar.gz: df6ac5b8b8f3a1e427ccc4ee60a5b3aa34d3195922c28ef7d53ea9f7abeb7fb3
5
5
  SHA512:
6
- metadata.gz: 2c49ec2643ab788bd85cf9d3d405e2c57a0a79c5bd87cbe484546d80b20373ba3699810e34d980a0e577d897f2dc78c9d925c1310b1048d18a00fc837fa9e177
7
- data.tar.gz: 5f15967763bc7b572e0660e607db814f9939757c0c2d544a37b4e5090177969b255f2bc0d490b560f5ff42c24008a4b98f188768edfd5f19b93a322a05bbe6af
6
+ metadata.gz: f0f39cbf5c49589ac5ca5e84638a334892c1fd86e260f55f37a9bef1ce806885c1d988acf5d2d3df051ca2a38ddafc8044a89c393a098aa5093765dfbd426000
7
+ data.tar.gz: 147d726104667c712e85ceb9813f7dc2a6dca0c223a9188a3fb7aed9a397bac0ae1aec9eaf1e35cd81d8dfcb71b46a3360ce6790b08971239505fd460f39fc53
@@ -249,3 +249,6 @@ 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
@@ -249,6 +249,9 @@ 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
252
255
  i:
253
256
  locale: es
254
257
  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.88'
4
+ VERSION = '0.1.92'
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-fbe1b5253d0be9bdb20b.css.gz": "main-fbe1b5253d0be9bdb20b.css.gz",
2072
- "main-fbe1b5253d0be9bdb20b.js.LICENSE.txt": "main-fbe1b5253d0be9bdb20b.js.LICENSE.txt",
2073
- "main-fbe1b5253d0be9bdb20b.js.gz": "main-fbe1b5253d0be9bdb20b.js.gz",
2074
- "main.css": "main-fbe1b5253d0be9bdb20b.css",
2075
- "main.js": "main-fbe1b5253d0be9bdb20b.js",
2071
+ "main-69f743d211b7997bcec9.css.gz": "main-69f743d211b7997bcec9.css.gz",
2072
+ "main-69f743d211b7997bcec9.js.LICENSE.txt": "main-69f743d211b7997bcec9.js.LICENSE.txt",
2073
+ "main-69f743d211b7997bcec9.js.gz": "main-69f743d211b7997bcec9.js.gz",
2074
+ "main.css": "main-69f743d211b7997bcec9.css",
2075
+ "main.js": "main-69f743d211b7997bcec9.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.88
4
+ version: 0.1.92
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-26 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-fbe1b5253d0be9bdb20b.css.gz
1504
- - ui/dist/main-fbe1b5253d0be9bdb20b.js.gz
1503
+ - ui/dist/main-69f743d211b7997bcec9.css.gz
1504
+ - ui/dist/main-69f743d211b7997bcec9.js.gz
1505
1505
  - ui/dist/manifest.json
1506
1506
  homepage:
1507
1507
  licenses: