octopress-date-format 3.0.1 → 3.0.2
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/octopress-date-format.rb +6 -4
- data/lib/octopress-date-format/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6240daa4f916f4ff2b4eaa0a87c51e1ef7aa5830
|
4
|
+
data.tar.gz: b47ac4068b4f584acb75cd37af4d817ddd67c727
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c9533e424d90f761eea0da101792b26b564783545d120b91f48ac454d0542cc6f4657d21c1025d8a4618b89972be4e23d003b1e0573632daacc47bd1d60b280
|
7
|
+
data.tar.gz: 60babb26392549363cfb627a7d074c7a50f0d80997b549305745277275c4f04f3879e2536ffb46fe4c05b8bb9b47297196ba3fc98f2d388f52aa14f6f3dd763c
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Octopress Date Format
|
2
2
|
|
3
|
-
|
3
|
+
Put nicely formatted dates on any post or page.
|
4
4
|
|
5
5
|
[](https://travis-ci.org/octopress/date-format)
|
6
6
|
[](https://rubygems.org/gems/octopress-date-format)
|
@@ -2,7 +2,7 @@ require 'octopress-hooks'
|
|
2
2
|
require 'octopress-date-format/version'
|
3
3
|
|
4
4
|
module Octopress
|
5
|
-
module
|
5
|
+
module DateFormat
|
6
6
|
DEFAULTS = {
|
7
7
|
'date_format' => 'ordinal',
|
8
8
|
'time_format' => '%-I:%M %P'
|
@@ -18,19 +18,19 @@ module Octopress
|
|
18
18
|
|
19
19
|
class PageHook < Hooks::Page
|
20
20
|
def post_init(page)
|
21
|
-
|
21
|
+
DateFormat.hack_date(page)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
25
|
class PostHook < Hooks::Post
|
26
26
|
def post_init(post)
|
27
|
-
|
27
|
+
DateFormat.hack_date(post)
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
31
|
class SiteHook < Hooks::Site
|
32
32
|
def pre_read(site)
|
33
|
-
|
33
|
+
DateFormat.config = site.config
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
@@ -136,6 +136,8 @@ end
|
|
136
136
|
if defined? Octopress::Docs
|
137
137
|
Octopress::Docs.add({
|
138
138
|
name: "Octopress Date Format",
|
139
|
+
gem: "octopress-date-format",
|
140
|
+
version: Octopress::DateFormat::VERSION,
|
139
141
|
description: "Put nicely formatted dates on any post or page",
|
140
142
|
path: File.expand_path(File.join(File.dirname(__FILE__), "../")),
|
141
143
|
source_url: "https://github.com/octopress/date-format",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress-date-format
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octopress-hooks
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
114
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.
|
115
|
+
rubygems_version: 2.2.2
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: 'Adds nicely formated dates to Jekyll posts and pages. (formerly: ''jekyll-date-format'')'
|