motor-admin 0.2.32 → 0.2.33

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: 4f3ed23b54a556070e9c4ba1d46c5a9ab8fe32be08435afe2340ffb7e5ed885b
4
- data.tar.gz: c627fbb99941389e0da067583cde8d4d32e0e0325f94a55a03ee5bd50c630384
3
+ metadata.gz: 2b496961d80291a72ecf0017c07d68dee193fff1f89238bd510ad1ca85afe37b
4
+ data.tar.gz: 18222f2abe4752e73fddf640631b3dc179368d5dc55c0ee6e41a7a9111ad6391
5
5
  SHA512:
6
- metadata.gz: 624c0c4e27ac1aac78128dc22455dfc1029abe81d06dc1dd7994c96f8660df561d213e4ad8b569dc331d1eb8655e41d1ee075ea5dc0406e8934727265f7dbe66
7
- data.tar.gz: 783def6366713e85cdfb8bda8cfb9a6843dce7a64e9859409c25b0163fa8ca7b9ecfe212eb20269179b2ca20c4f100db29aa2e570c477735b4f31283e3e748ca
6
+ metadata.gz: 33de92dd60c1f53d6f833646ac388f86434a65be73c1bfde0ab5b037f8cca0f3cec8b51c8cd3fdaba788e4a2ef83c33369a79dba5f543726dfae8ce9e1aa6554
7
+ data.tar.gz: 1eb89d9c5cc284aba7a1b343c6ebb566075c2c4b7a262c214243f4b141ace04a8eaaa6e7f48cf6cadb17b40f904467b1cfd19694377d538d6a59a8bb7649f763
@@ -284,3 +284,5 @@ en:
284
284
  hyphen: Hyphen
285
285
  comma: Comma
286
286
  slash: Slash
287
+ sql: SQL
288
+ api: API
@@ -284,6 +284,8 @@ es:
284
284
  hyphen: Guión
285
285
  comma: Coma
286
286
  slash: Slash
287
+ sql: SQL
288
+ api: API
287
289
  i:
288
290
  locale: es
289
291
  select:
@@ -280,6 +280,8 @@ pt:
280
280
  hyphen: Hífen
281
281
  comma: Vírgula
282
282
  slash: Slash
283
+ sql: SQL
284
+ api: API
283
285
  i:
284
286
  locale: pt
285
287
  select:
@@ -72,10 +72,14 @@ module Motor
72
72
  resources_index = Motor::Configs::LoadFromCache.load_resources.index_by(&:name)
73
73
 
74
74
  configs_hash[:resources].each do |attrs|
75
- record = resources_index[attrs[:name]] || Motor::Resource.new
75
+ record = resources_index.fetch(attrs[:name], Motor::Resource.new)
76
76
 
77
- next if record.updated_at && attrs[:updated_at] <= record.updated_at
77
+ next if record.updated_at && attrs[:updated_at] < record.updated_at
78
+ next if record.updated_at &&
79
+ attrs[:updated_at] == record.updated_at &&
80
+ attrs[:preferences] == record.preferences
78
81
 
82
+ record.updated_at_will_change!
79
83
  record.update!(attrs)
80
84
  end
81
85
  end
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.2.32'
4
+ VERSION = '0.2.33'
5
5
  end
@@ -2601,9 +2601,9 @@
2601
2601
  "icons/zoom-out.svg.gz": "icons/zoom-out.svg.gz",
2602
2602
  "icons/zoom-question.svg": "icons/zoom-question.svg",
2603
2603
  "icons/zoom-question.svg.gz": "icons/zoom-question.svg.gz",
2604
- "main-75c26326d4058b8611c3.css.gz": "main-75c26326d4058b8611c3.css.gz",
2605
- "main-75c26326d4058b8611c3.js.LICENSE.txt": "main-75c26326d4058b8611c3.js.LICENSE.txt",
2606
- "main-75c26326d4058b8611c3.js.gz": "main-75c26326d4058b8611c3.js.gz",
2607
- "main.css": "main-75c26326d4058b8611c3.css",
2608
- "main.js": "main-75c26326d4058b8611c3.js"
2604
+ "main-1d882f91707272b39943.css.gz": "main-1d882f91707272b39943.css.gz",
2605
+ "main-1d882f91707272b39943.js.LICENSE.txt": "main-1d882f91707272b39943.js.LICENSE.txt",
2606
+ "main-1d882f91707272b39943.js.gz": "main-1d882f91707272b39943.js.gz",
2607
+ "main.css": "main-1d882f91707272b39943.css",
2608
+ "main.js": "main-1d882f91707272b39943.js"
2609
2609
  }
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.2.32
4
+ version: 0.2.33
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-11-30 00:00:00.000000000 Z
11
+ date: 2021-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-filter
@@ -1525,8 +1525,8 @@ files:
1525
1525
  - ui/dist/icons/zoom-money.svg.gz
1526
1526
  - ui/dist/icons/zoom-out.svg.gz
1527
1527
  - ui/dist/icons/zoom-question.svg.gz
1528
- - ui/dist/main-75c26326d4058b8611c3.css.gz
1529
- - ui/dist/main-75c26326d4058b8611c3.js.gz
1528
+ - ui/dist/main-1d882f91707272b39943.css.gz
1529
+ - ui/dist/main-1d882f91707272b39943.js.gz
1530
1530
  - ui/dist/manifest.json
1531
1531
  homepage:
1532
1532
  licenses: