jekyll-last-modified-at 0.3.3 → 0.3.4

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: c1217c3ccb3f6a4d7903489ce9c6f3313d7f00b6
4
- data.tar.gz: 09f8ccd79f8eda5dcdf2fe22f6c8bfdac0380e37
3
+ metadata.gz: 4b01b654d3738194925784d2a726d08a20defe8b
4
+ data.tar.gz: 37b5003bf897617cd81841e7db8005f24a14fa8c
5
5
  SHA512:
6
- metadata.gz: c3d1ea10e2da0a710e31e2eefcdf2cad463ced5bdf7a746a4846f0fdbe12b9aa9949334d54679675313ad3421b09e5f4115ca66e4f7fb6be85b5ad78a1e470bc
7
- data.tar.gz: 05c6c0da4237227a7b79e8e605a106f975cbafdaba6f87b1514546adbec2704984dff5d790a28320b584c48e65d84f8736fb14965b9d5b777276eaeb4fb43f5e
6
+ metadata.gz: 6dfa628947bf66a8b0b82863186509cbfcb558a92e1a374b8acdeeba5f03f2221820b0685d35e8f7001329d86ecb46be4dbe56ec68bd9715dc75ba710ea7c8f4
7
+ data.tar.gz: 3c01c64b16530663a40e6387151a6803bb7cd4b83e6a00e15136beff2f025d315b346731442cb7594c02c683317af8493b05455a7461f848d3a4e6f2b0044fba
@@ -8,5 +8,7 @@ module Jekyll
8
8
  autoload :Tag, 'jekyll-last-modified-at/tag'
9
9
 
10
10
  Generator ; Tag
11
+
12
+ PATH_CACHE = {}
11
13
  end
12
14
  end
@@ -1,7 +1,7 @@
1
1
  module Jekyll
2
2
  module LastModifiedAt
3
3
  class Determinator
4
- attr_reader :site_source, :opts
4
+ attr_reader :site_source, :page_path, :opts
5
5
 
6
6
  def initialize(site_source, page_path, opts = {})
7
7
  @site_source = site_source
@@ -10,7 +10,10 @@ module Jekyll
10
10
  end
11
11
 
12
12
  def formatted_last_modified_date
13
- last_modified_at_time.strftime(format)
13
+ return PATH_CACHE[page_path] unless PATH_CACHE[page_path].nil?
14
+ last_modified = last_modified_at_time.strftime(format)
15
+ PATH_CACHE[page_path] = last_modified
16
+ last_modified
14
17
  end
15
18
 
16
19
  def last_modified_at_time
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module LastModifiedAt
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-last-modified-at
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen J. Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-26 00:00:00.000000000 Z
11
+ date: 2014-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll