trusty-cms 5.3.3 → 5.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +0 -3
- data/app/mailers/rad_social_mailer.rb +1 -1
- data/app/models/standard_tags.rb +3 -3
- data/lib/generators/extension/templates/spec_helper.rb +2 -2
- data/lib/generators/extension/templates/test_helper.rb +2 -2
- data/lib/generators/instance/templates/instance_boot.rb +1 -1
- data/lib/generators/language_extension/templates/spec_helper.rb +2 -2
- data/lib/generators/language_extension/templates/test_helper.rb +2 -2
- data/lib/tasks/database.rake +4 -4
- data/lib/tasks/framework.rake +1 -1
- data/lib/tasks/radiant_config.rake +2 -2
- data/lib/tasks/upgrade_to_devise.rake +2 -2
- data/lib/trusty_cms.rb +1 -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: cf01f0ff82114eed61c1833bae22ab040a78551980250f7beb00ab90c0fda9c6
|
4
|
+
data.tar.gz: 4ebc73d4737c0933aed84ccd95d24421fc222a0968ae572b08688da6913a7437
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e20bf4b915b8bbe3b8e2085c011518dfbf1f961dc2db3a8255ce8239710abb20689fe1980cb15b94eacd0a2628f649c47a231069eee966939870c231729bd5ba
|
7
|
+
data.tar.gz: b0f0e9baa3ae7e7929c0c218676d1d0a57dfa3f5873c8907cd19fb1b17c8fcb4214ba7a165ce2ed400527a9b9939fd4437d4ca5693a0764b69deb751f3cdcc08
|
data/Gemfile.lock
CHANGED
@@ -10,7 +10,7 @@ class RadSocialMailer < ApplicationMailer
|
|
10
10
|
@from_name = from_address.display_name
|
11
11
|
@from_email = from_address
|
12
12
|
@message = options[:message]
|
13
|
-
@actual_from = ENV
|
13
|
+
@actual_from = ENV.fetch('RAD_SOCIAL_FROM_EMAIL')
|
14
14
|
@actual_from = from_address if @actual_from.nil?
|
15
15
|
|
16
16
|
mail({
|
data/app/models/standard_tags.rb
CHANGED
@@ -362,7 +362,7 @@ module StandardTags
|
|
362
362
|
tag.locals.page = aggregate_page
|
363
363
|
aggregates << tag.expand
|
364
364
|
end
|
365
|
-
aggregates.flatten.join
|
365
|
+
aggregates.flatten.join
|
366
366
|
end
|
367
367
|
|
368
368
|
tag 'aggregate:each:children' do |tag|
|
@@ -380,7 +380,7 @@ module StandardTags
|
|
380
380
|
tag.locals.page = item
|
381
381
|
result << tag.expand
|
382
382
|
end
|
383
|
-
result.flatten.join
|
383
|
+
result.flatten.join
|
384
384
|
end
|
385
385
|
|
386
386
|
tag 'aggregate:children' do |tag|
|
@@ -976,7 +976,7 @@ module StandardTags
|
|
976
976
|
tag.locals.paginated_list = displayed_children
|
977
977
|
result << tag.render('pagination', tag.attr.dup)
|
978
978
|
end
|
979
|
-
result.flatten.join
|
979
|
+
result.flatten.join
|
980
980
|
end
|
981
981
|
|
982
982
|
def children_find_options(tag)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
unless defined? TRUSTY_CMS_ROOT
|
2
2
|
ENV["Rails.env"] = "test"
|
3
3
|
case
|
4
|
-
when ENV
|
5
|
-
require ENV
|
4
|
+
when ENV.fetch('RADIANT_ENV_FILE')
|
5
|
+
require ENV.fetch('RADIANT_ENV_FILE')
|
6
6
|
when File.dirname(__FILE__) =~ %r{vendor/trusty_cms/vendor/extensions}
|
7
7
|
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../../")}/config/environment"
|
8
8
|
else
|
@@ -3,8 +3,8 @@ require 'test/unit'
|
|
3
3
|
unless defined? TRUSTY_CMS_ROOT
|
4
4
|
ENV['Rails.env'] = 'test'
|
5
5
|
case
|
6
|
-
when ENV
|
7
|
-
require ENV
|
6
|
+
when ENV.fetch('RADIANT_ENV_FILE')
|
7
|
+
require ENV.fetch('RADIANT_ENV_FILE')
|
8
8
|
when File.dirname(__FILE__) =~ %r{vendor/trusty_cms/vendor/extensions}
|
9
9
|
require "#{File.expand_path(File.dirname(__FILE__) + '/../../../../../../')}/config/environment"
|
10
10
|
else
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# Configure your app in config/environment.rb and config/environments/*.rb
|
3
3
|
|
4
4
|
Rails.root = "#{File.dirname(__FILE__)}/.." unless defined?(Rails.root)
|
5
|
-
Rails.env = (
|
5
|
+
Rails.env = ENV.fetch('RAILS_ENV', 'development').dup unless defined?(Rails.env)
|
6
6
|
|
7
7
|
module Rails
|
8
8
|
class << self
|
@@ -1,8 +1,8 @@
|
|
1
1
|
unless defined? TRUSTY_CMS_ROOT
|
2
2
|
ENV["Rails.env"] = "test"
|
3
3
|
case
|
4
|
-
when ENV
|
5
|
-
require ENV
|
4
|
+
when ENV.fetch('RADIANT_ENV_FILE')
|
5
|
+
require ENV.fetch('RADIANT_ENV_FILE')
|
6
6
|
when File.dirname(__FILE__) =~ %r{vendor/trusty_cms/vendor/extensions}
|
7
7
|
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../../")}/config/environment"
|
8
8
|
else
|
@@ -3,8 +3,8 @@ require 'test/unit'
|
|
3
3
|
unless defined? TRUSTY_CMS_ROOT
|
4
4
|
ENV["Rails.env"] = "test"
|
5
5
|
case
|
6
|
-
when ENV
|
7
|
-
require ENV
|
6
|
+
when ENV.fetch('RADIANT_ENV_FILE')
|
7
|
+
require ENV.fetch('RADIANT_ENV_FILE')
|
8
8
|
when File.dirname(__FILE__) =~ %r{vendor/trusty_cms/vendor/extensions}
|
9
9
|
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../../")}/config/environment"
|
10
10
|
else
|
data/lib/tasks/database.rake
CHANGED
@@ -59,10 +59,10 @@ namespace :db do
|
|
59
59
|
task bootstrap: :initialize do
|
60
60
|
require 'trusty_cms/setup'
|
61
61
|
TrustyCms::Setup.bootstrap(
|
62
|
-
admin_name: ENV
|
63
|
-
admin_username: ENV
|
64
|
-
admin_password: ENV
|
65
|
-
database_template: ENV
|
62
|
+
admin_name: ENV.fetch('ADMIN_NAME'),
|
63
|
+
admin_username: ENV.fetch('ADMIN_USERNAME'),
|
64
|
+
admin_password: ENV.fetch('ADMIN_PASSWORD'),
|
65
|
+
database_template: ENV.fetch('DATABASE_TEMPLATE'),
|
66
66
|
)
|
67
67
|
puts %{
|
68
68
|
Your TrustyCms application is ready to use. Run `rails s -e production` to
|
data/lib/tasks/framework.rake
CHANGED
@@ -7,7 +7,7 @@ unless File.directory? "#{Rails.root}/app"
|
|
7
7
|
require 'rubygems'
|
8
8
|
require 'rubygems/gem_runner'
|
9
9
|
|
10
|
-
trusty = (version = ENV
|
10
|
+
trusty = (version = ENV.fetch('VERSION')) ?
|
11
11
|
Gem.cache.search('trusty-cms', "= #{version}").first :
|
12
12
|
Gem.cache.search('trusty-cms').max_by { |g| g.version }
|
13
13
|
|
@@ -4,14 +4,14 @@ namespace :trusty_cms do
|
|
4
4
|
desc 'Export TrustyCms::Config to Rails.root/config/trusty_config.yml. Specify a path with TRUSTY_CONFIG_PATH - defaults to Rails.root/config/trusty_config.yml'
|
5
5
|
task export: :environment do
|
6
6
|
config_path = ENV['TRUSTY_CONFIG_PATH'] || "#{Rails.root}/config/trusty_config.yml"
|
7
|
-
clear = ENV
|
7
|
+
clear = ENV.fetch('CLEAR_CONFIG', nil)
|
8
8
|
TrustyCms::TaskSupport.config_export(config_path)
|
9
9
|
end
|
10
10
|
|
11
11
|
desc 'Import TrustyCms::Config from Rails.root/config/trusty_config.yml. Specify a path with TRUSTY_CONFIG_PATH - defaults to Rails.root/config/trusty_config.yml Set CLEAR_CONFIG=true to delete all existing settings before import'
|
12
12
|
task import: :environment do
|
13
13
|
config_path = ENV['TRUSTY_CONFIG_PATH'] || "#{Rails.root}/config/trusty_config.yml"
|
14
|
-
clear = ENV
|
14
|
+
clear = ENV.fetch('CLEAR_CONFIG', nil)
|
15
15
|
TrustyCms::TaskSupport.config_import(config_path, clear)
|
16
16
|
end
|
17
17
|
end
|
@@ -10,8 +10,8 @@ namespace :import do
|
|
10
10
|
LegacyUser.all.each do |legacy|
|
11
11
|
u = User.new(
|
12
12
|
email: legacy.email,
|
13
|
-
first_name: legacy.name.split
|
14
|
-
last_name: legacy.name.split
|
13
|
+
first_name: legacy.name.split[0],
|
14
|
+
last_name: legacy.name.split[1],
|
15
15
|
password: password,
|
16
16
|
password_confirmation: password,
|
17
17
|
admin: legacy.admin,
|
data/lib/trusty_cms.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trusty-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.3.
|
4
|
+
version: 5.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TrustyCms CMS dev team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activestorage-validator
|