ika3 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f319c3e34d695fe4854b404a33b87e383dbcd5f3a96b7f6cd9030164ee507c48
4
- data.tar.gz: d2687368b9e65953c8b6cbc9ff8294c478d64578dd1eec1fdbda915b51188489
3
+ metadata.gz: 56e3bf86129a619e8a3fa228d0d82e5e2300f501017e06132db8ae41054ea8db
4
+ data.tar.gz: 22433dcc20b7f582707c05e0c5342d74f34e02a2d37da1fe838bed63967b91a0
5
5
  SHA512:
6
- metadata.gz: 6d70c1ecd4728bff8a287b72598d5020d00c3a8b627e98bbf72dd1752be4803ff6477dae6bd71e928c9358876a334c3fcfe770ee2b140be6e16db1ed94918c35
7
- data.tar.gz: b5fef4d7bbef366f92b40248ee9d9d3b55f7d66e527f9c851ec7bc504aed00f4a7ca4fcac25803b06391056f2b64afdc911588656a2ad46474219f08a08011e3
6
+ metadata.gz: 0c3133337e3a1e1f4b29f3502fbc384276bd844705fcd392299b4c3c16b20e428edfd0f3e8d3b6b3d6a989c94cf2c2c5fd3fabee78ca190cb584d9850d3ee4cb
7
+ data.tar.gz: 87e853de6ab73580185e90abf9b2fab785640ba5f1f3e769bbd9f4c9f352d65a593645429f8fe1d7378b3f35106d811ecae92475eee315543bfd9453c1328400
data/.rubocop.yml ADDED
@@ -0,0 +1,26 @@
1
+ require:
2
+ - rubocop-rspec
3
+ - rubocop-rake
4
+
5
+ AllCops:
6
+ NewCops: enable
7
+ TargetRubyVersion: 2.7
8
+
9
+ Layout/LineLength:
10
+ Exclude:
11
+ - 'spec/**/*'
12
+ - 'ika3.gemspec'
13
+
14
+ Metrics/BlockLength:
15
+ Exclude:
16
+ - 'spec/**/*'
17
+
18
+ RSpec/MultipleExpectations:
19
+ Max: 5
20
+
21
+ RSpec/ExampleLength:
22
+ Max: 15
23
+ CountAsOne: ["array", "hash", "heredoc"]
24
+
25
+ Style/Documentation:
26
+ Enabled: false
@@ -1,3 +1,3 @@
1
1
  {
2
- "cSpell.words": ["Splatoon"]
2
+ "cSpell.words": ["rubocop", "Splatoon"]
3
3
  }
data/Gemfile CHANGED
@@ -1,11 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source "https://rubygems.org"
3
+ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in ika3.gemspec
6
6
  gemspec
7
7
 
8
- gem "rake", "~> 13.0"
9
- gem "rspec", "~> 3.0"
10
- gem "steep"
11
- gem "rbs"
8
+ gem 'rake', '~> 13.0'
9
+ gem 'rbs'
10
+ gem 'rspec', '~> 3.0'
11
+ gem 'rubocop', require: false
12
+ gem 'steep'
13
+
14
+ gem 'rubocop-rake', '~> 0.6.0'
15
+
16
+ gem 'rubocop-rspec', '~> 2.22'
data/Gemfile.lock CHANGED
@@ -1,46 +1,48 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ika3 (0.4.0)
4
+ ika3 (0.5.0)
5
5
  activesupport (>= 5.0.0)
6
6
  faraday (>= 2.7.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.0.4.2)
11
+ activesupport (7.0.5)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
15
15
  tzinfo (~> 2.0)
16
16
  ast (2.4.2)
17
- concurrent-ruby (1.2.0)
18
- csv (3.2.5)
17
+ concurrent-ruby (1.2.2)
18
+ csv (3.2.6)
19
19
  diff-lcs (1.5.0)
20
- faraday (2.7.4)
20
+ faraday (2.7.5)
21
21
  faraday-net_http (>= 2.0, < 3.1)
22
22
  ruby2_keywords (>= 0.0.4)
23
23
  faraday-net_http (3.0.2)
24
24
  ffi (1.15.5)
25
- fileutils (1.6.0)
26
- i18n (1.12.0)
25
+ fileutils (1.7.1)
26
+ i18n (1.13.0)
27
27
  concurrent-ruby (~> 1.0)
28
- json (2.6.2)
29
- language_server-protocol (3.17.0.1)
30
- listen (3.7.1)
28
+ json (2.6.3)
29
+ language_server-protocol (3.17.0.3)
30
+ listen (3.8.0)
31
31
  rb-fsevent (~> 0.10, >= 0.10.3)
32
32
  rb-inotify (~> 0.9, >= 0.9.10)
33
- logger (1.5.1)
34
- minitest (5.17.0)
35
- parallel (1.22.1)
36
- parser (3.1.3.0)
33
+ logger (1.5.3)
34
+ minitest (5.18.0)
35
+ parallel (1.23.0)
36
+ parser (3.2.2.1)
37
37
  ast (~> 2.4.1)
38
38
  rainbow (3.1.1)
39
39
  rake (13.0.6)
40
40
  rb-fsevent (0.11.2)
41
41
  rb-inotify (0.10.1)
42
42
  ffi (~> 1.0)
43
- rbs (3.0.2)
43
+ rbs (3.1.0)
44
+ regexp_parser (2.8.0)
45
+ rexml (3.2.5)
44
46
  rspec (3.12.0)
45
47
  rspec-core (~> 3.12.0)
46
48
  rspec-expectations (~> 3.12.0)
@@ -54,29 +56,52 @@ GEM
54
56
  diff-lcs (>= 1.2.0, < 2.0)
55
57
  rspec-support (~> 3.12.0)
56
58
  rspec-support (3.12.0)
59
+ rubocop (1.51.0)
60
+ json (~> 2.3)
61
+ parallel (~> 1.10)
62
+ parser (>= 3.2.0.0)
63
+ rainbow (>= 2.2.2, < 4.0)
64
+ regexp_parser (>= 1.8, < 3.0)
65
+ rexml (>= 3.2.5, < 4.0)
66
+ rubocop-ast (>= 1.28.0, < 2.0)
67
+ ruby-progressbar (~> 1.7)
68
+ unicode-display_width (>= 2.4.0, < 3.0)
69
+ rubocop-ast (1.28.1)
70
+ parser (>= 3.2.1.0)
71
+ rubocop-capybara (2.18.0)
72
+ rubocop (~> 1.41)
73
+ rubocop-factory_bot (2.22.0)
74
+ rubocop (~> 1.33)
75
+ rubocop-rake (0.6.0)
76
+ rubocop (~> 1.0)
77
+ rubocop-rspec (2.22.0)
78
+ rubocop (~> 1.33)
79
+ rubocop-capybara (~> 2.17)
80
+ rubocop-factory_bot (~> 2.22)
81
+ ruby-progressbar (1.13.0)
57
82
  ruby2_keywords (0.0.5)
58
- securerandom (0.2.0)
59
- steep (1.3.0)
83
+ securerandom (0.2.2)
84
+ steep (1.4.0)
60
85
  activesupport (>= 5.1)
86
+ concurrent-ruby (>= 1.2.2)
61
87
  csv (>= 3.0.9)
62
88
  fileutils (>= 1.1.0)
63
89
  json (>= 2.1.0)
64
90
  language_server-protocol (>= 3.15, < 4.0)
65
91
  listen (~> 3.0)
66
92
  logger (>= 1.3.0)
67
- parallel (>= 1.0.0)
68
93
  parser (>= 3.1)
69
94
  rainbow (>= 2.2.2, < 4.0)
70
95
  rbs (>= 2.8.0)
71
96
  securerandom (>= 0.1)
72
97
  strscan (>= 1.0.0)
73
98
  terminal-table (>= 2, < 4)
74
- strscan (3.0.4)
99
+ strscan (3.0.6)
75
100
  terminal-table (3.0.2)
76
101
  unicode-display_width (>= 1.1.1, < 3)
77
- tzinfo (2.0.5)
102
+ tzinfo (2.0.6)
78
103
  concurrent-ruby (~> 1.0)
79
- unicode-display_width (2.3.0)
104
+ unicode-display_width (2.4.2)
80
105
 
81
106
  PLATFORMS
82
107
  x86_64-linux
@@ -86,6 +111,9 @@ DEPENDENCIES
86
111
  rake (~> 13.0)
87
112
  rbs
88
113
  rspec (~> 3.0)
114
+ rubocop
115
+ rubocop-rake (~> 0.6.0)
116
+ rubocop-rspec (~> 2.22)
89
117
  steep
90
118
 
91
119
  BUNDLED WITH
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Ika3
2
2
 
3
3
  [![CircleCI](https://dl.circleci.com/status-badge/img/gh/YutaGoto/ika3/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/YutaGoto/ika3/tree/main)
4
+ [![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop/rubocop)
5
+ [![Gem Version](https://badge.fury.io/rb/ika3.svg)](https://badge.fury.io/rb/ika3)
4
6
 
5
7
  Weapon data from Splatoon3. This is Unofficial data.
6
8
 
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
5
 
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
 
data/Steepfile CHANGED
@@ -1,7 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  target :lib do
2
- signature "sig"
4
+ signature 'sig'
3
5
 
4
- check "lib"
5
- repo_path ".gem_rbs_collection"
6
+ check 'lib'
7
+ repo_path '.gem_rbs_collection'
6
8
  end
7
-
data/config/weapons.yml CHANGED
@@ -14,7 +14,7 @@ splattershot_jr: &splattershot_jr
14
14
  special: グレートバリア
15
15
 
16
16
  custom_splattershot_jr: &custom_splattershot_jr
17
- mame: もみじシューター
17
+ name: もみじシューター
18
18
  sub: トーピード
19
19
  special: ホップソナー
20
20
 
@@ -108,6 +108,11 @@ h_3_nozzlenose: &h_3_nozzlenose
108
108
  sub: ポイントセンサー
109
109
  special: エナジースタンド
110
110
 
111
+ h_3_nozzlenose_d: &h_3_nozzlenose_d
112
+ name: H3リールガンD
113
+ sub: スプラッシュシールド
114
+ special: グレートバリア
115
+
111
116
  squeezer: &squeezer
112
117
  name: ボトルガイザー
113
118
  sub: スプラッシュシールド
@@ -118,6 +123,11 @@ splattershot_nova: &splattershot_nova
118
123
  sub: ポイントセンサー
119
124
  special: メガホンレーザー5.1ch
120
125
 
126
+ annaki_splattershot_nova: &annaki_splattershot_nova
127
+ name: スペースシューターコラボ
128
+ sub: トラップ
129
+ special: ジェットパック
130
+
121
131
  carbon_roller: &carbon_roller
122
132
  name: カーボンローラー
123
133
  sub: ロボットボム
@@ -153,6 +163,11 @@ big_swig_roller: &big_swig_roller
153
163
  sub: スプラッシュシールド
154
164
  special: キューインキ
155
165
 
166
+ big_swig_roller_express: &big_swig_roller_express
167
+ name: ワイドローラーコラボ
168
+ sub: ラインマーカー
169
+ special: アメフラシ
170
+
156
171
  classic_squiffer: &classic_squiffer
157
172
  name: スクイックリン
158
173
  sub: ポイントセンサー
@@ -253,6 +268,11 @@ heavy_splatling: &heavy_splatling
253
268
  sub: スプリンクラー
254
269
  special: ホップソナー
255
270
 
271
+ heavy_splatling_deco: &heavy_splatling
272
+ name: バレルスピナーデコ
273
+ sub: ポイントセンサー
274
+ special: テイオウイカ
275
+
256
276
  hydra_splatling: &hydra_splatling
257
277
  name: ハイドラント
258
278
  sub: ロボットボム
@@ -313,6 +333,36 @@ rapid_blaster_pro: &rapid_blaster_pro
313
333
  sub: ポイズンミスト
314
334
  special: キューインキ
315
335
 
336
+ rapid_blaster_pro_deco: &rapid_blaster_pro_deco
337
+ name: Rブラスターエリートデコ
338
+ sub: ラインマーカー
339
+ special: メガホンレーザー5.1ch
340
+
341
+ s_brast_92: &s_brast_92
342
+ name: S-BRAST92
343
+ sub: スプリンクラー
344
+ special: サメライド
345
+
346
+ splat_brella: &splat_brella
347
+ name: パラシェルター
348
+ sub: スプリンクラー
349
+ special: トリプルトルネード
350
+
351
+ tenta_brella: &tenta_brella
352
+ name: キャンピングシェルター
353
+ sub: ジャンプビーコン
354
+ special: キューインキ
355
+
356
+ tenta_sorella_brella: &tenta_sorella_brella
357
+ name: キャンピングシェルターソレーラ
358
+ sub: トラップ
359
+ special: ウルトラショット
360
+
361
+ undercover_brella: &undercover_brella
362
+ name: スパイガジェット
363
+ sub: トラップ
364
+ special: サメライド
365
+
316
366
  inkbrush: &inkbrush
317
367
  name: パブロ
318
368
  sub: スプラボム
@@ -328,6 +378,11 @@ octobrush: &octobrush
328
378
  sub: キューバンボム
329
379
  special: ショクワンダー
330
380
 
381
+ painbrush: &painbrush
382
+ name: フィンセント
383
+ sub: カーリングボム
384
+ special: ホップソナー
385
+
331
386
  dapple_dualies: &dapple_dualies
332
387
  name: スパッタリー
333
388
  sub: ジャンプビーコン
@@ -348,11 +403,21 @@ dark_tetra_dualies: &dark_tetra_dualies
348
403
  sub: ロボットボム
349
404
  special: サメライド
350
405
 
406
+ light_tetra_dualies: &light_tetra_dualies
407
+ name: クアッドホッパーホワイト
408
+ sub: スプリンクラー
409
+ special: ショクワンダー
410
+
351
411
  dualie_squelchers: &dualie_squelchers
352
412
  name: デュアルスイーパー
353
413
  sub: スプラボム
354
414
  special: ホップソナー
355
415
 
416
+ custom_dualie_squelchers: &custom_dualie_squelchers
417
+ name: デュアルスイーパーカスタム
418
+ sub: ジャンプビーコン
419
+ special: デコイチラシ
420
+
356
421
  glooga_dualies: &glooga_dualies
357
422
  name: ケルビン525
358
423
  sub: スプラッシュシールド
@@ -377,3 +442,8 @@ splatana_wiper: &splatana_wiper
377
442
  name: ドライブワイパー
378
443
  sub: トーピード
379
444
  special: ウルトラハンコ
445
+
446
+ splatana_wiper_deco: &splatana_wiper_deco
447
+ name: ドライブワイパーデコ
448
+ sub: ジャンプビーコン
449
+ special: マルチミサイル
data/ika3.gemspec CHANGED
@@ -1,23 +1,21 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "lib/ika3/version"
3
+ require_relative 'lib/ika3/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.name = "ika3"
6
+ spec.name = 'ika3'
7
7
  spec.version = Ika3::VERSION
8
- spec.authors = ["YutaGoto"]
9
- spec.email = ["you.goto.510@gmail.com"]
8
+ spec.authors = ['YutaGoto']
9
+ spec.email = ['you.goto.510@gmail.com']
10
10
 
11
- spec.summary = "Splatoon3 weapons information library."
12
- spec.description = "Splatoon3 weapons information library. This gem provide weapon name, sub, and special. not official"
13
- spec.homepage = "https://github.com/YutaGoto/ika3"
14
- spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.7.0"
11
+ spec.summary = 'Splatoon3 weapons information library.'
12
+ spec.description = 'Splatoon3 weapons information library. This gem provide weapon name, sub, and special. not official'
13
+ spec.homepage = 'https://github.com/YutaGoto/ika3'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = '>= 2.7.0'
16
16
 
17
- # spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
18
-
19
- spec.metadata["homepage_uri"] = spec.homepage
20
- spec.metadata["source_code_uri"] = "https://github.com/YutaGoto/ika3"
17
+ spec.metadata['homepage_uri'] = spec.homepage
18
+ spec.metadata['source_code_uri'] = 'https://github.com/YutaGoto/ika3'
21
19
 
22
20
  # Specify which files should be added to the gem when it is released.
23
21
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -26,13 +24,14 @@ Gem::Specification.new do |spec|
26
24
  (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
27
25
  end
28
26
  end
29
- spec.bindir = "exe"
27
+ spec.bindir = 'exe'
30
28
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
- spec.require_paths = ["lib"]
29
+ spec.require_paths = ['lib']
32
30
 
33
- spec.add_dependency "faraday", ">= 2.7.0"
34
- spec.add_dependency "activesupport", ">= 5.0.0"
31
+ spec.add_dependency 'activesupport', '>= 5.0.0'
32
+ spec.add_dependency 'faraday', '>= 2.7.0'
35
33
 
36
34
  # For more information and examples about making a new gem, check out our
37
35
  # guide at: https://bundler.io/guides/creating_gem.html
36
+ spec.metadata['rubygems_mfa_required'] = 'true'
38
37
  end
@@ -1,7 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ika3
2
4
  module Concerns
3
5
  module Utils
4
-
5
6
  module_function
6
7
 
7
8
  def load_yaml_file(file)
data/lib/ika3/response.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ika3
2
4
  class Response
3
5
  def initialize(faraday_response)
@@ -12,7 +14,7 @@ module Ika3
12
14
 
13
15
  def headers
14
16
  @headers ||= @raw_headers.inject({}) do |result, (key, value)|
15
- result.merge(key.split("-").map(&:capitalize).join("-") => value)
17
+ result.merge(key.split('-').map(&:capitalize).join('-') => value)
16
18
  end
17
19
  end
18
20
 
data/lib/ika3/schedule.rb CHANGED
@@ -1,4 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Hash
4
+ def respond_to_missing?(sym)
5
+ key? name ? true : super
6
+ end
7
+
2
8
  def method_missing(name)
3
9
  return self[name] if key? name
4
10
 
@@ -13,22 +19,34 @@ module Ika3
13
19
  @contact = contact
14
20
  end
15
21
 
16
- modes = ["regular", "bankara_challenge", "bankara_open", "x"]
17
- schedules = ["now", "next"]
22
+ modes = %w[regular bankara_challenge bankara_open x fest]
23
+ schedules = %w[now next]
18
24
 
19
25
  schedules.each do |schedule|
20
26
  modes.each do |mode|
21
27
  define_method("#{mode}_#{schedule}".to_sym) do
22
- return instance_variable_get("@#{mode}_#{schedule}_obj") if instance_variable_defined?("@#{mode}_#{schedule}_obj")
28
+ if instance_variable_defined?("@#{mode}_#{schedule}_obj")
29
+ return instance_variable_get("@#{mode}_#{schedule}_obj")
30
+ end
23
31
 
24
- instance_variable_set("@#{mode}_#{schedule}_obj", send_request(:get, "/api/#{mode.dasherize}/#{schedule}").body.results[0])
32
+ instance_variable_set("@#{mode}_#{schedule}_obj",
33
+ send_request(:get, "/api/#{mode.dasherize}/#{schedule}").body.results[0])
25
34
  end
26
35
  end
27
36
 
28
37
  define_method("salmon_run_#{schedule}".to_sym) do
29
- return instance_variable_get("@salmon_run_#{schedule}_obj") if instance_variable_defined?("@salmon_run_#{schedule}_obj")
38
+ if instance_variable_defined?("@salmon_run_#{schedule}_obj")
39
+ return instance_variable_get("@salmon_run_#{schedule}_obj")
40
+ end
41
+
42
+ instance_variable_set("@salmon_run_#{schedule}_obj",
43
+ send_request(:get, "/api/coop-grouping/#{schedule}").body.results[0])
44
+ end
45
+
46
+ def salmon_run_team_contest
47
+ return @salmon_run_team_contest_obj unless @salmon_run_team_contest_obj.nil?
30
48
 
31
- instance_variable_set("@salmon_run_#{schedule}_obj", send_request(:get, "/api/coop-grouping/#{schedule}").body.results[0])
49
+ @salmon_run_team_contest_obj = send_request(:get, '/api/coop-grouping-team-contest/schedule').body.results[0]
32
50
  end
33
51
  end
34
52
 
@@ -40,11 +58,11 @@ module Ika3
40
58
  end
41
59
 
42
60
  def api_url
43
- "https://spla3.yuu26.com/"
61
+ 'https://spla3.yuu26.com/'
44
62
  end
45
63
 
46
64
  def splat3_connection
47
- @splat3_connection ||= Faraday::new(faraday_options) do |c|
65
+ @splat3_connection ||= Faraday.new(faraday_options) do |c|
48
66
  c.request :json
49
67
  c.response :json
50
68
  c.adapter Faraday.default_adapter
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.4.0"
4
+ VERSION = '0.5.0'
5
5
  end
data/lib/ika3/weapons.rb CHANGED
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ika3
2
4
  class Weapon
3
- ATTRIBUTES = [
4
- :name, :sub, :special
5
+ ATTRIBUTES = %i[
6
+ name sub special
5
7
  ].freeze
6
8
 
7
9
  ATTRIBUTES.each do |attribute|
@@ -35,13 +37,13 @@ module Ika3
35
37
  def filter_by_sub(sub_name)
36
38
  raise "unknown sub weapon: #{sub_name}" unless sub_weapons.values.include?(sub_name)
37
39
 
38
- config.values.filter{|weapon| weapon[:sub] == sub_name}
40
+ config.values.filter { |weapon| weapon[:sub] == sub_name }
39
41
  end
40
42
 
41
43
  def reload_config!
42
44
  @cache = {}
43
45
  @config = nil
44
- @config_sub_weapons = nil
46
+ @sub_weapons = nil
45
47
  config
46
48
  config_sub_weapons
47
49
  end
@@ -73,17 +75,13 @@ module Ika3
73
75
  end
74
76
 
75
77
  def config
76
- unless @config
77
- @config = load_yaml_file("#{File.dirname(__FILE__)}/../../config/weapons.yml").deep_symbolize_keys
78
- end
78
+ @config ||= load_yaml_file("#{File.dirname(__FILE__)}/../../config/weapons.yml").deep_symbolize_keys
79
79
  @config
80
80
  end
81
81
 
82
82
  def config_sub_weapons
83
- unless @config_sub_weapons
84
- @config_sub_weapons = load_yaml_file("#{File.dirname(__FILE__)}/../../config/sub_weapons.yml").deep_symbolize_keys
85
- end
86
- @config_sub_weapons
83
+ @sub_weapons ||= load_yaml_file("#{File.dirname(__FILE__)}/../../config/sub_weapons.yml").deep_symbolize_keys
84
+ @sub_weapons
87
85
  end
88
86
 
89
87
  def valid?(weapon_key)
data/lib/ika3.rb CHANGED
@@ -1,16 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "yaml"
3
+ require 'yaml'
4
4
 
5
- require "active_support/core_ext/hash/keys"
6
- require "active_support/core_ext/string/inflections"
7
- require "faraday"
5
+ require 'active_support/core_ext/hash/keys'
6
+ require 'active_support/core_ext/string/inflections'
7
+ require 'faraday'
8
8
 
9
- require "ika3/version"
10
- require "ika3/concerns/utils"
11
- require "ika3/response"
12
- require "ika3/weapons"
13
- require "ika3/schedule"
9
+ require 'ika3/version'
10
+ require 'ika3/concerns/utils'
11
+ require 'ika3/response'
12
+ require 'ika3/weapons'
13
+ require 'ika3/schedule'
14
14
 
15
15
  module Ika3
16
16
  class Error < StandardError; end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ika3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - YutaGoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-02 00:00:00.000000000 Z
11
+ date: 2023-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: faraday
14
+ name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.7.0
19
+ version: 5.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 2.7.0
26
+ version: 5.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: activesupport
28
+ name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 5.0.0
33
+ version: 2.7.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 5.0.0
40
+ version: 2.7.0
41
41
  description: Splatoon3 weapons information library. This gem provide weapon name,
42
42
  sub, and special. not official
43
43
  email:
@@ -48,6 +48,7 @@ extra_rdoc_files: []
48
48
  files:
49
49
  - ".codespellrc"
50
50
  - ".rspec"
51
+ - ".rubocop.yml"
51
52
  - ".vscode/settings.json"
52
53
  - Gemfile
53
54
  - Gemfile.lock
@@ -76,6 +77,7 @@ licenses:
76
77
  metadata:
77
78
  homepage_uri: https://github.com/YutaGoto/ika3
78
79
  source_code_uri: https://github.com/YutaGoto/ika3
80
+ rubygems_mfa_required: 'true'
79
81
  post_install_message:
80
82
  rdoc_options: []
81
83
  require_paths: