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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2eaa1d87310e49898660718099113ec5f60d73389926f5c80f42d0c1bb0891a
4
- data.tar.gz: 9dc3213d599e2ba9d24a4faec2055ece53854e4c52b68a414b04ef82bb19b3f5
3
+ metadata.gz: 49616019b3d8efff939866c630ccfd171814e59737aaefe737a6ac96109db114
4
+ data.tar.gz: 688b39d5e754ccccd8b4b3bb05a03072118d08c4271afc1774c9cb93d2c8bdb4
5
5
  SHA512:
6
- metadata.gz: ff9a975c54a7c37f5f64a7f863f3daf5ffa580c624686cc35ad6bb41baa0c342a7b73f07e0dcb14402fcbcb57e382c72bbba822b6d9d2354531ff283b0ff4d05
7
- data.tar.gz: 1f1eb9fca5779ef097c7812089da0c23b93e40eb7503bb4692a4f53bafbc3b5510cc57c7c5717acdb71be1cda2a10869b70d29a5cc8f892f582fcfd349beccff
6
+ metadata.gz: 635d33742912ab8709c0c7b6eec8ae0c78a5f0f0bcfb312ac96afc852dc6e8b171317daed0c32eb7a39b4e079c780aa43d493b86ab532c95205f878016b03602
7
+ data.tar.gz: 5f113ebb1ddbdfb1ce94c055a277693612ddba1ec32080886ec36124ab34f9740ffb59626f2bfb84a6a937709b95589d82ffe4d047a64ea404394892a5889ee6
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
@@ -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/
@@ -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
- [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, 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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Order
5
- VERSION = '0.1.5'
5
+ VERSION = '0.1.7'
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.5
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: 2022-05-07 00:00:00.000000000 Z
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.8
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