trusty-cms 3.0.11 → 3.1.0
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 +46 -45
- data/app/controllers/admin/page_parts_controller.rb +1 -1
- data/app/controllers/admin/password_resets_controller.rb +1 -8
- data/bin/rails +14 -0
- 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/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/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/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/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 +3 -3
- data/lib/trusty_cms.rb +1 -1
- data/spec/dummy/db/schema.rb +73 -81
- data/trusty_cms.gemspec +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 59bd087c0c6085d8bb6c23cfd7919be17b318b78
|
|
4
|
+
data.tar.gz: 27768e8a098a1cbb8cb113b04a603f68c408f87a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d5e36d0f912a42bc29d6844fdfe02ea503152be1f7878e7a6c7eadaa1bfd1cda14dfee24a8529bdca349f011e487f2071aeb8b182105085d8503b531cc0bb578
|
|
7
|
+
data.tar.gz: dc3830e601705b494cd56a62a2dd8f6b5c3a29694568467745d949b94714c6a14a08bafc07444c26ba0b21f5b837b0b90f9f9179b081e7039fb9bb184fa9389d
|
data/Gemfile.lock
CHANGED
|
@@ -8,7 +8,7 @@ GIT
|
|
|
8
8
|
PATH
|
|
9
9
|
remote: .
|
|
10
10
|
specs:
|
|
11
|
-
trusty-cms (3.0
|
|
11
|
+
trusty-cms (3.1.0)
|
|
12
12
|
RedCloth (~> 4.3.2)
|
|
13
13
|
acts_as_tree (~> 2.6.1)
|
|
14
14
|
bundler (~> 1.7)
|
|
@@ -24,7 +24,7 @@ PATH
|
|
|
24
24
|
rack (~> 2.0.1)
|
|
25
25
|
rack-cache (~> 1.7)
|
|
26
26
|
radius (~> 0.7)
|
|
27
|
-
rails (~> 5.
|
|
27
|
+
rails (~> 5.1)
|
|
28
28
|
rake (< 11.0)
|
|
29
29
|
rdoc (~> 5.1)
|
|
30
30
|
roadie-rails (~> 1.2.1)
|
|
@@ -39,39 +39,39 @@ GEM
|
|
|
39
39
|
remote: https://rubygems.org/
|
|
40
40
|
specs:
|
|
41
41
|
RedCloth (4.3.2)
|
|
42
|
-
actioncable (5.
|
|
43
|
-
actionpack (= 5.
|
|
44
|
-
nio4r (
|
|
42
|
+
actioncable (5.1.3)
|
|
43
|
+
actionpack (= 5.1.3)
|
|
44
|
+
nio4r (~> 2.0)
|
|
45
45
|
websocket-driver (~> 0.6.1)
|
|
46
|
-
actionmailer (5.
|
|
47
|
-
actionpack (= 5.
|
|
48
|
-
actionview (= 5.
|
|
49
|
-
activejob (= 5.
|
|
46
|
+
actionmailer (5.1.3)
|
|
47
|
+
actionpack (= 5.1.3)
|
|
48
|
+
actionview (= 5.1.3)
|
|
49
|
+
activejob (= 5.1.3)
|
|
50
50
|
mail (~> 2.5, >= 2.5.4)
|
|
51
51
|
rails-dom-testing (~> 2.0)
|
|
52
|
-
actionpack (5.
|
|
53
|
-
actionview (= 5.
|
|
54
|
-
activesupport (= 5.
|
|
52
|
+
actionpack (5.1.3)
|
|
53
|
+
actionview (= 5.1.3)
|
|
54
|
+
activesupport (= 5.1.3)
|
|
55
55
|
rack (~> 2.0)
|
|
56
56
|
rack-test (~> 0.6.3)
|
|
57
57
|
rails-dom-testing (~> 2.0)
|
|
58
58
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
59
|
-
actionview (5.
|
|
60
|
-
activesupport (= 5.
|
|
59
|
+
actionview (5.1.3)
|
|
60
|
+
activesupport (= 5.1.3)
|
|
61
61
|
builder (~> 3.1)
|
|
62
|
-
|
|
62
|
+
erubi (~> 1.4)
|
|
63
63
|
rails-dom-testing (~> 2.0)
|
|
64
64
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
|
65
|
-
activejob (5.
|
|
66
|
-
activesupport (= 5.
|
|
65
|
+
activejob (5.1.3)
|
|
66
|
+
activesupport (= 5.1.3)
|
|
67
67
|
globalid (>= 0.3.6)
|
|
68
|
-
activemodel (5.
|
|
69
|
-
activesupport (= 5.
|
|
70
|
-
activerecord (5.
|
|
71
|
-
activemodel (= 5.
|
|
72
|
-
activesupport (= 5.
|
|
73
|
-
arel (~>
|
|
74
|
-
activesupport (5.
|
|
68
|
+
activemodel (5.1.3)
|
|
69
|
+
activesupport (= 5.1.3)
|
|
70
|
+
activerecord (5.1.3)
|
|
71
|
+
activemodel (= 5.1.3)
|
|
72
|
+
activesupport (= 5.1.3)
|
|
73
|
+
arel (~> 8.0)
|
|
74
|
+
activesupport (5.1.3)
|
|
75
75
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
76
76
|
i18n (~> 0.7)
|
|
77
77
|
minitest (~> 5.1)
|
|
@@ -80,7 +80,7 @@ GEM
|
|
|
80
80
|
activerecord (>= 3.0.0)
|
|
81
81
|
addressable (2.5.1)
|
|
82
82
|
public_suffix (~> 2.0, >= 2.0.2)
|
|
83
|
-
arel (
|
|
83
|
+
arel (8.0.0)
|
|
84
84
|
builder (3.2.3)
|
|
85
85
|
byebug (9.0.6)
|
|
86
86
|
capybara (2.13.0)
|
|
@@ -118,13 +118,14 @@ GEM
|
|
|
118
118
|
sass-rails (< 5.1)
|
|
119
119
|
sprockets (< 4.0)
|
|
120
120
|
concurrent-ruby (1.0.5)
|
|
121
|
-
css_parser (1.
|
|
121
|
+
css_parser (1.5.0)
|
|
122
122
|
addressable
|
|
123
123
|
database_cleaner (1.5.3)
|
|
124
124
|
delocalize (0.4.0)
|
|
125
125
|
rails (>= 3.0)
|
|
126
126
|
diff-lcs (1.3)
|
|
127
127
|
docile (1.1.5)
|
|
128
|
+
erubi (1.6.1)
|
|
128
129
|
erubis (2.7.0)
|
|
129
130
|
execjs (2.7.0)
|
|
130
131
|
factory_girl (4.5.0)
|
|
@@ -135,7 +136,7 @@ GEM
|
|
|
135
136
|
ffi (1.9.18)
|
|
136
137
|
globalid (0.4.0)
|
|
137
138
|
activesupport (>= 4.2.0)
|
|
138
|
-
haml (5.0.
|
|
139
|
+
haml (5.0.2)
|
|
139
140
|
temple (>= 0.8.0)
|
|
140
141
|
tilt
|
|
141
142
|
haml-rails (1.0.0)
|
|
@@ -158,7 +159,7 @@ GEM
|
|
|
158
159
|
json (2.1.0)
|
|
159
160
|
launchy (2.4.3)
|
|
160
161
|
addressable (~> 2.3)
|
|
161
|
-
libv8 (3.16.14.19)
|
|
162
|
+
libv8 (3.16.14.19-x86_64-darwin-16)
|
|
162
163
|
loofah (2.0.3)
|
|
163
164
|
nokogiri (>= 1.5.9)
|
|
164
165
|
mail (2.6.6)
|
|
@@ -169,7 +170,7 @@ GEM
|
|
|
169
170
|
mime-types-data (3.2016.0521)
|
|
170
171
|
mini_portile2 (2.2.0)
|
|
171
172
|
minitest (5.10.3)
|
|
172
|
-
multi_json (1.12.
|
|
173
|
+
multi_json (1.12.1)
|
|
173
174
|
mysql2 (0.4.8)
|
|
174
175
|
nio4r (2.1.0)
|
|
175
176
|
nokogiri (1.8.0)
|
|
@@ -190,31 +191,31 @@ GEM
|
|
|
190
191
|
pry (>= 0.10.4)
|
|
191
192
|
public_suffix (2.0.5)
|
|
192
193
|
rack (2.0.3)
|
|
193
|
-
rack-cache (1.7.
|
|
194
|
+
rack-cache (1.7.0)
|
|
194
195
|
rack (>= 0.4)
|
|
195
196
|
rack-test (0.6.3)
|
|
196
197
|
rack (>= 1.0)
|
|
197
198
|
radius (0.7.4)
|
|
198
|
-
rails (5.
|
|
199
|
-
actioncable (= 5.
|
|
200
|
-
actionmailer (= 5.
|
|
201
|
-
actionpack (= 5.
|
|
202
|
-
actionview (= 5.
|
|
203
|
-
activejob (= 5.
|
|
204
|
-
activemodel (= 5.
|
|
205
|
-
activerecord (= 5.
|
|
206
|
-
activesupport (= 5.
|
|
199
|
+
rails (5.1.3)
|
|
200
|
+
actioncable (= 5.1.3)
|
|
201
|
+
actionmailer (= 5.1.3)
|
|
202
|
+
actionpack (= 5.1.3)
|
|
203
|
+
actionview (= 5.1.3)
|
|
204
|
+
activejob (= 5.1.3)
|
|
205
|
+
activemodel (= 5.1.3)
|
|
206
|
+
activerecord (= 5.1.3)
|
|
207
|
+
activesupport (= 5.1.3)
|
|
207
208
|
bundler (>= 1.3.0)
|
|
208
|
-
railties (= 5.
|
|
209
|
+
railties (= 5.1.3)
|
|
209
210
|
sprockets-rails (>= 2.0.0)
|
|
210
211
|
rails-dom-testing (2.0.3)
|
|
211
212
|
activesupport (>= 4.2.0)
|
|
212
213
|
nokogiri (>= 1.6)
|
|
213
214
|
rails-html-sanitizer (1.0.3)
|
|
214
215
|
loofah (~> 2.0)
|
|
215
|
-
railties (5.
|
|
216
|
-
actionpack (= 5.
|
|
217
|
-
activesupport (= 5.
|
|
216
|
+
railties (5.1.3)
|
|
217
|
+
actionpack (= 5.1.3)
|
|
218
|
+
activesupport (= 5.1.3)
|
|
218
219
|
method_source
|
|
219
220
|
rake (>= 0.8.7)
|
|
220
221
|
thor (>= 0.18.1, < 2.0)
|
|
@@ -266,7 +267,7 @@ GEM
|
|
|
266
267
|
sprockets (3.7.1)
|
|
267
268
|
concurrent-ruby (~> 1.0)
|
|
268
269
|
rack (> 1, < 3)
|
|
269
|
-
sprockets-rails (3.2.
|
|
270
|
+
sprockets-rails (3.2.0)
|
|
270
271
|
actionpack (>= 4.0)
|
|
271
272
|
activesupport (>= 4.0)
|
|
272
273
|
sprockets (>= 3.0.0)
|
|
@@ -313,4 +314,4 @@ DEPENDENCIES
|
|
|
313
314
|
trustygems (~> 0.2.0)
|
|
314
315
|
|
|
315
316
|
BUNDLED WITH
|
|
316
|
-
1.
|
|
317
|
+
1.15.3
|
|
@@ -20,17 +20,10 @@ class Admin::PasswordResetsController < ApplicationController
|
|
|
20
20
|
@user = User.find_by_password_reset_token!(params[:id])
|
|
21
21
|
if @user.password_reset_sent_at < 2.hours.ago
|
|
22
22
|
redirect_to new_password_reset_path, :alert => "Password reset has expired."
|
|
23
|
-
elsif @user.update_attributes(
|
|
23
|
+
elsif @user.update_attributes(params[:user])
|
|
24
24
|
redirect_to welcome_url, :notice => "Password has been reset!"
|
|
25
25
|
else
|
|
26
26
|
render :edit
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
|
-
|
|
30
|
-
private
|
|
31
|
-
|
|
32
|
-
def password_params
|
|
33
|
-
params.require(:user).permit(:password, :password_confirmation)
|
|
34
|
-
end
|
|
35
|
-
|
|
36
29
|
end
|
data/bin/rails
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# This command will automatically be run when you run "rails" with Rails gems
|
|
3
|
+
# installed from the root of your application.
|
|
4
|
+
|
|
5
|
+
ENGINE_ROOT = File.expand_path('../..', __FILE__)
|
|
6
|
+
ENGINE_PATH = File.expand_path('../../lib/trusty/cms/engine', __FILE__)
|
|
7
|
+
APP_PATH = File.expand_path('../../test/dummy/config/application', __FILE__)
|
|
8
|
+
|
|
9
|
+
# Set up gems listed in the Gemfile.
|
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
|
11
|
+
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
|
12
|
+
|
|
13
|
+
require 'rails/all'
|
|
14
|
+
require 'rails/engine/commands'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class <%= class_name.underscore.camelize %> < ActiveRecord::Migration
|
|
1
|
+
class <%= class_name.underscore.camelize %> < ActiveRecord::Migration[5.1]
|
|
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.drop_table table
|
|
31
|
+
ActiveRecord::Migration[5.1].drop_table table
|
|
32
32
|
end
|
|
33
33
|
Rake::Task["db:migrate"].invoke
|
|
34
34
|
else
|
|
@@ -64,7 +64,7 @@ To add more extensions just add them to your Gemfile and run `bundle install`.
|
|
|
64
64
|
|
|
65
65
|
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
66
|
task :migrate => [:environment, 'db:migrate:trusty_cms', 'db:migrate:extensions'] do
|
|
67
|
-
ActiveRecord::Migration.verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true
|
|
67
|
+
ActiveRecord::Migration[5.1].verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true
|
|
68
68
|
ActiveRecord::Migrator.migrate("db/migrate/", ENV["VERSION"] ? ENV["VERSION"].to_i : nil)
|
|
69
69
|
Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby
|
|
70
70
|
end
|
|
@@ -72,7 +72,7 @@ To add more extensions just add them to your Gemfile and run `bundle install`.
|
|
|
72
72
|
namespace :migrate do
|
|
73
73
|
desc "Migrates the database through steps defined in the core trusty-cms distribution. Usual db:migrate options can apply."
|
|
74
74
|
task :trusty_cms => :environment do
|
|
75
|
-
ActiveRecord::Migration.verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true
|
|
75
|
+
ActiveRecord::Migration[5.1].verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true
|
|
76
76
|
ActiveRecord::Migrator.migrate(File.join(TrustyCms.root, 'db', 'migrate'), ENV["VERSION"] ? ENV["VERSION"].to_i : nil)
|
|
77
77
|
Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby
|
|
78
78
|
end
|
data/lib/trusty_cms.rb
CHANGED
data/spec/dummy/db/schema.rb
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
# encoding: UTF-8
|
|
2
1
|
# This file is auto-generated from the current state of the database. Instead
|
|
3
2
|
# of editing this file, please use the migrations feature of Active Record to
|
|
4
3
|
# incrementally modify your database, and then regenerate this schema definition.
|
|
@@ -13,113 +12,106 @@
|
|
|
13
12
|
|
|
14
13
|
ActiveRecord::Schema.define(version: 20161027141250) do
|
|
15
14
|
|
|
16
|
-
create_table "config", force: :cascade do |t|
|
|
17
|
-
t.string "key",
|
|
18
|
-
t.string "value",
|
|
15
|
+
create_table "config", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
|
16
|
+
t.string "key", limit: 40, default: "", null: false
|
|
17
|
+
t.string "value", default: ""
|
|
18
|
+
t.index ["key"], name: "key", unique: true
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
t.
|
|
25
|
-
t.integer "schema_version", limit: 4, default: 0
|
|
26
|
-
t.boolean "enabled", default: true
|
|
21
|
+
create_table "extension_meta", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
|
22
|
+
t.string "name"
|
|
23
|
+
t.integer "schema_version", default: 0
|
|
24
|
+
t.boolean "enabled", default: true
|
|
27
25
|
end
|
|
28
26
|
|
|
29
|
-
create_table "layouts", force: :cascade do |t|
|
|
30
|
-
t.string
|
|
31
|
-
t.text
|
|
27
|
+
create_table "layouts", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
|
28
|
+
t.string "name", limit: 100
|
|
29
|
+
t.text "content"
|
|
32
30
|
t.datetime "created_at"
|
|
33
31
|
t.datetime "updated_at"
|
|
34
|
-
t.integer
|
|
35
|
-
t.integer
|
|
36
|
-
t.string
|
|
37
|
-
t.integer
|
|
32
|
+
t.integer "created_by_id"
|
|
33
|
+
t.integer "updated_by_id"
|
|
34
|
+
t.string "content_type", limit: 40
|
|
35
|
+
t.integer "lock_version", default: 0
|
|
38
36
|
end
|
|
39
37
|
|
|
40
|
-
create_table "page_fields", force: :cascade do |t|
|
|
41
|
-
t.integer "page_id"
|
|
42
|
-
t.string
|
|
43
|
-
t.string
|
|
38
|
+
create_table "page_fields", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
|
39
|
+
t.integer "page_id"
|
|
40
|
+
t.string "name"
|
|
41
|
+
t.string "content"
|
|
42
|
+
t.index ["page_id", "name", "content"], name: "index_page_fields_on_page_id_and_name_and_content"
|
|
44
43
|
end
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
t.
|
|
50
|
-
t.
|
|
51
|
-
t.
|
|
52
|
-
t.integer "page_id", limit: 4
|
|
45
|
+
create_table "page_parts", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
|
46
|
+
t.string "name", limit: 100
|
|
47
|
+
t.string "filter_id", limit: 25
|
|
48
|
+
t.text "content", limit: 16777215
|
|
49
|
+
t.integer "page_id"
|
|
50
|
+
t.index ["page_id", "name"], name: "parts_by_page"
|
|
53
51
|
end
|
|
54
52
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
t.string
|
|
59
|
-
t.string
|
|
60
|
-
t.
|
|
61
|
-
t.
|
|
62
|
-
t.integer
|
|
63
|
-
t.integer "parent_id", limit: 4
|
|
64
|
-
t.integer "layout_id", limit: 4
|
|
53
|
+
create_table "pages", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
|
54
|
+
t.string "title"
|
|
55
|
+
t.string "slug", limit: 100
|
|
56
|
+
t.string "breadcrumb", limit: 160
|
|
57
|
+
t.string "class_name", limit: 25
|
|
58
|
+
t.integer "status_id", default: 1, null: false
|
|
59
|
+
t.integer "parent_id"
|
|
60
|
+
t.integer "layout_id"
|
|
65
61
|
t.datetime "created_at"
|
|
66
62
|
t.datetime "updated_at"
|
|
67
63
|
t.datetime "published_at"
|
|
68
|
-
t.integer
|
|
69
|
-
t.integer
|
|
70
|
-
t.boolean
|
|
71
|
-
t.integer
|
|
72
|
-
t.text
|
|
73
|
-
t.integer
|
|
64
|
+
t.integer "created_by_id"
|
|
65
|
+
t.integer "updated_by_id"
|
|
66
|
+
t.boolean "virtual", default: false, null: false
|
|
67
|
+
t.integer "lock_version", default: 0
|
|
68
|
+
t.text "allowed_children_cache"
|
|
69
|
+
t.integer "position"
|
|
70
|
+
t.index ["class_name"], name: "pages_class_name"
|
|
71
|
+
t.index ["parent_id"], name: "pages_parent_id"
|
|
72
|
+
t.index ["slug", "parent_id"], name: "pages_child_slug"
|
|
73
|
+
t.index ["virtual", "status_id"], name: "pages_published"
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
add_index "pages", ["virtual", "status_id"], name: "pages_published", using: :btree
|
|
80
|
-
|
|
81
|
-
create_table "sessions", force: :cascade do |t|
|
|
82
|
-
t.string "session_id", limit: 255
|
|
83
|
-
t.text "data", limit: 65535
|
|
76
|
+
create_table "sessions", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
|
77
|
+
t.string "session_id"
|
|
78
|
+
t.text "data"
|
|
84
79
|
t.datetime "updated_at"
|
|
80
|
+
t.index ["session_id"], name: "index_sessions_on_session_id"
|
|
81
|
+
t.index ["updated_at"], name: "index_sessions_on_updated_at"
|
|
85
82
|
end
|
|
86
83
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
t.string "name", limit: 100, default: "", null: false
|
|
92
|
-
t.string "filter_id", limit: 25
|
|
93
|
-
t.text "content", limit: 65535
|
|
84
|
+
create_table "snippets", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
|
85
|
+
t.string "name", limit: 100, default: "", null: false
|
|
86
|
+
t.string "filter_id", limit: 25
|
|
87
|
+
t.text "content"
|
|
94
88
|
t.datetime "created_at"
|
|
95
89
|
t.datetime "updated_at"
|
|
96
|
-
t.integer
|
|
97
|
-
t.integer
|
|
98
|
-
t.integer
|
|
90
|
+
t.integer "created_by_id"
|
|
91
|
+
t.integer "updated_by_id"
|
|
92
|
+
t.integer "lock_version", default: 0
|
|
93
|
+
t.index ["name"], name: "name", unique: true
|
|
99
94
|
end
|
|
100
95
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
t.string
|
|
105
|
-
t.string
|
|
106
|
-
t.
|
|
107
|
-
t.
|
|
108
|
-
t.boolean "admin", default: false, null: false
|
|
109
|
-
t.boolean "designer", default: false, null: false
|
|
96
|
+
create_table "users", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
|
97
|
+
t.string "name", limit: 100
|
|
98
|
+
t.string "email"
|
|
99
|
+
t.string "login", limit: 40, default: "", null: false
|
|
100
|
+
t.string "password", limit: 40
|
|
101
|
+
t.boolean "admin", default: false, null: false
|
|
102
|
+
t.boolean "designer", default: false, null: false
|
|
110
103
|
t.datetime "created_at"
|
|
111
104
|
t.datetime "updated_at"
|
|
112
|
-
t.integer
|
|
113
|
-
t.integer
|
|
114
|
-
t.string
|
|
115
|
-
t.text
|
|
116
|
-
t.integer
|
|
117
|
-
t.string
|
|
118
|
-
t.string
|
|
119
|
-
t.string
|
|
105
|
+
t.integer "created_by_id"
|
|
106
|
+
t.integer "updated_by_id"
|
|
107
|
+
t.string "salt"
|
|
108
|
+
t.text "notes"
|
|
109
|
+
t.integer "lock_version", default: 0
|
|
110
|
+
t.string "session_token"
|
|
111
|
+
t.string "locale"
|
|
112
|
+
t.string "password_reset_token"
|
|
120
113
|
t.datetime "password_reset_sent_at"
|
|
114
|
+
t.index ["login"], name: "login", unique: true
|
|
121
115
|
end
|
|
122
116
|
|
|
123
|
-
add_index "users", ["login"], name: "login", unique: true, using: :btree
|
|
124
|
-
|
|
125
117
|
end
|
data/trusty_cms.gemspec
CHANGED
|
@@ -25,7 +25,7 @@ a general purpose content managment system--not merely a blogging engine.}
|
|
|
25
25
|
s.test_files = Dir["spec/**/*"]
|
|
26
26
|
|
|
27
27
|
s.add_dependency "tzinfo", "~> 1.2.3"
|
|
28
|
-
s.add_dependency "rails", "~> 5.
|
|
28
|
+
s.add_dependency "rails", "~> 5.1"
|
|
29
29
|
s.add_dependency "rdoc", "~> 5.1"
|
|
30
30
|
s.add_dependency "acts_as_tree", "~> 2.6.1"
|
|
31
31
|
s.add_dependency "bundler", "~> 1.7"
|
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: 3.0
|
|
4
|
+
version: 3.1.0
|
|
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: 2017-
|
|
11
|
+
date: 2017-08-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tzinfo
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 5.
|
|
33
|
+
version: '5.1'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 5.
|
|
40
|
+
version: '5.1'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rdoc
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -1351,6 +1351,7 @@ files:
|
|
|
1351
1351
|
- app/views/widget/_email_form.html.haml
|
|
1352
1352
|
- app/views/widget/_horizontal_widget.html.haml
|
|
1353
1353
|
- bin/ci/before_script
|
|
1354
|
+
- bin/rails
|
|
1354
1355
|
- bin/trusty_cms
|
|
1355
1356
|
- bin/trusty_test
|
|
1356
1357
|
- config.ru
|
|
@@ -1684,7 +1685,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1684
1685
|
version: 1.3.1
|
|
1685
1686
|
requirements: []
|
|
1686
1687
|
rubyforge_project:
|
|
1687
|
-
rubygems_version: 2.6.
|
|
1688
|
+
rubygems_version: 2.6.12
|
|
1688
1689
|
signing_key:
|
|
1689
1690
|
specification_version: 4
|
|
1690
1691
|
summary: A no-fluff content management system designed for small teams.
|