stbaldricks 10.2.0.alpha.1 → 10.2.0.alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stbaldricks/entities/page.rb +4 -1
- data/lib/stbaldricks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e618e12d24689d35d033fca9e146fe01700f4db511fa90ae7a1e5b8c4ffb9545
|
4
|
+
data.tar.gz: 2f325950cbe1fbaa40a24c5f2129ddce0f132219728fa7549f18286194df3ba6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a98282ae0d87346801d4762e9f4ffc74573b47c120507b9a1b124463a5501effb4dabe2c283b624316822bff8e66f838fc500272c4f4cac240abbf334a769a1
|
7
|
+
data.tar.gz: efd98d1cb2420248660c9927c0cf2d1472d90f59a77930c05f31e358fedce9dab173dda461ad7b37f133b59a85c5674b08182d088bdc78c685615ea2126a5051
|
@@ -38,7 +38,10 @@ module SBF
|
|
38
38
|
|
39
39
|
def published_content
|
40
40
|
# Sort content so meta type is at the bottom. This preserves order for rendering on page
|
41
|
-
content.select { |x| x.is_draft == false }.sort!
|
41
|
+
content.select { |x| x.is_draft == false }.sort! do |a, b|
|
42
|
+
next b.type <=> a.type unless b.type == a.type
|
43
|
+
a.sort_order <=> b.sort_order
|
44
|
+
end
|
42
45
|
end
|
43
46
|
|
44
47
|
def draft_content
|
data/lib/stbaldricks/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stbaldricks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.2.0.alpha.
|
4
|
+
version: 10.2.0.alpha.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|