senro_usecaser 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.
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/Steepfile ADDED
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Steepfile for SenroUsecaser
4
+
5
+ target :lib do
6
+ signature "sig/generated"
7
+ signature "sig/overrides.rbs"
8
+
9
+ check "lib"
10
+
11
+ # Standard library
12
+ library "time"
13
+ end
14
+
15
+ target :examples do
16
+ signature "sig/generated"
17
+ signature "sig/overrides.rbs"
18
+ signature "examples/sig"
19
+
20
+ check "examples"
21
+
22
+ # Standard library
23
+ library "time"
24
+ end
@@ -0,0 +1,16 @@
1
+ # RBS Generation for Examples
2
+
3
+ Examples の RBS ファイルは `examples/sig/` に配置されます(`sig/generated/examples/` ではありません)。
4
+
5
+ ## 生成コマンド
6
+
7
+ ```bash
8
+ # examples ディレクトリから実行する
9
+ cd examples && bundle exec rbs-inline --output=sig order_system.rb namespace_demo.rb
10
+ ```
11
+
12
+ ## 注意
13
+
14
+ - `examples` ディレクトリに移動してから実行すること
15
+ - プロジェクトルートから `examples/` を指定すると `examples/sig/examples/` にサブディレクトリが作られてしまう
16
+ - 生成された RBS は `examples/sig/` 配下に出力される