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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b01b654d3738194925784d2a726d08a20defe8b
|
4
|
+
data.tar.gz: 37b5003bf897617cd81841e7db8005f24a14fa8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dfa628947bf66a8b0b82863186509cbfcb558a92e1a374b8acdeeba5f03f2221820b0685d35e8f7001329d86ecb46be4dbe56ec68bd9715dc75ba710ea7c8f4
|
7
|
+
data.tar.gz: 3c01c64b16530663a40e6387151a6803bb7cd4b83e6a00e15136beff2f025d315b346731442cb7594c02c683317af8493b05455a7461f848d3a4e6f2b0044fba
|
@@ -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
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2014-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|