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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f306f1372afc34e52ed608b0adec22ef5871985
4
- data.tar.gz: ee5d0f36b65e61d14dbf16a158990dbbfeac6dc0
3
+ metadata.gz: abe0af720be7912199c2acec7f736f32b68e28ea
4
+ data.tar.gz: e9a414a3d8481aecfd56f87bac0a2688f21e3e9e
5
5
  SHA512:
6
- metadata.gz: a60889a0bef4d04df76202dd0f11fb0fec77fb9725079db34ddd36e06d9959bb88da29d8a4279eac1410e6f6d044b8d855b82291e4c9cb0a5e236c18b66cf0d9
7
- data.tar.gz: d272bd716615cca99cab768122119d0e03dd9e77ad699de7e3faa77b00e51cc926ec36209f44ebdc735704cca2ae9f32494f1b79cc19a2eb2c763926d7fc198d
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
- gem "rake"
5
- gem "pry"
8
+ group :development do
9
+ gem "pry"
10
+ gem "rubocop"
11
+ gem "rake"
6
12
 
7
- if ENV["JEKYLL_VERSION"]
8
- # So we can test across all our supported.
9
- gem "jekyll", "~> #{ENV["JEKYLL_VERSION"]}"
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
@@ -24,9 +24,6 @@ module Jekyll
24
24
  super(*args)
25
25
  end
26
26
 
27
- # --
28
- # So that users don't freak out.
29
- # @return nil
30
27
  # --
31
28
  def middleware
32
29
  nil
@@ -0,0 +1,9 @@
1
+ # Frozen-string-literal: true
2
+ # Copyright: 2017 MIT License
3
+ # Encoding: utf-8
4
+
5
+ module Jekyll
6
+ module Cache
7
+ NullStore = ActiveSupport::Cache::NullStore
8
+ end
9
+ end
@@ -1,5 +1,9 @@
1
+ # Frozen-string-literal: true
2
+ # Copyright: 2017 - MIT License
3
+ # Encoding: utf-8
4
+
1
5
  module Jekyll
2
6
  module Cache
3
- VERSION = "1.0.1"
7
+ VERSION = "1.1.0"
4
8
  end
5
9
  end
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 :FileStore, "jekyll/cache/file_store"
13
- autoload :MemoryStore, \
14
- "jekyll/cache/memory_store"
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
- if Jekyll.cache_dir && Jekyll.cache_dir.directory?
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
@@ -1,5 +1,6 @@
1
+ # rubocop:disable Naming/FileName
1
2
  # Frozen-string-literal: true
2
- # Copyright: 2017 Jordon Bedwell - MIT License
3
+ # Copyright: 2017 - MIT License
3
4
  # Encoding: utf-8
4
5
 
5
6
  require "jekyll/cache"
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.1
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-08-14 00:00:00.000000000 Z
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.11
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