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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bde9f922e0887b6aa9ad61aedd71bc16687c934f5d2352285813444254ed1ae0
4
- data.tar.gz: 1b3dd8f3d1b8304ca0caeb306e02d69a17bdddc8a848e7b18f2f34241d1dab3b
3
+ metadata.gz: dd539eb91b19ca6886e4009d50bcda74d5c45ae9888630824774c85ba37b31e3
4
+ data.tar.gz: 5003349fc93cfde6e2452e86c8fbf9eaff53f00c16df146feb56b513da283bde
5
5
  SHA512:
6
- metadata.gz: cded0c9376bed939303a1cb330affd9cd33907d79687c8812d5f987e5026f3cf18cdecfb48dd5e29b1c4d1194aa77652d0b82b752aed3617332628f06ccbd3f0
7
- data.tar.gz: 59d358012be29bd362da13c15a75059b79009c7bd582597fde203bf546925177107d1532aac8d7bfa81eef50e91e9d5e2995b94f4a088c9d9a87eae886417643
6
+ metadata.gz: 948de1dac167d0996fd99b02e00db898c874d468c2e4587d0503a5dd8c6139ab3aa6745e343b06761dc6f009d2fe2c6cba33db1a0b9de87a6dbb48c4bc7307cb
7
+ data.tar.gz: ad2f326b8ed4c28ae9766f7032268d6248ea04224c8fc9cfa4fb1199caaf6c13f22d7e01ed0a0ff707c10553219449201a87352d40345f0bdd10fe99dd604bb0
data/Gemfile CHANGED
@@ -2,6 +2,4 @@
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- gem 'sutty-archives'
6
-
7
5
  gemspec
data/Makefile CHANGED
@@ -1,13 +1,23 @@
1
1
  gem := $(notdir $(PWD))
2
2
 
3
- all: build publish
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).gemspec
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:
@@ -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
- [post.data.dig('order').to_i, post.data['date']]
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Order
5
- VERSION = '0.1.4'
5
+ VERSION = '0.1.6'
6
6
  end
7
7
  end
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
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: 2021-03-03 00:00:00.000000000 Z
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.1.2
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