Skip to content

Commit c567919

Browse files
authored
Merge pull request #39 from hayat01sh1da/hayat01sh1da/revert/ruby/stop-managing-signature-files
[REVERT][ruby] Stop Managing Signature Files
2 parents 7ab1319 + 50398f6 commit c567919

6 files changed

Lines changed: 110 additions & 4 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,4 @@ jobs:
117117
- name: Steep
118118
working-directory: ./ruby
119119
run: |
120-
bundle exec rbs-inline --output sig/generated/ .
121120
bundle exec steep check

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
# Ruby
2-
ruby/sig/
3-
41
# Python
52
python/**/__pycache__/

ruby/sig/generated/main.rbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Generated from main.rb with RBS::Inline
2+
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Generated from src/application.rb with RBS::Inline
2+
3+
class Application
4+
class InvalidFilenameError < StandardError
5+
end
6+
7+
class InvalidOrderError < StandardError
8+
end
9+
10+
# @rbs dirname: String
11+
# @rbs filename: String
12+
# @rbs order: untyped
13+
# @rbs return: void
14+
def self.run: (?dirname: String, ?filename: String, ?order: untyped) -> void
15+
16+
# @rbs dirname: String
17+
# @rbs filename: String
18+
# @rbs order: untyped
19+
# ⚠️ `order` expects a class which can be converted to Symbol by `to_sym` method(e.g. String, Symbol).
20+
# ⚠️ Otherwise, it will raise an error when validating order.
21+
# @rbs return: void
22+
def initialize: (?dirname: String, ?filename: String, ?order: untyped) -> void
23+
24+
# @rbs return: String
25+
def validate_filename!: () -> String
26+
27+
# @rbs return: Symbol
28+
def validate_order!: () -> Symbol
29+
30+
# @rbs return: void
31+
def run: () -> void
32+
33+
private
34+
35+
attr_reader dirname: untyped
36+
37+
attr_reader filename: untyped
38+
39+
attr_reader filepath: untyped
40+
41+
attr_reader order: untyped
42+
43+
# @rbs return: Hash[String, untyped]?
44+
def json_data: () -> Hash[String, untyped]?
45+
46+
# @rbs return: Hash[String, untyped]?
47+
def converted_json_data_with_sorting: () -> Hash[String, untyped]?
48+
49+
# @rbs hash: Hash[String, untyped]
50+
# @rbs return: String
51+
def dump_converted_json_data_with_sorting: (?Hash[String, untyped] hash) -> String
52+
53+
# @rbs return: bool
54+
def test_env?: () -> bool
55+
56+
# @rbs message: String
57+
# @rbs return: void
58+
def output: (String message) -> void
59+
end
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Generated from test/application_test.rb with RBS::Inline
2+
3+
class ApplicationTest < Minitest::Test
4+
def setup: () -> untyped
5+
6+
def teardown: () -> untyped
7+
8+
def test_sort_json_data_by_asc: () -> untyped
9+
10+
def test_sort_json_data_by_desc: () -> untyped
11+
12+
def test_sort_json_data_with_no_filename: () -> untyped
13+
14+
def test_sort_json_data_with_invalid_order_type: () -> untyped
15+
16+
def test_sort_json_data_with_invalid_data_type_of_order: () -> untyped
17+
18+
private
19+
20+
attr_reader dirname: untyped
21+
22+
attr_reader filename: untyped
23+
24+
attr_reader filepath: untyped
25+
26+
def actual_json: () -> untyped
27+
28+
def json_data: () -> untyped
29+
30+
# Conf. https://7esl.com/english-names/
31+
def user_data: () -> untyped
32+
33+
def sorted_user_data_by_asc: () -> untyped
34+
35+
def sorted_user_data_by_desc: () -> untyped
36+
end
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Generated from test/helper/symbolize_helper.rb with RBS::Inline
2+
3+
module SymbolizeHelper
4+
# @rbs h: Hash[untyped, untyped]
5+
# @rbs return: Hash[untyped, untyped]
6+
def self.symbolize_recursive: (untyped hash, ?untyped hsh) -> Hash[untyped, untyped]
7+
8+
# @rbs return: untyped
9+
def self.transform: (untyped object) -> untyped
10+
11+
# @rbs return: Hash[Symbol, untyped]
12+
def deep_symbolize_keys: () -> Hash[Symbol, untyped]
13+
end

0 commit comments

Comments
 (0)