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.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +114 -107
  3. data/INSTALL.md +2 -0
  4. data/app/controllers/admin/pages_controller.rb +1 -1
  5. data/app/controllers/admin/preferences_controller.rb +1 -1
  6. data/app/controllers/admin/resource_controller.rb +1 -1
  7. data/app/controllers/admin/users_controller.rb +1 -1
  8. data/config/environments/development.rb +2 -0
  9. data/lib/generators/extension/USAGE +30 -0
  10. data/lib/generators/extension/extension_generator.rb +97 -0
  11. data/lib/generators/extension/templates/README.md +6 -0
  12. data/lib/generators/extension/templates/RSpecRakefile +109 -0
  13. data/lib/generators/extension/templates/Rakefile +25 -0
  14. data/lib/generators/extension/templates/cucumber.yml +1 -0
  15. data/lib/generators/extension/templates/cucumber_env.rb +11 -0
  16. data/lib/generators/extension/templates/cucumber_paths.rb +22 -0
  17. data/lib/generators/extension/templates/en.yml +3 -0
  18. data/lib/generators/extension/templates/extension.rb +21 -0
  19. data/lib/generators/extension/templates/functional_test.rb +15 -0
  20. data/lib/generators/extension/templates/gemspec.rb +29 -0
  21. data/lib/generators/extension/templates/lib.rb +8 -0
  22. data/lib/generators/extension/templates/migration.rb +9 -0
  23. data/lib/generators/extension/templates/radiant_config.rb +3 -0
  24. data/lib/generators/extension/templates/routes.rb +5 -0
  25. data/lib/generators/extension/templates/spec.opts +6 -0
  26. data/lib/generators/extension/templates/spec_helper.rb +42 -0
  27. data/lib/generators/extension/templates/tasks.rake +47 -0
  28. data/lib/generators/extension/templates/test_helper.rb +26 -0
  29. data/lib/generators/extension_controller/USAGE +36 -0
  30. data/lib/generators/extension_controller/extension_controller_generator.rb +84 -0
  31. data/lib/generators/extension_controller/templates/controller.rb +10 -0
  32. data/lib/generators/extension_controller/templates/controller_spec.rb +23 -0
  33. data/lib/generators/extension_controller/templates/functional_test.rb +11 -0
  34. data/lib/generators/extension_controller/templates/helper.rb +2 -0
  35. data/lib/generators/extension_controller/templates/helper_spec.rb +11 -0
  36. data/lib/generators/extension_controller/templates/helper_test.rb +4 -0
  37. data/lib/generators/extension_controller/templates/view.html.erb +2 -0
  38. data/lib/generators/extension_controller/templates/view_spec.rb +12 -0
  39. data/lib/generators/extension_mailer/USAGE +17 -0
  40. data/lib/generators/extension_mailer/extension_mailer_generator.rb +68 -0
  41. data/lib/generators/extension_mailer/templates/fixture.erb +3 -0
  42. data/lib/generators/extension_mailer/templates/mailer.rb +15 -0
  43. data/lib/generators/extension_mailer/templates/unit_test.rb +21 -0
  44. data/lib/generators/extension_mailer/templates/view.erb +3 -0
  45. data/lib/generators/extension_migration/USAGE +34 -0
  46. data/lib/generators/extension_migration/extension_migration_generator.rb +25 -0
  47. data/lib/generators/extension_migration/templates/migration.rb +11 -0
  48. data/lib/generators/extension_model/USAGE +35 -0
  49. data/lib/generators/extension_model/extension_model_generator.rb +68 -0
  50. data/lib/generators/extension_model/templates/fixtures.yml +19 -0
  51. data/lib/generators/extension_model/templates/migration.rb +16 -0
  52. data/lib/generators/extension_model/templates/model.rb +2 -0
  53. data/lib/generators/extension_model/templates/model_spec.rb +11 -0
  54. data/lib/generators/extension_model/templates/unit_test.rb +8 -0
  55. data/lib/generators/generator_base_extension.rb +18 -0
  56. data/lib/generators/instance/instance_generator.rb +148 -0
  57. data/lib/generators/instance/templates/databases/db2.yml +40 -0
  58. data/lib/generators/instance/templates/databases/mysql.yml +47 -0
  59. data/lib/generators/instance/templates/databases/postgresql.yml +44 -0
  60. data/lib/generators/instance/templates/databases/sqlite3.yml +16 -0
  61. data/lib/generators/instance/templates/databases/sqlserver.yml +21 -0
  62. data/lib/generators/instance/templates/instance_boot.rb +122 -0
  63. data/lib/generators/instance/templates/instance_config.ru +2 -0
  64. data/lib/generators/instance/templates/instance_environment.rb +93 -0
  65. data/lib/generators/instance/templates/instance_gemfile +78 -0
  66. data/lib/generators/instance/templates/instance_generate +6 -0
  67. data/lib/generators/instance/templates/instance_radiant_config.rb +16 -0
  68. data/lib/generators/instance/templates/instance_rakefile +3 -0
  69. data/lib/generators/instance/templates/instance_routes.rb +1 -0
  70. data/lib/generators/language_extension/USAGE +27 -0
  71. data/lib/generators/language_extension/language_extension_generator.rb +71 -0
  72. data/lib/generators/language_extension/templates/README +3 -0
  73. data/lib/generators/language_extension/templates/RSpecRakefile +123 -0
  74. data/lib/generators/language_extension/templates/Rakefile +25 -0
  75. data/lib/generators/language_extension/templates/available_tags.yml +553 -0
  76. data/lib/generators/language_extension/templates/cucumber.yml +1 -0
  77. data/lib/generators/language_extension/templates/cucumber_env.rb +16 -0
  78. data/lib/generators/language_extension/templates/cucumber_paths.rb +14 -0
  79. data/lib/generators/language_extension/templates/extension.rb +12 -0
  80. data/lib/generators/language_extension/templates/functional_test.rb +15 -0
  81. data/lib/generators/language_extension/templates/gemspec.rb +24 -0
  82. data/lib/generators/language_extension/templates/lang.yml +181 -0
  83. data/lib/generators/language_extension/templates/lib.rb +8 -0
  84. data/lib/generators/language_extension/templates/spec.opts +6 -0
  85. data/lib/generators/language_extension/templates/spec_helper.rb +36 -0
  86. data/lib/generators/language_extension/templates/tasks.rake +28 -0
  87. data/lib/generators/language_extension/templates/test_helper.rb +26 -0
  88. data/lib/generators/trusty_cms/USAGE +8 -0
  89. data/lib/generators/trusty_cms/templates/Rakefile.erb +7 -0
  90. data/lib/generators/trusty_cms/templates/application.rb.erb +149 -0
  91. data/lib/generators/trusty_cms/templates/boot.rb.erb +9 -0
  92. data/lib/generators/trusty_cms/templates/config.ru.erb +4 -0
  93. data/lib/generators/trusty_cms/templates/database.yml.erb +28 -0
  94. data/lib/generators/trusty_cms/templates/environment.rb.erb +5 -0
  95. data/lib/generators/trusty_cms/templates/environments/development.rb.erb +24 -0
  96. data/lib/generators/trusty_cms/templates/environments/production.rb.erb +26 -0
  97. data/lib/generators/trusty_cms/templates/environments/test.rb.erb +35 -0
  98. data/lib/generators/trusty_cms/templates/initializers/secret_token.rb.erb +13 -0
  99. data/lib/generators/trusty_cms/templates/initializers/session_store.rb.erb +8 -0
  100. data/lib/generators/trusty_cms/templates/initializers/trusty_cms_config.rb.erb +16 -0
  101. data/lib/generators/trusty_cms/templates/preinitializer.rb.erb +18 -0
  102. data/lib/generators/trusty_cms/templates/routes.rb.erb +0 -0
  103. data/lib/generators/trusty_cms/trusty_cms_generator.rb +32 -0
  104. data/lib/trusty_cms.rb +1 -1
  105. data/lib/trusty_cms/setup.rb +8 -8
  106. data/trusty_cms.gemspec +4 -4
  107. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/base.rb +195 -0
  108. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/check_box.rb +65 -0
  109. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/checkable.rb +18 -0
  110. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/collection_check_boxes.rb +35 -0
  111. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/collection_helpers.rb +118 -0
  112. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/collection_radio_buttons.rb +30 -0
  113. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/collection_select.rb +30 -0
  114. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/color_field.rb +26 -0
  115. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/date_field.rb +14 -0
  116. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/date_select.rb +73 -0
  117. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/datetime_field.rb +31 -0
  118. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/datetime_local_field.rb +20 -0
  119. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/datetime_select.rb +10 -0
  120. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/email_field.rb +10 -0
  121. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/file_field.rb +10 -0
  122. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/grouped_collection_select.rb +31 -0
  123. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/hidden_field.rb +10 -0
  124. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/label.rb +80 -0
  125. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/month_field.rb +14 -0
  126. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/number_field.rb +20 -0
  127. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/password_field.rb +14 -0
  128. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/placeholderable.rb +24 -0
  129. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/radio_button.rb +32 -0
  130. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/range_field.rb +10 -0
  131. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/search_field.rb +27 -0
  132. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/select.rb +42 -0
  133. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/tel_field.rb +10 -0
  134. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/text_area.rb +24 -0
  135. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/text_field.rb +33 -0
  136. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/time_field.rb +14 -0
  137. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/time_select.rb +10 -0
  138. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/time_zone_select.rb +22 -0
  139. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/translator.rb +39 -0
  140. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/url_field.rb +10 -0
  141. data/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.4/lib/action_view/helpers/tags/week_field.rb +14 -0
  142. data/yarn.lock +3 -3
  143. metadata +296 -71
  144. data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/core.js +0 -126
  145. data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/failsafe/index.js +0 -4
  146. data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/failsafe/map.js +0 -56
  147. data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/failsafe/seq.js +0 -43
  148. data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/failsafe/string.js +0 -28
  149. data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/index.js +0 -36
  150. data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/json.js +0 -76
  151. data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/options.js +0 -23
  152. data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/yaml-1.1/binary.js +0 -87
  153. data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/yaml-1.1/index.js +0 -157
  154. data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/yaml-1.1/omap.js +0 -142
  155. data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/yaml-1.1/pairs.js +0 -81
  156. data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/yaml-1.1/set.js +0 -114
  157. data/spec/spec/dummy/node_modules/yaml/browser/dist/tags/yaml-1.1/timestamp.js +0 -97
  158. data/spec/spec/dummy/node_modules/yaml/dist/tags/core.js +0 -114
  159. data/spec/spec/dummy/node_modules/yaml/dist/tags/failsafe/index.js +0 -17
  160. data/spec/spec/dummy/node_modules/yaml/dist/tags/failsafe/map.js +0 -37
  161. data/spec/spec/dummy/node_modules/yaml/dist/tags/failsafe/seq.js +0 -34
  162. data/spec/spec/dummy/node_modules/yaml/dist/tags/failsafe/string.js +0 -40
  163. data/spec/spec/dummy/node_modules/yaml/dist/tags/index.js +0 -62
  164. data/spec/spec/dummy/node_modules/yaml/dist/tags/json.js +0 -60
  165. data/spec/spec/dummy/node_modules/yaml/dist/tags/options.js +0 -35
  166. data/spec/spec/dummy/node_modules/yaml/dist/tags/yaml-1.1/binary.js +0 -97
  167. data/spec/spec/dummy/node_modules/yaml/dist/tags/yaml-1.1/index.js +0 -131
  168. data/spec/spec/dummy/node_modules/yaml/dist/tags/yaml-1.1/omap.js +0 -105
  169. data/spec/spec/dummy/node_modules/yaml/dist/tags/yaml-1.1/pairs.js +0 -80
  170. data/spec/spec/dummy/node_modules/yaml/dist/tags/yaml-1.1/set.js +0 -91
  171. 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: 1c22f1a0c39d50f9db4b32cc516fc855a8be5b4867cc8904f738a52a7e71cdfa
4
- data.tar.gz: e4574f3bf96460aa8ff2fb6bf9af28dfa30592a30056dc3432ea6c232a74f0b3
3
+ metadata.gz: 97e7e4f174a6b755702f6743fc5c4bed0a9f2384e266e3874b52eeab89df84b8
4
+ data.tar.gz: 59dfd764929a52eddf268255dba421eaaa4b90227e2cb04b07c66abc547b7bc1
5
5
  SHA512:
6
- metadata.gz: ff2dbedfb3586408e6ef2a561e755e084ba1cbd8d9ed778722ca862bed105c4b9073fa6e9db71ccee918ef824399b335f656bd84f84fa502d1d016ed54c2cb7c
7
- data.tar.gz: 3882e09eeed5febdd6f9d991d598ef02d9407cfcbd3ba40796b8e622b3308e884afc441563abac25fb14b3cea157f811dc47cc0fed68f2faee6df2559d68543c
6
+ metadata.gz: '083f2fd54a713baf10dc16d0ea3773a9ffe002b3ffdca09771e28c1b81a55511d106bb55bd231165548cacc2dfec9c0bc6157f2db9ecb177af36c0729c0269a2'
7
+ data.tar.gz: d0707e8e683982348b672b9dd3eaa16802c82c27565ac0c8b709d6828a2b01942c7fe46b4954f1954290e9f282c6b3ae198ab9030686ac44a63e5c3a6e50820b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (4.1.6)
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 (~> 5.0)
13
- haml-rails (~> 1.0.0)
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 (< 13.0)
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.0.3.3)
38
- actionpack (= 6.0.3.3)
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.0.3.3)
42
- actionpack (= 6.0.3.3)
43
- activejob (= 6.0.3.3)
44
- activerecord (= 6.0.3.3)
45
- activestorage (= 6.0.3.3)
46
- activesupport (= 6.0.3.3)
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.0.3.3)
49
- actionpack (= 6.0.3.3)
50
- actionview (= 6.0.3.3)
51
- activejob (= 6.0.3.3)
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.0.3.3)
55
- actionview (= 6.0.3.3)
56
- activesupport (= 6.0.3.3)
57
- rack (~> 2.0, >= 2.0.8)
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.0.3.3)
62
- actionpack (= 6.0.3.3)
63
- activerecord (= 6.0.3.3)
64
- activestorage (= 6.0.3.3)
65
- activesupport (= 6.0.3.3)
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.0.3.3)
68
- activesupport (= 6.0.3.3)
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.0.3.3)
74
- activesupport (= 6.0.3.3)
75
+ activejob (6.1.1)
76
+ activesupport (= 6.1.1)
75
77
  globalid (>= 0.3.6)
76
- activemodel (6.0.3.3)
77
- activesupport (= 6.0.3.3)
78
- activerecord (6.0.3.3)
79
- activemodel (= 6.0.3.3)
80
- activesupport (= 6.0.3.3)
81
- activestorage (6.0.3.3)
82
- actionpack (= 6.0.3.3)
83
- activejob (= 6.0.3.3)
84
- activerecord (= 6.0.3.3)
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
- activesupport (6.0.3.3)
89
+ mimemagic (~> 0.3.2)
90
+ activesupport (6.1.1)
87
91
  concurrent-ruby (~> 1.0, >= 1.0.2)
88
- i18n (>= 0.7, < 2)
89
- minitest (~> 5.1)
90
- tzinfo (~> 1.1)
91
- zeitwerk (~> 2.2, >= 2.2.2)
92
- acts_as_list (1.0.2)
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.33.0)
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.2)
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.2)
132
- erubi (1.9.0)
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.13.1)
144
+ ffi (1.14.2)
141
145
  globalid (0.4.2)
142
146
  activesupport (>= 4.2.0)
143
- haml (5.1.2)
147
+ haml (5.2.1)
144
148
  temple (>= 0.8.0)
145
149
  tilt
146
- haml-rails (1.0.0)
147
- actionpack (>= 4.0.1)
148
- activesupport (>= 4.0.1)
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 (>= 4.0.1)
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.5)
165
+ i18n (1.8.7)
162
166
  concurrent-ruby (~> 1.0)
163
- json (2.3.1)
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.7.0)
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.0512)
186
+ mime-types-data (3.2020.1104)
183
187
  mimemagic (0.3.5)
184
188
  mini_mime (1.0.2)
185
- mini_portile2 (2.4.0)
189
+ mini_portile2 (2.5.0)
186
190
  mini_racer (0.3.1)
187
191
  libv8 (~> 8.4.255)
188
- minitest (5.14.2)
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.3)
193
- nokogiri (1.10.10)
194
- mini_portile2 (~> 2.4.0)
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.0)
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.0.3.3)
220
- actioncable (= 6.0.3.3)
221
- actionmailbox (= 6.0.3.3)
222
- actionmailer (= 6.0.3.3)
223
- actionpack (= 6.0.3.3)
224
- actiontext (= 6.0.3.3)
225
- actionview (= 6.0.3.3)
226
- activejob (= 6.0.3.3)
227
- activemodel (= 6.0.3.3)
228
- activerecord (= 6.0.3.3)
229
- activestorage (= 6.0.3.3)
230
- activesupport (= 6.0.3.3)
231
- bundler (>= 1.3.0)
232
- railties (= 6.0.3.3)
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.0.3.3)
242
- actionpack (= 6.0.3.3)
243
- activesupport (= 6.0.3.3)
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 (>= 0.20.3, < 2.0)
247
- rake (12.3.3)
248
- rdoc (6.2.1)
249
- regexp_parser (1.7.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.1.1)
257
- railties (>= 5.1, < 6.1)
262
+ roadie-rails (2.2.0)
263
+ railties (>= 5.1, < 6.2)
258
264
  roadie (>= 3.1, < 5.0)
259
- rspec-core (3.9.2)
260
- rspec-support (~> 3.9.3)
261
- rspec-expectations (3.9.2)
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.9.0)
264
- rspec-mocks (3.9.1)
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.9.0)
267
- rspec-rails (4.0.1)
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.9)
272
- rspec-expectations (~> 3.9)
273
- rspec-mocks (~> 3.9)
274
- rspec-support (~> 3.9)
275
- rspec-support (3.9.3)
276
- ruby_parser (3.15.0)
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.1)
287
- simplecov (0.19.0)
292
+ sexp_processor (4.15.2)
293
+ simplecov (0.21.2)
288
294
  docile (~> 1.1)
289
295
  simplecov-html (~> 0.11)
290
- simplecov-html (0.12.2)
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 (1.2.7)
308
- thread_safe (~> 0.1)
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.0)
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.update_attributes(params[: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.update_attributes(preferences_params)
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.update_attributes!(permitted_params[model_symbol]) # model.update_attributes!(params[model_symbol])
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.update_attributes(user_params)
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.'
@@ -29,4 +29,6 @@ TrustyCms::Application.configure do
29
29
 
30
30
  # Expands the lines which load the assets
31
31
  config.assets.debug = true
32
+ config.assets.check_precompiled_asset = false
33
+
32
34
  end
@@ -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