ika3 0.10.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +5 -0
- data/.yamllint.yaml +9 -0
- data/Gemfile +2 -1
- data/Gemfile.lock +32 -39
- data/lib/ika3/schedule.rb +14 -12
- data/lib/ika3/version.rb +1 -1
- data/sig/ika3/schedule.rbs +7 -5
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38279f0b0b16b27717d0dac589f9502db21d4e495faf284a0b468cfc2322a802
|
4
|
+
data.tar.gz: 9aa1d7a5aacbd8a7385bf5fb1cf89927d15b1ef7f1399319d23c50df467132db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ika3 (0.
|
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
|
-
|
12
|
-
activesupport (7.1.3.3)
|
11
|
+
activesupport (7.1.4)
|
13
12
|
base64
|
14
13
|
bigdecimal
|
15
14
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
@@ -22,43 +21,43 @@ GEM
|
|
22
21
|
ast (2.4.2)
|
23
22
|
base64 (0.2.0)
|
24
23
|
bigdecimal (3.1.8)
|
25
|
-
concurrent-ruby (1.
|
24
|
+
concurrent-ruby (1.3.4)
|
26
25
|
connection_pool (2.4.1)
|
27
|
-
csv (3.
|
26
|
+
csv (3.3.0)
|
28
27
|
diff-lcs (1.5.1)
|
29
28
|
drb (2.2.1)
|
30
|
-
faraday (2.
|
31
|
-
faraday-net_http (>= 2.0, < 3.
|
32
|
-
|
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.
|
34
|
+
ffi (1.17.0-x86_64-linux-gnu)
|
35
35
|
fileutils (1.7.2)
|
36
36
|
i18n (1.14.5)
|
37
37
|
concurrent-ruby (~> 1.0)
|
38
38
|
json (2.7.2)
|
39
39
|
language_server-protocol (3.17.0.3)
|
40
|
-
listen (3.
|
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.
|
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.
|
49
|
-
parser (3.3.
|
48
|
+
parallel (1.26.3)
|
49
|
+
parser (3.3.5.0)
|
50
50
|
ast (~> 2.4.1)
|
51
51
|
racc
|
52
|
-
racc (1.8.
|
52
|
+
racc (1.8.1)
|
53
53
|
rainbow (3.1.1)
|
54
54
|
rake (13.2.1)
|
55
55
|
rb-fsevent (0.11.2)
|
56
|
-
rb-inotify (0.
|
56
|
+
rb-inotify (0.11.1)
|
57
57
|
ffi (~> 1.0)
|
58
|
-
rbs (3.
|
59
|
-
|
58
|
+
rbs (3.5.3)
|
59
|
+
logger
|
60
60
|
regexp_parser (2.9.2)
|
61
|
-
rexml (3.2.6)
|
62
61
|
rspec (3.13.0)
|
63
62
|
rspec-core (~> 3.13.0)
|
64
63
|
rspec-expectations (~> 3.13.0)
|
@@ -72,35 +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.
|
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 (>=
|
82
|
-
|
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.
|
84
|
+
rubocop-ast (1.32.3)
|
87
85
|
parser (>= 3.3.1.0)
|
88
|
-
rubocop-capybara (2.20.0)
|
89
|
-
rubocop (~> 1.41)
|
90
|
-
rubocop-factory_bot (2.25.1)
|
91
|
-
rubocop (~> 1.41)
|
92
86
|
rubocop-rake (0.6.0)
|
93
87
|
rubocop (~> 1.0)
|
94
|
-
rubocop-
|
95
|
-
|
96
|
-
rubocop
|
97
|
-
|
98
|
-
rubocop
|
99
|
-
rubocop-rspec_rails (2.28.3)
|
100
|
-
rubocop (~> 1.40)
|
88
|
+
rubocop-rbs (0.1.1)
|
89
|
+
rbs
|
90
|
+
rubocop
|
91
|
+
rubocop-rspec (3.0.5)
|
92
|
+
rubocop (~> 1.61)
|
101
93
|
ruby-progressbar (1.13.0)
|
102
94
|
securerandom (0.3.1)
|
103
|
-
steep (1.
|
95
|
+
steep (1.7.1)
|
104
96
|
activesupport (>= 5.1)
|
105
97
|
concurrent-ruby (>= 1.1.10)
|
106
98
|
csv (>= 3.0.9)
|
@@ -111,11 +103,11 @@ GEM
|
|
111
103
|
logger (>= 1.3.0)
|
112
104
|
parser (>= 3.1)
|
113
105
|
rainbow (>= 2.2.2, < 4.0)
|
114
|
-
rbs (>= 3.
|
106
|
+
rbs (>= 3.5.0.pre)
|
115
107
|
securerandom (>= 0.1)
|
116
108
|
strscan (>= 1.0.0)
|
117
109
|
terminal-table (>= 2, < 4)
|
118
|
-
strscan (3.0
|
110
|
+
strscan (3.1.0)
|
119
111
|
terminal-table (3.0.2)
|
120
112
|
unicode-display_width (>= 1.1.1, < 3)
|
121
113
|
typeprof (0.21.11)
|
@@ -123,7 +115,7 @@ GEM
|
|
123
115
|
tzinfo (2.0.6)
|
124
116
|
concurrent-ruby (~> 1.0)
|
125
117
|
unicode-display_width (2.5.0)
|
126
|
-
uri (0.13.
|
118
|
+
uri (0.13.1)
|
127
119
|
|
128
120
|
PLATFORMS
|
129
121
|
x86_64-linux
|
@@ -135,7 +127,8 @@ DEPENDENCIES
|
|
135
127
|
rspec (~> 3.13)
|
136
128
|
rubocop
|
137
129
|
rubocop-rake (~> 0.6.0)
|
138
|
-
rubocop-
|
130
|
+
rubocop-rbs (~> 0.1.1)
|
131
|
+
rubocop-rspec (~> 3.0)
|
139
132
|
steep
|
140
133
|
typeprof
|
141
134
|
|
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
|
-
|
33
|
-
|
33
|
+
def salmon_run_team_contest
|
34
|
+
return @salmon_run_team_contest unless @salmon_run_team_contest.nil?
|
34
35
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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
|
-
|
41
|
-
|
41
|
+
def event
|
42
|
+
return @event_match unless @event_match.nil?
|
42
43
|
|
43
|
-
|
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
data/sig/ika3/schedule.rbs
CHANGED
@@ -21,18 +21,20 @@ module Ika3
|
|
21
21
|
@end_time: untyped
|
22
22
|
@rule: Rule
|
23
23
|
@stages: Array[Stage]
|
24
|
-
@is_fest:
|
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:
|
32
|
+
@image: String
|
31
33
|
def initialize: (Hash[untyped, untyped] data) -> void
|
32
34
|
end
|
33
35
|
|
34
36
|
class Rule
|
35
|
-
@name:
|
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:
|
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.
|
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-
|
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.
|
97
|
+
rubygems_version: 3.5.11
|
97
98
|
signing_key:
|
98
99
|
specification_version: 4
|
99
100
|
summary: Splatoon3 weapons information library.
|