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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +46 -45
  3. data/app/controllers/admin/page_parts_controller.rb +1 -1
  4. data/app/controllers/admin/password_resets_controller.rb +1 -8
  5. data/bin/rails +14 -0
  6. data/db/migrate/001_create_radiant_tables.rb +1 -1
  7. data/db/migrate/002_insert_initial_data.rb +1 -1
  8. data/db/migrate/004_rename_filter_column.rb +1 -1
  9. data/db/migrate/005_add_virtual_column_to_page.rb +1 -1
  10. data/db/migrate/007_remove_virtual_column_from_page.rb +1 -1
  11. data/db/migrate/008_add_virtual_column_to_page_again.rb +1 -1
  12. data/db/migrate/009_add_content_type_field_to_layout.rb +1 -1
  13. data/db/migrate/012_create_extension_meta.rb +1 -1
  14. data/db/migrate/013_add_notes_field_to_user.rb +1 -1
  15. data/db/migrate/014_rename_config_default_parts_key.rb +1 -1
  16. data/db/migrate/015_add_optimistic_locking.rb +1 -1
  17. data/db/migrate/016_add_sessions.rb +1 -1
  18. data/db/migrate/017_rename_created_by_updated_by_columns.rb +1 -1
  19. data/db/migrate/018_add_description_and_keywords_to_pages.rb +1 -1
  20. data/db/migrate/020_add_session_info_to_users.rb +1 -1
  21. data/db/migrate/021_remove_session_expire_from_users.rb +1 -1
  22. data/db/migrate/20081203140407_add_indexes.rb +1 -1
  23. data/db/migrate/20090226140109_add_user_language.rb +1 -1
  24. data/db/migrate/20090929164633_rename_developer_role_to_designer.rb +1 -1
  25. data/db/migrate/20091003095744_change_user_language_to_locale.rb +1 -1
  26. data/db/migrate/20100805154952_add_page_fields.rb +1 -1
  27. data/db/migrate/20100805155020_convert_page_metas.rb +1 -1
  28. data/db/migrate/20100810151922_add_field_name_index.rb +1 -1
  29. data/db/migrate/20110902203823_add_allowed_children_cache_to_pages.rb +1 -1
  30. data/db/migrate/20111016150725_extend_page_part_content_limit.rb +1 -1
  31. data/db/migrate/20120209231801_change_pages_allowed_children_cache_to_text.rb +1 -1
  32. data/db/migrate/20160527141249_add_password_reset_to_users.rb +1 -1
  33. data/db/migrate/20161027141250_add_position_to_pages.rb +1 -1
  34. data/lib/generators/extension/templates/migration.rb +1 -1
  35. data/lib/generators/extension_migration/templates/migration.rb +1 -1
  36. data/lib/generators/extension_model/templates/migration.rb +1 -1
  37. data/lib/tasks/database.rake +3 -3
  38. data/lib/trusty_cms.rb +1 -1
  39. data/spec/dummy/db/schema.rb +73 -81
  40. data/trusty_cms.gemspec +1 -1
  41. metadata +6 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fad99e24211991dbe997a0a4b1c13e8d9be4d5ee
4
- data.tar.gz: 270294971225b1bdab80236958f0e913476a8d40
3
+ metadata.gz: 59bd087c0c6085d8bb6c23cfd7919be17b318b78
4
+ data.tar.gz: 27768e8a098a1cbb8cb113b04a603f68c408f87a
5
5
  SHA512:
6
- metadata.gz: cb7a17cfd775828904427f0d5018cd4640973899b5bdf22041fcf8e5f3b67d406f6d0c6f09089383bc2f27af79a5e9095b401063abdf42a12fe72869d011ed9d
7
- data.tar.gz: f080140a206280c41c3c5bc828051e9d27d6d54ba0537b7c2563142b6d4840f92ca75a4007294c5ab88dd178136d199b2028c2933e1fc38f8e4b2a2fb8e4fae9
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)
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.0.1)
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.0.5)
43
- actionpack (= 5.0.5)
44
- nio4r (>= 1.2, < 3.0)
42
+ actioncable (5.1.3)
43
+ actionpack (= 5.1.3)
44
+ nio4r (~> 2.0)
45
45
  websocket-driver (~> 0.6.1)
46
- actionmailer (5.0.5)
47
- actionpack (= 5.0.5)
48
- actionview (= 5.0.5)
49
- activejob (= 5.0.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.0.5)
53
- actionview (= 5.0.5)
54
- activesupport (= 5.0.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.0.5)
60
- activesupport (= 5.0.5)
59
+ actionview (5.1.3)
60
+ activesupport (= 5.1.3)
61
61
  builder (~> 3.1)
62
- erubis (~> 2.7.0)
62
+ erubi (~> 1.4)
63
63
  rails-dom-testing (~> 2.0)
64
64
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
65
- activejob (5.0.5)
66
- activesupport (= 5.0.5)
65
+ activejob (5.1.3)
66
+ activesupport (= 5.1.3)
67
67
  globalid (>= 0.3.6)
68
- activemodel (5.0.5)
69
- activesupport (= 5.0.5)
70
- activerecord (5.0.5)
71
- activemodel (= 5.0.5)
72
- activesupport (= 5.0.5)
73
- arel (~> 7.0)
74
- activesupport (5.0.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 (7.1.4)
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.6.0)
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.3)
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.2)
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.1)
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.0.5)
199
- actioncable (= 5.0.5)
200
- actionmailer (= 5.0.5)
201
- actionpack (= 5.0.5)
202
- actionview (= 5.0.5)
203
- activejob (= 5.0.5)
204
- activemodel (= 5.0.5)
205
- activerecord (= 5.0.5)
206
- activesupport (= 5.0.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.0.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.0.5)
216
- actionpack (= 5.0.5)
217
- activesupport (= 5.0.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.1)
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.16.0.pre.2
317
+ 1.15.3
@@ -10,7 +10,7 @@ class Admin::PagePartsController < Admin::ResourceController
10
10
  private
11
11
 
12
12
  def page_parts_params
13
- params.require(:page_part).permit(:name, :filter_id, :content)
13
+ params.permit(:name, :filter_id, :content)
14
14
  end
15
15
 
16
16
  end
@@ -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(password_params)
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 CreateRadiantTables < ActiveRecord::Migration
1
+ class CreateRadiantTables < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  create_table "config", :force => true do |t|
4
4
  t.column "key", :string, :limit => 40, :default => "", :null => false
@@ -1,4 +1,4 @@
1
- class InsertInitialData < ActiveRecord::Migration
1
+ class InsertInitialData < ActiveRecord::Migration[5.1]
2
2
 
3
3
  # Historical. We no longer rely on this migration to insert the initial data into
4
4
  # the database. Instead we recommend `rake db:bootstrap`.
@@ -1,4 +1,4 @@
1
- class RenameFilterColumn < ActiveRecord::Migration
1
+ class RenameFilterColumn < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  rename_column :page_parts, :filter, :filter_id
4
4
  rename_column :snippets, :filter, :filter_id
@@ -1,4 +1,4 @@
1
- class AddVirtualColumnToPage < ActiveRecord::Migration
1
+ class AddVirtualColumnToPage < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  add_column "pages", "virtual", :boolean, :null => false, :default => false
4
4
  end
@@ -1,4 +1,4 @@
1
- class RemoveVirtualColumnFromPage < ActiveRecord::Migration
1
+ class RemoveVirtualColumnFromPage < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  remove_column "pages", "virtual"
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddVirtualColumnToPageAgain < ActiveRecord::Migration
1
+ class AddVirtualColumnToPageAgain < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  add_column "pages", "virtual", :boolean, :null => false, :default => false
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddContentTypeFieldToLayout < ActiveRecord::Migration
1
+ class AddContentTypeFieldToLayout < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  add_column "layouts", "content_type", :string, :limit => 40
4
4
  end
@@ -1,4 +1,4 @@
1
- class CreateExtensionMeta < ActiveRecord::Migration
1
+ class CreateExtensionMeta < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  create_table 'extension_meta', :force => true do |t|
4
4
  t.column 'name', :string
@@ -1,4 +1,4 @@
1
- class AddNotesFieldToUser < ActiveRecord::Migration
1
+ class AddNotesFieldToUser < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  add_column "users", "notes", :text
4
4
  end
@@ -1,4 +1,4 @@
1
- class RenameConfigDefaultPartsKey < ActiveRecord::Migration
1
+ class RenameConfigDefaultPartsKey < ActiveRecord::Migration[5.1]
2
2
 
3
3
  def self.up
4
4
  rename_config_key 'default.parts', 'defaults.page.parts'
@@ -1,4 +1,4 @@
1
- class AddOptimisticLocking < ActiveRecord::Migration
1
+ class AddOptimisticLocking < ActiveRecord::Migration[5.1]
2
2
 
3
3
  def self.up
4
4
  [:pages, :layouts, :snippets, :users].each do |table|
@@ -1,4 +1,4 @@
1
- class AddSessions < ActiveRecord::Migration
1
+ class AddSessions < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  create_table :sessions do |t|
4
4
  t.column :session_id, :string
@@ -1,4 +1,4 @@
1
- class RenameCreatedByUpdatedByColumns < ActiveRecord::Migration
1
+ class RenameCreatedByUpdatedByColumns < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  %w{pages snippets layouts users}.each do |table|
4
4
  rename_column table, :created_by, :created_by_id
@@ -1,4 +1,4 @@
1
- class AddDescriptionAndKeywordsToPages < ActiveRecord::Migration
1
+ class AddDescriptionAndKeywordsToPages < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  add_column :pages, :description, :string
4
4
  add_column :pages, :keywords, :string
@@ -1,4 +1,4 @@
1
- class AddSessionInfoToUsers < ActiveRecord::Migration
1
+ class AddSessionInfoToUsers < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  add_column :users, :session_token, :string
4
4
  add_column :users, :session_expire, :datetime
@@ -1,4 +1,4 @@
1
- class RemoveSessionExpireFromUsers < ActiveRecord::Migration
1
+ class RemoveSessionExpireFromUsers < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  remove_column :users, :session_expire
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddIndexes < ActiveRecord::Migration
1
+ class AddIndexes < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  add_index :pages, :class_name, :name => 'pages_class_name'
4
4
  add_index :pages, :parent_id, :name => 'pages_parent_id'
@@ -1,4 +1,4 @@
1
- class AddUserLanguage < ActiveRecord::Migration
1
+ class AddUserLanguage < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  add_column :users, :language, :string
4
4
  end
@@ -1,4 +1,4 @@
1
- class RenameDeveloperRoleToDesigner < ActiveRecord::Migration
1
+ class RenameDeveloperRoleToDesigner < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  rename_column 'users', 'developer', 'designer'
4
4
  end
@@ -1,4 +1,4 @@
1
- class ChangeUserLanguageToLocale < ActiveRecord::Migration
1
+ class ChangeUserLanguageToLocale < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  rename_column 'users', 'language', 'locale'
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddPageFields < ActiveRecord::Migration
1
+ class AddPageFields < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  create_table :page_fields do |t|
4
4
  t.integer :page_id
@@ -1,4 +1,4 @@
1
- class ConvertPageMetas < ActiveRecord::Migration
1
+ class ConvertPageMetas < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  remove_column :pages, :keywords
4
4
  remove_column :pages, :description
@@ -1,4 +1,4 @@
1
- class AddFieldNameIndex < ActiveRecord::Migration
1
+ class AddFieldNameIndex < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  remove_index :page_fields, :page_id
4
4
  add_index :page_fields, [:page_id, :name, :content]
@@ -1,4 +1,4 @@
1
- class AddAllowedChildrenCacheToPages < ActiveRecord::Migration
1
+ class AddAllowedChildrenCacheToPages < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  add_column :pages, :allowed_children_cache, :text
4
4
  end
@@ -1,4 +1,4 @@
1
- class ExtendPagePartContentLimit < ActiveRecord::Migration
1
+ class ExtendPagePartContentLimit < ActiveRecord::Migration[5.1]
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 ChangePagesAllowedChildrenCacheToText < ActiveRecord::Migration
1
+ class ChangePagesAllowedChildrenCacheToText < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  change_column :pages, :allowed_children_cache, :text
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddPasswordResetToUsers < ActiveRecord::Migration
1
+ class AddPasswordResetToUsers < ActiveRecord::Migration[5.1]
2
2
  def change
3
3
  add_column :users, :password_reset_token, :string
4
4
  add_column :users, :password_reset_sent_at, :datetime
@@ -1,4 +1,4 @@
1
- class AddPositionToPages < ActiveRecord::Migration
1
+ class AddPositionToPages < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  unless column_exists? :pages, :position
4
4
  add_column :pages, :position, :integer
@@ -1,4 +1,4 @@
1
- class Create<%= class_name %>Schema < ActiveRecord::Migration
1
+ class Create<%= class_name %>Schema < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
 
4
4
  end
@@ -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 %>
@@ -1,4 +1,4 @@
1
- class <%= migration_name %> < ActiveRecord::Migration
1
+ class <%= migration_name %> < ActiveRecord::Migration[5.1]
2
2
  def self.up
3
3
  create_table :<%= table_name %> do |t|
4
4
  <% for attribute in attributes -%>
@@ -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
@@ -2,6 +2,6 @@ TRUSTY_CMS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..")) unle
2
2
 
3
3
  unless defined? TrustyCms::VERSION
4
4
  module TrustyCms
5
- VERSION = '3.0.11'
5
+ VERSION = '3.1.0'
6
6
  end
7
7
  end
@@ -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", limit: 40, default: "", null: false
18
- t.string "value", limit: 255, default: ""
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
- add_index "config", ["key"], name: "key", unique: true, using: :btree
22
-
23
- create_table "extension_meta", force: :cascade do |t|
24
- t.string "name", limit: 255
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 "name", limit: 100
31
- t.text "content", limit: 65535
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 "created_by_id", limit: 4
35
- t.integer "updated_by_id", limit: 4
36
- t.string "content_type", limit: 40
37
- t.integer "lock_version", limit: 4, default: 0
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", limit: 4
42
- t.string "name", limit: 255
43
- t.string "content", limit: 255
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
- add_index "page_fields", ["page_id", "name", "content"], name: "index_page_fields_on_page_id_and_name_and_content", using: :btree
47
-
48
- create_table "page_parts", force: :cascade do |t|
49
- t.string "name", limit: 100
50
- t.string "filter_id", limit: 25
51
- t.text "content", limit: 16777215
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
- add_index "page_parts", ["page_id", "name"], name: "parts_by_page", using: :btree
56
-
57
- create_table "pages", force: :cascade do |t|
58
- t.string "title", limit: 255
59
- t.string "slug", limit: 100
60
- t.string "breadcrumb", limit: 160
61
- t.string "class_name", limit: 25
62
- t.integer "status_id", limit: 4, default: 1, null: false
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 "created_by_id", limit: 4
69
- t.integer "updated_by_id", limit: 4
70
- t.boolean "virtual", default: false, null: false
71
- t.integer "lock_version", limit: 4, default: 0
72
- t.text "allowed_children_cache", limit: 65535
73
- t.integer "position", limit: 4
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
- add_index "pages", ["class_name"], name: "pages_class_name", using: :btree
77
- add_index "pages", ["parent_id"], name: "pages_parent_id", using: :btree
78
- add_index "pages", ["slug", "parent_id"], name: "pages_child_slug", using: :btree
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
- add_index "sessions", ["session_id"], name: "index_sessions_on_session_id", using: :btree
88
- add_index "sessions", ["updated_at"], name: "index_sessions_on_updated_at", using: :btree
89
-
90
- create_table "snippets", force: :cascade do |t|
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 "created_by_id", limit: 4
97
- t.integer "updated_by_id", limit: 4
98
- t.integer "lock_version", limit: 4, default: 0
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
- add_index "snippets", ["name"], name: "name", unique: true, using: :btree
102
-
103
- create_table "users", force: :cascade do |t|
104
- t.string "name", limit: 100
105
- t.string "email", limit: 255
106
- t.string "login", limit: 40, default: "", null: false
107
- t.string "password", limit: 40
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 "created_by_id", limit: 4
113
- t.integer "updated_by_id", limit: 4
114
- t.string "salt", limit: 255
115
- t.text "notes", limit: 65535
116
- t.integer "lock_version", limit: 4, default: 0
117
- t.string "session_token", limit: 255
118
- t.string "locale", limit: 255
119
- t.string "password_reset_token", limit: 255
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.0.1"
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.11
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-09-22 00:00:00.000000000 Z
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.0.1
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.0.1
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.13
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.