ika3 0.9.1 → 1.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a82f3dab444b8ebf345d26a00ab9bf74f09aae7e06cb068359d03cda6e6d6b71
4
- data.tar.gz: 6fcab6b350bb4998550c131afc3e17724bacc02b27be7e9894797116bb659d7d
3
+ metadata.gz: 38279f0b0b16b27717d0dac589f9502db21d4e495faf284a0b468cfc2322a802
4
+ data.tar.gz: 9aa1d7a5aacbd8a7385bf5fb1cf89927d15b1ef7f1399319d23c50df467132db
5
5
  SHA512:
6
- metadata.gz: bea34a79219b42ab1172e8f6ea230e2aed0a93eb4163770277406cebf9514622e6280d2117682d1ce46a1c2c2476595b87bc214e027b68e4854d9c7da9f692f4
7
- data.tar.gz: ae622ac4675c20e066d23544a2cf286c256f9955b8fc6e2178d0c9e68c71f4924eb6e684df310d350a6a9bf21705cfe38768c445d2ca5eadceba19b985772abd
6
+ metadata.gz: d1a8c491511bc46a14601858d6e743f728ef1c08e83ed97f4457e9d50634da37bb8c066bfe2655bf996bf3e98b43f6eefc3935d7cdfd75531cd3529be5d000ed
7
+ data.tar.gz: 6ac42627b602ba41685506c677ddcd0d5dfa7f1c155780bbc7b53cfb9669273c7eba8d117580774c15ff3b901da5cc041caa0a83ef09f57e1a0c7da1c4d5674b
data/.rubocop.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  require:
2
2
  - rubocop-rspec
3
3
  - rubocop-rake
4
+ - rubocop-rbs
4
5
 
5
6
  AllCops:
6
7
  NewCops: enable
@@ -22,5 +23,9 @@ RSpec/ExampleLength:
22
23
  Max: 15
23
24
  CountAsOne: ["array", "hash", "heredoc"]
24
25
 
26
+ Rbs/MethodSignature:
27
+ Exclude:
28
+ - 'lib/ika3/schedule.rb'
29
+
25
30
  Style/Documentation:
26
31
  Enabled: false
data/.yamllint.yaml ADDED
@@ -0,0 +1,9 @@
1
+ extends: default
2
+
3
+ rules:
4
+ document-start: disable
5
+ comments: disable
6
+
7
+ ignore:
8
+ - .gem_rbs_collection/
9
+ - rbs_collection.lock.yaml
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in ika3.gemspec
6
6
  gemspec
7
7
 
8
- gem 'rake', '~> 13.1'
8
+ gem 'rake', '~> 13.2'
9
9
  gem 'rbs'
10
10
  gem 'rspec', '~> 3.13'
11
11
  gem 'rubocop', require: false
@@ -13,4 +13,5 @@ gem 'steep'
13
13
  gem 'typeprof'
14
14
 
15
15
  gem 'rubocop-rake', '~> 0.6.0'
16
- gem 'rubocop-rspec', '~> 2.27'
16
+ gem 'rubocop-rbs', '~> 0.1.1'
17
+ gem 'rubocop-rspec', '~> 3.0'
data/Gemfile.lock CHANGED
@@ -1,15 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ika3 (0.9.1)
4
+ ika3 (1.0.0)
5
5
  activesupport (>= 6.0.0)
6
6
  faraday (>= 2.7.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- abbrev (0.1.2)
12
- activesupport (7.1.3.2)
11
+ activesupport (7.1.4)
13
12
  base64
14
13
  bigdecimal
15
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -21,44 +20,44 @@ GEM
21
20
  tzinfo (~> 2.0)
22
21
  ast (2.4.2)
23
22
  base64 (0.2.0)
24
- bigdecimal (3.1.6)
25
- concurrent-ruby (1.2.3)
23
+ bigdecimal (3.1.8)
24
+ concurrent-ruby (1.3.4)
26
25
  connection_pool (2.4.1)
27
- csv (3.2.8)
26
+ csv (3.3.0)
28
27
  diff-lcs (1.5.1)
29
28
  drb (2.2.1)
30
- faraday (2.9.0)
31
- faraday-net_http (>= 2.0, < 3.2)
32
- faraday-net_http (3.1.0)
29
+ faraday (2.11.0)
30
+ faraday-net_http (>= 2.0, < 3.4)
31
+ logger
32
+ faraday-net_http (3.3.0)
33
33
  net-http
34
- ffi (1.16.3)
34
+ ffi (1.17.0-x86_64-linux-gnu)
35
35
  fileutils (1.7.2)
36
- i18n (1.14.1)
36
+ i18n (1.14.5)
37
37
  concurrent-ruby (~> 1.0)
38
- json (2.7.1)
38
+ json (2.7.2)
39
39
  language_server-protocol (3.17.0.3)
40
- listen (3.8.0)
40
+ listen (3.9.0)
41
41
  rb-fsevent (~> 0.10, >= 0.10.3)
42
42
  rb-inotify (~> 0.9, >= 0.9.10)
43
43
  logger (1.6.0)
44
- minitest (5.22.2)
44
+ minitest (5.25.1)
45
45
  mutex_m (0.2.0)
46
46
  net-http (0.4.1)
47
47
  uri
48
- parallel (1.24.0)
49
- parser (3.3.0.5)
48
+ parallel (1.26.3)
49
+ parser (3.3.5.0)
50
50
  ast (~> 2.4.1)
51
51
  racc
52
- racc (1.7.3)
52
+ racc (1.8.1)
53
53
  rainbow (3.1.1)
54
- rake (13.1.0)
54
+ rake (13.2.1)
55
55
  rb-fsevent (0.11.2)
56
- rb-inotify (0.10.1)
56
+ rb-inotify (0.11.1)
57
57
  ffi (~> 1.0)
58
- rbs (3.4.4)
59
- abbrev
60
- regexp_parser (2.9.0)
61
- rexml (3.2.6)
58
+ rbs (3.5.3)
59
+ logger
60
+ regexp_parser (2.9.2)
62
61
  rspec (3.13.0)
63
62
  rspec-core (~> 3.13.0)
64
63
  rspec-expectations (~> 3.13.0)
@@ -72,32 +71,28 @@ GEM
72
71
  diff-lcs (>= 1.2.0, < 2.0)
73
72
  rspec-support (~> 3.13.0)
74
73
  rspec-support (3.13.0)
75
- rubocop (1.62.1)
74
+ rubocop (1.66.1)
76
75
  json (~> 2.3)
77
76
  language_server-protocol (>= 3.17.0)
78
77
  parallel (~> 1.10)
79
78
  parser (>= 3.3.0.2)
80
79
  rainbow (>= 2.2.2, < 4.0)
81
- regexp_parser (>= 1.8, < 3.0)
82
- rexml (>= 3.2.5, < 4.0)
83
- rubocop-ast (>= 1.31.1, < 2.0)
80
+ regexp_parser (>= 2.4, < 3.0)
81
+ rubocop-ast (>= 1.32.2, < 2.0)
84
82
  ruby-progressbar (~> 1.7)
85
83
  unicode-display_width (>= 2.4.0, < 3.0)
86
- rubocop-ast (1.31.2)
87
- parser (>= 3.3.0.4)
88
- rubocop-capybara (2.20.0)
89
- rubocop (~> 1.41)
90
- rubocop-factory_bot (2.25.1)
91
- rubocop (~> 1.41)
84
+ rubocop-ast (1.32.3)
85
+ parser (>= 3.3.1.0)
92
86
  rubocop-rake (0.6.0)
93
87
  rubocop (~> 1.0)
94
- rubocop-rspec (2.27.1)
95
- rubocop (~> 1.40)
96
- rubocop-capybara (~> 2.17)
97
- rubocop-factory_bot (~> 2.22)
88
+ rubocop-rbs (0.1.1)
89
+ rbs
90
+ rubocop
91
+ rubocop-rspec (3.0.5)
92
+ rubocop (~> 1.61)
98
93
  ruby-progressbar (1.13.0)
99
94
  securerandom (0.3.1)
100
- steep (1.6.0)
95
+ steep (1.7.1)
101
96
  activesupport (>= 5.1)
102
97
  concurrent-ruby (>= 1.1.10)
103
98
  csv (>= 3.0.9)
@@ -108,11 +103,11 @@ GEM
108
103
  logger (>= 1.3.0)
109
104
  parser (>= 3.1)
110
105
  rainbow (>= 2.2.2, < 4.0)
111
- rbs (>= 3.1.0)
106
+ rbs (>= 3.5.0.pre)
112
107
  securerandom (>= 0.1)
113
108
  strscan (>= 1.0.0)
114
109
  terminal-table (>= 2, < 4)
115
- strscan (3.0.7)
110
+ strscan (3.1.0)
116
111
  terminal-table (3.0.2)
117
112
  unicode-display_width (>= 1.1.1, < 3)
118
113
  typeprof (0.21.11)
@@ -120,19 +115,20 @@ GEM
120
115
  tzinfo (2.0.6)
121
116
  concurrent-ruby (~> 1.0)
122
117
  unicode-display_width (2.5.0)
123
- uri (0.13.0)
118
+ uri (0.13.1)
124
119
 
125
120
  PLATFORMS
126
121
  x86_64-linux
127
122
 
128
123
  DEPENDENCIES
129
124
  ika3!
130
- rake (~> 13.1)
125
+ rake (~> 13.2)
131
126
  rbs
132
127
  rspec (~> 3.13)
133
128
  rubocop
134
129
  rubocop-rake (~> 0.6.0)
135
- rubocop-rspec (~> 2.27)
130
+ rubocop-rbs (~> 0.1.1)
131
+ rubocop-rspec (~> 3.0)
136
132
  steep
137
133
  typeprof
138
134
 
data/config/weapons.yml CHANGED
@@ -244,6 +244,11 @@ bamboozler_14_mk_1: &bamboozler_14_mk_1
244
244
  sub: ロボットボム
245
245
  special: メガホンレーザー5.1ch
246
246
 
247
+ bamboozler_14_mk_2: &bamboozler_14_mk_2
248
+ name: 14式竹筒銃・乙
249
+ sub: タンサンボム
250
+ special: デコイチラシ
251
+
247
252
  goo_tuber: &goo_tuber
248
253
  name: ソイチューバー
249
254
  sub: トーピード
@@ -349,6 +354,11 @@ hydra_splatling: &hydra_splatling
349
354
  sub: ロボットボム
350
355
  special: ナイスダマ
351
356
 
357
+ custom_hydra_splatling: &custom_hydra_splatling
358
+ name: ハイドラントカスタム
359
+ sub: トラップ
360
+ special: スミナガシート
361
+
352
362
  ballpoint_splatling: &ballpoint_splatling
353
363
  name: クーゲルシュライバー
354
364
  sub: タンサンボム
@@ -374,6 +384,11 @@ heavy_edit_splatling: &heavy_edit_splatling
374
384
  sub: カーリングボム
375
385
  special: エナジースタンド
376
386
 
387
+ heavy_edit_splatling_nouveau: &heavy_edit_splatling_nouveau
388
+ name: イグザミナー・ヒュー
389
+ sub: スプラッシュボム
390
+ special: カニタンク
391
+
377
392
  luna_blaster: &luna_blaster
378
393
  name: ノヴァブラスター
379
394
  sub: スプラボム
@@ -399,6 +414,11 @@ range_blaster: &range_blaster
399
414
  sub: キューバンボム
400
415
  special: ホップソナー
401
416
 
417
+ custom_range_blaster: &custom_range_blaster
418
+ name: ロングブラスターカスタム
419
+ sub: スプラッシュボム
420
+ special: テイオウイカ
421
+
402
422
  clash_blaster: &clash_blaster
403
423
  name: クラッシュブラスター
404
424
  sub: スプラボム
@@ -464,6 +484,11 @@ recycled_brella_24_mk_1: &recycled_brella_24_mk_1
464
484
  sub: ラインマーカー
465
485
  special: グレートバリア
466
486
 
487
+ recycled_brella_24_mk_2: &recycled_brella_24_mk_2
488
+ name: 24式張替傘・乙
489
+ sub: ポイズンミスト
490
+ special: ウルトラチャクチ
491
+
467
492
  undercover_brella: &undercover_brella
468
493
  name: スパイガジェット
469
494
  sub: トラップ
@@ -559,6 +584,11 @@ douser_dualies_ff: &douser_dualies_ff
559
584
  sub: トラップ
560
585
  special: メガホンレーザー5.1ch
561
586
 
587
+ custom_douser_dualies_ff: &custom_douser_dualies_ff
588
+ name: ガエンFFカスタム
589
+ sub: クイックボム
590
+ special: トリプルトルネード
591
+
562
592
  tri_stringer: &tri_stringer
563
593
  name: トライストリンガー
564
594
  sub: ポイズンミスト
@@ -579,6 +609,16 @@ reef_lux_450_deco: &reef_lux_450_deco
579
609
  sub: スプラッシュシールド
580
610
  special: サメライド
581
611
 
612
+ wellstring_v: &wellstring_v
613
+ name: フロイドV
614
+ sub: ロボットボム
615
+ special: ウルトラハンコ
616
+
617
+ custom_wellstring_v: &custom_wellstring_v
618
+ name: フロイドVカスタム
619
+ sub: ポイントセンサー
620
+ special: ホップソナー
621
+
582
622
  splatana_stamper: &splatana_stamper
583
623
  name: ジムワイパー
584
624
  sub: クイックボム
@@ -598,3 +638,13 @@ splatana_wiper_deco: &splatana_wiper_deco
598
638
  name: ドライブワイパーデコ
599
639
  sub: ジャンプビーコン
600
640
  special: マルチミサイル
641
+
642
+ mint_decavitator: &mint_decavitator
643
+ name: デンタルワイパーミント
644
+ sub: キューバンボム
645
+ special: グレートバリア
646
+
647
+ charcoal_decavitator: &charcoal_decavitator
648
+ name: デンタルワイパースミ
649
+ sub: スプラッシュシールド
650
+ special: ジェットパック
data/lib/ika3/schedule.rb CHANGED
@@ -6,7 +6,7 @@ module Ika3
6
6
  @contact = contact
7
7
  end
8
8
 
9
- modes = %w[regular bankara_challenge bankara_open x fest]
9
+ modes = %w[regular bankara_challenge bankara_open x fest fest_challenge]
10
10
  schedules = %w[now next]
11
11
 
12
12
  schedules.each do |schedule|
@@ -28,24 +28,24 @@ module Ika3
28
28
  "@salmon_run_#{schedule}", Salmon.new(send_request(:get, "/api/coop-grouping/#{schedule}").body['results'][0])
29
29
  )
30
30
  end
31
+ end
31
32
 
32
- def salmon_run_team_contest
33
- return @salmon_run_team_contest unless @salmon_run_team_contest.nil?
33
+ def salmon_run_team_contest
34
+ return @salmon_run_team_contest unless @salmon_run_team_contest.nil?
34
35
 
35
- @salmon_run_team_contest = Salmon.new(
36
- send_request(:get, '/api/coop-grouping-team-contest/schedule').body['results'][0]
37
- )
38
- end
36
+ @salmon_run_team_contest = Salmon.new(
37
+ send_request(:get, '/api/coop-grouping-team-contest/schedule').body['results'][0]
38
+ )
39
+ end
39
40
 
40
- def event
41
- return @event_match unless @event_match.nil?
41
+ def event
42
+ return @event_match unless @event_match.nil?
42
43
 
43
- @event_match = Battle.new(send_request(:get, '/api/event/schedule').body['results'][0])
44
- end
44
+ @event_match = Battle.new(send_request(:get, '/api/event/schedule').body['results'][0])
45
45
  end
46
46
 
47
47
  class Battle
48
- attr_reader :start_time, :end_time, :rule, :stages, :is_fest
48
+ attr_reader :start_time, :end_time, :rule, :stages, :is_fest, :is_tricolor, :tricolor_stage
49
49
 
50
50
  def initialize(data)
51
51
  @start_time = data&.[]('start_time')
@@ -53,6 +53,8 @@ module Ika3
53
53
  @rule = Rule.new(data&.[]('rule'))
54
54
  @stages = data&.[]('stages')&.map { |stage| Stage.new(stage) }
55
55
  @is_fest = data&.[]('is_fest')
56
+ @is_tricolor = data&.[]('is_tricolor')
57
+ @tricolor_stage = Stage.new(data&.[]('tricolor_stage'))
56
58
  end
57
59
 
58
60
  class Stage
data/lib/ika3/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ika3
4
- VERSION = '0.9.1'
4
+ VERSION = '1.0.0'
5
5
  end
@@ -21,18 +21,20 @@ module Ika3
21
21
  @end_time: untyped
22
22
  @rule: Rule
23
23
  @stages: Array[Stage]
24
- @is_fest: untyped
24
+ @is_fest: bool
25
+ @is_tricolor: bool
26
+ @tricolor_stage: Stage?
25
27
  def initialize: (Hash[untyped, untyped] data) -> void
26
28
 
27
29
  class Stage
28
30
  @id: untyped
29
31
  @name: String
30
- @image: untyped
32
+ @image: String
31
33
  def initialize: (Hash[untyped, untyped] data) -> void
32
34
  end
33
35
 
34
36
  class Rule
35
- @name: untyped
37
+ @name: String
36
38
  @key: untyped
37
39
  def initialize: (Hash[untyped, untyped] data) -> void
38
40
  end
@@ -43,7 +45,7 @@ module Ika3
43
45
  @end_time: untyped
44
46
  @stage: Stage
45
47
  @weapons: Array[Weapon]
46
- @boss: untyped
48
+ @boss: Boss?
47
49
  def initialize: (Hash[untyped, untyped] data) -> void
48
50
 
49
51
  class Stage
@@ -59,8 +61,8 @@ module Ika3
59
61
  end
60
62
 
61
63
  class Boss
64
+ @id: String
62
65
  @name: String
63
- @image: String
64
66
  def initialize: (Hash[untyped, untyped] data) -> void
65
67
  end
66
68
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ika3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - YutaGoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-15 00:00:00.000000000 Z
11
+ date: 2024-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -50,6 +50,7 @@ files:
50
50
  - ".rspec"
51
51
  - ".rubocop.yml"
52
52
  - ".vscode/settings.json"
53
+ - ".yamllint.yaml"
53
54
  - Gemfile
54
55
  - Gemfile.lock
55
56
  - LICENSE.txt
@@ -93,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
94
  - !ruby/object:Gem::Version
94
95
  version: '0'
95
96
  requirements: []
96
- rubygems_version: 3.5.4
97
+ rubygems_version: 3.5.11
97
98
  signing_key:
98
99
  specification_version: 4
99
100
  summary: Splatoon3 weapons information library.