jekyll-cache 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +13 -5
- data/lib/jekyll/cache/file_store.rb +5 -8
- data/lib/jekyll/cache/memory_store.rb +0 -3
- data/lib/jekyll/cache/null_store.rb +9 -0
- data/lib/jekyll/cache/version.rb +5 -1
- data/lib/jekyll/cache.rb +4 -7
- data/lib/jekyll-cache.rb +2 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abe0af720be7912199c2acec7f736f32b68e28ea
|
4
|
+
data.tar.gz: e9a414a3d8481aecfd56f87bac0a2688f21e3e9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d825529cccf4548c37190e166d8b9a07b5fc0ff68fb95a762c7847b8789f4ca79ec33a706fb81e69fee770c8ed8af5cbc7c4b021c720f8c63a0a779de8fb415
|
7
|
+
data.tar.gz: d969938276f94c84ef431196933b8b8f15de1e392c239c8a864c06b84c19507f174d96f88b8c1559c79ab408619da9ab0dada8ed1f243c1eb52716585f25e1e3
|
data/Gemfile
CHANGED
@@ -1,10 +1,18 @@
|
|
1
|
+
# Frozen-string-literal: true
|
2
|
+
# Copyright: 2017 - MIT License
|
3
|
+
# Encoding: utf-8
|
4
|
+
|
1
5
|
source "https://rubygems.org"
|
2
6
|
gemspec
|
3
7
|
|
4
|
-
|
5
|
-
gem "pry"
|
8
|
+
group :development do
|
9
|
+
gem "pry"
|
10
|
+
gem "rubocop"
|
11
|
+
gem "rake"
|
6
12
|
|
7
|
-
|
8
|
-
|
9
|
-
|
13
|
+
group :test do
|
14
|
+
if ENV["JEKYLL_VERSION"]
|
15
|
+
gem "jekyll", "~> #{ENV['JEKYLL_VERSION']}"
|
16
|
+
end
|
17
|
+
end
|
10
18
|
end
|
@@ -14,6 +14,11 @@ module Jekyll
|
|
14
14
|
Cache.method(:clear).call
|
15
15
|
end
|
16
16
|
|
17
|
+
# --
|
18
|
+
def middleware
|
19
|
+
nil
|
20
|
+
end
|
21
|
+
|
17
22
|
# --
|
18
23
|
# @return [<EnvyGeeks::Cache>] the cache
|
19
24
|
# Overrides the default method so that we can simply
|
@@ -26,14 +31,6 @@ module Jekyll
|
|
26
31
|
self.logger = Cache.logger
|
27
32
|
end
|
28
33
|
|
29
|
-
# --
|
30
|
-
# So that users don't freak out.
|
31
|
-
# @return nil
|
32
|
-
# --
|
33
|
-
def middleware
|
34
|
-
nil
|
35
|
-
end
|
36
|
-
|
37
34
|
# --
|
38
35
|
# @param key [String,Symbol] the cache key.
|
39
36
|
# Overrides `fetch` so that we can automatically
|
data/lib/jekyll/cache/version.rb
CHANGED
data/lib/jekyll/cache.rb
CHANGED
@@ -6,12 +6,11 @@ require "jekyll/sanity"
|
|
6
6
|
require "jekyll/log_wrapper"
|
7
7
|
require "jekyll"
|
8
8
|
|
9
|
-
|
10
9
|
module Jekyll
|
11
10
|
module Cache
|
12
|
-
autoload
|
13
|
-
autoload :MemoryStore,
|
14
|
-
|
11
|
+
autoload :FileStore, "jekyll/cache/file_store"
|
12
|
+
autoload :MemoryStore, "jekyll/cache/memory_store"
|
13
|
+
autoload :NullStore, "jekyll/cache/null_store"
|
15
14
|
|
16
15
|
# --
|
17
16
|
# Clear the entire cache.
|
@@ -19,9 +18,7 @@ module Jekyll
|
|
19
18
|
# @return [true,false]
|
20
19
|
# --
|
21
20
|
def self.clear
|
22
|
-
|
23
|
-
return Jekyll.cache_dir.rm_rf
|
24
|
-
end
|
21
|
+
Jekyll.cache_dir.rm_r if Jekyll.cache_dir&.directory?
|
25
22
|
end
|
26
23
|
|
27
24
|
# --
|
data/lib/jekyll-cache.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordon Bedwell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- lib/jekyll/cache.rb
|
119
119
|
- lib/jekyll/cache/file_store.rb
|
120
120
|
- lib/jekyll/cache/memory_store.rb
|
121
|
+
- lib/jekyll/cache/null_store.rb
|
121
122
|
- lib/jekyll/cache/version.rb
|
122
123
|
homepage: http://github.com/envygeeks/jekyll-cache
|
123
124
|
licenses:
|
@@ -139,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
140
|
version: '0'
|
140
141
|
requirements: []
|
141
142
|
rubyforge_project:
|
142
|
-
rubygems_version: 2.6.
|
143
|
+
rubygems_version: 2.6.13
|
143
144
|
signing_key:
|
144
145
|
specification_version: 4
|
145
146
|
summary: A cache library that wraps around ActiveSupport
|