motor-admin 0.2.47 → 0.2.48
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/motor/api_config.rb +0 -6
- data/lib/motor/admin.rb +17 -0
- data/lib/motor/version.rb +1 -1
- data/ui/dist/{main-23b7a609795ee39bc4f9.css.gz → main-6fcd302ba30a65b4d436.css.gz} +0 -0
- data/ui/dist/main-6fcd302ba30a65b4d436.js.gz +0 -0
- data/ui/dist/manifest.json +5 -5
- metadata +4 -4
- data/ui/dist/main-23b7a609795ee39bc4f9.js.gz +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e0b70a3838f3f4f4df56cc8caf0aacf3c07b9826395ee81bad390d6a8952ab1
|
4
|
+
data.tar.gz: cc40b2bdb4a214abcea419ba94781d9dcfcca7d716ae6674ba3497b031adac8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95bbf8cc2ae3d25b68a1841ac7d1dac45fa798c1da7f0fba031d542a35e6bb28da1e2ee9d27b58b80d9f14ddfb684f2070d47fd53b7e537b3edcc52f01dd5619
|
7
|
+
data.tar.gz: d0cd3d7425e55a43c5a6e774b59aaa89767e78acdbb846a5f52f230cfe7b8d748f7bcdb0ed65d24cf121d7374500fa205a46c4e23a00e6b3caed17ba912252b4
|
@@ -2,12 +2,6 @@
|
|
2
2
|
|
3
3
|
module Motor
|
4
4
|
class ApiConfig < ::Motor::ApplicationRecord
|
5
|
-
unless table_exists?
|
6
|
-
puts
|
7
|
-
puts ' => Run `rails g motor:upgrade && rake db:migrate` to perform data migration and enable the latest features'
|
8
|
-
puts
|
9
|
-
end
|
10
|
-
|
11
5
|
encrypts :credentials if defined?(::Motor::EncryptedConfig)
|
12
6
|
|
13
7
|
serialize :credentials, Motor::HashSerializer
|
data/lib/motor/admin.rb
CHANGED
@@ -94,5 +94,22 @@ module Motor
|
|
94
94
|
ActiveStorage::Blob.singleton_class.prepend(Motor::ActiveRecordUtils::ActiveStorageBlobPatch)
|
95
95
|
end
|
96
96
|
end
|
97
|
+
|
98
|
+
initializer 'motor.upgrade' do
|
99
|
+
config.after_initialize do
|
100
|
+
unless Motor::Query.table_exists?
|
101
|
+
puts
|
102
|
+
puts ' => Run `rails g motor:install && rake db:migrate` in order to create Motor Admin configuration tables'
|
103
|
+
puts
|
104
|
+
end
|
105
|
+
|
106
|
+
unless Motor::ApiConfig.table_exists?
|
107
|
+
puts
|
108
|
+
puts ' => Run `rails g motor:upgrade && rake db:migrate`' \
|
109
|
+
' to perform data migration and enable the latest features'
|
110
|
+
puts
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
97
114
|
end
|
98
115
|
end
|
data/lib/motor/version.rb
CHANGED
Binary file
|
Binary file
|
data/ui/dist/manifest.json
CHANGED
@@ -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-
|
2605
|
-
"main-
|
2606
|
-
"main-
|
2607
|
-
"main.css": "main-
|
2608
|
-
"main.js": "main-
|
2604
|
+
"main-6fcd302ba30a65b4d436.css.gz": "main-6fcd302ba30a65b4d436.css.gz",
|
2605
|
+
"main-6fcd302ba30a65b4d436.js.LICENSE.txt": "main-6fcd302ba30a65b4d436.js.LICENSE.txt",
|
2606
|
+
"main-6fcd302ba30a65b4d436.js.gz": "main-6fcd302ba30a65b4d436.js.gz",
|
2607
|
+
"main.css": "main-6fcd302ba30a65b4d436.css",
|
2608
|
+
"main.js": "main-6fcd302ba30a65b4d436.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.
|
4
|
+
version: 0.2.48
|
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-12-
|
11
|
+
date: 2021-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord-filter
|
@@ -1532,8 +1532,8 @@ files:
|
|
1532
1532
|
- ui/dist/icons/zoom-money.svg.gz
|
1533
1533
|
- ui/dist/icons/zoom-out.svg.gz
|
1534
1534
|
- ui/dist/icons/zoom-question.svg.gz
|
1535
|
-
- ui/dist/main-
|
1536
|
-
- ui/dist/main-
|
1535
|
+
- ui/dist/main-6fcd302ba30a65b4d436.css.gz
|
1536
|
+
- ui/dist/main-6fcd302ba30a65b4d436.js.gz
|
1537
1537
|
- ui/dist/manifest.json
|
1538
1538
|
homepage:
|
1539
1539
|
licenses:
|
Binary file
|