trusty-cms 4.1.6 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +114 -107
- data/INSTALL.md +2 -0
- data/app/controllers/admin/pages_controller.rb +1 -1
- data/app/controllers/admin/preferences_controller.rb +1 -1
- data/app/controllers/admin/resource_controller.rb +1 -1
- data/app/controllers/admin/users_controller.rb +1 -1
- data/config/environments/development.rb +2 -0
- data/lib/generators/extension/USAGE +30 -0
- data/lib/generators/extension/extension_generator.rb +97 -0
- data/lib/generators/extension/templates/README.md +6 -0
- data/lib/generators/extension/templates/RSpecRakefile +109 -0
- data/lib/generators/extension/templates/Rakefile +25 -0
- data/lib/generators/extension/templates/cucumber.yml +1 -0
- data/lib/generators/extension/templates/cucumber_env.rb +11 -0
- data/lib/generators/extension/templates/cucumber_paths.rb +22 -0
- data/lib/generators/extension/templates/en.yml +3 -0
- data/lib/generators/extension/templates/extension.rb +21 -0
- data/lib/generators/extension/templates/functional_test.rb +15 -0
- data/lib/generators/extension/templates/gemspec.rb +29 -0
- data/lib/generators/extension/templates/lib.rb +8 -0
- data/lib/generators/extension/templates/migration.rb +9 -0
- data/lib/generators/extension/templates/radiant_config.rb +3 -0
- data/lib/generators/extension/templates/routes.rb +5 -0
- data/lib/generators/extension/templates/spec.opts +6 -0
- data/lib/generators/extension/templates/spec_helper.rb +42 -0
- data/lib/generators/extension/templates/tasks.rake +47 -0
- data/lib/generators/extension/templates/test_helper.rb +26 -0
- data/lib/generators/extension_controller/USAGE +36 -0
- data/lib/generators/extension_controller/extension_controller_generator.rb +84 -0
- data/lib/generators/extension_controller/templates/controller.rb +10 -0
- data/lib/generators/extension_controller/templates/controller_spec.rb +23 -0
- data/lib/generators/extension_controller/templates/functional_test.rb +11 -0
- data/lib/generators/extension_controller/templates/helper.rb +2 -0
- data/lib/generators/extension_controller/templates/helper_spec.rb +11 -0
- data/lib/generators/extension_controller/templates/helper_test.rb +4 -0
- data/lib/generators/extension_controller/templates/view.html.erb +2 -0
- data/lib/generators/extension_controller/templates/view_spec.rb +12 -0
- data/lib/generators/extension_mailer/USAGE +17 -0
- data/lib/generators/extension_mailer/extension_mailer_generator.rb +68 -0
- data/lib/generators/extension_mailer/templates/fixture.erb +3 -0
- data/lib/generators/extension_mailer/templates/mailer.rb +15 -0
- data/lib/generators/extension_mailer/templates/unit_test.rb +21 -0
- data/lib/generators/extension_mailer/templates/view.erb +3 -0
- data/lib/generators/extension_migration/USAGE +34 -0
- data/lib/generators/extension_migration/extension_migration_generator.rb +25 -0
- data/lib/generators/extension_migration/templates/migration.rb +11 -0
- data/lib/generators/extension_model/USAGE +35 -0
- data/lib/generators/extension_model/extension_model_generator.rb +68 -0
- data/lib/generators/extension_model/templates/fixtures.yml +19 -0
- data/lib/generators/extension_model/templates/migration.rb +16 -0
- data/lib/generators/extension_model/templates/model.rb +2 -0
- data/lib/generators/extension_model/templates/model_spec.rb +11 -0
- data/lib/generators/extension_model/templates/unit_test.rb +8 -0
- data/lib/generators/generator_base_extension.rb +18 -0
- data/lib/generators/instance/instance_generator.rb +148 -0
- data/lib/generators/instance/templates/databases/db2.yml +40 -0
- data/lib/generators/instance/templates/databases/mysql.yml +47 -0
- data/lib/generators/instance/templates/databases/postgresql.yml +44 -0
- data/lib/generators/instance/templates/databases/sqlite3.yml +16 -0
- data/lib/generators/instance/templates/databases/sqlserver.yml +21 -0
- data/lib/generators/instance/templates/instance_boot.rb +122 -0
- data/lib/generators/instance/templates/instance_config.ru +2 -0
- data/lib/generators/instance/templates/instance_environment.rb +93 -0
- data/lib/generators/instance/templates/instance_gemfile +78 -0
- data/lib/generators/instance/templates/instance_generate +6 -0
- data/lib/generators/instance/templates/instance_radiant_config.rb +16 -0
- data/lib/generators/instance/templates/instance_rakefile +3 -0
- data/lib/generators/instance/templates/instance_routes.rb +1 -0
- data/lib/generators/language_extension/USAGE +27 -0
- data/lib/generators/language_extension/language_extension_generator.rb +71 -0
- data/lib/generators/language_extension/templates/README +3 -0
- data/lib/generators/language_extension/templates/RSpecRakefile +123 -0
- data/lib/generators/language_extension/templates/Rakefile +25 -0
- data/lib/generators/language_extension/templates/available_tags.yml +553 -0
- data/lib/generators/language_extension/templates/cucumber.yml +1 -0
- data/lib/generators/language_extension/templates/cucumber_env.rb +16 -0
- data/lib/generators/language_extension/templates/cucumber_paths.rb +14 -0
- data/lib/generators/language_extension/templates/extension.rb +12 -0
- data/lib/generators/language_extension/templates/functional_test.rb +15 -0
- data/lib/generators/language_extension/templates/gemspec.rb +24 -0
- data/lib/generators/language_extension/templates/lang.yml +181 -0
- data/lib/generators/language_extension/templates/lib.rb +8 -0
- data/lib/generators/language_extension/templates/spec.opts +6 -0
- data/lib/generators/language_extension/templates/spec_helper.rb +36 -0
- data/lib/generators/language_extension/templates/tasks.rake +28 -0
- data/lib/generators/language_extension/templates/test_helper.rb +26 -0
- data/lib/generators/trusty_cms/USAGE +8 -0
- data/lib/generators/trusty_cms/templates/Rakefile.erb +7 -0
- data/lib/generators/trusty_cms/templates/application.rb.erb +149 -0
- data/lib/generators/trusty_cms/templates/boot.rb.erb +9 -0
- data/lib/generators/trusty_cms/templates/config.ru.erb +4 -0
- data/lib/generators/trusty_cms/templates/database.yml.erb +28 -0
- data/lib/generators/trusty_cms/templates/environment.rb.erb +5 -0
- data/lib/generators/trusty_cms/templates/environments/development.rb.erb +24 -0
- data/lib/generators/trusty_cms/templates/environments/production.rb.erb +26 -0
- data/lib/generators/trusty_cms/templates/environments/test.rb.erb +35 -0
- data/lib/generators/trusty_cms/templates/initializers/secret_token.rb.erb +13 -0
- data/lib/generators/trusty_cms/templates/initializers/session_store.rb.erb +8 -0
- data/lib/generators/trusty_cms/templates/initializers/trusty_cms_config.rb.erb +16 -0
- data/lib/generators/trusty_cms/templates/preinitializer.rb.erb +18 -0
- data/lib/generators/trusty_cms/templates/routes.rb.erb +0 -0
- data/lib/generators/trusty_cms/trusty_cms_generator.rb +32 -0
- data/lib/trusty_cms.rb +1 -1
- data/lib/trusty_cms/setup.rb +8 -8
- data/trusty_cms.gemspec +4 -4
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/base.rb +195 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/check_box.rb +65 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/checkable.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/collection_check_boxes.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/collection_helpers.rb +118 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/collection_radio_buttons.rb +30 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/collection_select.rb +30 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/color_field.rb +26 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/date_field.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/date_select.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/datetime_field.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/datetime_local_field.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/datetime_select.rb +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/email_field.rb +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/file_field.rb +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/grouped_collection_select.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/hidden_field.rb +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/label.rb +80 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/month_field.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/number_field.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/password_field.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/placeholderable.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/radio_button.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/range_field.rb +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/search_field.rb +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/select.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/tel_field.rb +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/text_area.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/text_field.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/time_field.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/time_select.rb +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/time_zone_select.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/translator.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/url_field.rb +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/week_field.rb +14 -0
- data/yarn.lock +3 -3
- metadata +296 -71
- data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/core.js +0 -126
- data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/failsafe/index.js +0 -4
- data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/failsafe/map.js +0 -56
- data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/failsafe/seq.js +0 -43
- data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/failsafe/string.js +0 -28
- data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/index.js +0 -36
- data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/json.js +0 -76
- data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/options.js +0 -23
- data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/yaml-1.1/binary.js +0 -87
- data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/yaml-1.1/index.js +0 -157
- data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/yaml-1.1/omap.js +0 -142
- data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/yaml-1.1/pairs.js +0 -81
- data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/yaml-1.1/set.js +0 -114
- data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/yaml-1.1/timestamp.js +0 -97
- data/spec/spec/dummy/node_modules/yaml/dist/tags/core.js +0 -114
- data/spec/spec/dummy/node_modules/yaml/dist/tags/failsafe/index.js +0 -17
- data/spec/spec/dummy/node_modules/yaml/dist/tags/failsafe/map.js +0 -37
- data/spec/spec/dummy/node_modules/yaml/dist/tags/failsafe/seq.js +0 -34
- data/spec/spec/dummy/node_modules/yaml/dist/tags/failsafe/string.js +0 -40
- data/spec/spec/dummy/node_modules/yaml/dist/tags/index.js +0 -62
- data/spec/spec/dummy/node_modules/yaml/dist/tags/json.js +0 -60
- data/spec/spec/dummy/node_modules/yaml/dist/tags/options.js +0 -35
- data/spec/spec/dummy/node_modules/yaml/dist/tags/yaml-1.1/binary.js +0 -97
- data/spec/spec/dummy/node_modules/yaml/dist/tags/yaml-1.1/index.js +0 -131
- data/spec/spec/dummy/node_modules/yaml/dist/tags/yaml-1.1/omap.js +0 -105
- data/spec/spec/dummy/node_modules/yaml/dist/tags/yaml-1.1/pairs.js +0 -80
- data/spec/spec/dummy/node_modules/yaml/dist/tags/yaml-1.1/set.js +0 -91
- data/spec/spec/dummy/node_modules/yaml/dist/tags/yaml-1.1/timestamp.js +0 -93
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97e7e4f174a6b755702f6743fc5c4bed0a9f2384e266e3874b52eeab89df84b8
|
4
|
+
data.tar.gz: 59dfd764929a52eddf268255dba421eaaa4b90227e2cb04b07c66abc547b7bc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '083f2fd54a713baf10dc16d0ea3773a9ffe002b3ffdca09771e28c1b81a55511d106bb55bd231165548cacc2dfec9c0bc6157f2db9ecb177af36c0729c0269a2'
|
7
|
+
data.tar.gz: d0707e8e683982348b672b9dd3eaa16802c82c27565ac0c8b709d6828a2b01942c7fe46b4954f1954290e9f282c6b3ae198ab9030686ac44a63e5c3a6e50820b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
trusty-cms (4.1
|
4
|
+
trusty-cms (4.2.1)
|
5
5
|
RedCloth (= 4.3.2)
|
6
6
|
acts_as_list (>= 0.9.5, < 1.1.0)
|
7
7
|
acts_as_tree (>= 2.6.1, < 2.9.0)
|
@@ -9,8 +9,8 @@ PATH
|
|
9
9
|
delocalize (>= 0.2, < 2.0)
|
10
10
|
devise
|
11
11
|
execjs (~> 2.7)
|
12
|
-
haml
|
13
|
-
haml-rails
|
12
|
+
haml
|
13
|
+
haml-rails
|
14
14
|
highline (>= 1.7.8, < 2.1.0)
|
15
15
|
kraken-io
|
16
16
|
mini_racer
|
@@ -20,7 +20,7 @@ PATH
|
|
20
20
|
rack-cache (~> 1.7)
|
21
21
|
radius (~> 0.7)
|
22
22
|
rails
|
23
|
-
rake (<
|
23
|
+
rake (< 14.0)
|
24
24
|
rdoc (>= 5.1, < 7.0)
|
25
25
|
roadie-rails
|
26
26
|
sassc-rails
|
@@ -34,62 +34,66 @@ GEM
|
|
34
34
|
remote: https://rubygems.org/
|
35
35
|
specs:
|
36
36
|
RedCloth (4.3.2)
|
37
|
-
actioncable (6.
|
38
|
-
actionpack (= 6.
|
37
|
+
actioncable (6.1.1)
|
38
|
+
actionpack (= 6.1.1)
|
39
|
+
activesupport (= 6.1.1)
|
39
40
|
nio4r (~> 2.0)
|
40
41
|
websocket-driver (>= 0.6.1)
|
41
|
-
actionmailbox (6.
|
42
|
-
actionpack (= 6.
|
43
|
-
activejob (= 6.
|
44
|
-
activerecord (= 6.
|
45
|
-
activestorage (= 6.
|
46
|
-
activesupport (= 6.
|
42
|
+
actionmailbox (6.1.1)
|
43
|
+
actionpack (= 6.1.1)
|
44
|
+
activejob (= 6.1.1)
|
45
|
+
activerecord (= 6.1.1)
|
46
|
+
activestorage (= 6.1.1)
|
47
|
+
activesupport (= 6.1.1)
|
47
48
|
mail (>= 2.7.1)
|
48
|
-
actionmailer (6.
|
49
|
-
actionpack (= 6.
|
50
|
-
actionview (= 6.
|
51
|
-
activejob (= 6.
|
49
|
+
actionmailer (6.1.1)
|
50
|
+
actionpack (= 6.1.1)
|
51
|
+
actionview (= 6.1.1)
|
52
|
+
activejob (= 6.1.1)
|
53
|
+
activesupport (= 6.1.1)
|
52
54
|
mail (~> 2.5, >= 2.5.4)
|
53
55
|
rails-dom-testing (~> 2.0)
|
54
|
-
actionpack (6.
|
55
|
-
actionview (= 6.
|
56
|
-
activesupport (= 6.
|
57
|
-
rack (~> 2.0, >= 2.0.
|
56
|
+
actionpack (6.1.1)
|
57
|
+
actionview (= 6.1.1)
|
58
|
+
activesupport (= 6.1.1)
|
59
|
+
rack (~> 2.0, >= 2.0.9)
|
58
60
|
rack-test (>= 0.6.3)
|
59
61
|
rails-dom-testing (~> 2.0)
|
60
62
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
61
|
-
actiontext (6.
|
62
|
-
actionpack (= 6.
|
63
|
-
activerecord (= 6.
|
64
|
-
activestorage (= 6.
|
65
|
-
activesupport (= 6.
|
63
|
+
actiontext (6.1.1)
|
64
|
+
actionpack (= 6.1.1)
|
65
|
+
activerecord (= 6.1.1)
|
66
|
+
activestorage (= 6.1.1)
|
67
|
+
activesupport (= 6.1.1)
|
66
68
|
nokogiri (>= 1.8.5)
|
67
|
-
actionview (6.
|
68
|
-
activesupport (= 6.
|
69
|
+
actionview (6.1.1)
|
70
|
+
activesupport (= 6.1.1)
|
69
71
|
builder (~> 3.1)
|
70
72
|
erubi (~> 1.4)
|
71
73
|
rails-dom-testing (~> 2.0)
|
72
74
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
73
|
-
activejob (6.
|
74
|
-
activesupport (= 6.
|
75
|
+
activejob (6.1.1)
|
76
|
+
activesupport (= 6.1.1)
|
75
77
|
globalid (>= 0.3.6)
|
76
|
-
activemodel (6.
|
77
|
-
activesupport (= 6.
|
78
|
-
activerecord (6.
|
79
|
-
activemodel (= 6.
|
80
|
-
activesupport (= 6.
|
81
|
-
activestorage (6.
|
82
|
-
actionpack (= 6.
|
83
|
-
activejob (= 6.
|
84
|
-
activerecord (= 6.
|
78
|
+
activemodel (6.1.1)
|
79
|
+
activesupport (= 6.1.1)
|
80
|
+
activerecord (6.1.1)
|
81
|
+
activemodel (= 6.1.1)
|
82
|
+
activesupport (= 6.1.1)
|
83
|
+
activestorage (6.1.1)
|
84
|
+
actionpack (= 6.1.1)
|
85
|
+
activejob (= 6.1.1)
|
86
|
+
activerecord (= 6.1.1)
|
87
|
+
activesupport (= 6.1.1)
|
85
88
|
marcel (~> 0.3.1)
|
86
|
-
|
89
|
+
mimemagic (~> 0.3.2)
|
90
|
+
activesupport (6.1.1)
|
87
91
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
88
|
-
i18n (>=
|
89
|
-
minitest (
|
90
|
-
tzinfo (~>
|
91
|
-
zeitwerk (~> 2.
|
92
|
-
acts_as_list (1.0.
|
92
|
+
i18n (>= 1.6, < 2)
|
93
|
+
minitest (>= 5.1)
|
94
|
+
tzinfo (~> 2.0)
|
95
|
+
zeitwerk (~> 2.3)
|
96
|
+
acts_as_list (1.0.3)
|
93
97
|
activerecord (>= 4.2)
|
94
98
|
acts_as_tree (2.8.0)
|
95
99
|
activerecord (>= 3.0.0)
|
@@ -98,7 +102,7 @@ GEM
|
|
98
102
|
bcrypt (3.1.16)
|
99
103
|
builder (3.2.4)
|
100
104
|
byebug (11.1.3)
|
101
|
-
capybara (3.
|
105
|
+
capybara (3.34.0)
|
102
106
|
addressable
|
103
107
|
mini_mime (>= 0.1.3)
|
104
108
|
nokogiri (~> 1.8)
|
@@ -121,15 +125,15 @@ GEM
|
|
121
125
|
database_cleaner (1.8.5)
|
122
126
|
delocalize (1.2.0)
|
123
127
|
rails (>= 2)
|
124
|
-
devise (4.7.
|
128
|
+
devise (4.7.3)
|
125
129
|
bcrypt (~> 3.0)
|
126
130
|
orm_adapter (~> 0.1)
|
127
131
|
railties (>= 4.1.0)
|
128
132
|
responders
|
129
133
|
warden (~> 1.2.3)
|
130
134
|
diff-lcs (1.4.4)
|
131
|
-
docile (1.3.
|
132
|
-
erubi (1.
|
135
|
+
docile (1.3.4)
|
136
|
+
erubi (1.10.0)
|
133
137
|
erubis (2.7.0)
|
134
138
|
execjs (2.7.0)
|
135
139
|
factory_bot (6.1.0)
|
@@ -137,18 +141,18 @@ GEM
|
|
137
141
|
factory_bot_rails (6.1.0)
|
138
142
|
factory_bot (~> 6.1.0)
|
139
143
|
railties (>= 5.0.0)
|
140
|
-
ffi (1.
|
144
|
+
ffi (1.14.2)
|
141
145
|
globalid (0.4.2)
|
142
146
|
activesupport (>= 4.2.0)
|
143
|
-
haml (5.1
|
147
|
+
haml (5.2.1)
|
144
148
|
temple (>= 0.8.0)
|
145
149
|
tilt
|
146
|
-
haml-rails (
|
147
|
-
actionpack (>=
|
148
|
-
activesupport (>=
|
150
|
+
haml-rails (2.0.1)
|
151
|
+
actionpack (>= 5.1)
|
152
|
+
activesupport (>= 5.1)
|
149
153
|
haml (>= 4.0.6, < 6.0)
|
150
154
|
html2haml (>= 1.0.1)
|
151
|
-
railties (>=
|
155
|
+
railties (>= 5.1)
|
152
156
|
highline (2.0.3)
|
153
157
|
html2haml (2.2.0)
|
154
158
|
erubis (~> 2.7.0)
|
@@ -158,9 +162,9 @@ GEM
|
|
158
162
|
httparty (0.18.1)
|
159
163
|
mime-types (~> 3.0)
|
160
164
|
multi_xml (>= 0.5.2)
|
161
|
-
i18n (1.8.
|
165
|
+
i18n (1.8.7)
|
162
166
|
concurrent-ruby (~> 1.0)
|
163
|
-
json (2.
|
167
|
+
json (2.5.1)
|
164
168
|
kraken-io (0.1.3)
|
165
169
|
activesupport
|
166
170
|
httparty
|
@@ -169,7 +173,7 @@ GEM
|
|
169
173
|
launchy (2.5.0)
|
170
174
|
addressable (~> 2.7)
|
171
175
|
libv8 (8.4.255.0)
|
172
|
-
loofah (2.
|
176
|
+
loofah (2.8.0)
|
173
177
|
crass (~> 1.0.2)
|
174
178
|
nokogiri (>= 1.5.9)
|
175
179
|
mail (2.7.1)
|
@@ -179,19 +183,20 @@ GEM
|
|
179
183
|
method_source (1.0.0)
|
180
184
|
mime-types (3.3.1)
|
181
185
|
mime-types-data (~> 3.2015)
|
182
|
-
mime-types-data (3.2020.
|
186
|
+
mime-types-data (3.2020.1104)
|
183
187
|
mimemagic (0.3.5)
|
184
188
|
mini_mime (1.0.2)
|
185
|
-
mini_portile2 (2.
|
189
|
+
mini_portile2 (2.5.0)
|
186
190
|
mini_racer (0.3.1)
|
187
191
|
libv8 (~> 8.4.255)
|
188
|
-
minitest (5.14.
|
192
|
+
minitest (5.14.3)
|
189
193
|
multi_xml (0.6.0)
|
190
194
|
multipart-post (2.1.1)
|
191
195
|
mysql2 (0.5.3)
|
192
|
-
nio4r (2.5.
|
193
|
-
nokogiri (1.
|
194
|
-
mini_portile2 (~> 2.
|
196
|
+
nio4r (2.5.4)
|
197
|
+
nokogiri (1.11.1)
|
198
|
+
mini_portile2 (~> 2.5.0)
|
199
|
+
racc (~> 1.4)
|
195
200
|
orm_adapter (0.5.0)
|
196
201
|
paperclip (6.1.0)
|
197
202
|
activemodel (>= 4.2.0)
|
@@ -210,26 +215,27 @@ GEM
|
|
210
215
|
byebug (~> 11.0)
|
211
216
|
pry (~> 0.13.0)
|
212
217
|
public_suffix (4.0.6)
|
218
|
+
racc (1.5.2)
|
213
219
|
rack (2.2.3)
|
214
|
-
rack-cache (1.12.
|
220
|
+
rack-cache (1.12.1)
|
215
221
|
rack (>= 0.4)
|
216
222
|
rack-test (1.1.0)
|
217
223
|
rack (>= 1.0, < 3)
|
218
224
|
radius (0.7.5)
|
219
|
-
rails (6.
|
220
|
-
actioncable (= 6.
|
221
|
-
actionmailbox (= 6.
|
222
|
-
actionmailer (= 6.
|
223
|
-
actionpack (= 6.
|
224
|
-
actiontext (= 6.
|
225
|
-
actionview (= 6.
|
226
|
-
activejob (= 6.
|
227
|
-
activemodel (= 6.
|
228
|
-
activerecord (= 6.
|
229
|
-
activestorage (= 6.
|
230
|
-
activesupport (= 6.
|
231
|
-
bundler (>= 1.
|
232
|
-
railties (= 6.
|
225
|
+
rails (6.1.1)
|
226
|
+
actioncable (= 6.1.1)
|
227
|
+
actionmailbox (= 6.1.1)
|
228
|
+
actionmailer (= 6.1.1)
|
229
|
+
actionpack (= 6.1.1)
|
230
|
+
actiontext (= 6.1.1)
|
231
|
+
actionview (= 6.1.1)
|
232
|
+
activejob (= 6.1.1)
|
233
|
+
activemodel (= 6.1.1)
|
234
|
+
activerecord (= 6.1.1)
|
235
|
+
activestorage (= 6.1.1)
|
236
|
+
activesupport (= 6.1.1)
|
237
|
+
bundler (>= 1.15.0)
|
238
|
+
railties (= 6.1.1)
|
233
239
|
sprockets-rails (>= 2.0.0)
|
234
240
|
rails-dom-testing (2.0.3)
|
235
241
|
activesupport (>= 4.2.0)
|
@@ -238,42 +244,42 @@ GEM
|
|
238
244
|
loofah (~> 2.3)
|
239
245
|
rails-observers (0.1.5)
|
240
246
|
activemodel (>= 4.0)
|
241
|
-
railties (6.
|
242
|
-
actionpack (= 6.
|
243
|
-
activesupport (= 6.
|
247
|
+
railties (6.1.1)
|
248
|
+
actionpack (= 6.1.1)
|
249
|
+
activesupport (= 6.1.1)
|
244
250
|
method_source
|
245
251
|
rake (>= 0.8.7)
|
246
|
-
thor (
|
247
|
-
rake (
|
248
|
-
rdoc (6.
|
249
|
-
regexp_parser (1.
|
252
|
+
thor (~> 1.0)
|
253
|
+
rake (13.0.3)
|
254
|
+
rdoc (6.3.0)
|
255
|
+
regexp_parser (1.8.2)
|
250
256
|
responders (3.0.1)
|
251
257
|
actionpack (>= 5.0)
|
252
258
|
railties (>= 5.0)
|
253
259
|
roadie (4.0.0)
|
254
260
|
css_parser (~> 1.4)
|
255
261
|
nokogiri (~> 1.8)
|
256
|
-
roadie-rails (2.
|
257
|
-
railties (>= 5.1, < 6.
|
262
|
+
roadie-rails (2.2.0)
|
263
|
+
railties (>= 5.1, < 6.2)
|
258
264
|
roadie (>= 3.1, < 5.0)
|
259
|
-
rspec-core (3.
|
260
|
-
rspec-support (~> 3.
|
261
|
-
rspec-expectations (3.
|
265
|
+
rspec-core (3.10.1)
|
266
|
+
rspec-support (~> 3.10.0)
|
267
|
+
rspec-expectations (3.10.1)
|
262
268
|
diff-lcs (>= 1.2.0, < 2.0)
|
263
|
-
rspec-support (~> 3.
|
264
|
-
rspec-mocks (3.
|
269
|
+
rspec-support (~> 3.10.0)
|
270
|
+
rspec-mocks (3.10.1)
|
265
271
|
diff-lcs (>= 1.2.0, < 2.0)
|
266
|
-
rspec-support (~> 3.
|
267
|
-
rspec-rails (4.0.
|
272
|
+
rspec-support (~> 3.10.0)
|
273
|
+
rspec-rails (4.0.2)
|
268
274
|
actionpack (>= 4.2)
|
269
275
|
activesupport (>= 4.2)
|
270
276
|
railties (>= 4.2)
|
271
|
-
rspec-core (~> 3.
|
272
|
-
rspec-expectations (~> 3.
|
273
|
-
rspec-mocks (~> 3.
|
274
|
-
rspec-support (~> 3.
|
275
|
-
rspec-support (3.
|
276
|
-
ruby_parser (3.15.
|
277
|
+
rspec-core (~> 3.10)
|
278
|
+
rspec-expectations (~> 3.10)
|
279
|
+
rspec-mocks (~> 3.10)
|
280
|
+
rspec-support (~> 3.10)
|
281
|
+
rspec-support (3.10.1)
|
282
|
+
ruby_parser (3.15.1)
|
277
283
|
sexp_processor (~> 4.9)
|
278
284
|
sassc (2.4.0)
|
279
285
|
ffi (~> 1.9)
|
@@ -283,11 +289,13 @@ GEM
|
|
283
289
|
sprockets (> 3.0)
|
284
290
|
sprockets-rails
|
285
291
|
tilt
|
286
|
-
sexp_processor (4.15.
|
287
|
-
simplecov (0.
|
292
|
+
sexp_processor (4.15.2)
|
293
|
+
simplecov (0.21.2)
|
288
294
|
docile (~> 1.1)
|
289
295
|
simplecov-html (~> 0.11)
|
290
|
-
|
296
|
+
simplecov_json_formatter (~> 0.1)
|
297
|
+
simplecov-html (0.12.3)
|
298
|
+
simplecov_json_formatter (0.1.2)
|
291
299
|
sprockets (4.0.2)
|
292
300
|
concurrent-ruby (~> 1.0)
|
293
301
|
rack (> 1, < 3)
|
@@ -300,12 +308,11 @@ GEM
|
|
300
308
|
terrapin (0.6.0)
|
301
309
|
climate_control (>= 0.0.3, < 1.0)
|
302
310
|
thor (1.0.1)
|
303
|
-
thread_safe (0.3.6)
|
304
311
|
tilt (2.0.10)
|
305
312
|
trustygems (0.2.1)
|
306
313
|
rake
|
307
|
-
tzinfo (
|
308
|
-
|
314
|
+
tzinfo (2.0.4)
|
315
|
+
concurrent-ruby (~> 1.0)
|
309
316
|
uglifier (4.2.0)
|
310
317
|
execjs (>= 0.3.0, < 3)
|
311
318
|
uuidtools (2.2.0)
|
@@ -317,7 +324,7 @@ GEM
|
|
317
324
|
will_paginate (3.3.0)
|
318
325
|
xpath (3.2.0)
|
319
326
|
nokogiri (~> 1.8)
|
320
|
-
zeitwerk (2.4.
|
327
|
+
zeitwerk (2.4.2)
|
321
328
|
|
322
329
|
PLATFORMS
|
323
330
|
ruby
|
data/INSTALL.md
CHANGED
@@ -15,4 +15,6 @@ From within the directory containing your TrustyCMS instance:
|
|
15
15
|
|
16
16
|
5. add config.extensions = [ :snippets, :clipped, :layouts, :multi_site ] to enable them in application.rb
|
17
17
|
|
18
|
+
7. Add utf8 encoding to your db.yml
|
19
|
+
|
18
20
|
6. Run `bundle exec rake db:setup`, `bundle exec rake trusty_cms_engine:install:migrations`, then `bundle exec rake db:bootstrap`.
|
@@ -75,7 +75,7 @@ class Admin::PagesController < Admin::ResourceController
|
|
75
75
|
if request.referer =~ %r{/admin/pages/(\d+)/edit}
|
76
76
|
page = Page.find($1).becomes(page_class)
|
77
77
|
layout_id = page.layout_id
|
78
|
-
page.
|
78
|
+
page.update(params[:page])
|
79
79
|
page.published_at ||= Time.now
|
80
80
|
else
|
81
81
|
page = page_class.new(params[:page])
|
@@ -11,7 +11,7 @@ class Admin::PreferencesController < ApplicationController
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def update
|
14
|
-
if @user.
|
14
|
+
if @user.update(preferences_params)
|
15
15
|
redirect_to admin_configuration_path
|
16
16
|
else
|
17
17
|
flash[:error] = t('preferences_controller.error_updating')
|
@@ -59,7 +59,7 @@ class Admin::ResourceController < ApplicationController
|
|
59
59
|
%i[create update].each do |action|
|
60
60
|
class_eval %{
|
61
61
|
def #{action} # def create
|
62
|
-
model.
|
62
|
+
model.update!(permitted_params[model_symbol]) # model.update!(params[model_symbol])
|
63
63
|
response_for :#{action} # response_for :create
|
64
64
|
end # end
|
65
65
|
}, __FILE__, __LINE__
|
@@ -29,7 +29,7 @@ class Admin::UsersController < Admin::ResourceController
|
|
29
29
|
announce_cannot_remove_self_from_admin_role
|
30
30
|
end
|
31
31
|
model.skip_password_validation = true unless user_params[:password_confirmation].present?
|
32
|
-
if model.
|
32
|
+
if model.update(user_params)
|
33
33
|
response_for :update
|
34
34
|
else
|
35
35
|
flash[:error] = 'There was an error saving the user. Please try again.'
|
@@ -0,0 +1,30 @@
|
|
1
|
+
Description:
|
2
|
+
The extension generator creates stubs for a new TrustyCms extension.
|
3
|
+
|
4
|
+
The generator takes an extension name as its argument. The extension name may be
|
5
|
+
given in CamelCase or under_score and should not be suffixed with 'Extension'.
|
6
|
+
|
7
|
+
The generator creates an extension directory in vendor/extensions that includes
|
8
|
+
<extension_name>_extension.rb, README and Rakefile files as well as db, lib, task,
|
9
|
+
and test directories.
|
10
|
+
|
11
|
+
Example:
|
12
|
+
./script/generate extension AssetManagement
|
13
|
+
|
14
|
+
This will create:
|
15
|
+
vendor/extensions/asset_management/app/controllers
|
16
|
+
vendor/extensions/asset_management/app/helpers
|
17
|
+
vendor/extensions/asset_management/app/models
|
18
|
+
vendor/extensions/asset_management/app/views
|
19
|
+
vendor/extensions/asset_management/db/migrate
|
20
|
+
vendor/extensions/asset_management/lib/tasks
|
21
|
+
vendor/extensions/asset_management/README
|
22
|
+
vendor/extensions/asset_management/asset_management_extension.rb
|
23
|
+
vendor/extensions/asset_management/lib/tasks/asset_management_extension_tasks.rake
|
24
|
+
vendor/extensions/asset_management/spec/controllers
|
25
|
+
vendor/extensions/asset_management/spec/models
|
26
|
+
vendor/extensions/asset_management/spec/views
|
27
|
+
vendor/extensions/asset_management/spec/helpers
|
28
|
+
vendor/extensions/asset_management/Rakefile
|
29
|
+
vendor/extensions/asset_management/spec/spec_helper.rb
|
30
|
+
vendor/extensions/asset_management/spec/spec.opts
|