jekyll-order 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -2
- data/Makefile +13 -3
- data/lib/jekyll/filters/order.rb +11 -1
- data/lib/jekyll/order/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd539eb91b19ca6886e4009d50bcda74d5c45ae9888630824774c85ba37b31e3
|
4
|
+
data.tar.gz: 5003349fc93cfde6e2452e86c8fbf9eaff53f00c16df146feb56b513da283bde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 948de1dac167d0996fd99b02e00db898c874d468c2e4587d0503a5dd8c6139ab3aa6745e343b06761dc6f009d2fe2c6cba33db1a0b9de87a6dbb48c4bc7307cb
|
7
|
+
data.tar.gz: ad2f326b8ed4c28ae9766f7032268d6248ea04224c8fc9cfa4fb1199caaf6c13f22d7e01ed0a0ff707c10553219449201a87352d40345f0bdd10fe99dd604bb0
|
data/Gemfile
CHANGED
data/Makefile
CHANGED
@@ -1,13 +1,23 @@
|
|
1
1
|
gem := $(notdir $(PWD))
|
2
2
|
|
3
|
-
|
3
|
+
include .env
|
4
|
+
|
5
|
+
all: build publish sutty published
|
4
6
|
|
5
7
|
build:
|
6
8
|
echo $(gem)
|
7
9
|
chmod -R o=g .
|
8
|
-
gem build $(gem)
|
10
|
+
haini.sh gem build $(gem)
|
9
11
|
|
10
12
|
publish:
|
11
|
-
cloak view rubygems | xargs -rI {} gem push --otp {} *.gem
|
13
|
+
cloak view rubygems | xargs -rI {} haini.sh gem push --otp {} *.gem
|
14
|
+
|
15
|
+
sutty:
|
16
|
+
haini.sh gem inabox -o *.gem --host https://${HTTP_BASIC_USER}:${HTTP_BASIC_PASSWORD}@gems.sutty.nl
|
17
|
+
|
18
|
+
published: always
|
12
19
|
mkdir -p published/
|
13
20
|
mv *.gem published/
|
21
|
+
|
22
|
+
.PHONY: always
|
23
|
+
always:
|
data/lib/jekyll/filters/order.rb
CHANGED
@@ -4,8 +4,18 @@ module Jekyll
|
|
4
4
|
module Filters
|
5
5
|
module Order
|
6
6
|
def order(input)
|
7
|
+
return input unless input.respond_to? :sort_by
|
8
|
+
|
7
9
|
input.sort_by do |post|
|
8
|
-
|
10
|
+
case post
|
11
|
+
when Jekyll::Drops::DocumentDrop, Hash
|
12
|
+
[post['order'].to_i, post['date']]
|
13
|
+
when Jekyll::Document
|
14
|
+
[post.data['order'].to_i, post.data['date']]
|
15
|
+
else
|
16
|
+
Jekyll.logger.warn 'Order:', "Not a post: #{post.inspect}"
|
17
|
+
[0, nil]
|
18
|
+
end
|
9
19
|
end.reverse
|
10
20
|
end
|
11
21
|
end
|
data/lib/jekyll/order/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-order
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- f
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
|
-
rubygems_version: 3.
|
87
|
+
rubygems_version: 3.3.26
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Jekyll plugin for numeric ordering of posts
|