occams 1.0.6.1 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile +2 -1
- data/README.md +2 -0
- data/db/cms_seeds/sample-site/pages/index/child_a/content.html +1 -1
- data/lib/occams/content/tags/children.rb +6 -5
- 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: 3d22998c59d5b513a2a94a37547b474bdbb96855635c995af716b69a59236ccb
|
4
|
+
data.tar.gz: 548c6d037e47b1b274e0b1891d7f63a71a89c2ef0f6b1d675709b0bade1730e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '03289e8b933af455d8a6532807a73a6eb5ce50614da5627ee1fa9d1b548a0e9b005cae3edd650c5054de72c9306472e3a689e4baeb7f7e6dd23addf41c749024'
|
7
|
+
data.tar.gz: 607ce6b807c49f9a1ddabbbbafa6b4cc5ba1775a32bdbb26983eb45e5ec0f75b7a0a43eabf159fd3c2f2e06fe182de31323ba149dee55e7102e7b7759ca0791d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v1.0.7 - 9/12/2023
|
4
|
+
|
5
|
+
- update coveralls Coverage reporting
|
6
|
+
- add minitest-reporters for test output
|
7
|
+
- adjust tests to accomodate varying macos and linux outputs
|
8
|
+
- refine test for 'children' tag
|
9
|
+
- linting and 1 typo
|
10
|
+
- add Build Status and Coveralls Coverage Status to README
|
11
|
+
|
3
12
|
## v1.0.6.1 - 9/5/2023
|
4
13
|
|
5
14
|
- Fixed siblings and children nav tags which as written had problems creating child pages in the admin panel
|
data/Gemfile
CHANGED
@@ -21,9 +21,10 @@ group :development do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
group :test do
|
24
|
-
gem '
|
24
|
+
gem 'coveralls_reborn', require: false
|
25
25
|
gem 'diffy', '~> 3.4.2'
|
26
26
|
gem 'equivalent-xml', '~> 0.6.0'
|
27
|
+
gem 'minitest-reporters'
|
27
28
|
gem 'mocha', '~> 2.1.0', require: false
|
28
29
|
gem 'rails-controller-testing', '~> 1.0.5'
|
29
30
|
end
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# ocCaM'S
|
2
2
|
|
3
|
+
[![Build status](https://badge.buildkite.com/6b70f3f81c5922bd134b33d3ba1412c68f53a9f67e0a907ade.svg?branch=main)](https://buildkite.com/gknt/occams)
|
4
|
+
[![Coverage Status](https://coveralls.io/repos/github/avonderluft/occams/badge.svg?branch=main)](https://coveralls.io/github/avonderluft/occams?branch=main)
|
3
5
|
[![Gem Version](https://img.shields.io/gem/v/occams.svg?style=flat)](http://rubygems.org/gems/occams)
|
4
6
|
[![Gem Downloads](https://img.shields.io/gem/dt/occams.svg?style=flat)](http://rubygems.org/gems/occams)
|
5
7
|
|
@@ -23,22 +23,23 @@ class Occams::Content::Tag::Children < Occams::Content::Tag
|
|
23
23
|
super
|
24
24
|
@locals = params.extract_options!
|
25
25
|
@style = ''
|
26
|
-
@style = "<style>#children {#{@locals['style']}}</style
|
26
|
+
@style = "<style>#children {#{@locals['style']}}</style>\n" if @locals['style']
|
27
27
|
@exclude = []
|
28
28
|
@exclude = @locals['exclude'].split(',') if @locals['exclude']
|
29
29
|
@list = ''
|
30
30
|
# ActiveRecord_Associations_CollectionProxy
|
31
31
|
@page_children = context.children.order(:position).to_ary
|
32
|
+
if Rails.env == 'production'
|
33
|
+
@page_children.delete_if { |child| !child.is_published }
|
34
|
+
end
|
32
35
|
@page_children.delete_if { |child| @exclude.include? child.slug }
|
33
36
|
end
|
34
37
|
|
35
38
|
def content
|
36
39
|
if @page_children.any?
|
37
|
-
@list =
|
40
|
+
@list = "<ul id=\"children\">\n"
|
38
41
|
@page_children.each do |c|
|
39
|
-
|
40
|
-
|
41
|
-
@list += "<li><a href=#{c.url(relative: true)}>#{c.label}</a></li>"
|
42
|
+
@list += " <li><a href=#{c.url(relative: true)}>#{c.label}</a></li>\n"
|
42
43
|
end
|
43
44
|
@list += '</ul>'
|
44
45
|
end
|
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.
|
4
|
+
version: 1.0.7
|
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-
|
11
|
+
date: 2023-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_link_to
|