jekyll-order 0.1.5 → 0.1.7
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 +4 -3
- data/lib/jekyll/filters/order.rb +9 -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: 49616019b3d8efff939866c630ccfd171814e59737aaefe737a6ac96109db114
|
4
|
+
data.tar.gz: 688b39d5e754ccccd8b4b3bb05a03072118d08c4271afc1774c9cb93d2c8bdb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 635d33742912ab8709c0c7b6eec8ae0c78a5f0f0bcfb312ac96afc852dc6e8b171317daed0c32eb7a39b4e079c780aa43d493b86ab532c95205f878016b03602
|
7
|
+
data.tar.gz: 5f113ebb1ddbdfb1ce94c055a277693612ddba1ec32080886ec36124ab34f9740ffb59626f2bfb84a6a937709b95589d82ffe4d047a64ea404394892a5889ee6
|
data/Gemfile
CHANGED
data/Makefile
CHANGED
@@ -7,13 +7,14 @@ all: build publish sutty published
|
|
7
7
|
build:
|
8
8
|
echo $(gem)
|
9
9
|
chmod -R o=g .
|
10
|
-
gem build $(gem)
|
10
|
+
haini.sh gem build $(gem)
|
11
11
|
|
12
12
|
publish:
|
13
|
-
cloak view rubygems | xargs -rI {} gem push --otp {} *.gem
|
13
|
+
cloak view rubygems | xargs -rI {} haini.sh gem push --otp {} *.gem
|
14
14
|
|
15
15
|
sutty:
|
16
|
-
gem inabox -o *.gem --host https://${HTTP_BASIC_USER}:${HTTP_BASIC_PASSWORD}@gems.sutty.nl
|
16
|
+
haini.sh gem inabox -o *.gem --host https://${HTTP_BASIC_USER}:${HTTP_BASIC_PASSWORD}@14.3.alpine.gems.sutty.nl
|
17
|
+
haini.sh gem inabox -o *.gem --host https://${HTTP_BASIC_USER}:${HTTP_BASIC_PASSWORD}@17.3.alpine.gems.sutty.nl
|
17
18
|
|
18
19
|
published: always
|
19
20
|
mkdir -p published/
|
data/lib/jekyll/filters/order.rb
CHANGED
@@ -7,7 +7,15 @@ module Jekyll
|
|
7
7
|
return input unless input.respond_to? :sort_by
|
8
8
|
|
9
9
|
input.sort_by do |post|
|
10
|
-
|
10
|
+
case post
|
11
|
+
when Jekyll::Drops::DocumentDrop, Hash
|
12
|
+
[post['order'].to_i, post['date']]
|
13
|
+
when Jekyll::Document, Jekyll::Page
|
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
|
11
19
|
end.reverse
|
12
20
|
end
|
13
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.7
|
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-04-14 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.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
|