Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-simple-navigation.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1610299893.627010/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.3d6h0cu4:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.3d6h0cu4:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '577881b927674f28832214f943f8b567', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1610299893.627010/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.3d6h0cu4:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-simple-navigation.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1595980800 Wrote: /builddir/build/SRPMS/rubygem-simple-navigation-4.1.0-2.fc34.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-simple-navigation.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1610299893.627010/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.3d6h0cu4:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.3d6h0cu4:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'afaf0789cb364a6faa4e540f580cff84', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1610299893.627010/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.3d6h0cu4:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-simple-navigation.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1595980800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.7aRPyw + umask 022 + cd /builddir/build/BUILD + gem unpack /builddir/build/SOURCES/simple-navigation-4.1.0.gem Unpacked gem: '/builddir/build/BUILD/simple-navigation-4.1.0' + cd /builddir/build/BUILD + cd simple-navigation-4.1.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + gem spec /builddir/build/SOURCES/simple-navigation-4.1.0.gem -l --ruby + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.EWC42w + umask 022 + cd /builddir/build/BUILD + cd simple-navigation-4.1.0 + gem build simple-navigation.gemspec WARNING: open-ended dependency on activesupport (>= 2.3.2) is not recommended if activesupport is semantically versioned, use: add_runtime_dependency 'activesupport', '~> 2.3', '>= 2.3.2' WARNING: open-ended dependency on bundler (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: open-ended dependency on capybara (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: open-ended dependency on rake (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: open-ended dependency on rdoc (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: open-ended dependency on tzinfo (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: See https://guides.rubygems.org/specification-reference/ for help Successfully built RubyGem Name: simple-navigation Version: 4.1.0 File: simple-navigation-4.1.0.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'\'' --with-cxxflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc simple-navigation-4.1.0.gem WARNING: You build with buildroot. Build root: /builddir/build/BUILD/simple-navigation-4.1.0 Bin dir: /builddir/build/BUILD/simple-navigation-4.1.0/usr/bin Gem home: /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems Plugins dir: /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/plugins /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/.gitignore /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/.rspec /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/.travis.yml /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/CHANGELOG.md /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/Gemfile /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/Guardfile /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/LICENSE /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/README.md /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/Rakefile /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/gemfiles/.bundle/config /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/gemfiles/rails-3-2-stable.gemfile /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/gemfiles/rails-4-1-stable.gemfile /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/gemfiles/rails-4-2-stable.gemfile /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/gemfiles/rails-5-2-stable.gemfile /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/gemfiles/rails-6-0-stable.gemfile /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/generators/navigation_config/USAGE /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/generators/navigation_config/navigation_config_generator.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/generators/navigation_config/templates/config/navigation.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/init.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/install.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/generators/navigation_config/navigation_config_generator.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple-navigation.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/adapters.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/adapters/base.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/adapters/nanoc.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/adapters/padrino.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/adapters/rails.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/adapters/sinatra.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/config_file.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/config_file_finder.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/configuration.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/helpers.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/item.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/item_adapter.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/item_container.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/items_provider.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/railtie.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/renderer.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/renderer/base.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/renderer/breadcrumbs.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/renderer/json.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/renderer/links.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/renderer/list.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/renderer/text.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/lib/simple_navigation/version.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/simple-navigation.gemspec /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/fake_app/config/navigation.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/fake_app/rails_app.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/initializers/coveralls.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/initializers/have_css_matcher.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/initializers/memfs.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/initializers/rails.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/initializers/rspec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/integration/rendering_navigation_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/adapters/padrino_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/adapters/rails_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/adapters/sinatra_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/config_file_finder_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/config_file_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/configuration_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/helpers_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/item_adapter_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/item_container_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/item_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/items_provider_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/renderer/base_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/renderer/breadcrumbs_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/renderer/json_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/renderer/links_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/renderer/list_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/renderer/text_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation_spec.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/spec_helper.rb /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/uninstall.rb Successfully installed simple-navigation-4.1.0 Parsing documentation for simple-navigation-4.1.0 Parsing sources... 3% [ 1/26] lib/generators/navigation_config/navigation_config_generator.rb 7% [ 2/26] lib/simple-navigation.rb 11% [ 3/26] lib/simple_navigation.rb 15% [ 4/26] lib/simple_navigation/adapters.rb 19% [ 5/26] lib/simple_navigation/adapters/base.rb 23% [ 6/26] lib/simple_navigation/adapters/nanoc.rb 26% [ 7/26] lib/simple_navigation/adapters/padrino.rb 30% [ 8/26] lib/simple_navigation/adapters/rails.rb 34% [ 9/26] lib/simple_navigation/adapters/sinatra.rb 38% [10/26] lib/simple_navigation/config_file.rb 42% [11/26] lib/simple_navigation/config_file_finder.rb 46% [12/26] lib/simple_navigation/configuration.rb 50% [13/26] lib/simple_navigation/helpers.rb 53% [14/26] lib/simple_navigation/item.rb 57% [15/26] lib/simple_navigation/item_adapter.rb 61% [16/26] lib/simple_navigation/item_container.rb 65% [17/26] lib/simple_navigation/items_provider.rb 69% [18/26] lib/simple_navigation/railtie.rb 73% [19/26] lib/simple_navigation/renderer.rb 76% [20/26] lib/simple_navigation/renderer/base.rb 80% [21/26] lib/simple_navigation/renderer/breadcrumbs.rb 84% [22/26] lib/simple_navigation/renderer/json.rb 88% [23/26] lib/simple_navigation/renderer/links.rb 92% [24/26] lib/simple_navigation/renderer/list.rb 96% [25/26] lib/simple_navigation/renderer/text.rb 100% [26/26] lib/simple_navigation/version.rb Installing ri documentation for simple-navigation-4.1.0 Installing darkfish documentation for simple-navigation-4.1.0 Done installing documentation for simple-navigation after 0 seconds 1 gem installed + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.2rR65t + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-simple-navigation-4.1.0-2.fc34.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-simple-navigation-4.1.0-2.fc34.x86_64 ++ dirname /builddir/build/BUILDROOT/rubygem-simple-navigation-4.1.0-2.fc34.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-simple-navigation-4.1.0-2.fc34.x86_64 + cd simple-navigation-4.1.0 + mkdir -p /builddir/build/BUILDROOT/rubygem-simple-navigation-4.1.0-2.fc34.x86_64/usr/share/gems + cp -a ./usr/share/gems/build_info ./usr/share/gems/cache ./usr/share/gems/doc ./usr/share/gems/extensions ./usr/share/gems/gems ./usr/share/gems/plugins ./usr/share/gems/specifications /builddir/build/BUILDROOT/rubygem-simple-navigation-4.1.0-2.fc34.x86_64/usr/share/gems/ + /usr/lib/rpm/find-debuginfo.sh -j2 --strict-build-id -m -i --build-id-seed 4.1.0-2.fc34 --unique-debug-suffix -4.1.0-2.fc34.x86_64 --unique-debug-src-base rubygem-simple-navigation-4.1.0-2.fc34.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/simple-navigation-4.1.0 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.axl9Ct + umask 022 + cd /builddir/build/BUILD ~/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0 ~/build/BUILD/simple-navigation-4.1.0 + cd simple-navigation-4.1.0 + pushd ./usr/share/gems/gems/simple-navigation-4.1.0 + sed -i '/[Cc]overalls/ s/^/#/' spec/spec_helper.rb + sed -i '/[Bb]undler/ s/^/#/' spec/spec_helper.rb + sed -i '1s/^/require "rails-deprecated_sanitizer"\n/' spec/spec_helper.rb + rspec spec Randomized with seed 46751 SimpleNavigation::Adapters::Padrino #link_to delegates to context #content_tag delegates to context SimpleNavigation::ItemContainer #initialize sets an empty items array #item when no block is given creates a new Item with the given params and no sub navigation adds the created item to the list of items Conditions when an :if option is given and it evals to false doesn't create a new Item and it evals to true creates a new Item and it is not a proc or a method WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/item_container_spec.rb:436:in `block (6 levels) in '. raises an error when an :unless option is given and it evals to true doesn't create a new Navigation-Item and it evals to false creates a new Navigation-Item Optional url and optional options when item is specified with a url and options and options contains a positive condition behaves like adding the item to the list adds the item to the list and options do not contain any condition behaves like adding the item to the list adds the item to the list and options contains a negative condition behaves like not adding the item to the list doesn't add the item to the list container options when the container :selected_class option is specified and the item should be added changes its selected_class and the item shouldn't be added doesn't change its selected_class when the container :id option is specified and the item should be added changes its dom_id and the item shouldn't be added doesn't change its dom_id when the container :attributes option is specified and the item should be added changes its dom_attributes and the item shouldn't be added doesn't change its dom_attributes when the container :class option is specified and the item shouldn't be added doesn't change its dom_class and the item should be added changes its dom_class when item is specified with only options and options contains a negative condition behaves like not adding the item to the list doesn't add the item to the list and options contains a positive condition behaves like adding the item to the list adds the item to the list and options do not contain any condition behaves like adding the item to the list adds the item to the list when a frozen options hash is given does not raise an exception when item is specified with only a url behaves like adding the item to the list adds the item to the list when item specifed without url or options behaves like adding the item to the list adds the item to the list when a block is given yields a new ItemContainer creates a new Item with the given params and block adds the created item to the list of items #active_item_container_for when the desired level is different than the container's and a subnavigation is selected calls recursively on the sub_navigation and no subnavigation is selected returns nil when the desired level is the same as the container's returns the container itself #[] returns the item with the specified navi_key when no item exists for the specified navi_key returns nil #renderer when a renderer is set explicitly returns the specified renderer when no renderer is set explicitly returns globally-configured renderer #active_leaf_container when the current container is the leaf already returns itsself when the current container has a selected subnavigation calls recursively on the sub_navigation #items= when the item should not be added doesn't add it to the items collection when the item should be added converts it to an Item and adds it to the items collection #dom_attributes returns the container's dom_attributes when the dom_attributes do not contain any id or class and the container hasn't any dom_id returns the contaier's dom_attributes without any id and the container hasn't any dom_class returns the contaier's dom_attributes without any class and the container has a dom_class returns the contaier's dom_attributes including the #dom_class and the container has a dom_id returns the contaier's dom_attributes including the #dom_id #level_for_item behaves like returning the level of an item is expected to eq 1 behaves like returning the level of an item is expected to eq 3 behaves like returning the level of an item is expected to eq 1 behaves like returning the level of an item is expected to eq 2 behaves like returning the level of an item is expected to eq nil #selected? when an item is selected returns true when no item is selected returns nil #selected_item when navigation isn't explicitely set and no item is selected returns nil and an item selected returns the selected item #empty? when there are no items returns true when there are some items returns false #render when renderer is specified as an option and is specified as a class instantiates the passed renderer_class with the options calls render on the renderer and passes self and is specified as a symbol calls render on the renderer and passes self instantiates the passed renderer_class with the options when no renderer is specified calls render on the renderer and passes self instantiates the container's renderer with the options SimpleNavigation::ConfigFile #name when the context is :default returns navigation.rb when the context is different from :default returns UNDERSCORED_CONTEXT_navigation.rb SimpleNavigation::ItemAdapter when item is a kind of hash behaves like delegating to item delegates key to item #to_simple_navigation_item passes the right arguments to Item creates an Item behaves like delegating to item delegates url to item behaves like delegating to item delegates name to item #initialize sets the item converts the item into an object #options when item responds to options returns the item's options when item does not respond to options returns an empty hash #items when item responds to items and items is nil returns nil when items is not nil and items is not empty returns the items and items is empty returns nil when item does not respond to items returns nil when item is an object #initialize sets the item #options when item responds to options returns the item's options item does not respond to options returns an empty hash behaves like delegating to item delegates url to item #items when item doesn't respond to items returns nil when item responds to items and items is nil returns nil when items is not nil and items is empty returns nil and items is not empty returns the items behaves like delegating to item delegates name to item behaves like delegating to item delegates key to item #to_simple_navigation_item creates an Item SimpleNavigation::Adapters::Sinatra #request_path returns the request.path #context_for_eval when adapter's context is set returns the context when adapter's context is not set WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/adapters/sinatra_spec.rb:12:in `block (4 levels) in '. raises an exception #request_uri returns the request.fullpath #content_tag returns a tag with the correct class and id #link_to returns a link with the correct class and id #current_page? when URL is encoded behaves like detecting current page when url is http://my_host:5000/full%20with%20spaces returns true behaves like detecting current page when url is https://my_host:5000/full%20with%20spaces returns false behaves like detecting current page when url is http://my_other_host:5000/full%20with%20spaces returns false behaves like detecting current page when url is http://my_host:5000/full%20with%20spaces?param=true returns true behaves like detecting current page when url is http://my_host:5000/full%20with%20spaces?param3=true returns false behaves like detecting current page when url is /full%20with%20spaces?param3=true returns false behaves like detecting current page when url is http://my_host:6000/full%20with%20spaces returns false behaves like detecting current page when url is /full%20with%20spaces?param=true returns true behaves like detecting current page when url is /full%20with%20spaces returns true when URL is not encoded behaves like detecting current page when url is http://my_host:6000/full returns false behaves like detecting current page when url is https://my_host:5000/full returns false behaves like detecting current page when url is http://my_host:5000/full returns true behaves like detecting current page when url is /full?param3=true returns false behaves like detecting current page when url is http://my_host:5000/full?param3=true returns false behaves like detecting current page when url is http://my_host:5000/full?param=true returns true behaves like detecting current page when url is /full?param=true returns true behaves like detecting current page when url is /full returns true behaves like detecting current page when url is http://my_other_host:5000/full returns false SimpleNavigation::Configuration .run yields the singleton Configuration object #items when no block is given and items_provider is specified calls items on the provider object creates a new Provider object for the specified provider sets the items on the container when items_provider is not specified WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/configuration_spec.rb:142:in `block (5 levels) in '. raises an exception when a block is given when no items_provider is specified yields an new ItemContainer assigns the ItemContainer to an instance-var doesn't set the items on the container and items_provider is specified WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/configuration_spec.rb:92:in `block (5 levels) in '. raises an exception #loaded? when primary_nav is set returns true when primary_nav is not set returns false if no primary_nav is set .eval_config with default navigation context calls instance_eval with the default config_file-string inside the context with non default navigation context calls instance_eval with the specified config_file-string inside the context #initialize sets the name_generator to a callable object sets auto_highlight to true as default sets the List-Renderer as default sets the selected_class to "selected" as default sets the consider_item_names_as_safe to false sets highlights_on_subpath to false as default sets ignore_query_params_on_auto_highlight to true as default sets autogenerate_item_ids to true as default sets the id_generator to a callable object sets ignore_anchors_on_auto_highlight to true as default sets the active_leaf_class to "simple-navigation-active-leaf" as default SimpleNavigation::Renderer::Links #render renders the 'a' tags with the corresponding item's :html_options renders an 'a' tag for each item sets the right html id on the rendered 'div' tag renders a 'div' tag for the navigation sets the right html classes on the rendered 'div' tag when a sub navigation item is selected doesn't render the nested item's link renders the main parent as selected when the :join_with option is set separates the items with the specified separator when an item has a specified id renders the 'a' tags with the specified id when an item is selected renders the selected item with the 'selected' class when an item has no specified id uses a default id by stringifying the item's key when no item is selected renders items without the 'selected' class SimpleNavigation::Renderer::Json #render when an item is selected renders the selected page when the :as_hash option is true renders the selected page returns a hash when a sub navigation item is selected marks the item as selected marks all the parent items as selected SimpleNavigation::Adapters::Rails #link_to when the adapter's template is not set returns nil when the adapter's template is set with considering item names as UNsafe (default) delegates the call to the template (with html_safe text) with considering item names as safe delegates the call to the template (with html_safe text) #request_path when the adapter's request is not set sets the adapter's request_path to an empty string when the adapter's request is set sets the adapter's request_path to the request.path .register calls set_env extends the ActionController::Base with the Helpers behaves like installing helper method installs the render_navigation method as helper method behaves like installing helper method installs the active_navigation_item_key method as helper method behaves like installing helper method installs the active_navigation_item_container method as helper method behaves like installing helper method installs the active_navigation_item method as helper method behaves like installing helper method installs the active_navigation_item_name method as helper method #current_page? when the adapter's template is set delegates the call to the template when the given url is nil returns false when the adapter's template is not set returns false #context_for_eval when the adapter's controller is not set and the adapter's template is set sets the adapter's context_for_eval to the template and the adapter's template is not set WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/adapters/rails_spec.rb:189:in `block (5 levels) in '. raises an exception when the adapter's controller is set and the adapter's template is set sets the adapter's context_for_eval to the template and the adapter's template is not set sets the adapter's context_for_eval to the controller #request_uri when the adapter's request is not set sets the adapter's request_uri to an empty string when the adapter's request is set and request.fullpath is defined sets the adapter's request_uri to the request.fullpath and request.fullpath is not defined sets the adapter's request_uri to the request.request_uri #initialize sets the adapter's controller to the context's controller when the controller's template is not set sets the adapter's request to nil when the controller's template is set sets the adapter's request accordingly when the controller's template is stored as view_context (Rails3) and the template is not set sets the adapter's template to nil and the template is set sets the adapter's template accordingly when the controller's template is stored as instance var (Rails2) when the controller's template is set sets the adapter's template accordingly when the controller's template is not set set the adapter's template to nil #content_tag when the adapter's template is not set returns nil when the adapter's template is set delegates the call to the template (with html_safe text) SimpleNavigation::ConfigFileFinder #find when the context is :default and no navigation.rb file is found in the paths WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/config_file_finder_spec.rb:26:in `block (5 levels) in '. raises an exception and a navigation.rb file is found in one of the paths returns its full path when the context is :other and a other_navigation.rb file is found in one of the paths returns its full path and no other_navigation.rb file is found in the paths WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/config_file_finder_spec.rb:44:in `block (5 levels) in '. raise an exception SimpleNavigation::Renderer::Breadcrumbs #render sets the right html classes on the rendered 'div' tag renders a 'div' tag for the navigation sets the right html id on the rendered 'div' tag and the :prefix option is set and there are items to render renders the prefix before the breadcrumbs and there are no items to render doesn't render the prefix before the breadcrumbs when an item is selected renders the 'a' tag without any html class renders the selected 'a' tag remders the 'a' tag without any html id and the :allow_classes_and_ids option is true renders the 'a' tag with the selected class and the item has an explicitly set id renders the 'a' tag with an html id and the item hasn't any id explicitly set renders the 'a' tag without any html id when no item is selected doesn't render any 'a' tag in the 'div' tag when a sub navigation item is selected renders all items as links when the :static_leaf option is true renders the last item as simple text renders the items as links SimpleNavigation::Item #selected? when the item has a :highlights_on option and it is a regular expression and the current url matches the expression returns true and the current url does not match the expression returns false and it is a callable object and the call returns false returns false and the call returns true returns true and it is the :subpath symbol and the current url is not a sub path of the item's url returns false and the current url is a sub path of the item's url returns true and it is non usable WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/item_spec.rb:349:in `block (5 levels) in '. raises an exception when the item has no :highlights_on option and auto highlighting is off returns false and auto highlighting is on and the current url matches the item's url returns true and highlights_on_subpath is on and the current url is not a sub path of the item's url returns false and the current url is a sub path of the item's url returns true but item has no url returns false and the current url does not match the item's url returns false #highlights_on returns the item's highlights_on option #method returns the item's method option :html_options argument when the :class option isn't given and the item is selected sets the default html classes of a selected item and the item isn't selected doesn't set any html class on the item when the :id option is given and :autogenerate_item_ids is true behaves like generating id sets the item's html id to the specified id and :autogenerate_item_ids is false behaves like generating id sets the item's html id to the specified id when the :id option isn't given and :autogenerate_item_ids is true behaves like generating id sets the item's html id to the specified id and :autogenerate_item_ids is false doesn't set any html id on the item when the :class option is given and the item isn't selected sets the specified class as the item's html classes and the item is selected doesn't replace the default html classes of a selected item adds the specified class to the item's html classes #link_html_options returns the item's link_html option #initialize when url and options are given set the item's url accordingly sets the item's html_options accordingly when no :method option is given sets the item's method to nil when only a url is given set the item's url accordingly when a :method option is given sets the item's method when no url nor options is specified sets the item's url to nil when an :highlights_on option is given sets the item's highlights_on when there is a sub_navigation when no block is given and items are given sets the items on the subnav_container behaves like creating sub navigation container creates a sub navigation container with a level+1 and no items are given doesn't create a new ItemContainer when a block is given calls the block behaves like creating sub navigation container creates a sub navigation container with a level+1 when no :highlights_on option is given sets the item's highlights_on to nil when a url is given and it is a proc sets the item's url accordingly and it is a string sets the item's url accordingly and it is nil sets the item's url accordingly #name when no option is given and the name_generator uses only the item itself uses the default name_generator and the name_generator uses only the name uses the default name_generator when a block is given returns the item's name that is defined in the block when the :apply_generator is false returns the item's name #selected_class when the item is selected returns the default selected_class and selected_class is defined in the context returns the context's selected_class when the item is not selected returns nil SimpleNavigation::Helpers #active_navigation_item_name when an item is selected and it's a primary item returns an empty string returns the selected item's name for level: 1 returns an empty string for level: :all returns an empty string for level: 2 and it's a sub navigation item returns the selected item's name for level: :all returns the selected item's name returns the selected item's parent name for level: 1 returns the selected item's name for level: 2 when no item is selected returns an empty string for level: 2 returns an empty string for level: :all returns an empty string for no parameters returns an empty string for level: 1 #render_navigation loads the :default configuration doesn't set the items directly evaluates the configuration on every request looks up the active_item_container based on the level when active_item_container is set calls render on the active_item_container when the :items option is specified sets the items directly when the :level option is set and its value is 1 calls render on the primary navigation and its value isn't a valid level WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/helpers_spec.rb:383:in `block (5 levels) in '. raises an exception and its value is 2 and the active_item_container isn't set doesn't raise an exception and the active_item_container is set calls render on the active item_container finds the selected sub navigation for the specified level when the :context option is specified loads the configuration for the specified context when a block is given calls the block passing it an item container when no primary configuration is defined WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/helpers_spec.rb:411:in `block (4 levels) in '. raises an exception when the :levels option is set treats it like the :level option #active_navigation_item when no item is selected returns nil for level: :all returns nil for level: 2 returns nil for no parameters returns nil for level: 1 when an item is selected and it's a sub navigation item returns the selected item's parent name for level: 1 returns the selected item's name for level: 2 returns the selected item's name for level: :all returns the selected item's name for no parameters and it's a primary item returns nil for level: 2 returns nil for level: :all returns nil for no parameters returns the selected item's name for level: 1 #active_navigation_item_container when no item is selected returns nil for level: 2 behaves like returning items container returns the primary navigation for level: 1 returns the primary navigation level: :all returns the primary navigation for no parameters when an item is selected and it's a primary item returns the invoices items container for level: 2 behaves like returning items container returns the primary navigation for no parameters returns the primary navigation for level: 1 returns the primary navigation level: :all and it's a sub navigation item returns the invoices items container for level: 2 behaves like returning items container returns the primary navigation level: :all returns the primary navigation for no parameters returns the primary navigation for level: 1 #active_navigation_item_key when no item is selected returns nil for level: :all returns nil for level: 1 returns nil for level: 2 returns nil for no parameters returns nil when an item is selected and it's a sub navigation item returns the selected item's name returns the selected item's name for level: :all returns the selected item's name for level: 2 returns the selected item's parent name for level: 1 and it's a primary item returns nil for level: :all returns the selected item's name for level: 1 returns nil for no parameters returns nil for level: 2 SimpleNavigation::Renderer::List #render sets the right html id on the rendered 'ul' tag renders an 'ul' tag for the navigation sets the right html classes on the rendered 'ul' tag when an item has no specified id renders the item's 'li' tag with the item's stingified key as id when an item has a specified id renders the item's 'li' tag with the specified id when a sub navigation item is selected renders the parent items as selected renders the selected nested item's link as selected when an item is selected renders the item's 'li' tag with its id and selected classes renders the item's 'a' tag with the selected classes when the :ordered option is true sets the right html id on the rendered 'ol' tag sets the right html classes on the rendered 'ol' tag renders an 'ol' tag for the navigation when no item is selected renders each item as 'li' tag without any selected class renders each item as 'a' tag without any selected class SimpleNavigation::Renderer::Base delegates the :link_to method to adapter delegates the :content_tag method to adapter #options returns the renderer's options #consider_sub_navigation? when the item has no sub navigation returns false when the item has sub navigation and the renderer has a level set to :all returns false when the renderer's level is a Range and sub navigation's level is equal to range.max returns true and sub navigation's level is equal to range.min returns true and sub navigation's level is greater than range.max returns false when the renderer's level is a number returns false and the renderer has an unknown level returns false #level and the :level option isn't set returns :all and the :level option is set returns the specified level #render WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/renderer/base_spec.rb:35:in `block (3 levels) in '. raise an exception to indicate it's a subclass responsibility #render_sub_navigation_for renders the sub navigation passing it the options #skip_if_empty? when :options isn't set returns true when :options is set and the :skip_if_empty option is false returns true and the :skip_if_empty option is true returns true #expand_all? when :options is set and the :expand_all option is true returns true and the :expand_all option is false returns false when :options isn't set returns false #include_sub_navigation? when consider_sub_navigation? is true and expand_sub_navigation? is false returns false and expand_sub_navigation? is true returns true consider_sub_navigation? is false and expand_sub_navigation? is true returns false and expand_sub_navigation? is false returns false #initialize sets the renderer adapter to the SimpleNavigation one Rendering navigation Rendering basic navigation SimpleNavigation::ItemsProvider #items when provider is something else WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation/items_provider_spec.rb:39:in `block (4 levels) in '. raises an exception when provider is a symbol retrieves the items from the evaluation context provider is a collection retrieves the items by returning the provider when provider responds to :items retrieves the items from the provider object SimpleNavigation .active_item_container_for when level is an Integer considers the Integer to lookup the active container when level is :all returns the primary_navigation when level is :leaves returns the currently active leaf-container when level is something else WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation_spec.rb:153:in `block (4 levels) in '. raises an exception when level is a Range takes the min of the range to lookup the active container Regarding renderers registers the builtin renderers by default .register_renderer adds the specified renderer to the list of renderers .default_config_file_path returns the config file path according to :root setting .set_env sets the root sets the environment adds the default-config path to the list of config_file_paths .config returns the Configuration singleton instance .load_config when the config file for the context exists and environment is production loads the config file only for the first call when a context is provided stores the configuration in config_files for the given context when no context is provided stores the configuration in config_files for the default context and environment isn't production loads the config file for every call when the config file for the context doesn't exists WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /builddir/build/BUILD/simple-navigation-4.1.0/usr/share/gems/gems/simple-navigation-4.1.0/spec/simple_navigation_spec.rb:107:in `block (4 levels) in '. raises an exception config_file_path= overrides the config_file_paths .init_adapter_from sets the adapter to a new instance of adapter_class .load_adapter behaves like loading the right adapter when the context is padrino returns the padrino adapter behaves like loading the right adapter when the context is sinatra returns the sinatra adapter behaves like loading the right adapter when the context is rails returns the rails adapter SimpleNavigation::Renderer::Text #render when an item is selected renders the selected item's name when no item is selected renders an empty string when a sub navigation item is selected separates the items with a space and the :join_with option is set separates the items with the specified separator Finished in 0.68601 seconds (files took 1.34 seconds to load) 386 examples, 0 failures Randomized with seed 46751 + popd ~/build/BUILD/simple-navigation-4.1.0 + RPM_EC=0 ++ jobs -p + exit 0 Processing files: rubygem-simple-navigation-4.1.0-2.fc34.noarch Provides: rubygem(simple-navigation) = 4.1.0 rubygem-simple-navigation = 4.1.0-2.fc34 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ruby(rubygems) rubygem(activesupport) >= 2.3.2 Processing files: rubygem-simple-navigation-doc-4.1.0-2.fc34.noarch Provides: rubygem-simple-navigation-doc = 4.1.0-2.fc34 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rubygem-simple-navigation-4.1.0-2.fc34.x86_64 Wrote: /builddir/build/RPMS/rubygem-simple-navigation-4.1.0-2.fc34.noarch.rpm Wrote: /builddir/build/RPMS/rubygem-simple-navigation-doc-4.1.0-2.fc34.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.8zLvRw + umask 022 + cd /builddir/build/BUILD + cd simple-navigation-4.1.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rubygem-simple-navigation-4.1.0-2.fc34.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0