-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
200 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,6 @@ | |
|
||
# rspec failure tracking | ||
.rspec_status | ||
|
||
# gem types | ||
.gem_rbs_collection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
target :lib do | ||
signature "sig" | ||
|
||
check "lib" | ||
repo_path ".gem_rbs_collection" | ||
library "hashie" | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
--- | ||
sources: | ||
- name: ruby/gem_rbs_collection | ||
remote: https://github.com/ruby/gem_rbs_collection.git | ||
revision: main | ||
repo_dir: gems | ||
path: ".gem_rbs_collection" | ||
gems: | ||
- name: hashie | ||
version: '5.0' | ||
source: | ||
type: git | ||
name: ruby/gem_rbs_collection | ||
revision: 0a45b6d56b0e1b089731f5eb007912a7c36be121 | ||
remote: https://github.com/ruby/gem_rbs_collection.git | ||
repo_dir: gems | ||
- name: activesupport | ||
version: '6.0' | ||
source: | ||
type: git | ||
name: ruby/gem_rbs_collection | ||
revision: 0a45b6d56b0e1b089731f5eb007912a7c36be121 | ||
remote: https://github.com/ruby/gem_rbs_collection.git | ||
repo_dir: gems | ||
- name: ast | ||
version: '2.4' | ||
source: | ||
type: git | ||
name: ruby/gem_rbs_collection | ||
revision: 0a45b6d56b0e1b089731f5eb007912a7c36be121 | ||
remote: https://github.com/ruby/gem_rbs_collection.git | ||
repo_dir: gems | ||
- name: csv | ||
version: '0' | ||
source: | ||
type: stdlib | ||
- name: fileutils | ||
version: '0' | ||
source: | ||
type: stdlib | ||
- name: i18n | ||
version: '1.10' | ||
source: | ||
type: git | ||
name: ruby/gem_rbs_collection | ||
revision: 0a45b6d56b0e1b089731f5eb007912a7c36be121 | ||
remote: https://github.com/ruby/gem_rbs_collection.git | ||
repo_dir: gems | ||
- name: ika3 | ||
version: 0.1.0 | ||
source: | ||
type: rubygems | ||
- name: json | ||
version: '0' | ||
source: | ||
type: stdlib | ||
- name: listen | ||
version: '3.2' | ||
source: | ||
type: git | ||
name: ruby/gem_rbs_collection | ||
revision: 0a45b6d56b0e1b089731f5eb007912a7c36be121 | ||
remote: https://github.com/ruby/gem_rbs_collection.git | ||
repo_dir: gems | ||
- name: logger | ||
version: '0' | ||
source: | ||
type: stdlib | ||
- name: minitest | ||
version: '0' | ||
source: | ||
type: stdlib | ||
- name: parallel | ||
version: '1.20' | ||
source: | ||
type: git | ||
name: ruby/gem_rbs_collection | ||
revision: 0a45b6d56b0e1b089731f5eb007912a7c36be121 | ||
remote: https://github.com/ruby/gem_rbs_collection.git | ||
repo_dir: gems | ||
- name: rainbow | ||
version: '3.0' | ||
source: | ||
type: git | ||
name: ruby/gem_rbs_collection | ||
revision: 0a45b6d56b0e1b089731f5eb007912a7c36be121 | ||
remote: https://github.com/ruby/gem_rbs_collection.git | ||
repo_dir: gems | ||
- name: securerandom | ||
version: '0' | ||
source: | ||
type: stdlib | ||
- name: steep | ||
version: 1.2.1 | ||
source: | ||
type: rubygems | ||
- name: strscan | ||
version: '0' | ||
source: | ||
type: stdlib | ||
- name: monitor | ||
version: '0' | ||
source: | ||
type: stdlib | ||
- name: date | ||
version: '0' | ||
source: | ||
type: stdlib | ||
- name: singleton | ||
version: '0' | ||
source: | ||
type: stdlib | ||
- name: mutex_m | ||
version: '0' | ||
source: | ||
type: stdlib | ||
- name: time | ||
version: '0' | ||
source: | ||
type: stdlib | ||
- name: pathname | ||
version: '0' | ||
source: | ||
type: stdlib | ||
- name: forwardable | ||
version: '0' | ||
source: | ||
type: stdlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Download sources | ||
sources: | ||
- name: ruby/gem_rbs_collection | ||
remote: https://github.com/ruby/gem_rbs_collection.git | ||
revision: main | ||
repo_dir: gems | ||
|
||
# A directory to install the downloaded RBSs | ||
path: .gem_rbs_collection | ||
|
||
gems: | ||
# Skip loading rbs gem's RBS. | ||
# It's unnecessary if you don't use rbs as a library. | ||
- name: rbs | ||
ignore: true | ||
- name: hashie |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
module Ika3 | ||
VERSION: String | ||
# See the writing guide of rbs: https://github.com/ruby/rbs#guides | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module Ika3 | ||
module Concerns | ||
module Utils | ||
def self?.load_yaml_file: (file: String) -> Object | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
module Ika3 | ||
class Weapon < Hash | ||
include Hashie::Extensions::MethodAccess | ||
|
||
ATTRIBUTES: ::Array[:name | :sub | :special] | ||
|
||
attr_accessor io: untyped | ||
|
||
include Ika3::Concerns::Utils | ||
|
||
def self.find: (untyped weapon_key) -> untyped | ||
|
||
def self.find_by_name: (untyped weapon_name) -> untyped | ||
|
||
def self.filter_by_sub: (untyped sub_name) -> untyped | ||
|
||
def self.reload_config!: () -> untyped | ||
|
||
private | ||
|
||
def self.names: () -> Array[Symbol] | ||
|
||
def self.weapons: () -> Array[Object] | ||
|
||
def self.sub_weapons: () -> Array[Object] | ||
|
||
def self.config: () -> untyped | ||
|
||
def self.config_sub_weapons: () -> untyped | ||
|
||
def self.valid?: (untyped weapon_key) -> bool | ||
end | ||
end |