simple-navigation 4.4.1 → 4.5.0

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.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +84 -0
  3. data/.rspec +1 -2
  4. data/.rubocop.yml +49 -0
  5. data/.rubocop_todo.yml +38 -0
  6. data/Appraisals +55 -0
  7. data/CHANGELOG.md +7 -0
  8. data/Gemfile +21 -0
  9. data/Guardfile +4 -2
  10. data/README.md +11 -23
  11. data/Rakefile +2 -27
  12. data/bin/_guard-core +16 -0
  13. data/bin/appraisal +16 -0
  14. data/bin/guard +16 -0
  15. data/bin/rake +16 -0
  16. data/bin/rspec +16 -0
  17. data/bin/rubocop +16 -0
  18. data/gemfiles/rails_6.1.gemfile +35 -0
  19. data/gemfiles/rails_7.0.gemfile +23 -0
  20. data/gemfiles/rails_7.1.gemfile +23 -0
  21. data/gemfiles/rails_7.2.gemfile +23 -0
  22. data/gemfiles/rails_8.0.gemfile +23 -0
  23. data/gemfiles/rails_8.1.gemfile +23 -0
  24. data/generators/navigation_config/navigation_config_generator.rb +2 -0
  25. data/generators/navigation_config/templates/config/navigation.rb +30 -26
  26. data/lib/generators/navigation_config/navigation_config_generator.rb +2 -0
  27. data/lib/simple-navigation.rb +3 -1
  28. data/lib/simple_navigation/adapters/base.rb +2 -0
  29. data/lib/simple_navigation/adapters/nanoc.rb +8 -3
  30. data/lib/simple_navigation/adapters/padrino.rb +3 -1
  31. data/lib/simple_navigation/adapters/rails.rb +12 -14
  32. data/lib/simple_navigation/adapters/sinatra.rb +4 -6
  33. data/lib/simple_navigation/config_file.rb +1 -1
  34. data/lib/simple_navigation/config_file_finder.rb +3 -3
  35. data/lib/simple_navigation/configuration.rb +5 -5
  36. data/lib/simple_navigation/helpers.rb +9 -11
  37. data/lib/simple_navigation/item.rb +26 -20
  38. data/lib/simple_navigation/item_adapter.rb +16 -5
  39. data/lib/simple_navigation/item_container.rb +13 -7
  40. data/lib/simple_navigation/items_provider.rb +6 -4
  41. data/lib/simple_navigation/railtie.rb +3 -1
  42. data/lib/simple_navigation/renderer/base.rb +5 -5
  43. data/lib/simple_navigation/renderer/breadcrumbs.rb +4 -3
  44. data/lib/simple_navigation/renderer/json.rb +1 -1
  45. data/lib/simple_navigation/renderer/links.rb +2 -0
  46. data/lib/simple_navigation/renderer/list.rb +5 -5
  47. data/lib/simple_navigation/renderer/text.rb +3 -1
  48. data/lib/simple_navigation/version.rb +3 -1
  49. data/lib/simple_navigation.rb +32 -24
  50. data/simple-navigation.gemspec +16 -27
  51. data/spec/fake_app/config/navigation.rb +4 -2
  52. data/spec/fake_app/rails_app.rb +5 -3
  53. data/spec/integration/rendering_navigation_spec.rb +7 -5
  54. data/spec/simple_navigation/adapters/nanoc_spec.rb +97 -0
  55. data/spec/simple_navigation/adapters/padrino_spec.rb +41 -22
  56. data/spec/simple_navigation/adapters/rails_spec.rb +199 -206
  57. data/spec/simple_navigation/adapters/sinatra_spec.rb +21 -5
  58. data/spec/simple_navigation/config_file_finder_spec.rb +32 -28
  59. data/spec/simple_navigation/config_file_spec.rb +14 -14
  60. data/spec/simple_navigation/configuration_spec.rb +128 -121
  61. data/spec/simple_navigation/helpers_spec.rb +282 -284
  62. data/spec/simple_navigation/item_adapter_spec.rb +109 -122
  63. data/spec/simple_navigation/item_container_spec.rb +407 -408
  64. data/spec/simple_navigation/item_spec.rb +333 -301
  65. data/spec/simple_navigation/items_provider_spec.rb +30 -27
  66. data/spec/simple_navigation/renderer/base_spec.rb +166 -168
  67. data/spec/simple_navigation/renderer/breadcrumbs_spec.rb +81 -83
  68. data/spec/simple_navigation/renderer/json_spec.rb +49 -56
  69. data/spec/simple_navigation/renderer/links_spec.rb +81 -83
  70. data/spec/simple_navigation/renderer/list_spec.rb +111 -91
  71. data/spec/simple_navigation/renderer/text_spec.rb +37 -39
  72. data/spec/simple_navigation_spec.rb +54 -47
  73. data/spec/spec_helper.rb +146 -53
  74. metadata +25 -164
  75. data/.travis.yml +0 -23
  76. data/gemfiles/rails-3-2-stable.gemfile +0 -11
  77. data/gemfiles/rails-4-1-stable.gemfile +0 -7
  78. data/gemfiles/rails-4-2-stable.gemfile +0 -7
  79. data/gemfiles/rails-5-2-stable.gemfile +0 -7
  80. data/gemfiles/rails-6-0-stable.gemfile +0 -9
  81. data/gemfiles/rails-6-1-stable.gemfile +0 -9
  82. data/init.rb +0 -1
  83. data/install.rb +0 -5
  84. data/lib/simple_navigation/adapters.rb +0 -10
  85. data/lib/simple_navigation/renderer.rb +0 -12
  86. data/spec/initializers/coveralls.rb +0 -3
  87. data/spec/initializers/have_css_matcher.rb +0 -19
  88. data/spec/initializers/memfs.rb +0 -7
  89. data/spec/initializers/rails.rb +0 -4
  90. data/spec/initializers/rspec.rb +0 -7
  91. data/uninstall.rb +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 928ca1b86e5df9d0d9e5d100b5490855a22d9eec7a9b6bf09e8d33b37a882574
4
- data.tar.gz: 55827efb254fa331d2467e87b27ae3673e04489e3790b89470346022bbe7a77e
3
+ metadata.gz: bc3636a155faa195d02700ac3030aeec21bfc6b1bd1e0122ac82f5b36251f8be
4
+ data.tar.gz: ee8802128edaa33f0fa3f11668987b8d451d83a460a2f6b2e2378a06082f1157
5
5
  SHA512:
6
- metadata.gz: ff9c68aa67a27d65cab0462b09893e3394e584f43f0c33be5abe40a6c80543ec0f4bf57fffa206d3ec9ba9a2ebc03a1750b19532f3e994652f5e2caeb715387a
7
- data.tar.gz: 848213275482447b8017c576887eb7c5c9061ce3e5d54c2d57f2f0a1323c7b2c382979352c59cee3e0d024edc15947a967604af2107dbea51ecaa09ad991d5fa
6
+ metadata.gz: 3f96b4ae869acf99dc8199c3ef2637f4d14a87b4a5fc48fa6e441dd875c40a5070aed9899a6d6454dd2a879fc0c6567fb0eab0b985f84bdccd814fa53dc703e5
7
+ data.tar.gz: ea40ab0d7b5329bc0b736a814d48fed5df044560449aeb2a2d33bec28ce8e2368565614470eb292c4c6657dcb34f172b3e2c338255e994933debf50a44fd6f7c
@@ -0,0 +1,84 @@
1
+ ---
2
+ name: CI
3
+
4
+ on:
5
+ push:
6
+ branches:
7
+ - '**'
8
+ pull_request:
9
+ branches:
10
+ - '**'
11
+ schedule:
12
+ - cron: '0 4 1 * *'
13
+
14
+ jobs:
15
+ rubocop:
16
+ runs-on: ubuntu-latest
17
+
18
+ steps:
19
+ - name: Checkout
20
+ uses: actions/checkout@v5
21
+
22
+ - name: Setup Ruby
23
+ uses: ruby/setup-ruby@v1
24
+ with:
25
+ ruby-version: '3.0'
26
+
27
+ - name: Bundler
28
+ run: bundle install
29
+
30
+ - name: Rubocop
31
+ run: bin/rubocop
32
+
33
+ rspec:
34
+ runs-on: ubuntu-latest
35
+
36
+ strategy:
37
+ fail-fast: false
38
+ matrix:
39
+ ruby:
40
+ - '4.0'
41
+ - '3.4'
42
+ - '3.3'
43
+ - '3.2'
44
+ - '3.1'
45
+ - '3.0'
46
+ rails:
47
+ - rails_8.1
48
+ - rails_8.0
49
+ - rails_7.2
50
+ - rails_7.1
51
+ - rails_7.0
52
+ - rails_6.1
53
+
54
+ exclude:
55
+ - ruby: '3.0'
56
+ rails: 'rails_7.2'
57
+ - ruby: '3.0'
58
+ rails: 'rails_8.0'
59
+ - ruby: '3.0'
60
+ rails: 'rails_8.1'
61
+
62
+ - ruby: '3.1'
63
+ rails: 'rails_8.0'
64
+ - ruby: '3.1'
65
+ rails: 'rails_8.1'
66
+
67
+ env:
68
+ # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
69
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.rails }}.gemfile
70
+ # Check for frozen strings
71
+ RUBYOPT: "--enable=frozen-string-literal --debug=frozen-string-literal"
72
+
73
+ steps:
74
+ - name: Checkout
75
+ uses: actions/checkout@v5
76
+
77
+ - name: Setup Ruby
78
+ uses: ruby/setup-ruby@v1
79
+ with:
80
+ ruby-version: ${{ matrix.ruby }}
81
+ bundler-cache: true
82
+
83
+ - name: RSpec
84
+ run: bin/rspec
data/.rspec CHANGED
@@ -1,3 +1,2 @@
1
- --color
2
- --format=documentation
3
1
  --require spec_helper
2
+ --warnings
data/.rubocop.yml ADDED
@@ -0,0 +1,49 @@
1
+ ---
2
+ require:
3
+ - rubocop-capybara
4
+ - rubocop-performance
5
+ - rubocop-rake
6
+ - rubocop-rspec
7
+
8
+ inherit_from:
9
+ - .rubocop_todo.yml
10
+
11
+ AllCops:
12
+ NewCops: enable
13
+ SuggestExtensions: true
14
+ TargetRubyVersion: 3.0
15
+ Exclude:
16
+ - bin/*
17
+ - gemfiles/*
18
+
19
+ Gemspec/RequireMFA:
20
+ Enabled: false
21
+
22
+ Style/Documentation:
23
+ Enabled: false
24
+
25
+ Naming/FileName:
26
+ Exclude:
27
+ - lib/simple-navigation.rb
28
+
29
+ ###########
30
+ # METRICS #
31
+ ###########
32
+
33
+ Metrics/ClassLength:
34
+ Exclude:
35
+ - spec/**/*
36
+
37
+ Metrics/MethodLength:
38
+ Exclude:
39
+ - spec/**/*
40
+
41
+ #########
42
+ # RSPEC #
43
+ #########
44
+
45
+ RSpec/NestedGroups:
46
+ Max: 6
47
+
48
+ RSpec/MultipleMemoizedHelpers:
49
+ Max: 8
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,38 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 100000`
3
+ # on 2026-06-25 14:47:51 UTC using RuboCop version 1.88.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 46
10
+ # Configuration parameters: .
11
+ # SupportedStyles: have_received, receive
12
+ RSpec/MessageSpies:
13
+ EnforcedStyle: receive
14
+
15
+ # Offense count: 24
16
+ RSpec/SubjectStub:
17
+ Exclude:
18
+ - 'spec/simple_navigation/item_container_spec.rb'
19
+ - 'spec/simple_navigation/renderer/base_spec.rb'
20
+ - 'spec/simple_navigation_spec.rb'
21
+
22
+ # Offense count: 69
23
+ # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
24
+ RSpec/VerifiedDoubles:
25
+ Exclude:
26
+ - 'spec/simple_navigation/adapters/nanoc_spec.rb'
27
+ - 'spec/simple_navigation/adapters/padrino_spec.rb'
28
+ - 'spec/simple_navigation/adapters/rails_spec.rb'
29
+ - 'spec/simple_navigation/adapters/sinatra_spec.rb'
30
+ - 'spec/simple_navigation/configuration_spec.rb'
31
+ - 'spec/simple_navigation/helpers_spec.rb'
32
+ - 'spec/simple_navigation/item_adapter_spec.rb'
33
+ - 'spec/simple_navigation/item_container_spec.rb'
34
+ - 'spec/simple_navigation/item_spec.rb'
35
+ - 'spec/simple_navigation/items_provider_spec.rb'
36
+ - 'spec/simple_navigation/renderer/base_spec.rb'
37
+ - 'spec/simple_navigation_spec.rb'
38
+ - 'spec/spec_helper.rb'
data/Appraisals ADDED
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ # To update files in gemfiles/ directory:
4
+ # rm gemfiles/*
5
+ # bin/appraisal generate
6
+
7
+ # To run tests:
8
+ # bin/appraisal rails_8.1 bundle install
9
+ # bin/appraisal rails_8.1 rake
10
+ # bin/appraisal rails_8.1 rspec
11
+
12
+ appraise 'rails_6.1' do
13
+ gem 'railties', '~> 6.1.0'
14
+ gem 'rspec-rails'
15
+ gem 'concurrent-ruby', '1.3.4'
16
+
17
+ # Fix:
18
+ # warning: drb was loaded from the standard library, but is not part of the default gems starting from Ruby 3.4.0.
19
+ # You can add drb to your Gemfile or gemspec to silence this warning.
20
+ install_if '-> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0") }' do
21
+ gem 'base64'
22
+ gem 'bigdecimal'
23
+ gem 'drb'
24
+ gem 'mutex_m'
25
+ end
26
+
27
+ install_if '-> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("4.0.0") }' do
28
+ gem 'benchmark'
29
+ end
30
+ end
31
+
32
+ appraise 'rails_7.0' do
33
+ gem 'railties', '~> 7.0.0'
34
+ gem 'rspec-rails'
35
+ end
36
+
37
+ appraise 'rails_7.1' do
38
+ gem 'railties', '~> 7.1.0'
39
+ gem 'rspec-rails'
40
+ end
41
+
42
+ appraise 'rails_7.2' do
43
+ gem 'railties', '~> 7.2.0'
44
+ gem 'rspec-rails'
45
+ end
46
+
47
+ appraise 'rails_8.0' do
48
+ gem 'railties', '~> 8.0.0'
49
+ gem 'rspec-rails'
50
+ end
51
+
52
+ appraise 'rails_8.1' do
53
+ gem 'railties', '~> 8.1.0'
54
+ gem 'rspec-rails'
55
+ end
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.5.0
4
+
5
+ * Add `aria-current=page` attribute to selected link. Credits to oneiros.
6
+ * Fix most of the rubocop todos.
7
+ * Increase coverage.
8
+ * Update some dependencies.
9
+
3
10
  ## 4.4.1
4
11
 
5
12
  * Removes the link to the online demo from the README. Credits to tosbourn.
data/Gemfile CHANGED
@@ -1,3 +1,24 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  gemspec
6
+
7
+ # Dev libs
8
+ gem 'appraisal', git: 'https://github.com/thoughtbot/appraisal.git'
9
+ gem 'capybara'
10
+ gem 'memfs', git: 'https://github.com/simonc/memfs.git'
11
+ gem 'rake'
12
+ gem 'rdoc'
13
+ gem 'rspec'
14
+ gem 'simplecov'
15
+ gem 'tzinfo'
16
+ gem 'warning'
17
+
18
+ # Dev tools / linter
19
+ gem 'guard-rspec', require: false
20
+ gem 'rubocop', require: false
21
+ gem 'rubocop-capybara', require: false
22
+ gem 'rubocop-performance', require: false
23
+ gem 'rubocop-rake', require: false
24
+ gem 'rubocop-rspec', require: false
data/Guardfile CHANGED
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  guard :rspec, all_after_pass: true, failed_mode: :none do
2
4
  watch(%r{^spec/.+_spec\.rb$})
3
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
5
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
4
6
  watch(%r{^spec/fake_app/.+\.rb$}) { 'spec/integration' }
5
7
 
6
- watch('spec/spec_helper.rb') { 'spec' }
8
+ watch('spec/spec_helper.rb') { 'spec' }
7
9
  end
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # Simple Navigation
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/simple-navigation.png)](http://badge.fury.io/rb/simple-navigation)
4
- [![Build Status](https://secure.travis-ci.org/codeplant/simple-navigation.png?branch=master)](http://travis-ci.org/codeplant/simple-navigation)
5
- [![Code Climate](https://codeclimate.com/github/codeplant/simple-navigation.png)](https://codeclimate.com/github/codeplant/simple-navigation)
4
+ [![Build Status](https://github.com/codeplant/simple-navigation/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/codeplant/simple-navigation/actions/workflows/ci.yml)
6
5
  [![Coverage Status](https://coveralls.io/repos/codeplant/simple-navigation/badge.png)](https://coveralls.io/r/codeplant/simple-navigation)
7
6
 
8
7
  Simple Navigation is a ruby library for creating navigations (with multiple levels) for your Rails, Sinatra or Padrino applications. It runs with all ruby versions (including ruby 2.x).
@@ -31,30 +30,19 @@ Fork, fix, then send a Pull Request.
31
30
 
32
31
  To run the test suite locally against all supported frameworks:
33
32
 
34
- % bundle install
35
- % rake spec:all
33
+ ```sh
34
+ bundle install
35
+ bin/appraisal bundle install
36
+ bin/appraisal rspec
37
+ bin/appraisal rspec ./spec/requests/users_spec.rb
38
+ ```
36
39
 
37
40
  To target the test suite against one framework:
38
41
 
39
- % rake spec:rails-4-2-stable
40
-
41
- You can find a list of supported spec tasks by running rake -T. You may also find it useful to run a specific test for a specific framework. To do so, you'll have to first make sure you have bundled everything for that configuration, then you can run the specific test:
42
-
43
- % BUNDLE_GEMFILE='gemfiles/rails-4-2-stable.gemfile' bundle install -j 4
44
- % BUNDLE_GEMFILE='gemfiles/rails-4-2-stable.gemfile' bundle exec rspec ./spec/requests/users_spec.rb
45
-
46
- ### Rake and Bundler
47
-
48
- If you use a shell plugin (like oh-my-zsh:bundler) that auto-prefixes commands with `bundle exec` using the `rake` command will fail.
49
-
50
- Get the original command with `type -a rake`:
51
-
52
- % type -a rake
53
- rake is an alias for bundled_rake
54
- rake is /Users/username/.rubies/ruby-2.2.3/bin/rake
55
- rake is /usr/bin/rake
56
-
57
- In this situation `/Users/username/.rubies/ruby-2.2.3/bin/rake` is the command you should use.
42
+ ```sh
43
+ bin/appraisal rails_8.1 rspec
44
+ bin/appraisal rails_8.1 rspec ./spec/requests/users_spec.rb
45
+ ```
58
46
 
59
47
  ## License
60
48
 
data/Rakefile CHANGED
@@ -1,37 +1,12 @@
1
- require 'bundler'
2
- Bundler::GemHelper.install_tasks
1
+ # frozen_string_literal: true
3
2
 
4
- require 'rspec/core'
3
+ require 'bundler/gem_tasks'
5
4
  require 'rspec/core/rake_task'
6
-
7
5
  require 'rdoc/task'
8
6
 
9
7
  RSpec::Core::RakeTask.new(:spec)
10
-
11
8
  task default: 'spec'
12
9
 
13
- namespace :spec do
14
- mappers = %w[
15
- rails-3-2-stable
16
- rails-4-1-stable
17
- rails-4-2-stable
18
- rails-5-2-stable
19
- rails-6-0-stable
20
- rails-6-1-stable
21
- ]
22
-
23
- mappers.each do |gemfile|
24
- desc "Run Tests against #{gemfile}"
25
- task gemfile do
26
- sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle -j 4 --quiet"
27
- sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake -t spec"
28
- end
29
- end
30
-
31
- desc 'Run Tests against all ORMs'
32
- task all: mappers
33
- end
34
-
35
10
  RDoc::Task.new do |rdoc|
36
11
  rdoc.rdoc_dir = 'rdoc'
37
12
  rdoc.title = 'SimpleNavigation'
data/bin/_guard-core ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application '_guard-core' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ require "rubygems"
14
+ require "bundler/setup"
15
+
16
+ load Gem.bin_path("guard", "_guard-core")
data/bin/appraisal ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'appraisal' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ require "rubygems"
14
+ require "bundler/setup"
15
+
16
+ load Gem.bin_path("appraisal", "appraisal")
data/bin/guard ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'guard' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ require "rubygems"
14
+ require "bundler/setup"
15
+
16
+ load Gem.bin_path("guard", "guard")
data/bin/rake ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rake' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ require "rubygems"
14
+ require "bundler/setup"
15
+
16
+ load Gem.bin_path("rake", "rake")
data/bin/rspec ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rspec' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ require "rubygems"
14
+ require "bundler/setup"
15
+
16
+ load Gem.bin_path("rspec-core", "rspec")
data/bin/rubocop ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rubocop' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ require "rubygems"
14
+ require "bundler/setup"
15
+
16
+ load Gem.bin_path("rubocop", "rubocop")
@@ -0,0 +1,35 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
6
+ gem "capybara"
7
+ gem "memfs", git: "https://github.com/simonc/memfs.git"
8
+ gem "rake"
9
+ gem "rdoc"
10
+ gem "rspec"
11
+ gem "simplecov"
12
+ gem "tzinfo"
13
+ gem "warning"
14
+ gem "guard-rspec", require: false
15
+ gem "rubocop", require: false
16
+ gem "rubocop-capybara", require: false
17
+ gem "rubocop-performance", require: false
18
+ gem "rubocop-rake", require: false
19
+ gem "rubocop-rspec", require: false
20
+ gem "railties", "~> 6.1.0"
21
+ gem "rspec-rails"
22
+ gem "concurrent-ruby", "1.3.4"
23
+
24
+ install_if -> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0") } do
25
+ gem "base64"
26
+ gem "bigdecimal"
27
+ gem "drb"
28
+ gem "mutex_m"
29
+ end
30
+
31
+ install_if -> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("4.0.0") } do
32
+ gem "benchmark"
33
+ end
34
+
35
+ gemspec path: "../"
@@ -0,0 +1,23 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
6
+ gem "capybara"
7
+ gem "memfs", git: "https://github.com/simonc/memfs.git"
8
+ gem "rake"
9
+ gem "rdoc"
10
+ gem "rspec"
11
+ gem "simplecov"
12
+ gem "tzinfo"
13
+ gem "warning"
14
+ gem "guard-rspec", require: false
15
+ gem "rubocop", require: false
16
+ gem "rubocop-capybara", require: false
17
+ gem "rubocop-performance", require: false
18
+ gem "rubocop-rake", require: false
19
+ gem "rubocop-rspec", require: false
20
+ gem "railties", "~> 7.0.0"
21
+ gem "rspec-rails"
22
+
23
+ gemspec path: "../"
@@ -0,0 +1,23 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
6
+ gem "capybara"
7
+ gem "memfs", git: "https://github.com/simonc/memfs.git"
8
+ gem "rake"
9
+ gem "rdoc"
10
+ gem "rspec"
11
+ gem "simplecov"
12
+ gem "tzinfo"
13
+ gem "warning"
14
+ gem "guard-rspec", require: false
15
+ gem "rubocop", require: false
16
+ gem "rubocop-capybara", require: false
17
+ gem "rubocop-performance", require: false
18
+ gem "rubocop-rake", require: false
19
+ gem "rubocop-rspec", require: false
20
+ gem "railties", "~> 7.1.0"
21
+ gem "rspec-rails"
22
+
23
+ gemspec path: "../"
@@ -0,0 +1,23 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
6
+ gem "capybara"
7
+ gem "memfs", git: "https://github.com/simonc/memfs.git"
8
+ gem "rake"
9
+ gem "rdoc"
10
+ gem "rspec"
11
+ gem "simplecov"
12
+ gem "tzinfo"
13
+ gem "warning"
14
+ gem "guard-rspec", require: false
15
+ gem "rubocop", require: false
16
+ gem "rubocop-capybara", require: false
17
+ gem "rubocop-performance", require: false
18
+ gem "rubocop-rake", require: false
19
+ gem "rubocop-rspec", require: false
20
+ gem "railties", "~> 7.2.0"
21
+ gem "rspec-rails"
22
+
23
+ gemspec path: "../"
@@ -0,0 +1,23 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
6
+ gem "capybara"
7
+ gem "memfs", git: "https://github.com/simonc/memfs.git"
8
+ gem "rake"
9
+ gem "rdoc"
10
+ gem "rspec"
11
+ gem "simplecov"
12
+ gem "tzinfo"
13
+ gem "warning"
14
+ gem "guard-rspec", require: false
15
+ gem "rubocop", require: false
16
+ gem "rubocop-capybara", require: false
17
+ gem "rubocop-performance", require: false
18
+ gem "rubocop-rake", require: false
19
+ gem "rubocop-rspec", require: false
20
+ gem "railties", "~> 8.0.0"
21
+ gem "rspec-rails"
22
+
23
+ gemspec path: "../"
@@ -0,0 +1,23 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
6
+ gem "capybara"
7
+ gem "memfs", git: "https://github.com/simonc/memfs.git"
8
+ gem "rake"
9
+ gem "rdoc"
10
+ gem "rspec"
11
+ gem "simplecov"
12
+ gem "tzinfo"
13
+ gem "warning"
14
+ gem "guard-rspec", require: false
15
+ gem "rubocop", require: false
16
+ gem "rubocop-capybara", require: false
17
+ gem "rubocop-performance", require: false
18
+ gem "rubocop-rake", require: false
19
+ gem "rubocop-rspec", require: false
20
+ gem "railties", "~> 8.1.0"
21
+ gem "rspec-rails"
22
+
23
+ gemspec path: "../"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class NavigationConfigGenerator < Rails::Generator::Base
2
4
  def manifest
3
5
  record do |m|