swagger-to-rbs 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/swagger2_rbs/cli.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddb76510d5a4e87aee8bb582481a21c80616fa83e58a6fc49e8c1b02e449a4a5
|
4
|
+
data.tar.gz: 3460975741e8aad8d93e42939ef77cd6b40ba63ac3febf946e8a3e0af388618d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c788888a133f558bfae8348f7d22012e401ce42f6cdac5ed5248b7a669e5dbde5b797145316a626a39a2fff667f283ec6d0b5f75e2d663f6e004540f804c7b6
|
7
|
+
data.tar.gz: ba69ff9e2377795ed266c9319254d94695d758d5795ff64d26fe81996f01ef595567b75787d413dcb8bf6177bb699fc09c1f408c4dd8d5bc2cc85c9a6142af45
|
data/lib/swagger2_rbs/cli.rb
CHANGED
@@ -19,7 +19,8 @@ module Swagger2Rbs
|
|
19
19
|
|
20
20
|
file_name = to_underscore(name)
|
21
21
|
File.write("#{file_name}.rb", ::Swagger2Rbs.generate(name, data.dup))
|
22
|
-
File.
|
22
|
+
Dir.mkdir('sig') unless File.exist?("sig")
|
23
|
+
File.write("sig/#{file_name}.rbs", ::Swagger2Rbs.generate_rbs(name, data.dup))
|
23
24
|
end
|
24
25
|
|
25
26
|
desc 'genearte-yaml', 'generate yaml file'
|