publify_core 9.0.0.pre5 → 9.0.0.pre6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45fa33d99e6d10e99427c5a9d0a1014e195efd7c
4
- data.tar.gz: 661ef66ef0906dd1d0cd78ddedcca3ff3f187527
3
+ metadata.gz: d4ddb8abe1bcadcc8e3361b43640b49c27d19d88
4
+ data.tar.gz: 9aaf729490e771bb1c0550f141a21b6f8a70a8e8
5
5
  SHA512:
6
- metadata.gz: ffa5e646dbf467df24fb03260004b7c07e27f1ea7d4a7bc44a8218644ff373ff167fae63f7fb73bffa10398359ef7da94185f689e9b63e316e9de5fb1e041cbc
7
- data.tar.gz: f214aceaf81a68dd5bddaf710e7cc7d1b49eec7b80d97daa37975193ae95a6f7983200f6495c93b0d31eaafe785c37b7bc6d5681a0be20226329e3dc431bd21a
6
+ metadata.gz: 7b86a3b54ba1aff46aaeaa761027dcebd04b3cc0421ee3368a128e09a76fea8e5b4449b867a7118c23ade55bcaf007f7a919540762d74ea238a167bff38d2407
7
+ data.tar.gz: 351d77f8f08da235ca634570e2ccdcbb8c7a627f29ce2b2f986f1abe182a49bd9b3746d6a27434527948c688d3376063e906fa3934640a96375a792eb9686c53
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.0.0.pre6 / 2016-12-23
4
+
5
+ * Remove now-broken caching of theme assets
6
+ * Remove cache invalidation support code from content
7
+
3
8
  ## 9.0.0.pre5 / 2016-12-17
4
9
 
5
10
  * Update dependencies
@@ -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
 
@@ -22,7 +22,6 @@ class Ability
22
22
  private
23
23
 
24
24
  def add_admin_abilities
25
- can :manage, 'admin/cache'
26
25
  can :manage, 'admin/migrations'
27
26
  can :manage, 'admin/seo'
28
27
  can :manage, 'admin/settings'
@@ -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
@@ -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!
@@ -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, :invalidates_cache?
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') }
@@ -1,3 +1,3 @@
1
1
  module PublifyCore
2
- VERSION = '9.0.0.pre5'
2
+ VERSION = '9.0.0.pre6'
3
3
  end
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.pre5
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-17 00:00:00.000000000 Z
14
+ date: 2016-12-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails