trusty-cms 3.3.2 → 3.3.3
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 +4 -4
- data/Gemfile.lock +1 -1
- data/INSTALL.md +4 -11
- data/app/models/site.rb +1 -1
- data/coverage/index.html +1 -1
- data/db/migrate/001_create_radiant_tables.rb +1 -1
- data/db/migrate/002_insert_initial_data.rb +1 -1
- data/db/migrate/004_rename_filter_column.rb +1 -1
- data/db/migrate/005_add_virtual_column_to_page.rb +1 -1
- data/db/migrate/006_remove_user_login_index.rb +1 -1
- data/db/migrate/007_remove_virtual_column_from_page.rb +1 -1
- data/db/migrate/008_add_virtual_column_to_page_again.rb +1 -1
- data/db/migrate/009_add_content_type_field_to_layout.rb +1 -1
- data/db/migrate/010_create_sites.rb +1 -1
- data/db/migrate/011_add_order_to_sites.rb +1 -1
- data/db/migrate/012_create_extension_meta.rb +1 -1
- data/db/migrate/013_add_notes_field_to_user.rb +1 -1
- data/db/migrate/014_rename_config_default_parts_key.rb +1 -1
- data/db/migrate/015_add_optimistic_locking.rb +1 -1
- data/db/migrate/016_add_sessions.rb +1 -1
- data/db/migrate/017_rename_created_by_updated_by_columns.rb +1 -1
- data/db/migrate/018_add_description_and_keywords_to_pages.rb +1 -1
- data/db/migrate/020_add_session_info_to_users.rb +1 -1
- data/db/migrate/021_remove_session_expire_from_users.rb +1 -1
- data/db/migrate/022_add_admin_fields_to_sites.rb +1 -1
- data/db/migrate/023_add_sites.rb +1 -1
- data/db/migrate/024_site_abbreviation.rb +1 -1
- data/db/migrate/025_recreate_non_unique_index_on_snippets_name.rb +1 -1
- data/db/migrate/026_add_site_id_to_pages.rb +1 -1
- data/db/migrate/027_add_base_domain_to_sites.rb +1 -1
- data/db/migrate/028_create_assets.rb +1 -1
- data/db/migrate/029_create_paperclip_attributes.rb +1 -1
- data/db/migrate/030_create_user_observer.rb +1 -1
- data/db/migrate/031_create_page_attachments.rb +1 -1
- data/db/migrate/032_rename_users.rb +1 -1
- data/db/migrate/20081203140407_add_indexes.rb +1 -1
- data/db/migrate/20090226140109_add_user_language.rb +1 -1
- data/db/migrate/20090929164633_rename_developer_role_to_designer.rb +1 -1
- data/db/migrate/20091003095744_change_user_language_to_locale.rb +1 -1
- data/db/migrate/20100805154952_add_page_fields.rb +1 -1
- data/db/migrate/20100805155020_convert_page_metas.rb +1 -1
- data/db/migrate/20100810151922_add_field_name_index.rb +1 -1
- data/db/migrate/20110513205050_asset_uuid.rb +1 -1
- data/db/migrate/20110606111250_update_configuration.rb +1 -1
- data/db/migrate/20110609101438_dimensions.rb +1 -1
- data/db/migrate/20110902203823_add_allowed_children_cache_to_pages.rb +1 -1
- data/db/migrate/20111016150725_extend_page_part_content_limit.rb +1 -1
- data/db/migrate/20120209231801_change_pages_allowed_children_cache_to_text.rb +1 -1
- data/db/migrate/20160527141249_add_password_reset_to_users.rb +1 -1
- data/db/migrate/20161027141250_add_position_to_pages.rb +1 -1
- data/lib/generators/extension/templates/migration.rb +1 -1
- data/lib/generators/extension_migration/templates/migration.rb +1 -1
- data/lib/generators/extension_model/templates/migration.rb +1 -1
- data/lib/tasks/database.rake +5 -6
- data/lib/trusty_cms.rb +1 -1
- data/spec/dummy/log/test.log +10454 -0
- data/spec/dummy/tmp/cache/747/A70/TrustyCms%3A%3AConfig +0 -0
- data/spec/dummy/tmp/cache/85C/FA0/TrustyCms.cache_mtime +0 -0
- data/trusty_cms.gemspec +1 -1
- data/vendor/extensions/multi-site-extension/lib/multi_site/page_extensions.rb +3 -1
- metadata +2 -4
- data/CHANGELOG.md +0 -754
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ec33c7376f2114c2019e102b4931f82c0ce94b1257c3f20c4d4ed99a3fd1e6c
|
4
|
+
data.tar.gz: b83b1835c8557c8cf863c1db8587fcd255e8ba6e6a4d011fe3cf6b68533e5042
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3d5e48bd8a20914b861e56c75e16f756ed8c31d6b6f4a97b19c80533e01e3e4d5db7ae6e631d09ab860a1f0c3af589ac938ded6ef288445d426a3aaae89000a
|
7
|
+
data.tar.gz: 1ae1bda8cfc08013eb5c258059ad62be1701bd4fea1fbab1465d85850207c2041c058fea8deca1ae11d6beb878b47659342a43514c0033cfe867591c81aff28b
|
data/Gemfile.lock
CHANGED
data/INSTALL.md
CHANGED
@@ -2,22 +2,15 @@
|
|
2
2
|
|
3
3
|
From within the directory containing your TrustyCMS instance:
|
4
4
|
|
5
|
-
1. Create a new Rails 5.
|
5
|
+
1. Create a new Rails 5.2 application (i.e. `rails new [project_name]`)
|
6
6
|
|
7
7
|
2. Add the following gems to your Gemfile:
|
8
8
|
- gem 'trusty-cms'
|
9
9
|
- gem 'rails-observers'
|
10
10
|
|
11
|
-
3.
|
11
|
+
3. Run `bundle install`
|
12
12
|
|
13
|
-
|
14
|
-
* gem 'trusty-snippets-extension'
|
15
|
-
* gem 'trusty-layouts-extension'
|
16
|
-
* gem 'trusty-multi-site-extension'
|
17
|
-
|
18
|
-
4. Run `bundle install`
|
19
|
-
|
20
|
-
5. Run the Trusty CMS generator to get the project into shape: `rails g trusty_cms [project_name]`.
|
13
|
+
4. Run the Trusty CMS generator to get the project into shape: `rails g trusty_cms [project_name]`.
|
21
14
|
- This will ask you if you want to replace a number of existing files (like application.rb); reply Y to all.
|
22
15
|
|
23
|
-
|
16
|
+
5. Run `bundle exec rake db:setup`, then `bundle exec rake db:bootstrap`.
|
data/app/models/site.rb
CHANGED
data/coverage/index.html
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
<img src="./assets/0.10.2/loading.gif" alt="loading"/>
|
15
15
|
</div>
|
16
16
|
<div id="wrapper" style="display:none;">
|
17
|
-
<div class="timestamp">Generated <abbr class="timeago" title="2018-04-
|
17
|
+
<div class="timestamp">Generated <abbr class="timeago" title="2018-04-30T15:15:45-04:00">2018-04-30T15:15:45-04:00</abbr></div>
|
18
18
|
<ul class="group_tabs"></ul>
|
19
19
|
|
20
20
|
<div id="content">
|
data/db/migrate/023_add_sites.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
class RecreateNonUniqueIndexOnSnippetsName < ActiveRecord::Migration[5.
|
1
|
+
class RecreateNonUniqueIndexOnSnippetsName < ActiveRecord::Migration[5.2]
|
2
2
|
def self.up
|
3
3
|
remove_index :snippets, :name => "name"
|
4
4
|
add_index :snippets, [:name, :site_id ], :name => "name_site_id", :unique => true
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class CreatePageAttachments < ActiveRecord::Migration[5.
|
1
|
+
class CreatePageAttachments < ActiveRecord::Migration[5.2]
|
2
2
|
def self.up
|
3
3
|
# See if a page_attachments table from the original 'page_attachments' extension already exists
|
4
4
|
# If so, rename the table to old_page_attachments so they can be migrated later
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class ExtendPagePartContentLimit < ActiveRecord::Migration[5.
|
1
|
+
class ExtendPagePartContentLimit < ActiveRecord::Migration[5.2]
|
2
2
|
def self.up
|
3
3
|
if ActiveRecord::Base.connection.adapter_name =~ /m[sy]sql/i
|
4
4
|
# Make sure text longer than 64kB is not cropped in MySQL and MSSQL
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class <%= class_name.underscore.camelize %> < ActiveRecord::Migration[5.
|
1
|
+
class <%= class_name.underscore.camelize %> < ActiveRecord::Migration[5.2]
|
2
2
|
def self.up<% attributes.each do |attribute| %>
|
3
3
|
<%= migration_action %>_column :<%= table_name %>, :<%= attribute.name %><% if migration_action == 'add' %>, :<%= attribute.type %><% end -%>
|
4
4
|
<%- end %>
|
data/lib/tasks/database.rake
CHANGED
@@ -28,7 +28,7 @@ namespace :db do
|
|
28
28
|
# that's not a setup anyone would recommend.
|
29
29
|
#
|
30
30
|
ActiveRecord::Base.connection.tables.each do |table|
|
31
|
-
ActiveRecord::Migration[5.
|
31
|
+
ActiveRecord::Migration[5.2].drop_table table
|
32
32
|
end
|
33
33
|
Rake::Task["db:migrate"].invoke
|
34
34
|
else
|
@@ -46,8 +46,6 @@ namespace :db do
|
|
46
46
|
:admin_password => ENV['ADMIN_PASSWORD'],
|
47
47
|
:database_template => ENV['DATABASE_TEMPLATE']
|
48
48
|
)
|
49
|
-
Rake::Task['db:migrate:extensions'].invoke
|
50
|
-
Rake::Task['trusty_cms:extensions:update_all'].invoke
|
51
49
|
puts %{
|
52
50
|
Your TrustyCms application is ready to use. Run `rails s -e production` to
|
53
51
|
start the server. Your site will then be running at http://localhost:3000
|
@@ -64,15 +62,16 @@ To add more extensions just add them to your Gemfile and run `bundle install`.
|
|
64
62
|
|
65
63
|
desc "Migrate the database through all available migration scripts (looks for db/migrate/* in trusty-cms, in extensions and in your site) and update db/schema.rb by invoking db:schema:dump. Turn off output with VERBOSE=false."
|
66
64
|
task :migrate => [:environment, 'db:migrate:trusty_cms', 'db:migrate:extensions'] do
|
67
|
-
ActiveRecord::Migration[5.
|
65
|
+
ActiveRecord::Migration[5.2].verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true
|
68
66
|
Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby
|
69
67
|
end
|
70
68
|
|
71
69
|
namespace :migrate do
|
72
70
|
desc "Migrates the database through steps defined in the core trusty-cms distribution. Usual db:migrate options can apply."
|
73
71
|
task :trusty_cms => :environment do
|
74
|
-
ActiveRecord::Migration[5.
|
75
|
-
Rake::Task[
|
72
|
+
ActiveRecord::Migration[5.2].verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true
|
73
|
+
Rake::Task['railties:install:migrations'].invoke if !Rails.env.test?
|
74
|
+
Rake::Task['db:migrate'].invoke
|
76
75
|
end
|
77
76
|
end
|
78
77
|
end
|