publify_core 10.0.0 → 10.0.2
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/CHANGELOG.md +52 -1
- data/app/assets/javascripts/markup_help_popup.js +25 -0
- data/app/assets/javascripts/optional_field_toggle.js +7 -0
- data/app/assets/javascripts/preview_comment.js +10 -0
- data/app/assets/javascripts/publify.js +3 -0
- data/app/assets/javascripts/publify_admin.js +1 -25
- data/app/assets/javascripts/spinnable.js +7 -2
- data/app/assets/stylesheets/administration_structure.css.scss +1 -1
- data/app/assets/stylesheets/publify.css.scss +43 -0
- data/app/assets/stylesheets/publify_admin.css.scss +0 -1
- data/app/controllers/admin/articles_controller.rb +4 -4
- data/app/controllers/admin/dashboard_controller.rb +0 -4
- data/app/controllers/admin/post_types_controller.rb +1 -1
- data/app/controllers/admin/themes_controller.rb +1 -9
- data/app/controllers/articles_controller.rb +5 -3
- data/app/controllers/comments_controller.rb +1 -1
- data/app/controllers/setup_controller.rb +20 -11
- data/app/helpers/admin/feedback_helper.rb +1 -1
- data/app/helpers/base_helper.rb +21 -13
- data/app/models/archives_sidebar.rb +1 -1
- data/app/models/article.rb +1 -2
- data/app/models/content.rb +8 -3
- data/app/models/note.rb +1 -1
- data/app/models/redirect.rb +2 -2
- data/app/models/tag_sidebar.rb +25 -3
- data/app/models/text_filter.rb +1 -1
- data/app/uploaders/resource_uploader.rb +4 -10
- data/app/views/admin/articles/_form.html.erb +2 -2
- data/app/views/admin/articles/index.html.erb +4 -5
- data/app/views/admin/dashboard/_comment.html.erb +1 -1
- data/app/views/admin/dashboard/_drafts.html.erb +1 -1
- data/app/views/admin/feedback/_ham.html.erb +1 -1
- data/app/views/admin/feedback/article.html.erb +1 -1
- data/app/views/admin/feedback/edit.html.erb +1 -1
- data/app/views/admin/feedback/index.html.erb +2 -2
- data/app/views/admin/migrations/show.html.erb +1 -1
- data/app/views/admin/notes/_form.html.erb +2 -3
- data/app/views/admin/notes/_note.html.erb +2 -2
- data/app/views/admin/notes/edit.html.erb +0 -1
- data/app/views/admin/pages/_pages.html.erb +1 -1
- data/app/views/admin/post_types/_index_and_form.html.erb +2 -2
- data/app/views/admin/redirects/_index_and_form.html.erb +2 -2
- data/app/views/admin/seo/show.html.erb +1 -1
- data/app/views/admin/settings/display.html.erb +1 -1
- data/app/views/admin/settings/feedback.html.erb +1 -1
- data/app/views/admin/settings/index.html.erb +1 -1
- data/app/views/admin/settings/write.html.erb +1 -1
- data/app/views/admin/tags/_index_and_form.html.erb +1 -1
- data/app/views/admin/users/_form.html.erb +1 -1
- data/app/views/articles/_comment_form.html.erb +9 -7
- data/app/views/articles/_comment_preview.html.erb +1 -1
- data/app/views/articles/_trackback.html.erb +3 -3
- data/app/views/articles/comment_failed.js.erb +1 -1
- data/app/views/articles/read.html.erb +4 -2
- data/app/views/comments/_comment.html.erb +1 -1
- data/app/views/comments/preview.js.erb +1 -1
- data/app/views/devise/passwords/edit.html.erb +3 -3
- data/app/views/devise/passwords/new.html.erb +1 -1
- data/app/views/devise/registrations/new.html.erb +2 -2
- data/app/views/devise/sessions/new.html.erb +2 -2
- data/app/views/devise/shared/_links.html.erb +3 -3
- data/app/views/layouts/accounts.html.erb +3 -3
- data/app/views/layouts/administration.html.erb +4 -6
- data/app/views/layouts/default.html.erb +1 -1
- data/app/views/layouts/editor.html.erb +3 -3
- data/app/views/notes/index.html.erb +1 -1
- data/app/views/notes/show_in_reply.html.erb +1 -1
- data/app/views/notification_mailer/comment.html.erb +1 -1
- data/app/views/search_sidebar/_content.html.erb +2 -3
- data/app/views/settings/install.html.erb +2 -2
- data/app/views/setup/index.html.erb +42 -11
- data/app/views/shared/_page_header.html.erb +5 -5
- data/app/views/tag_sidebar/_content.html.erb +2 -2
- data/config/locales/ar.yml +0 -1
- data/config/locales/da.yml +0 -1
- data/config/locales/de.yml +0 -1
- data/config/locales/en.yml +0 -1
- data/config/locales/es-MX.yml +0 -1
- data/config/locales/fr.yml +0 -1
- data/config/locales/he.yml +0 -1
- data/config/locales/it.yml +0 -1
- data/config/locales/ja.yml +0 -1
- data/config/locales/lt.yml +0 -1
- data/config/locales/nb.yml +0 -1
- data/config/locales/nl.yml +0 -1
- data/config/locales/pl.yml +0 -1
- data/config/locales/pt-BR.yml +0 -1
- data/config/locales/ro.yml +0 -1
- data/config/locales/ru.yml +0 -1
- data/config/locales/zh-CN.yml +0 -1
- data/config/locales/zh-TW.yml +0 -1
- data/db/seeds.rb +5 -5
- data/lib/publify_core/string_ext.rb +52 -0
- data/lib/publify_core/testing_support/feed_assertions.rb +1 -4
- data/lib/publify_core/text_filter/markdown.rb +53 -0
- data/lib/{publify_textfilter_markdown_smartquotes.rb → publify_core/text_filter/markdown_smartquotes.rb} +3 -3
- data/lib/publify_core/text_filter/none.rb +14 -0
- data/lib/publify_core/text_filter/smartypants.rb +14 -0
- data/lib/publify_core/text_filter/twitterfilter.rb +55 -0
- data/lib/publify_core/version.rb +1 -1
- data/lib/publify_core.rb +6 -6
- data/lib/text_filter_plugin.rb +23 -11
- data/lib/theme.rb +18 -7
- metadata +64 -29
- data/app/assets/javascripts/datetimepicker.js +0 -1470
- data/app/assets/stylesheets/datetimepicker.css +0 -306
- data/lib/publify_textfilter_markdown.rb +0 -56
- data/lib/publify_textfilter_none.rb +0 -16
- data/lib/publify_textfilter_smartypants.rb +0 -16
- data/lib/publify_textfilter_twitterfilter.rb +0 -57
- data/lib/transforms.rb +0 -47
data/lib/theme.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class Theme
|
4
|
-
|
4
|
+
attr_reader :name, :path
|
5
5
|
|
6
6
|
def initialize(name, path)
|
7
7
|
@name = name
|
@@ -16,18 +16,29 @@ class Theme
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def description
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
@description ||=
|
20
|
+
begin
|
21
|
+
about_file = theme_file("about.markdown")
|
22
|
+
if File.exist? about_file
|
23
|
+
File.read about_file
|
24
|
+
else
|
25
|
+
"### #{name}"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def description_html
|
31
|
+
TextFilter.markdown.filter_text(description)
|
25
32
|
end
|
26
33
|
|
27
34
|
def view_path
|
28
35
|
"#{path}/views"
|
29
36
|
end
|
30
37
|
|
38
|
+
def theme_file(filename)
|
39
|
+
File.join(path, filename)
|
40
|
+
end
|
41
|
+
|
31
42
|
# Find a theme, given the theme name
|
32
43
|
def self.find(name)
|
33
44
|
registered_themes[name]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: publify_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.0.
|
4
|
+
version: 10.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matijs van Zuijlen
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2024-06-28 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: aasm
|
@@ -61,14 +61,14 @@ dependencies:
|
|
61
61
|
requirements:
|
62
62
|
- - "~>"
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version:
|
64
|
+
version: '3.0'
|
65
65
|
type: :runtime
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
69
|
- - "~>"
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version:
|
71
|
+
version: '3.0'
|
72
72
|
- !ruby/object:Gem::Dependency
|
73
73
|
name: commonmarker
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
@@ -191,30 +191,36 @@ dependencies:
|
|
191
191
|
name: jquery-rails
|
192
192
|
requirement: !ruby/object:Gem::Requirement
|
193
193
|
requirements:
|
194
|
-
- - "
|
194
|
+
- - ">="
|
195
195
|
- !ruby/object:Gem::Version
|
196
|
-
version: 4.5
|
196
|
+
version: '4.5'
|
197
|
+
- - "<"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '4.7'
|
197
200
|
type: :runtime
|
198
201
|
prerelease: false
|
199
202
|
version_requirements: !ruby/object:Gem::Requirement
|
200
203
|
requirements:
|
201
|
-
- - "
|
204
|
+
- - ">="
|
202
205
|
- !ruby/object:Gem::Version
|
203
|
-
version: 4.5
|
206
|
+
version: '4.5'
|
207
|
+
- - "<"
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: '4.7'
|
204
210
|
- !ruby/object:Gem::Dependency
|
205
211
|
name: jquery-ui-rails
|
206
212
|
requirement: !ruby/object:Gem::Requirement
|
207
213
|
requirements:
|
208
214
|
- - "~>"
|
209
215
|
- !ruby/object:Gem::Version
|
210
|
-
version:
|
216
|
+
version: '7.0'
|
211
217
|
type: :runtime
|
212
218
|
prerelease: false
|
213
219
|
version_requirements: !ruby/object:Gem::Requirement
|
214
220
|
requirements:
|
215
221
|
- - "~>"
|
216
222
|
- !ruby/object:Gem::Version
|
217
|
-
version:
|
223
|
+
version: '7.0'
|
218
224
|
- !ruby/object:Gem::Dependency
|
219
225
|
name: kaminari
|
220
226
|
requirement: !ruby/object:Gem::Requirement
|
@@ -449,6 +455,20 @@ dependencies:
|
|
449
455
|
- - "~>"
|
450
456
|
- !ruby/object:Gem::Version
|
451
457
|
version: '3.0'
|
458
|
+
- !ruby/object:Gem::Dependency
|
459
|
+
name: erb_lint
|
460
|
+
requirement: !ruby/object:Gem::Requirement
|
461
|
+
requirements:
|
462
|
+
- - "~>"
|
463
|
+
- !ruby/object:Gem::Version
|
464
|
+
version: 0.5.0
|
465
|
+
type: :development
|
466
|
+
prerelease: false
|
467
|
+
version_requirements: !ruby/object:Gem::Requirement
|
468
|
+
requirements:
|
469
|
+
- - "~>"
|
470
|
+
- !ruby/object:Gem::Version
|
471
|
+
version: 0.5.0
|
452
472
|
- !ruby/object:Gem::Dependency
|
453
473
|
name: factory_bot
|
454
474
|
requirement: !ruby/object:Gem::Requirement
|
@@ -539,70 +559,84 @@ dependencies:
|
|
539
559
|
requirements:
|
540
560
|
- - "~>"
|
541
561
|
- !ruby/object:Gem::Version
|
542
|
-
version: 1.
|
562
|
+
version: 1.59.0
|
563
|
+
type: :development
|
564
|
+
prerelease: false
|
565
|
+
version_requirements: !ruby/object:Gem::Requirement
|
566
|
+
requirements:
|
567
|
+
- - "~>"
|
568
|
+
- !ruby/object:Gem::Version
|
569
|
+
version: 1.59.0
|
570
|
+
- !ruby/object:Gem::Dependency
|
571
|
+
name: rubocop-capybara
|
572
|
+
requirement: !ruby/object:Gem::Requirement
|
573
|
+
requirements:
|
574
|
+
- - "~>"
|
575
|
+
- !ruby/object:Gem::Version
|
576
|
+
version: 2.19.0
|
543
577
|
type: :development
|
544
578
|
prerelease: false
|
545
579
|
version_requirements: !ruby/object:Gem::Requirement
|
546
580
|
requirements:
|
547
581
|
- - "~>"
|
548
582
|
- !ruby/object:Gem::Version
|
549
|
-
version:
|
583
|
+
version: 2.19.0
|
550
584
|
- !ruby/object:Gem::Dependency
|
551
585
|
name: rubocop-factory_bot
|
552
586
|
requirement: !ruby/object:Gem::Requirement
|
553
587
|
requirements:
|
554
588
|
- - "~>"
|
555
589
|
- !ruby/object:Gem::Version
|
556
|
-
version: 2.
|
590
|
+
version: 2.24.0
|
557
591
|
type: :development
|
558
592
|
prerelease: false
|
559
593
|
version_requirements: !ruby/object:Gem::Requirement
|
560
594
|
requirements:
|
561
595
|
- - "~>"
|
562
596
|
- !ruby/object:Gem::Version
|
563
|
-
version: 2.
|
597
|
+
version: 2.24.0
|
564
598
|
- !ruby/object:Gem::Dependency
|
565
599
|
name: rubocop-performance
|
566
600
|
requirement: !ruby/object:Gem::Requirement
|
567
601
|
requirements:
|
568
602
|
- - "~>"
|
569
603
|
- !ruby/object:Gem::Version
|
570
|
-
version: 1.
|
604
|
+
version: 1.20.0
|
571
605
|
type: :development
|
572
606
|
prerelease: false
|
573
607
|
version_requirements: !ruby/object:Gem::Requirement
|
574
608
|
requirements:
|
575
609
|
- - "~>"
|
576
610
|
- !ruby/object:Gem::Version
|
577
|
-
version: 1.
|
611
|
+
version: 1.20.0
|
578
612
|
- !ruby/object:Gem::Dependency
|
579
613
|
name: rubocop-rails
|
580
614
|
requirement: !ruby/object:Gem::Requirement
|
581
615
|
requirements:
|
582
616
|
- - "~>"
|
583
617
|
- !ruby/object:Gem::Version
|
584
|
-
version: 2.
|
618
|
+
version: 2.23.0
|
585
619
|
type: :development
|
586
620
|
prerelease: false
|
587
621
|
version_requirements: !ruby/object:Gem::Requirement
|
588
622
|
requirements:
|
589
623
|
- - "~>"
|
590
624
|
- !ruby/object:Gem::Version
|
591
|
-
version: 2.
|
625
|
+
version: 2.23.0
|
592
626
|
- !ruby/object:Gem::Dependency
|
593
627
|
name: rubocop-rspec
|
594
628
|
requirement: !ruby/object:Gem::Requirement
|
595
629
|
requirements:
|
596
630
|
- - "~>"
|
597
631
|
- !ruby/object:Gem::Version
|
598
|
-
version: 2.
|
632
|
+
version: 2.25.0
|
599
633
|
type: :development
|
600
634
|
prerelease: false
|
601
635
|
version_requirements: !ruby/object:Gem::Requirement
|
602
636
|
requirements:
|
603
637
|
- - "~>"
|
604
638
|
- !ruby/object:Gem::Version
|
605
|
-
version: 2.
|
639
|
+
version: 2.25.0
|
606
640
|
- !ruby/object:Gem::Dependency
|
607
641
|
name: shoulda-matchers
|
608
642
|
requirement: !ruby/object:Gem::Requirement
|
@@ -711,7 +745,6 @@ files:
|
|
711
745
|
- app/assets/javascripts/bootstrap/transition.js
|
712
746
|
- app/assets/javascripts/check_password.js
|
713
747
|
- app/assets/javascripts/cookies.js
|
714
|
-
- app/assets/javascripts/datetimepicker.js
|
715
748
|
- app/assets/javascripts/lang/ar_AR.js
|
716
749
|
- app/assets/javascripts/lang/da_DK.js
|
717
750
|
- app/assets/javascripts/lang/default.js
|
@@ -720,7 +753,10 @@ files:
|
|
720
753
|
- app/assets/javascripts/lang/nl_NL.js
|
721
754
|
- app/assets/javascripts/lang/zh_TW.js
|
722
755
|
- app/assets/javascripts/lightbox.js
|
756
|
+
- app/assets/javascripts/markup_help_popup.js
|
723
757
|
- app/assets/javascripts/observe.js
|
758
|
+
- app/assets/javascripts/optional_field_toggle.js
|
759
|
+
- app/assets/javascripts/preview_comment.js
|
724
760
|
- app/assets/javascripts/publify.js
|
725
761
|
- app/assets/javascripts/publify_admin.js
|
726
762
|
- app/assets/javascripts/quicktags.js
|
@@ -789,7 +825,6 @@ files:
|
|
789
825
|
- app/assets/stylesheets/bootstrap/mixins/_text-overflow.scss
|
790
826
|
- app/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss
|
791
827
|
- app/assets/stylesheets/coderay.css
|
792
|
-
- app/assets/stylesheets/datetimepicker.css
|
793
828
|
- app/assets/stylesheets/lightbox.css
|
794
829
|
- app/assets/stylesheets/publify.css.scss
|
795
830
|
- app/assets/stylesheets/publify_admin.css.scss
|
@@ -1103,6 +1138,7 @@ files:
|
|
1103
1138
|
- lib/publify_core/content_text_helpers.rb
|
1104
1139
|
- lib/publify_core/engine.rb
|
1105
1140
|
- lib/publify_core/lang.rb
|
1141
|
+
- lib/publify_core/string_ext.rb
|
1106
1142
|
- lib/publify_core/testing_support/dns_mock.rb
|
1107
1143
|
- lib/publify_core/testing_support/factories/articles.rb
|
1108
1144
|
- lib/publify_core/testing_support/factories/blogs.rb
|
@@ -1127,14 +1163,14 @@ files:
|
|
1127
1163
|
- lib/publify_core/testing_support/fixtures/testfile.png
|
1128
1164
|
- lib/publify_core/testing_support/fixtures/testfile.txt
|
1129
1165
|
- lib/publify_core/testing_support/upload_fixtures.rb
|
1166
|
+
- lib/publify_core/text_filter/markdown.rb
|
1167
|
+
- lib/publify_core/text_filter/markdown_smartquotes.rb
|
1168
|
+
- lib/publify_core/text_filter/none.rb
|
1169
|
+
- lib/publify_core/text_filter/smartypants.rb
|
1170
|
+
- lib/publify_core/text_filter/twitterfilter.rb
|
1130
1171
|
- lib/publify_core/version.rb
|
1131
1172
|
- lib/publify_guid.rb
|
1132
1173
|
- lib/publify_plugins.rb
|
1133
|
-
- lib/publify_textfilter_markdown.rb
|
1134
|
-
- lib/publify_textfilter_markdown_smartquotes.rb
|
1135
|
-
- lib/publify_textfilter_none.rb
|
1136
|
-
- lib/publify_textfilter_smartypants.rb
|
1137
|
-
- lib/publify_textfilter_twitterfilter.rb
|
1138
1174
|
- lib/publify_time.rb
|
1139
1175
|
- lib/sidebar_field.rb
|
1140
1176
|
- lib/sidebar_registry.rb
|
@@ -1143,7 +1179,6 @@ files:
|
|
1143
1179
|
- lib/tasks/publify_core_tasks.rake
|
1144
1180
|
- lib/text_filter_plugin.rb
|
1145
1181
|
- lib/theme.rb
|
1146
|
-
- lib/transforms.rb
|
1147
1182
|
- themes/plain/about.markdown
|
1148
1183
|
- themes/plain/javascripts/theme.js
|
1149
1184
|
- themes/plain/preview.png
|
@@ -1168,7 +1203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1168
1203
|
- !ruby/object:Gem::Version
|
1169
1204
|
version: '0'
|
1170
1205
|
requirements: []
|
1171
|
-
rubygems_version: 3.
|
1206
|
+
rubygems_version: 3.5.11
|
1172
1207
|
signing_key:
|
1173
1208
|
specification_version: 4
|
1174
1209
|
summary: Core engine for the Publify blogging system.
|