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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eed8972c3dacc31a1970b37be6efbc3f2d19d30d197f8342f13adcb171fa11e4
4
- data.tar.gz: 4735ee50552cb9fd07f9b4dea67e05a53152779b057a1d5b4335a2ffe0bf3769
3
+ metadata.gz: 3d22998c59d5b513a2a94a37547b474bdbb96855635c995af716b69a59236ccb
4
+ data.tar.gz: 548c6d037e47b1b274e0b1891d7f63a71a89c2ef0f6b1d675709b0bade1730e9
5
5
  SHA512:
6
- metadata.gz: 2434cbce961464f9d317625ff2d36605a3f0dda92d68516f2d5506683b02c97f936632b9868217529a477739124d4957a9d0d2cfc07f8331bb021083a681fe51
7
- data.tar.gz: 6a1bc1e3e9ea9d7dab30de818904d7d5cf540afed08d23573c62029b61274050deb3de6c1c4dfd117eaccf28f4ef3873047e3e0d7761e4680b065de7ce984401
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 'coveralls', '~> 0.8.23', require: false
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
 
@@ -3,5 +3,5 @@ label: Child Seed Page
3
3
  layout: nested
4
4
  target_page: '/child_b'
5
5
 
6
- [textares content]
6
+ [textarea content]
7
7
  Child A Page Seed Content
@@ -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>" if @locals['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 = '<ul id="children">'
40
+ @list = "<ul id=\"children\">\n"
38
41
  @page_children.each do |c|
39
- next if Rails.env == 'production' && !c.is_published
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Occams
4
- VERSION = '1.0.6.1'
4
+ VERSION = '1.0.7'
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.6.1
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-07 00:00:00.000000000 Z
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