occams 1.0.7.2 → 1.0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/CHANGELOG.md +7 -0
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/config/application.rb +8 -1
- data/gemfiles/6.1.gemfile +1 -1
- data/gemfiles/7.0.gemfile +1 -1
- data/lib/occams/content/tags/siblings.rb +1 -0
- data/lib/occams/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: 97f3c2e83bbf1b0aed1f59775a3bac214997aa5569687460ec48e44ff9c62bd8
|
|
4
|
+
data.tar.gz: fcba8bd301c5628533c5d048d4238429d3471f94bbe4d2bf06a8003628635136
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: baadb59130faf8bcf1f50de653b9eb3238175830331a5fd1c8b899be92f84de23cb218c9a8ca1d5449b4c99793f14c13b6eed8b00130309a0fef50ffafcfc484
|
|
7
|
+
data.tar.gz: 237e11025f46b90286420873b9e0bc4278485a7e428bcffb1955ecd9aff13ec583031a4c349f2971f95b1276503dfa21f31f63e3249d6fcf6ed2a76f18330ad7
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.0.7.3 - 10/7/2023
|
|
4
|
+
|
|
5
|
+
- Fixed edge case with siblings tag when current page is excluded
|
|
6
|
+
- Git ignore all sqlite* files for testing
|
|
7
|
+
- Small testing refinements
|
|
8
|
+
- Prep for Rails 7.1 compatibility
|
|
9
|
+
|
|
3
10
|
## v1.0.7.2 - 9/27/2023
|
|
4
11
|
|
|
5
12
|
- Pulled will_paginate option out in favor of Kaminari
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://coveralls.io/github/avonderluft/occams?branch=main)
|
|
5
5
|
[](http://rubygems.org/gems/occams)
|
|
6
6
|
[](http://rubygems.org/gems/occams)
|
|
7
|
-
[](https://github.com/avonderluft/occams/releases)
|
|
7
|
+
[](https://github.com/avonderluft/occams/releases)
|
|
8
8
|
|
|
9
9
|
***Prefer Simplicity.***
|
|
10
10
|
|
data/config/application.rb
CHANGED
|
@@ -30,6 +30,13 @@ module Occams
|
|
|
30
30
|
|
|
31
31
|
config.i18n.enforce_available_locales = true
|
|
32
32
|
|
|
33
|
-
config.active_record.yaml_column_permitted_classes = [
|
|
33
|
+
config.active_record.yaml_column_permitted_classes = [
|
|
34
|
+
Symbol,
|
|
35
|
+
Date,
|
|
36
|
+
Time,
|
|
37
|
+
ActiveSupport::TimeWithZone,
|
|
38
|
+
ActiveSupport::TimeZone,
|
|
39
|
+
ActiveSupport::SafeBuffer
|
|
40
|
+
]
|
|
34
41
|
end
|
|
35
42
|
end
|
data/gemfiles/6.1.gemfile
CHANGED
data/gemfiles/7.0.gemfile
CHANGED
|
@@ -42,6 +42,7 @@ class Occams::Content::Tag::Siblings < Occams::Content::Tag
|
|
|
42
42
|
sib_idx = @sibs.index(sib)
|
|
43
43
|
next if sib.slug == context.slug
|
|
44
44
|
next if Rails.env == 'production' && !sib.is_published
|
|
45
|
+
next unless @sibs.index(context) # current page is excluded
|
|
45
46
|
|
|
46
47
|
if sib_idx == @sibs.index(context) - 1
|
|
47
48
|
@links += "<a href=#{sib.url(relative: true)}>#{sib.label}</a> « <em>Previous</em> • "
|
data/lib/occams/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: occams
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.7.
|
|
4
|
+
version: 1.0.7.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew vonderLuft
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-10-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: active_link_to
|