rails-autodoc 0.1.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 (81) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/ci.yml +63 -0
  3. data/.gitignore +16 -0
  4. data/.rspec +2 -0
  5. data/.rubocop.yml +81 -0
  6. data/.yardopts +3 -0
  7. data/Appraisals +26 -0
  8. data/CHANGELOG.md +20 -0
  9. data/CONTRIBUTING.md +54 -0
  10. data/Gemfile +10 -0
  11. data/Gemfile.lock +298 -0
  12. data/LICENSE.txt +21 -0
  13. data/README.md +111 -0
  14. data/Rakefile +26 -0
  15. data/app/controllers/rails_autodoc/spec_controller.rb +52 -0
  16. data/config/routes.rb +6 -0
  17. data/docs/annotation-dsl.md +56 -0
  18. data/docs/architecture.md +37 -0
  19. data/docs/ci-integration.md +32 -0
  20. data/docs/configuration.md +48 -0
  21. data/docs/faq.md +29 -0
  22. data/docs/getting-started.md +54 -0
  23. data/docs/index.md +21 -0
  24. data/docs/inference-rules.md +74 -0
  25. data/docs/limitations.md +34 -0
  26. data/docs/migration-from-rswag.md +42 -0
  27. data/docs/serializer-support.md +25 -0
  28. data/lib/generators/rails_autodoc/install_generator.rb +34 -0
  29. data/lib/generators/rails_autodoc/templates/autodoc-verify.yml +19 -0
  30. data/lib/generators/rails_autodoc/templates/initializer.rb +20 -0
  31. data/lib/rails_autodoc/ast_traversal.rb +74 -0
  32. data/lib/rails_autodoc/configuration.rb +45 -0
  33. data/lib/rails_autodoc/dsl/controller_extensions.rb +65 -0
  34. data/lib/rails_autodoc/engine.rb +13 -0
  35. data/lib/rails_autodoc/generator.rb +54 -0
  36. data/lib/rails_autodoc/openapi_spec_builder.rb +334 -0
  37. data/lib/rails_autodoc/railtie.rb +25 -0
  38. data/lib/rails_autodoc/registry.rb +71 -0
  39. data/lib/rails_autodoc/response_inferencer.rb +158 -0
  40. data/lib/rails_autodoc/route_inspector.rb +139 -0
  41. data/lib/rails_autodoc/schema_mapper.rb +142 -0
  42. data/lib/rails_autodoc/serializers/active_model_serializer.rb +27 -0
  43. data/lib/rails_autodoc/serializers/alba.rb +39 -0
  44. data/lib/rails_autodoc/serializers/base.rb +19 -0
  45. data/lib/rails_autodoc/serializers/blueprinter.rb +27 -0
  46. data/lib/rails_autodoc/serializers/registry.rb +29 -0
  47. data/lib/rails_autodoc/strong_params_parser.rb +188 -0
  48. data/lib/rails_autodoc/tasks/autodoc.rake +26 -0
  49. data/lib/rails_autodoc/version.rb +5 -0
  50. data/lib/rails_autodoc.rb +47 -0
  51. data/mkdocs.yml +16 -0
  52. data/rails-autodoc.gemspec +61 -0
  53. data/spec/combustion/config.ru +4 -0
  54. data/spec/dummy/app/assets/config/manifest.js +1 -0
  55. data/spec/dummy/app/controllers/api/v1/users_controller.rb +45 -0
  56. data/spec/dummy/app/models/user.rb +5 -0
  57. data/spec/dummy/config/application.rb +14 -0
  58. data/spec/dummy/config/boot.rb +5 -0
  59. data/spec/dummy/config/database.yml +3 -0
  60. data/spec/dummy/config/environment.rb +5 -0
  61. data/spec/dummy/config/environments/test.rb +12 -0
  62. data/spec/dummy/config/initializers/rails_autodoc.rb +8 -0
  63. data/spec/dummy/config/initializers/sqlite3_boolean.rb +8 -0
  64. data/spec/dummy/config/routes.rb +11 -0
  65. data/spec/dummy/db/migrate/001_create_users.rb +14 -0
  66. data/spec/dummy/db/schema.rb +12 -0
  67. data/spec/rails_autodoc/configuration_spec.rb +34 -0
  68. data/spec/rails_autodoc/dsl_integration_spec.rb +77 -0
  69. data/spec/rails_autodoc/engine_spec.rb +26 -0
  70. data/spec/rails_autodoc/gem_spec.rb +27 -0
  71. data/spec/rails_autodoc/generator_spec.rb +39 -0
  72. data/spec/rails_autodoc/golden_spec.rb +67 -0
  73. data/spec/rails_autodoc/integration_spec.rb +114 -0
  74. data/spec/rails_autodoc/registry_spec.rb +26 -0
  75. data/spec/rails_autodoc/response_inferencer_spec.rb +26 -0
  76. data/spec/rails_autodoc/route_inspector_spec.rb +56 -0
  77. data/spec/rails_autodoc/schema_mapper_spec.rb +42 -0
  78. data/spec/rails_autodoc/serializers/registry_spec.rb +33 -0
  79. data/spec/rails_autodoc/strong_params_parser_spec.rb +41 -0
  80. data/spec/spec_helper.rb +43 -0
  81. metadata +320 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e4f22ef7135e62a30d860bcd3d2699faaf58761d939d5dfbcdc9178a7a966d72
4
+ data.tar.gz: 37dab719fd77a94c028996d8fdd3d825402ce0ddf783efa73bd920f0ee9ce974
5
+ SHA512:
6
+ metadata.gz: 88f4243ffe758b0b2a1d404b2e92bccae414287e2dfdb87d5689db0fa2ffddf2d0c6f6aa795f68eca74a2e09b122b87bd31a9a174cf14f104945f15dbbe798ed
7
+ data.tar.gz: 7804faf206a733d660eee91e8c3719e63767c963226c04c988d2d548ba96c17b67a6d5e48fc2560560a9abe4670a6acdd5b10813d4c1a6131129eda8f2bb6449
@@ -0,0 +1,63 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ matrix:
13
+ ruby: ["3.2", "3.3"]
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: ruby/setup-ruby@v1
17
+ with:
18
+ ruby-version: ${{ matrix.ruby }}
19
+ bundler-cache: true
20
+ bundler: "2.6.9"
21
+ - name: Run RuboCop
22
+ run: bundle exec rubocop
23
+ - name: Run specs
24
+ run: bundle exec rspec
25
+ - name: Verify generated OpenAPI spec
26
+ run: bundle exec rake autodoc:verify
27
+
28
+ appraisal:
29
+ runs-on: ubuntu-latest
30
+ strategy:
31
+ fail-fast: false
32
+ matrix:
33
+ include:
34
+ # Rails 5.2 is not compatible with Ruby 3.x (middleware keyword-arg breakage).
35
+ - ruby: "2.7"
36
+ appraisal: "rails-5-2"
37
+ bundler: "2.4.22"
38
+ - ruby: "3.2"
39
+ appraisal: "rails-6-1"
40
+ bundler: "2.6.9"
41
+ - ruby: "3.2"
42
+ appraisal: "rails-7-0"
43
+ bundler: "2.6.9"
44
+ - ruby: "3.2"
45
+ appraisal: "rails-7-1"
46
+ bundler: "2.6.9"
47
+ - ruby: "3.2"
48
+ appraisal: "rails-8-0"
49
+ bundler: "2.6.9"
50
+ steps:
51
+ - uses: actions/checkout@v4
52
+ - uses: ruby/setup-ruby@v1
53
+ with:
54
+ ruby-version: ${{ matrix.ruby }}
55
+ bundler: ${{ matrix.bundler }}
56
+ - name: Install root gems
57
+ run: bundle install
58
+ - name: Generate appraisal gemfiles
59
+ run: bundle exec appraisal generate
60
+ - name: Install appraisal gemfile
61
+ run: bundle exec appraisal ${{ matrix.appraisal }} bundle install
62
+ - name: Run appraisal specs
63
+ run: bundle exec appraisal ${{ matrix.appraisal }} rake spec
data/.gitignore ADDED
@@ -0,0 +1,16 @@
1
+ /.bundle/
2
+ /.yardoc/
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /gemfiles/.bundle/
7
+ /pkg/
8
+ /spec/dummy/log/
9
+ /spec/dummy/openapi/*.yaml
10
+ !/spec/dummy/openapi/.keep
11
+ /spec/dummy/tmp/
12
+ /spec/examples.txt
13
+ /tmp/
14
+ /vendor/bundle/
15
+ /.DS_Store
16
+ *.gem
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --require spec_helper
2
+ --format documentation
data/.rubocop.yml ADDED
@@ -0,0 +1,81 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.7
3
+ NewCops: enable
4
+ SuggestExtensions: false
5
+ Exclude:
6
+ - "spec/dummy/**/*"
7
+ - "vendor/**/*"
8
+
9
+ Style/Documentation:
10
+ Enabled: false
11
+
12
+ Style/StringLiterals:
13
+ EnforcedStyle: double_quotes
14
+
15
+ Style/OptionalBooleanParameter:
16
+ Exclude:
17
+ - "lib/rails_autodoc/dsl/controller_extensions.rb"
18
+ - "lib/rails_autodoc/registry.rb"
19
+
20
+ Gemspec/DevelopmentDependencies:
21
+ Enabled: false
22
+
23
+ Layout/EndOfLine:
24
+ Enabled: false
25
+
26
+ Layout/LineLength:
27
+ Max: 120
28
+ Exclude:
29
+ - "lib/rails_autodoc/tasks/autodoc.rake"
30
+
31
+ Lint/DuplicateBranch:
32
+ Exclude:
33
+ - "lib/**/*"
34
+
35
+ Naming/PredicateMethod:
36
+ Exclude:
37
+ - "lib/rails_autodoc/configuration.rb"
38
+ - "lib/rails_autodoc/generator.rb"
39
+
40
+ Metrics/BlockLength:
41
+ Exclude:
42
+ - "spec/**/*"
43
+ - "Appraisals"
44
+ - "rails-autodoc.gemspec"
45
+
46
+ Metrics/ClassLength:
47
+ Exclude:
48
+ - "lib/rails_autodoc/openapi_spec_builder.rb"
49
+ - "lib/rails_autodoc/strong_params_parser.rb"
50
+ - "lib/rails_autodoc/schema_mapper.rb"
51
+ - "lib/rails_autodoc/response_inferencer.rb"
52
+
53
+ Metrics/MethodLength:
54
+ Max: 30
55
+ Exclude:
56
+ - "lib/rails_autodoc/openapi_spec_builder.rb"
57
+
58
+ Metrics/ParameterLists:
59
+ Exclude:
60
+ - "lib/rails_autodoc/openapi_spec_builder.rb"
61
+ - "lib/rails_autodoc/route_inspector.rb"
62
+
63
+ Metrics/AbcSize:
64
+ Exclude:
65
+ - "lib/rails_autodoc/openapi_spec_builder.rb"
66
+ - "lib/rails_autodoc/strong_params_parser.rb"
67
+ - "lib/rails_autodoc/route_inspector.rb"
68
+
69
+ Metrics/CyclomaticComplexity:
70
+ Max: 14
71
+ Exclude:
72
+ - "lib/rails_autodoc/openapi_spec_builder.rb"
73
+ - "lib/rails_autodoc/response_inferencer.rb"
74
+ - "lib/rails_autodoc/strong_params_parser.rb"
75
+
76
+ Metrics/PerceivedComplexity:
77
+ Max: 18
78
+
79
+ Style/ClassVars:
80
+ Exclude:
81
+ - "app/controllers/rails_autodoc/spec_controller.rb"
data/.yardopts ADDED
@@ -0,0 +1,3 @@
1
+ --markup markdown
2
+ --files lib
3
+ --output docs/api
data/Appraisals ADDED
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ appraise "rails-5-2" do
4
+ gem "rails", "~> 5.2.8"
5
+ gem "sqlite3", "~> 1.4.4"
6
+ end
7
+
8
+ appraise "rails-6-1" do
9
+ gem "rails", "~> 6.1.7"
10
+ gem "sqlite3", "~> 1.4.4"
11
+ end
12
+
13
+ appraise "rails-7-0" do
14
+ gem "rails", "~> 7.0.8"
15
+ gem "sqlite3", "~> 1.6.9"
16
+ end
17
+
18
+ appraise "rails-7-1" do
19
+ gem "rails", "~> 7.1.5"
20
+ gem "sqlite3", "~> 1.6.9"
21
+ end
22
+
23
+ appraise "rails-8-0" do
24
+ gem "rails", "~> 8.0.0"
25
+ gem "sqlite3", ">= 2.1"
26
+ end
data/CHANGELOG.md ADDED
@@ -0,0 +1,20 @@
1
+ All notable changes to this project will be documented in this file.
2
+
3
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
4
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
+
6
+ ## [0.1.0] - 2026-05-24
7
+
8
+ ### Added
9
+
10
+ - Initial release of `rails-autodoc`
11
+ - Automatic OpenAPI 3.0.3 generation from Rails routes, strong params, and `db/schema.rb`
12
+ - AST-based `permit(...)` extraction for request body schemas
13
+ - Response inference from `render json:` and `head` calls
14
+ - Serializer adapters for Alba, Blueprinter, and ActiveModel::Serializer
15
+ - Optional `swagger_doc` annotation DSL for overrides
16
+ - Swagger UI engine mount at `/api-docs`
17
+ - Rake tasks: `autodoc:generate`, `autodoc:verify`, `autodoc:routes`
18
+ - Install generator: `rails generate rails_autodoc:install`
19
+ - Rails 5.2 through 8.x Appraisal test matrix
20
+ - Documentation site and contributor guides
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,54 @@
1
+ # Contributing to rails-autodoc
2
+
3
+ Thank you for contributing. This gem generates OpenAPI documentation from Rails conventions, so changes should preserve backward compatibility across Rails 5.2 through 8.x whenever possible.
4
+
5
+ ## Development setup
6
+
7
+ ```bash
8
+ git clone https://github.com/example/rails-autodoc.git
9
+ cd rails-autodoc
10
+ bundle install
11
+ bundle exec rspec
12
+ ```
13
+
14
+ ## Testing against multiple Rails versions
15
+
16
+ ```bash
17
+ bundle exec appraisal install
18
+ bundle exec appraisal rake spec
19
+ ```
20
+
21
+ The Combustion dummy app lives in `spec/dummy/`.
22
+
23
+ ## Adding AST fixture cases
24
+
25
+ 1. Add a controller snippet under `spec/fixtures/controllers/`
26
+ 2. Add expectations in `spec/rails_autodoc/strong_params_parser_spec.rb`
27
+ 3. If output changes globally, update golden files in `spec/fixtures/expected_specs/`
28
+
29
+ ## Adding a serializer adapter
30
+
31
+ 1. Create `lib/rails_autodoc/serializers/your_adapter.rb`
32
+ 2. Subclass `RailsAutodoc::Serializers::Base`
33
+ 3. Register it in `lib/rails_autodoc/serializers/registry.rb`
34
+ 4. Add unit tests under `spec/rails_autodoc/serializers/`
35
+
36
+ ## Code style
37
+
38
+ - Run `bundle exec rubocop` before opening a PR
39
+ - Keep public APIs documented with YARD comments
40
+ - Prefer small, focused classes over large monoliths
41
+
42
+ ## Documentation
43
+
44
+ - Update `README.md` for user-facing changes
45
+ - Update relevant pages under `docs/` for behavior or configuration changes
46
+ - Add entries to `CHANGELOG.md` under `[Unreleased]`
47
+
48
+ ## Pull request checklist
49
+
50
+ - [ ] Specs pass locally (`bundle exec rspec`)
51
+ - [ ] Appraisal matrix passes for affected Rails versions
52
+ - [ ] `bundle exec rake autodoc:verify` passes on the dummy app
53
+ - [ ] Documentation updated
54
+ - [ ] CHANGELOG updated
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gemspec
6
+
7
+ gem "rails", "~> 7.1"
8
+ gem "sqlite3", "~> 1.6.9"
9
+ # nokogiri 1.15.x does not support Ruby 3.3+ (CI matrix)
10
+ gem "nokogiri", ">= 1.16.8"
data/Gemfile.lock ADDED
@@ -0,0 +1,298 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rails-autodoc (0.1.0)
5
+ activesupport (>= 5.2, < 9)
6
+ parser (~> 3.3)
7
+ psych (>= 3.1)
8
+ railties (>= 5.2, < 9)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actioncable (7.1.6)
14
+ actionpack (= 7.1.6)
15
+ activesupport (= 7.1.6)
16
+ nio4r (~> 2.0)
17
+ websocket-driver (>= 0.6.1)
18
+ zeitwerk (~> 2.6)
19
+ actionmailbox (7.1.6)
20
+ actionpack (= 7.1.6)
21
+ activejob (= 7.1.6)
22
+ activerecord (= 7.1.6)
23
+ activestorage (= 7.1.6)
24
+ activesupport (= 7.1.6)
25
+ mail (>= 2.7.1)
26
+ net-imap
27
+ net-pop
28
+ net-smtp
29
+ actionmailer (7.1.6)
30
+ actionpack (= 7.1.6)
31
+ actionview (= 7.1.6)
32
+ activejob (= 7.1.6)
33
+ activesupport (= 7.1.6)
34
+ mail (~> 2.5, >= 2.5.4)
35
+ net-imap
36
+ net-pop
37
+ net-smtp
38
+ rails-dom-testing (~> 2.2)
39
+ actionpack (7.1.6)
40
+ actionview (= 7.1.6)
41
+ activesupport (= 7.1.6)
42
+ cgi
43
+ nokogiri (>= 1.8.5)
44
+ racc
45
+ rack (>= 2.2.4)
46
+ rack-session (>= 1.0.1)
47
+ rack-test (>= 0.6.3)
48
+ rails-dom-testing (~> 2.2)
49
+ rails-html-sanitizer (~> 1.6)
50
+ actiontext (7.1.6)
51
+ actionpack (= 7.1.6)
52
+ activerecord (= 7.1.6)
53
+ activestorage (= 7.1.6)
54
+ activesupport (= 7.1.6)
55
+ globalid (>= 0.6.0)
56
+ nokogiri (>= 1.8.5)
57
+ actionview (7.1.6)
58
+ activesupport (= 7.1.6)
59
+ builder (~> 3.1)
60
+ cgi
61
+ erubi (~> 1.11)
62
+ rails-dom-testing (~> 2.2)
63
+ rails-html-sanitizer (~> 1.6)
64
+ activejob (7.1.6)
65
+ activesupport (= 7.1.6)
66
+ globalid (>= 0.3.6)
67
+ activemodel (7.1.6)
68
+ activesupport (= 7.1.6)
69
+ activerecord (7.1.6)
70
+ activemodel (= 7.1.6)
71
+ activesupport (= 7.1.6)
72
+ timeout (>= 0.4.0)
73
+ activestorage (7.1.6)
74
+ actionpack (= 7.1.6)
75
+ activejob (= 7.1.6)
76
+ activerecord (= 7.1.6)
77
+ activesupport (= 7.1.6)
78
+ marcel (~> 1.0)
79
+ activesupport (7.1.6)
80
+ base64
81
+ benchmark (>= 0.3)
82
+ bigdecimal
83
+ concurrent-ruby (~> 1.0, >= 1.0.2)
84
+ connection_pool (>= 2.2.5)
85
+ drb
86
+ i18n (>= 1.6, < 2)
87
+ logger (>= 1.4.2)
88
+ minitest (>= 5.1)
89
+ mutex_m
90
+ securerandom (>= 0.3)
91
+ tzinfo (~> 2.0)
92
+ addressable (2.9.0)
93
+ public_suffix (>= 2.0.2, < 8.0)
94
+ appraisal (2.5.0)
95
+ bundler
96
+ rake
97
+ thor (>= 0.14.0)
98
+ ast (2.4.3)
99
+ base64 (0.3.0)
100
+ benchmark (0.5.0)
101
+ bigdecimal (4.1.2)
102
+ builder (3.3.0)
103
+ cgi (0.5.1)
104
+ combustion (1.5.0)
105
+ activesupport (>= 3.0.0)
106
+ railties (>= 3.0.0)
107
+ thor (>= 0.14.6)
108
+ concurrent-ruby (1.3.6)
109
+ connection_pool (2.5.5)
110
+ crack (1.0.1)
111
+ bigdecimal
112
+ rexml
113
+ crass (1.0.6)
114
+ date (3.5.1)
115
+ diff-lcs (1.6.2)
116
+ drb (2.2.3)
117
+ erb (4.0.4.1)
118
+ cgi (>= 0.3.3)
119
+ erubi (1.13.1)
120
+ globalid (1.3.0)
121
+ activesupport (>= 6.1)
122
+ hashdiff (1.2.1)
123
+ i18n (1.14.8)
124
+ concurrent-ruby (~> 1.0)
125
+ io-console (0.8.2)
126
+ irb (1.18.0)
127
+ pp (>= 0.6.0)
128
+ prism (>= 1.3.0)
129
+ rdoc (>= 4.0.0)
130
+ reline (>= 0.4.2)
131
+ json (2.19.5)
132
+ language_server-protocol (3.17.0.5)
133
+ lint_roller (1.1.0)
134
+ logger (1.7.0)
135
+ loofah (2.25.1)
136
+ crass (~> 1.0.2)
137
+ nokogiri (>= 1.12.0)
138
+ mail (2.9.0)
139
+ logger
140
+ mini_mime (>= 0.1.1)
141
+ net-imap
142
+ net-pop
143
+ net-smtp
144
+ marcel (1.2.1)
145
+ mini_mime (1.1.5)
146
+ mini_portile2 (2.8.9)
147
+ minitest (5.26.1)
148
+ mutex_m (0.3.0)
149
+ net-imap (0.4.24)
150
+ date
151
+ net-protocol
152
+ net-pop (0.1.2)
153
+ net-protocol
154
+ net-protocol (0.2.2)
155
+ timeout
156
+ net-smtp (0.5.1)
157
+ net-protocol
158
+ nio4r (2.7.5)
159
+ nokogiri (1.19.3)
160
+ mini_portile2 (~> 2.8.2)
161
+ racc (~> 1.4)
162
+ parallel (1.28.0)
163
+ parser (3.3.11.1)
164
+ ast (~> 2.4.1)
165
+ racc
166
+ pp (0.6.3)
167
+ prettyprint
168
+ prettyprint (0.2.0)
169
+ prism (1.9.0)
170
+ psych (5.3.1)
171
+ date
172
+ stringio
173
+ public_suffix (5.1.1)
174
+ racc (1.8.1)
175
+ rack (3.2.6)
176
+ rack-session (2.1.2)
177
+ base64 (>= 0.1.0)
178
+ rack (>= 3.0.0)
179
+ rack-test (2.2.0)
180
+ rack (>= 1.3)
181
+ rackup (2.3.1)
182
+ rack (>= 3)
183
+ rails (7.1.6)
184
+ actioncable (= 7.1.6)
185
+ actionmailbox (= 7.1.6)
186
+ actionmailer (= 7.1.6)
187
+ actionpack (= 7.1.6)
188
+ actiontext (= 7.1.6)
189
+ actionview (= 7.1.6)
190
+ activejob (= 7.1.6)
191
+ activemodel (= 7.1.6)
192
+ activerecord (= 7.1.6)
193
+ activestorage (= 7.1.6)
194
+ activesupport (= 7.1.6)
195
+ bundler (>= 1.15.0)
196
+ railties (= 7.1.6)
197
+ rails-dom-testing (2.3.0)
198
+ activesupport (>= 5.0.0)
199
+ minitest
200
+ nokogiri (>= 1.6)
201
+ rails-html-sanitizer (1.7.0)
202
+ loofah (~> 2.25)
203
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
204
+ railties (7.1.6)
205
+ actionpack (= 7.1.6)
206
+ activesupport (= 7.1.6)
207
+ cgi
208
+ irb
209
+ rackup (>= 1.0.0)
210
+ rake (>= 12.2)
211
+ thor (~> 1.0, >= 1.2.2)
212
+ tsort (>= 0.2)
213
+ zeitwerk (~> 2.6)
214
+ rainbow (3.1.1)
215
+ rake (13.4.2)
216
+ rdoc (7.2.0)
217
+ erb
218
+ psych (>= 4.0.0)
219
+ tsort
220
+ regexp_parser (2.12.0)
221
+ reline (0.6.3)
222
+ io-console (~> 0.5)
223
+ rexml (3.4.4)
224
+ rspec (3.13.2)
225
+ rspec-core (~> 3.13.0)
226
+ rspec-expectations (~> 3.13.0)
227
+ rspec-mocks (~> 3.13.0)
228
+ rspec-core (3.13.6)
229
+ rspec-support (~> 3.13.0)
230
+ rspec-expectations (3.13.5)
231
+ diff-lcs (>= 1.2.0, < 2.0)
232
+ rspec-support (~> 3.13.0)
233
+ rspec-mocks (3.13.8)
234
+ diff-lcs (>= 1.2.0, < 2.0)
235
+ rspec-support (~> 3.13.0)
236
+ rspec-rails (7.1.1)
237
+ actionpack (>= 7.0)
238
+ activesupport (>= 7.0)
239
+ railties (>= 7.0)
240
+ rspec-core (~> 3.13)
241
+ rspec-expectations (~> 3.13)
242
+ rspec-mocks (~> 3.13)
243
+ rspec-support (~> 3.13)
244
+ rspec-support (3.13.7)
245
+ rubocop (1.86.2)
246
+ json (~> 2.3)
247
+ language_server-protocol (~> 3.17.0.2)
248
+ lint_roller (~> 1.1.0)
249
+ parallel (>= 1.10)
250
+ parser (>= 3.3.0.2)
251
+ rainbow (>= 2.2.2, < 4.0)
252
+ regexp_parser (>= 2.9.3, < 3.0)
253
+ rubocop-ast (>= 1.49.0, < 2.0)
254
+ ruby-progressbar (~> 1.7)
255
+ unicode-display_width (>= 2.4.0, < 4.0)
256
+ rubocop-ast (1.49.1)
257
+ parser (>= 3.3.7.2)
258
+ prism (~> 1.7)
259
+ ruby-progressbar (1.13.0)
260
+ securerandom (0.3.2)
261
+ sqlite3 (1.6.9)
262
+ mini_portile2 (~> 2.8.0)
263
+ stringio (3.2.0)
264
+ thor (1.5.0)
265
+ timeout (0.6.1)
266
+ tsort (0.2.0)
267
+ tzinfo (2.0.6)
268
+ concurrent-ruby (~> 1.0)
269
+ unicode-display_width (3.2.0)
270
+ unicode-emoji (~> 4.1)
271
+ unicode-emoji (4.2.0)
272
+ webmock (3.26.2)
273
+ addressable (>= 2.8.0)
274
+ crack (>= 0.3.2)
275
+ hashdiff (>= 0.4.0, < 2.0.0)
276
+ websocket-driver (0.8.0)
277
+ base64
278
+ websocket-extensions (>= 0.1.0)
279
+ websocket-extensions (0.1.5)
280
+ zeitwerk (2.6.18)
281
+
282
+ PLATFORMS
283
+ ruby
284
+
285
+ DEPENDENCIES
286
+ appraisal
287
+ combustion (~> 1.4)
288
+ nokogiri (>= 1.16.8)
289
+ rails (~> 7.1)
290
+ rails-autodoc!
291
+ rspec (~> 3.12)
292
+ rspec-rails
293
+ rubocop (~> 1.60)
294
+ sqlite3 (~> 1.6.9)
295
+ webmock
296
+
297
+ BUNDLED WITH
298
+ 2.6.9
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Rails Autodoc Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.