rails-openapi-gen 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/lib/{rails_openapi_gen → rails-openapi-gen}/tasks/openapi.rake +3 -3
- data/lib/{rails_openapi_gen.rb → rails-openapi-gen.rb} +9 -9
- data/rails-openapi-gen.gemspec +1 -1
- metadata +22 -22
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/configuration.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/engine.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/generators/yaml_generator.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/importer.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/comment_parser.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/comment_parsers/attribute_parser.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/comment_parsers/base_attribute_parser.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/comment_parsers/body_parser.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/comment_parsers/conditional_parser.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/comment_parsers/operation_parser.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/comment_parsers/param_parser.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/comment_parsers/query_parser.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/controller_parser.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/jbuilder_parser.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/routes_parser.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/template_processors/jbuilder_template_processor.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/template_processors/response_template_processor.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/railtie.rb +0 -0
- /data/lib/{rails_openapi_gen → rails-openapi-gen}/version.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 862b4bda485ef4f20970eb00a11b6d9c7c52215b9013a4d5596fc2101914d48b
|
4
|
+
data.tar.gz: 9f34b642c0ce919ac0384e6ffdc9c0cfa6073f4ab33c827f599db0bcdbed597b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b1a0e43790fd0094a4831b0abb69c3646f849bcebc378329b0d156f248f9a393f1066f5d7ebb2a39b77247d666ab07df82e892537fe707a23072176e6b913f0
|
7
|
+
data.tar.gz: e9510642fbb5a8a37da2864778ea926bd1c0317b33700aa9299ce9ebfbe495a6443e8a61e0e265277a21c8efdc61669fd64f4a2231d8234739844c0b249c6022
|
@@ -3,19 +3,19 @@
|
|
3
3
|
namespace :openapi do
|
4
4
|
desc "Generate OpenAPI specification from Rails application"
|
5
5
|
task generate: :environment do
|
6
|
-
require "
|
6
|
+
require "rails-openapi-gen"
|
7
7
|
RailsOpenapiGen.generate
|
8
8
|
end
|
9
9
|
|
10
10
|
desc "Check for missing @openapi comments and uncommitted changes"
|
11
11
|
task check: :environment do
|
12
|
-
require "
|
12
|
+
require "rails-openapi-gen"
|
13
13
|
RailsOpenapiGen.check
|
14
14
|
end
|
15
15
|
|
16
16
|
desc "Import OpenAPI specification and add comments to Jbuilder templates"
|
17
17
|
task :import, [:openapi_file] => :environment do |_task, args|
|
18
|
-
require "
|
18
|
+
require "rails-openapi-gen"
|
19
19
|
|
20
20
|
openapi_file = args[:openapi_file]
|
21
21
|
|
@@ -1,23 +1,23 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "
|
4
|
-
require "
|
5
|
-
require "
|
6
|
-
require "
|
7
|
-
require "
|
3
|
+
require "rails-openapi-gen/version"
|
4
|
+
require "rails-openapi-gen/configuration"
|
5
|
+
require "rails-openapi-gen/parsers/comment_parser"
|
6
|
+
require "rails-openapi-gen/generators/yaml_generator"
|
7
|
+
require "rails-openapi-gen/importer"
|
8
8
|
|
9
9
|
# Rails integration is handled by Engine
|
10
10
|
|
11
11
|
# Load Rails Engine if Rails is available
|
12
12
|
if defined?(Rails::Engine)
|
13
|
-
require "
|
13
|
+
require "rails-openapi-gen/engine"
|
14
14
|
|
15
15
|
# Only load parser-dependent components if parser gem is available
|
16
16
|
begin
|
17
17
|
require "parser/current"
|
18
|
-
require "
|
19
|
-
require "
|
20
|
-
require "
|
18
|
+
require "rails-openapi-gen/parsers/routes_parser"
|
19
|
+
require "rails-openapi-gen/parsers/controller_parser"
|
20
|
+
require "rails-openapi-gen/parsers/jbuilder_parser"
|
21
21
|
rescue LoadError
|
22
22
|
# parser gem not available, skip these components
|
23
23
|
end
|
data/rails-openapi-gen.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-openapi-gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- myzkey
|
@@ -104,27 +104,27 @@ extra_rdoc_files: []
|
|
104
104
|
files:
|
105
105
|
- CLAUDE.md
|
106
106
|
- README.md
|
107
|
-
- lib/
|
108
|
-
- lib/
|
109
|
-
- lib/
|
110
|
-
- lib/
|
111
|
-
- lib/
|
112
|
-
- lib/
|
113
|
-
- lib/
|
114
|
-
- lib/
|
115
|
-
- lib/
|
116
|
-
- lib/
|
117
|
-
- lib/
|
118
|
-
- lib/
|
119
|
-
- lib/
|
120
|
-
- lib/
|
121
|
-
- lib/
|
122
|
-
- lib/
|
123
|
-
- lib/
|
124
|
-
- lib/
|
125
|
-
- lib/
|
126
|
-
- lib/
|
127
|
-
- lib/
|
107
|
+
- lib/rails-openapi-gen.rb
|
108
|
+
- lib/rails-openapi-gen/configuration.rb
|
109
|
+
- lib/rails-openapi-gen/engine.rb
|
110
|
+
- lib/rails-openapi-gen/generators/yaml_generator.rb
|
111
|
+
- lib/rails-openapi-gen/importer.rb
|
112
|
+
- lib/rails-openapi-gen/parsers/comment_parser.rb
|
113
|
+
- lib/rails-openapi-gen/parsers/comment_parsers/attribute_parser.rb
|
114
|
+
- lib/rails-openapi-gen/parsers/comment_parsers/base_attribute_parser.rb
|
115
|
+
- lib/rails-openapi-gen/parsers/comment_parsers/body_parser.rb
|
116
|
+
- lib/rails-openapi-gen/parsers/comment_parsers/conditional_parser.rb
|
117
|
+
- lib/rails-openapi-gen/parsers/comment_parsers/operation_parser.rb
|
118
|
+
- lib/rails-openapi-gen/parsers/comment_parsers/param_parser.rb
|
119
|
+
- lib/rails-openapi-gen/parsers/comment_parsers/query_parser.rb
|
120
|
+
- lib/rails-openapi-gen/parsers/controller_parser.rb
|
121
|
+
- lib/rails-openapi-gen/parsers/jbuilder_parser.rb
|
122
|
+
- lib/rails-openapi-gen/parsers/routes_parser.rb
|
123
|
+
- lib/rails-openapi-gen/parsers/template_processors/jbuilder_template_processor.rb
|
124
|
+
- lib/rails-openapi-gen/parsers/template_processors/response_template_processor.rb
|
125
|
+
- lib/rails-openapi-gen/railtie.rb
|
126
|
+
- lib/rails-openapi-gen/tasks/openapi.rake
|
127
|
+
- lib/rails-openapi-gen/version.rb
|
128
128
|
- lib/tasks/openapi_import.rake
|
129
129
|
- rails-openapi-gen.gemspec
|
130
130
|
homepage: https://github.com/myzkey/rails-openapi-gen
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/comment_parsers/attribute_parser.rb
RENAMED
File without changes
|
/data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/comment_parsers/base_attribute_parser.rb
RENAMED
File without changes
|
File without changes
|
/data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/comment_parsers/conditional_parser.rb
RENAMED
File without changes
|
/data/lib/{rails_openapi_gen → rails-openapi-gen}/parsers/comment_parsers/operation_parser.rb
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|