maglevcms 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/maglev/admin/base_controller.rb +3 -4
- data/lib/maglev/version.rb +1 -1
- data/lib/tasks/maglev_tasks.rake +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cf8c513d0eabb28620a1840c317be54a8f7df53ffe0e80af5a376a64a00d517
|
4
|
+
data.tar.gz: 01c55bf8aa7e8137e429a13aa4632f1214b2ba1e7e89dc8de962d4e344283678
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dc2dbdffdb84d20cc8d3553554b62e1b028a44e685eaf8e3e1048eb62471aec2d68fd590173ade2031279ad33e760d0b46943b594cc6c78e7cbd4d7930d6e35
|
7
|
+
data.tar.gz: 1a9db5f6f77fecb91b374c15f51d514a324df6f1149f3b72ccac69f44ca1ad7cf178f9f2b84fb370ac4e735b9e0b0c4594f7c1956d90ddd666ea194804ead1a3
|
@@ -10,11 +10,10 @@ module Maglev
|
|
10
10
|
private
|
11
11
|
|
12
12
|
def maglev_authenticate
|
13
|
-
|
14
|
-
password = maglev_config.admin_password
|
15
|
-
return if !username || !password
|
13
|
+
return unless Maglev.config.admin_username.present? && Maglev.config.admin_password.present?
|
16
14
|
|
17
|
-
|
15
|
+
http_basic_authenticate_or_request_with name: Maglev.config.admin_username,
|
16
|
+
password: Maglev.config.admin_password
|
18
17
|
end
|
19
18
|
end
|
20
19
|
end
|
data/lib/maglev/version.rb
CHANGED
data/lib/tasks/maglev_tasks.rake
CHANGED
@@ -74,8 +74,14 @@ namespace :maglev do
|
|
74
74
|
desc 'Ensure build dependencies like Vite are installed before bundling'
|
75
75
|
task install_dependencies: :environment do
|
76
76
|
within_engine_folder do
|
77
|
+
install_dev_dependencies = ENV['VITE_RUBY_SKIP_INSTALL_DEV_DEPENDENCIES'] == 'true'
|
78
|
+
# rubocop:disable Style/StringHashKeys
|
79
|
+
install_env_args = install_dev_dependencies ? {} : { 'NODE_ENV' => 'development' }
|
80
|
+
# rubocop:enable Style/StringHashKeys
|
77
81
|
cmd = Maglev::Engine.vite_ruby.commands.legacy_npm_version? ? 'npx ci --yes' : 'npx --yes ci'
|
78
|
-
system(
|
82
|
+
result = system(install_env_args, cmd)
|
83
|
+
# Fallback to `yarn` if `npx` is not available.
|
84
|
+
system(install_env_args, 'yarn install --frozen-lockfile') if result.nil?
|
79
85
|
end
|
80
86
|
end
|
81
87
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maglevcms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Didier Lafforgue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jbuilder
|