motor-admin 0.2.77 → 0.2.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8079828af8d469f3dd4f3a77827541377f39522a9f2dbfbf7e867afbc3745af
4
- data.tar.gz: 34137b38f20933daf40643c1005b36d59be11b8c2f0374e39d615a01b6f9abd9
3
+ metadata.gz: f7103c85ab2173fce73651f6c94df44400326c3a0f6900d02958166334919764
4
+ data.tar.gz: 2702651e4344a7e11a433e7af54a754413075e6de05fb56a12459f831a6087c9
5
5
  SHA512:
6
- metadata.gz: ede5d9f24ad96a896b332995bc288bf87272d676a65ff6ed735d4da6772a15f3f6daf707f6f81670957c45df66e48bb2f74439120e7b2b209a5a2007e2f63f66
7
- data.tar.gz: 654307b067e993885d1d911ea682b06825a4f4d11238bd92692a892da0f215a00e983332f2acab2d9e04e6295ec51a883797b8f73368ae3792d772c923eef0c0
6
+ metadata.gz: bbebc6014289c848ac575afd1c21152e8671c7132af5806a0d550db254110e6b890c948dcdd216ccd54ec1f1849f0295237ad9f715775018b702059cff737e57
7
+ data.tar.gz: efd8735097f2419c606fafee91bab1543888d5e2d98719a2b6efafb7fe2706e3dbe7d55b0aace3265ff78ddac94056b494980f4d42f2444587136913c95c82f1
@@ -67,6 +67,8 @@ module Motor
67
67
 
68
68
  record.update!(attrs)
69
69
  end
70
+
71
+ ActiveRecordUtils.reset_id_sequence!(Motor::Config)
70
72
  end
71
73
 
72
74
  def sync_api_configs(configs_hash)
@@ -83,6 +85,8 @@ module Motor
83
85
  end
84
86
 
85
87
  archive_api_configs(configs_index, configs_hash[:api_configs])
88
+
89
+ ActiveRecordUtils.reset_id_sequence!(Motor::ApiConfig)
86
90
  end
87
91
 
88
92
  def archive_api_configs(configs_index, api_configs)
@@ -91,6 +95,7 @@ module Motor
91
95
  end
92
96
  end
93
97
 
98
+ # rubocop:disable Metrics/AbcSize
94
99
  def sync_resources(configs_hash)
95
100
  resources_index = Motor::Configs::LoadFromCache.load_resources.index_by(&:name)
96
101
 
@@ -105,7 +110,10 @@ module Motor
105
110
  record.updated_at_will_change!
106
111
  record.update!(attrs)
107
112
  end
113
+
114
+ ActiveRecordUtils.reset_id_sequence!(Motor::Resource)
108
115
  end
116
+ # rubocop:enable Metrics/AbcSize
109
117
 
110
118
  def sync_taggable(records, config_items, configs_timestamp, update_proc)
111
119
  processed_records, create_items = update_taggable_items(records, config_items, update_proc)
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.77'
4
+ VERSION = '0.2.78'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motor-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.77
4
+ version: 0.2.78
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Matsyburka