yard_to_rbs_inline 0.1.0 → 0.1.1
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/Rakefile +1 -0
- data/exe/yard-to-rbs-inline +3 -5
- data/lib/yard_to_rbs_inline/cli.rb +14 -2
- data/lib/yard_to_rbs_inline/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ecc73716bfcc2a940e6d360e85a334ce640d97cfcf47c8d9f9ef64f182e8a8a3
|
|
4
|
+
data.tar.gz: 992af7e460bd7456a16e718d79d7a993b6396a1b09a81a0aa64d20992e9959cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 02a11e36ce83ada391d9fcc937d2eb54e3c1cb292d2107a9c350f801b23892e65da5f1c027a9207cd480b36ad4e2770967b02f736d722b573e62cb4f7422acb9
|
|
7
|
+
data.tar.gz: 73a525cd918cf110c1e23a9b7b11cc8d1b58cb33849e6d80473727fd9d42600332a843a01cd1c06415a14876170d79d912c5fb9f266afdf62dd9d82bd10e183b
|
data/Rakefile
CHANGED
data/exe/yard-to-rbs-inline
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
|
|
3
|
-
if Dir.exist?(File.join(__dir__, "..", ".git"))
|
|
4
|
-
$LOAD_PATH.unshift(File.expand_path('../lib', __dir__))
|
|
5
|
-
end
|
|
3
|
+
$LOAD_PATH.unshift(File.expand_path("../lib", __dir__)) if Dir.exist?(File.join(__dir__, "..", ".git"))
|
|
6
4
|
|
|
7
|
-
require
|
|
8
|
-
YardToRbsInline::Cli.start(ARGV)
|
|
5
|
+
require "yard_to_rbs_inline"
|
|
6
|
+
exit(YardToRbsInline::Cli.start(ARGV))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# rbs_inline: enabled
|
|
2
2
|
|
|
3
|
-
require
|
|
3
|
+
require "optparse"
|
|
4
4
|
|
|
5
5
|
module YardToRbsInline
|
|
6
6
|
class Cli
|
|
@@ -8,12 +8,24 @@ module YardToRbsInline
|
|
|
8
8
|
opt = OptionParser.new
|
|
9
9
|
dry_run = false
|
|
10
10
|
|
|
11
|
-
opt.
|
|
11
|
+
opt.banner = <<~STRING
|
|
12
|
+
Usage: yard-to-rbs-inline [options] <files ...>
|
|
13
|
+
|
|
14
|
+
STRING
|
|
15
|
+
|
|
16
|
+
opt.on("-n", "--dry-run", "Dry run") { dry_run = true }
|
|
12
17
|
opt.parse!(argv)
|
|
13
18
|
|
|
19
|
+
if argv.empty?
|
|
20
|
+
warn opt.help
|
|
21
|
+
return 1
|
|
22
|
+
end
|
|
23
|
+
|
|
14
24
|
argv.each do |file|
|
|
15
25
|
Converter.convert(file, dry_run: dry_run)
|
|
16
26
|
end
|
|
27
|
+
|
|
28
|
+
0
|
|
17
29
|
end
|
|
18
30
|
end
|
|
19
31
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yard_to_rbs_inline
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tomoya Chiba
|
|
@@ -24,6 +24,20 @@ dependencies:
|
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: bump
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
27
41
|
description: Converter of yard to rbs-inline
|
|
28
42
|
email:
|
|
29
43
|
- tomo.asleep@gmail.com
|