workarea-blog 3.4.9 → 3.5.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/{.eslintrc → .eslintrc.json} +12 -1
- data/.github/workflows/ci.yml +6 -0
- data/CHANGELOG.md +18 -36
- data/Gemfile +3 -3
- data/app/controllers/workarea/storefront/application_controller.decorator +5 -0
- data/app/helpers/workarea/storefront/blogs_helper.rb +44 -0
- data/app/view_models/workarea/admin/blog_entry_view_model.rb +1 -1
- data/app/view_models/workarea/storefront/blog_entry_view_model.rb +1 -1
- data/app/view_models/workarea/storefront/blog_view_model.rb +3 -3
- data/app/views/workarea/admin/content_blog_comments/_summary.html.haml +21 -9
- data/app/views/workarea/admin/content_blog_comments/index.html.haml +8 -7
- data/app/views/workarea/admin/content_blog_entries/_cards.html.haml +1 -1
- data/app/views/workarea/admin/content_blog_entries/edit.html.haml +2 -1
- data/app/views/workarea/admin/content_blogs/edit.html.haml +2 -1
- data/app/views/workarea/storefront/blog_entries/_summary.html.haml +12 -11
- data/app/views/workarea/storefront/blog_entries/show.html.haml +20 -20
- data/app/views/workarea/storefront/blog_metadata/_publisher.html.haml +3 -2
- data/app/views/workarea/storefront/blogs/index.html.haml +4 -4
- data/app/views/workarea/storefront/blogs/show.html.haml +2 -2
- data/config/initializers/content_block_types.rb +1 -1
- data/config/initializers/fields.rb +9 -0
- data/config/initializers/rack_attack.rb +11 -0
- data/config/initializers/workarea.rb +0 -3
- data/config/locales/en.yml +2 -0
- data/lib/workarea/blog/import/wordpress/content_cleaner.rb +1 -1
- data/lib/workarea/blog/version.rb +1 -1
- data/package.json +9 -0
- data/test/dummy/config/initializers/session_store.rb +1 -1
- data/test/factories/wordpress_import.rb +8 -10
- data/test/integration/workarea/blog/rack_attack_integration_test.rb +50 -0
- data/test/system/workarea/admin/blog_user_comments_system_test.rb +41 -1
- data/test/view_models/workarea/storefront/blog_view_model_test.rb +8 -7
- data/workarea-blog.gemspec +3 -3
- metadata +14 -9
- data/.scss-lint.yml +0 -188
- data/.tailor +0 -180
data/.tailor
DELETED
@@ -1,180 +0,0 @@
|
|
1
|
-
#------------------------------------------------------------------------------
|
2
|
-
# Horizontal Whitespace
|
3
|
-
#------------------------------------------------------------------------------
|
4
|
-
# allow_hard_tabs True to let hard tabs be considered a single space.
|
5
|
-
# Default: false
|
6
|
-
#
|
7
|
-
# allow_trailing_line_spaces
|
8
|
-
# True to skip detecting extra spaces at the ends of
|
9
|
-
# lines.
|
10
|
-
# Default: false
|
11
|
-
#
|
12
|
-
# indentation_spaces The number of spaces to consider a proper indent.
|
13
|
-
# Default: 2
|
14
|
-
#
|
15
|
-
# max_line_length The maximum number of characters in a line before
|
16
|
-
# tailor complains.
|
17
|
-
# Default: 80
|
18
|
-
# spaces_after_comma Number of spaces to expect after a comma.
|
19
|
-
# Default: 1
|
20
|
-
#
|
21
|
-
# spaces_before_comma Number of spaces to expect before a comma.
|
22
|
-
# Default: 0
|
23
|
-
#
|
24
|
-
# spaces_after_lbrace The number of spaces to expect after an lbrace ('{').
|
25
|
-
# Default: 1
|
26
|
-
#
|
27
|
-
# spaces_before_lbrace The number of spaces to expect before an lbrace ('{').
|
28
|
-
# Default: 1
|
29
|
-
#
|
30
|
-
# spaces_before_rbrace The number of spaces to expect before an rbrace ('}').
|
31
|
-
# Default: 1
|
32
|
-
#
|
33
|
-
# spaces_in_empty_braces The number of spaces to expect between braces when
|
34
|
-
# there's nothing in the braces (i.e. {}).
|
35
|
-
# Default: 0
|
36
|
-
#
|
37
|
-
# spaces_after_lbracket The number of spaces to expect after an
|
38
|
-
# lbracket ('[').
|
39
|
-
# Default: 0
|
40
|
-
#
|
41
|
-
# spaces_before_rbracket The number of spaces to expect before an
|
42
|
-
# rbracket (']').
|
43
|
-
# Default: 0
|
44
|
-
#
|
45
|
-
# spaces_after_lparen The number of spaces to expect after an
|
46
|
-
# lparen ('(').
|
47
|
-
# Default: 0
|
48
|
-
#
|
49
|
-
# spaces_before_rparen The number of spaces to expect before an
|
50
|
-
# rbracket (')').
|
51
|
-
# Default: 0
|
52
|
-
#
|
53
|
-
#------------------------------------------------------------------------------
|
54
|
-
# Naming
|
55
|
-
#------------------------------------------------------------------------------
|
56
|
-
# allow_camel_case_methods
|
57
|
-
# Setting to true skips detection of camel-case method
|
58
|
-
# names (i.e. def myMethod).
|
59
|
-
# Default: false
|
60
|
-
#
|
61
|
-
# allow_screaming_snake_case_classes
|
62
|
-
# Setting to true skips detection of screaming
|
63
|
-
# snake-case class names (i.e. My_Class).
|
64
|
-
# Default: false
|
65
|
-
#
|
66
|
-
#------------------------------------------------------------------------------
|
67
|
-
# Vertical Whitespace
|
68
|
-
#------------------------------------------------------------------------------
|
69
|
-
# max_code_lines_in_class The number of lines of code in a class to allow before
|
70
|
-
# tailor will warn you.
|
71
|
-
# Default: 300
|
72
|
-
#
|
73
|
-
# max_code_lines_in_method
|
74
|
-
# The number of lines of code in a method to allow
|
75
|
-
# before tailor will warn you.
|
76
|
-
# Default: 30
|
77
|
-
#
|
78
|
-
# trailing_newlines The number of newlines that should be at the end of
|
79
|
-
# the file.
|
80
|
-
# Default: 1
|
81
|
-
#
|
82
|
-
Tailor.config do |config|
|
83
|
-
config.formatters "text"
|
84
|
-
|
85
|
-
config.file_set 'app/**/*.rb', :rails_app do |style|
|
86
|
-
style.allow_camel_case_methods false, level: :error
|
87
|
-
style.allow_hard_tabs false, level: :error
|
88
|
-
style.allow_screaming_snake_case_classes false, level: :error
|
89
|
-
style.allow_trailing_line_spaces false, level: :error
|
90
|
-
style.allow_invalid_ruby false, level: :error
|
91
|
-
style.indentation_spaces 2, level: :off
|
92
|
-
style.max_code_lines_in_class 300, level: :off
|
93
|
-
style.max_code_lines_in_method 30, level: :off
|
94
|
-
style.max_line_length 80, level: :off
|
95
|
-
style.spaces_after_comma 1, level: :warn
|
96
|
-
style.spaces_after_lbrace 1, level: :warn
|
97
|
-
style.spaces_after_lbracket 0, level: :warn
|
98
|
-
style.spaces_after_lparen 0, level: :warn
|
99
|
-
style.spaces_before_comma 0, level: :warn
|
100
|
-
style.spaces_before_lbrace 1, level: :off
|
101
|
-
style.spaces_before_rbrace 1, level: :warn
|
102
|
-
style.spaces_before_rbracket 0, level: :warn
|
103
|
-
style.spaces_before_rparen 0, level: :warn
|
104
|
-
style.spaces_in_empty_braces 0, level: :warn
|
105
|
-
style.trailing_newlines 1, level: :error
|
106
|
-
style.allow_unnecessary_double_quotes true, level: :warn
|
107
|
-
end
|
108
|
-
|
109
|
-
config.file_set 'app/**/*.jbuilder', :views do |style|
|
110
|
-
style.allow_camel_case_methods false, level: :error
|
111
|
-
style.allow_hard_tabs false, level: :error
|
112
|
-
style.allow_screaming_snake_case_classes false, level: :error
|
113
|
-
style.allow_trailing_line_spaces false, level: :error
|
114
|
-
style.allow_invalid_ruby false, level: :error
|
115
|
-
style.indentation_spaces 2, level: :off
|
116
|
-
style.max_code_lines_in_class 300, level: :off
|
117
|
-
style.max_code_lines_in_method 30, level: :off
|
118
|
-
style.max_line_length 80, level: :off
|
119
|
-
style.spaces_after_comma 1, level: :off
|
120
|
-
style.spaces_after_lbrace 1, level: :off
|
121
|
-
style.spaces_after_lbracket 0, level: :off
|
122
|
-
style.spaces_after_lparen 0, level: :off
|
123
|
-
style.spaces_before_comma 0, level: :off
|
124
|
-
style.spaces_before_lbrace 1, level: :off
|
125
|
-
style.spaces_before_rbrace 1, level: :off
|
126
|
-
style.spaces_before_rbracket 0, level: :off
|
127
|
-
style.spaces_before_rparen 0, level: :off
|
128
|
-
style.spaces_in_empty_braces 0, level: :off
|
129
|
-
style.trailing_newlines 1, level: :error
|
130
|
-
style.allow_unnecessary_double_quotes true, level: :off
|
131
|
-
end
|
132
|
-
|
133
|
-
config.file_set 'lib/**/*.rb', :libs do |style|
|
134
|
-
style.allow_camel_case_methods false, level: :error
|
135
|
-
style.allow_hard_tabs false, level: :error
|
136
|
-
style.allow_screaming_snake_case_classes false, level: :error
|
137
|
-
style.allow_trailing_line_spaces false, level: :error
|
138
|
-
style.allow_invalid_ruby false, level: :error
|
139
|
-
style.indentation_spaces 2, level: :off
|
140
|
-
style.max_code_lines_in_class 300, level: :off
|
141
|
-
style.max_code_lines_in_method 30, level: :off
|
142
|
-
style.max_line_length 80, level: :off
|
143
|
-
style.spaces_after_comma 1, level: :warn
|
144
|
-
style.spaces_after_lbrace 1, level: :warn
|
145
|
-
style.spaces_after_lbracket 0, level: :warn
|
146
|
-
style.spaces_after_lparen 0, level: :warn
|
147
|
-
style.spaces_before_comma 0, level: :warn
|
148
|
-
style.spaces_before_lbrace 1, level: :off
|
149
|
-
style.spaces_before_rbrace 1, level: :warn
|
150
|
-
style.spaces_before_rbracket 0, level: :warn
|
151
|
-
style.spaces_before_rparen 0, level: :warn
|
152
|
-
style.spaces_in_empty_braces 0, level: :warn
|
153
|
-
style.trailing_newlines 1, level: :error
|
154
|
-
style.allow_unnecessary_double_quotes true, level: :warn
|
155
|
-
end
|
156
|
-
|
157
|
-
config.file_set 'spec/**/*.rb', :specs do |style|
|
158
|
-
style.allow_camel_case_methods false, level: :error
|
159
|
-
style.allow_hard_tabs false, level: :error
|
160
|
-
style.allow_screaming_snake_case_classes false, level: :error
|
161
|
-
style.allow_trailing_line_spaces false, level: :error
|
162
|
-
style.allow_invalid_ruby false, level: :error
|
163
|
-
style.indentation_spaces 2, level: :off
|
164
|
-
style.max_code_lines_in_class 300, level: :off
|
165
|
-
style.max_code_lines_in_method 30, level: :off
|
166
|
-
style.max_line_length 80, level: :off
|
167
|
-
style.spaces_after_comma 1, level: :warn
|
168
|
-
style.spaces_after_lbrace 1, level: :warn
|
169
|
-
style.spaces_after_lbracket 0, level: :warn
|
170
|
-
style.spaces_after_lparen 0, level: :warn
|
171
|
-
style.spaces_before_comma 0, level: :warn
|
172
|
-
style.spaces_before_lbrace 1, level: :off
|
173
|
-
style.spaces_before_rbrace 1, level: :warn
|
174
|
-
style.spaces_before_rbracket 0, level: :warn
|
175
|
-
style.spaces_before_rparen 0, level: :warn
|
176
|
-
style.spaces_in_empty_braces 0, level: :warn
|
177
|
-
style.trailing_newlines 1, level: :error
|
178
|
-
style.allow_unnecessary_double_quotes true, level: :warn
|
179
|
-
end
|
180
|
-
end
|