jekyll-order 0.1.4 → 0.1.5

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: d2eaa1d87310e49898660718099113ec5f60d73389926f5c80f42d0c1bb0891a
4
+ data.tar.gz: 9dc3213d599e2ba9d24a4faec2055ece53854e4c52b68a414b04ef82bb19b3f5
5
5
  SHA512:
6
- metadata.gz: cded0c9376bed939303a1cb330affd9cd33907d79687c8812d5f987e5026f3cf18cdecfb48dd5e29b1c4d1194aa77652d0b82b752aed3617332628f06ccbd3f0
7
- data.tar.gz: 59d358012be29bd362da13c15a75059b79009c7bd582597fde203bf546925177107d1532aac8d7bfa81eef50e91e9d5e2995b94f4a088c9d9a87eae886417643
6
+ metadata.gz: ff9a975c54a7c37f5f64a7f863f3daf5ffa580c624686cc35ad6bb41baa0c342a7b73f07e0dcb14402fcbcb57e382c72bbba822b6d9d2354531ff283b0ff4d05
7
+ data.tar.gz: 1f1eb9fca5779ef097c7812089da0c23b93e40eb7503bb4692a4f53bafbc3b5510cc57c7c5717acdb71be1cda2a10869b70d29a5cc8f892f582fcfd349beccff
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
+ gem build $(gem)
9
11
 
10
12
  publish:
11
13
  cloak view rubygems | xargs -rI {} gem push --otp {} *.gem
14
+
15
+ sutty:
16
+ 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,6 +4,8 @@ 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
  [post.data.dig('order').to_i, post.data['date']]
9
11
  end.reverse
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Order
5
- VERSION = '0.1.4'
5
+ VERSION = '0.1.5'
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.5
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: 2022-05-07 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.8
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Jekyll plugin for numeric ordering of posts