publify_core 9.0.0.pre5 → 9.0.0.pre6
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of publify_core might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/app/controllers/theme_controller.rb +0 -2
- data/app/models/ability.rb +0 -1
- data/app/models/content.rb +0 -4
- data/app/models/content_base.rb +0 -8
- data/app/models/feedback.rb +1 -2
- data/lib/publify_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4ddb8abe1bcadcc8e3361b43640b49c27d19d88
|
4
|
+
data.tar.gz: 9aaf729490e771bb1c0550f141a21b6f8a70a8e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b86a3b54ba1aff46aaeaa761027dcebd04b3cc0421ee3368a128e09a76fea8e5b4449b867a7118c23ade55bcaf007f7a919540762d74ea238a167bff38d2407
|
7
|
+
data.tar.gz: 351d77f8f08da235ca634570e2ccdcbb8c7a627f29ce2b2f986f1abe182a49bd9b3746d6a27434527948c688d3376063e906fa3934640a96375a792eb9686c53
|
data/CHANGELOG.md
CHANGED
@@ -32,8 +32,6 @@ class ThemeController < ContentController
|
|
32
32
|
src = this_blog.current_theme.path + "/#{type}/#{file}"
|
33
33
|
return (render plain: 'Not Found', status: 404) unless File.exist? src
|
34
34
|
|
35
|
-
cache_page File.read(src) if perform_caching
|
36
|
-
|
37
35
|
send_file(src, type: mime, disposition: 'inline', stream: true)
|
38
36
|
end
|
39
37
|
|
data/app/models/ability.rb
CHANGED
data/app/models/content.rb
CHANGED
@@ -6,10 +6,6 @@ class Content < ActiveRecord::Base
|
|
6
6
|
|
7
7
|
include ContentBase
|
8
8
|
|
9
|
-
# TODO: Move these calls to ContentBase
|
10
|
-
after_save :invalidates_cache?
|
11
|
-
after_destroy ->(c) { c.invalidates_cache?(true) }
|
12
|
-
|
13
9
|
belongs_to :text_filter, optional: true
|
14
10
|
belongs_to :user, optional: true
|
15
11
|
belongs_to :blog
|
data/app/models/content_base.rb
CHANGED
@@ -64,14 +64,6 @@ module ContentBase
|
|
64
64
|
(text.length > length ? '...' : '')
|
65
65
|
end
|
66
66
|
|
67
|
-
def invalidates_cache?(on_destruction = false)
|
68
|
-
@invalidates_cache ||= if on_destruction
|
69
|
-
just_changed_published_status? || published?
|
70
|
-
else
|
71
|
-
(changed? && published?) || just_changed_published_status?
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
67
|
def publish!
|
76
68
|
self.published = true
|
77
69
|
save!
|
data/app/models/feedback.rb
CHANGED
@@ -23,9 +23,8 @@ class Feedback < ActiveRecord::Base
|
|
23
23
|
|
24
24
|
before_create :create_guid, :article_allows_this_feedback
|
25
25
|
before_save :correct_url, :before_save_handler
|
26
|
-
after_save :post_trigger, :report_classification
|
26
|
+
after_save :post_trigger, :report_classification
|
27
27
|
after_initialize :after_initialize_handler
|
28
|
-
after_destroy ->(c) { c.invalidates_cache?(true) }
|
29
28
|
|
30
29
|
scope :ham, -> { where(state: %w(presumed_ham ham)) }
|
31
30
|
scope :spam, -> { where(state: 'spam') }
|
data/lib/publify_core/version.rb
CHANGED
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: 9.0.0.
|
4
|
+
version: 9.0.0.pre6
|
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: 2016-12-
|
14
|
+
date: 2016-12-23 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|