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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9fce10bdb602179a806185f8069a8121d8405e4e9e04839e433096572207342
4
- data.tar.gz: 96efa1be357c97aa6659ff74cd865a9c4e7732880c0817469e6cee0da1bcb745
3
+ metadata.gz: 97f3c2e83bbf1b0aed1f59775a3bac214997aa5569687460ec48e44ff9c62bd8
4
+ data.tar.gz: fcba8bd301c5628533c5d048d4238429d3471f94bbe4d2bf06a8003628635136
5
5
  SHA512:
6
- metadata.gz: d681988915ae056de2c763f86927cdd2c51cc2ca121f0b291e59c8a4fe2fa069a5b21cb9e7f5f3719605475da2425165497f2b702242ba9b71043c5dff99b8b5
7
- data.tar.gz: 4bc6d9ac47bd585a3f966e5308d066a423c1eb57e80535f5d2df0eda335273324d5ebf13066d32dd7ea12c027bdaa347b9fc02aea7363229f8849f4efd6c9973
6
+ metadata.gz: baadb59130faf8bcf1f50de653b9eb3238175830331a5fd1c8b899be92f84de23cb218c9a8ca1d5449b4c99793f14c13b6eed8b00130309a0fef50ffafcfc484
7
+ data.tar.gz: 237e11025f46b90286420873b9e0bc4278485a7e428bcffb1955ecd9aff13ec583031a4c349f2971f95b1276503dfa21f31f63e3249d6fcf6ed2a76f18330ad7
data/.gitignore CHANGED
@@ -5,7 +5,7 @@ tmp/**/*
5
5
  .DS_Store
6
6
  db/schema.rb
7
7
  db/development_structure.sql
8
- db/test.sqlite3-journal
8
+ db/test.sqlite3*
9
9
  pkg
10
10
  rdoc
11
11
  /tmp
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
@@ -5,7 +5,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5
5
 
6
6
  gemspec
7
7
 
8
- gem 'rails', '~> 7.0'
8
+ gem 'rails', '~> 7.0.0'
9
9
 
10
10
  group :development, :test do
11
11
  gem 'autoprefixer-rails', '~> 8.1.0'
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![Coverage Status](https://coveralls.io/repos/github/avonderluft/occams/badge.svg?branch=main)](https://coveralls.io/github/avonderluft/occams?branch=main)
5
5
  [![Gem Version](https://img.shields.io/gem/v/occams.svg?style=flat)](http://rubygems.org/gems/occams)
6
6
  [![Gem Downloads](https://img.shields.io/gem/dt/occams.svg?style=flat)](http://rubygems.org/gems/occams)
7
- [![GitHub Release Date - Published_At](https://img.shields.io/github/release-date/avonderluft/occams)](https://github.com/avonderluft/occams/releases)
7
+ [![GitHub Release Date - Published_At](https://img.shields.io/github/release-date/avonderluft/occams?label=last%20release&color=seagreen)](https://github.com/avonderluft/occams/releases)
8
8
 
9
9
  ***Prefer Simplicity.***
10
10
 
@@ -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 = [Symbol, Date, Time, ActiveSupport::TimeWithZone, ActiveSupport::TimeZone]
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
@@ -5,7 +5,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5
5
 
6
6
  gemspec path: '../'
7
7
 
8
- gem 'rails', '~> 6.1'
8
+ gem 'rails', '~> 6.1.0'
9
9
 
10
10
  group :development, :test do
11
11
  gem 'autoprefixer-rails', '~> 8.1.0'
data/gemfiles/7.0.gemfile CHANGED
@@ -5,7 +5,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5
5
 
6
6
  gemspec path: '../'
7
7
 
8
- gem 'rails', '~> 7.0'
8
+ gem 'rails', '~> 7.0.0'
9
9
 
10
10
  group :development, :test do
11
11
  gem 'autoprefixer-rails', '~> 8.1.0'
@@ -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> &laquo;&nbsp;<em>Previous</em> &bull; "
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Occams
4
- VERSION = '1.0.7.2'
4
+ VERSION = '1.0.7.3'
5
5
  end
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.2
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-09-27 00:00:00.000000000 Z
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