jekyll-last-modified 1.0.3 → 1.0.4

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
  SHA256:
3
- metadata.gz: d34b842ba3dd823353cb96ce4c5cefb2719ae78d999e61c4da84289e0409df72
4
- data.tar.gz: d8437c2a143ee76fa9ba9e7f6c1ce3df3f1707b9cb1ff4ceb3676f3f05408603
3
+ metadata.gz: 6675a8cd6e3bab30f372a3983c96b59efba23996d3b24c88971ccce9bb405f40
4
+ data.tar.gz: 7a5b74a9e269c183571edb4954ec94d728309d83bff62204897fd172024197a4
5
5
  SHA512:
6
- metadata.gz: 564a89ce5c7a1810c92d4d25ccd3975ecb92b5dc2eca6e41d8672eca59f4b4c3ff240f3e4eccd93c3f7e17f26a1ac7b5280b276c97db44a4b5740f4adb248713
7
- data.tar.gz: 7a2c74004faf143f58df9e7ad1bac836eb218b750dd5caffbf993f044202faa7d8c6bb7180f7b370b4367c992494b284d1f5881d00044637f4f824b2c0e0dd3b
6
+ metadata.gz: e89d347882ab0f7cb91d612cc84c9e9b09e9ef909a79d22064c756f7f1856070544ec299fa405c55f19ed1a58e85e4b4ff6485d893f3dc81c234b2d39d9f8e74
7
+ data.tar.gz: 384449699adb7057dec73749066ed18c9c0fdc47efe53c797eeed8180e53f538df0178c8c92636fb66ef95ce9c3301649cb07e9d158f84b0deef1cefb18a367d
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "jekyll-last-modified"
7
- spec.version = '1.0.3'
7
+ spec.version = '1.0.4'
8
8
  spec.authors = ["iBug"]
9
9
  spec.email = ["i@ibugone.com"]
10
10
  spec.summary = %q{Set page date from Git database}
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_dependency "jekyll", '>= 3.5'
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.6"
22
+ spec.add_development_dependency "bundler", ">= 1.6"
23
23
  spec.add_development_dependency "shoulda"
24
24
  spec.add_development_dependency "mocha"
25
25
  end
@@ -23,7 +23,7 @@ module Jekyll
23
23
  end
24
24
  page.data['git'] = data['pages_data'][path]
25
25
  unless page.data['git'].nil?
26
- page.data['last_modified_at'] = page.data['git']['last_commit']['commit_date']
26
+ page.data['last_modified_at'] ||= page.data['git']['last_commit']['commit_date']
27
27
  if page.data['date'] == site.time
28
28
  page.data['date'] = page.data['git']['first_commit']['commit_date']
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-last-modified
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - iBug
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-04 00:00:00.000000000 Z
11
+ date: 2022-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -28,14 +28,14 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.6'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.6'
41
41
  - !ruby/object:Gem::Dependency
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
- rubygems_version: 3.1.3
103
+ rubygems_version: 3.3.5
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Set page date from Git database