irasutoya 2.0.1 → 2.0.3
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 +4 -4
- data/.github/CODEOWNERS +1 -0
- data/.rubocop.yml +1 -1
- data/Gemfile.lock +71 -54
- data/lib/irasutoya/irasuto.rb +1 -1
- data/lib/irasutoya/modules/has_show_page_parser.rb +3 -1
- data/lib/irasutoya/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75db350289e478852d44bc49f07c8ce80fe0146f6e3459ca12aae2391611a7ce
|
|
4
|
+
data.tar.gz: 75ff785b36ec5c2758a2c90c18decb5e2cb82015cc25fbda6db58723a6269a73
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1bf176997b5ebe306e722d0fa91414d14606354dd51d26ce07164f0f0bad3f700a62db725b867b0dbac025f2ff16803bca9eaee5b10ca63b2dad5f76e4ebaa9f
|
|
7
|
+
data.tar.gz: f3823fc519f716972533216eed6fd9914529bc7bf7204a71d0e5fac7a7d93925ad75bc4f3bdfd4cd154f20e71e597ee9945d666a316c9a53802a0cc9a74ec8d8
|
data/.github/CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @unhappychoice
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
irasutoya (2.0.
|
|
4
|
+
irasutoya (2.0.3)
|
|
5
5
|
nokogiri
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
activesupport (
|
|
10
|
+
activesupport (7.2.3)
|
|
11
11
|
base64
|
|
12
12
|
benchmark (>= 0.3)
|
|
13
13
|
bigdecimal
|
|
@@ -19,26 +19,28 @@ GEM
|
|
|
19
19
|
minitest (>= 5.1)
|
|
20
20
|
securerandom (>= 0.3)
|
|
21
21
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
simplecov
|
|
22
|
+
ast (2.4.3)
|
|
23
|
+
base64 (0.3.0)
|
|
24
|
+
benchmark (0.5.0)
|
|
25
|
+
bigdecimal (4.0.1)
|
|
26
|
+
codecov (0.2.12)
|
|
27
|
+
json
|
|
28
|
+
simplecov
|
|
29
29
|
coderay (1.1.3)
|
|
30
|
-
concurrent-ruby (1.3.
|
|
31
|
-
connection_pool (2.
|
|
32
|
-
csv (3.3.
|
|
33
|
-
diff-lcs (1.
|
|
30
|
+
concurrent-ruby (1.3.6)
|
|
31
|
+
connection_pool (2.5.5)
|
|
32
|
+
csv (3.3.5)
|
|
33
|
+
diff-lcs (1.6.2)
|
|
34
34
|
docile (1.4.1)
|
|
35
|
-
drb (2.2.
|
|
36
|
-
ffi (1.17.
|
|
37
|
-
fileutils (1.
|
|
38
|
-
formatador (1.
|
|
39
|
-
|
|
35
|
+
drb (2.2.3)
|
|
36
|
+
ffi (1.17.3)
|
|
37
|
+
fileutils (1.8.0)
|
|
38
|
+
formatador (1.2.3)
|
|
39
|
+
reline
|
|
40
|
+
guard (2.20.1)
|
|
40
41
|
formatador (>= 0.2.4)
|
|
41
42
|
listen (>= 2.7, < 4.0)
|
|
43
|
+
logger (~> 1.6)
|
|
42
44
|
lumberjack (>= 1.0.12, < 2.0)
|
|
43
45
|
nenv (~> 0.1)
|
|
44
46
|
notiffany (~> 0.0)
|
|
@@ -53,99 +55,114 @@ GEM
|
|
|
53
55
|
guard-rubocop (1.5.0)
|
|
54
56
|
guard (~> 2.0)
|
|
55
57
|
rubocop (< 2.0)
|
|
56
|
-
i18n (1.14.
|
|
58
|
+
i18n (1.14.8)
|
|
57
59
|
concurrent-ruby (~> 1.0)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
io-console (0.8.2)
|
|
61
|
+
json (2.18.0)
|
|
62
|
+
language_server-protocol (3.17.0.5)
|
|
63
|
+
lint_roller (1.1.0)
|
|
64
|
+
listen (3.10.0)
|
|
65
|
+
logger
|
|
61
66
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
62
67
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
63
|
-
logger (1.
|
|
64
|
-
lumberjack (1.2
|
|
68
|
+
logger (1.7.0)
|
|
69
|
+
lumberjack (1.4.2)
|
|
65
70
|
method_source (1.1.0)
|
|
66
71
|
mini_portile2 (2.8.9)
|
|
67
|
-
minitest (5.
|
|
72
|
+
minitest (5.27.0)
|
|
73
|
+
mutex_m (0.3.0)
|
|
68
74
|
nenv (0.3.0)
|
|
69
|
-
nokogiri (1.18.
|
|
75
|
+
nokogiri (1.18.10)
|
|
70
76
|
mini_portile2 (~> 2.8.2)
|
|
71
77
|
racc (~> 1.4)
|
|
72
78
|
notiffany (0.1.3)
|
|
73
79
|
nenv (~> 0.1)
|
|
74
80
|
shellany (~> 0.0)
|
|
75
|
-
parallel (1.
|
|
76
|
-
parser (3.3.
|
|
81
|
+
parallel (1.27.0)
|
|
82
|
+
parser (3.3.10.1)
|
|
77
83
|
ast (~> 2.4.1)
|
|
78
84
|
racc
|
|
79
|
-
|
|
85
|
+
prism (1.9.0)
|
|
86
|
+
pry (0.16.0)
|
|
80
87
|
coderay (~> 1.1)
|
|
81
88
|
method_source (~> 1.0)
|
|
89
|
+
reline (>= 0.6.0)
|
|
82
90
|
racc (1.8.1)
|
|
83
91
|
rainbow (3.1.1)
|
|
84
|
-
rake (13.
|
|
92
|
+
rake (13.3.1)
|
|
85
93
|
rb-fsevent (0.11.2)
|
|
86
94
|
rb-inotify (0.11.1)
|
|
87
95
|
ffi (~> 1.0)
|
|
88
|
-
rbs (3.
|
|
96
|
+
rbs (3.10.3)
|
|
89
97
|
logger
|
|
90
|
-
|
|
91
|
-
|
|
98
|
+
tsort
|
|
99
|
+
regexp_parser (2.11.3)
|
|
100
|
+
reline (0.6.3)
|
|
101
|
+
io-console (~> 0.5)
|
|
102
|
+
rspec (3.13.2)
|
|
92
103
|
rspec-core (~> 3.13.0)
|
|
93
104
|
rspec-expectations (~> 3.13.0)
|
|
94
105
|
rspec-mocks (~> 3.13.0)
|
|
95
|
-
rspec-core (3.13.
|
|
106
|
+
rspec-core (3.13.6)
|
|
96
107
|
rspec-support (~> 3.13.0)
|
|
97
|
-
rspec-expectations (3.13.
|
|
108
|
+
rspec-expectations (3.13.5)
|
|
98
109
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
99
110
|
rspec-support (~> 3.13.0)
|
|
100
|
-
rspec-mocks (3.13.
|
|
111
|
+
rspec-mocks (3.13.7)
|
|
101
112
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
102
113
|
rspec-support (~> 3.13.0)
|
|
103
|
-
rspec-support (3.13.
|
|
104
|
-
rubocop (1.
|
|
114
|
+
rspec-support (3.13.7)
|
|
115
|
+
rubocop (1.84.1)
|
|
105
116
|
json (~> 2.3)
|
|
106
|
-
language_server-protocol (
|
|
117
|
+
language_server-protocol (~> 3.17.0.2)
|
|
118
|
+
lint_roller (~> 1.1.0)
|
|
107
119
|
parallel (~> 1.10)
|
|
108
120
|
parser (>= 3.3.0.2)
|
|
109
121
|
rainbow (>= 2.2.2, < 4.0)
|
|
110
122
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
111
|
-
rubocop-ast (>= 1.
|
|
123
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
112
124
|
ruby-progressbar (~> 1.7)
|
|
113
125
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
114
|
-
rubocop-ast (1.
|
|
115
|
-
parser (>= 3.3.
|
|
126
|
+
rubocop-ast (1.49.0)
|
|
127
|
+
parser (>= 3.3.7.2)
|
|
128
|
+
prism (~> 1.7)
|
|
116
129
|
ruby-progressbar (1.13.0)
|
|
117
130
|
securerandom (0.4.1)
|
|
118
131
|
shellany (0.0.1)
|
|
119
|
-
simplecov (0.
|
|
132
|
+
simplecov (0.22.0)
|
|
120
133
|
docile (~> 1.1)
|
|
121
134
|
simplecov-html (~> 0.11)
|
|
122
135
|
simplecov_json_formatter (~> 0.1)
|
|
123
|
-
simplecov-html (0.13.
|
|
136
|
+
simplecov-html (0.13.2)
|
|
124
137
|
simplecov_json_formatter (0.1.4)
|
|
125
|
-
steep (1.
|
|
138
|
+
steep (1.10.0)
|
|
126
139
|
activesupport (>= 5.1)
|
|
127
140
|
concurrent-ruby (>= 1.1.10)
|
|
128
141
|
csv (>= 3.0.9)
|
|
129
142
|
fileutils (>= 1.1.0)
|
|
130
143
|
json (>= 2.1.0)
|
|
131
|
-
language_server-protocol (>= 3.
|
|
144
|
+
language_server-protocol (>= 3.17.0.4, < 4.0)
|
|
132
145
|
listen (~> 3.0)
|
|
133
146
|
logger (>= 1.3.0)
|
|
147
|
+
mutex_m (>= 0.3.0)
|
|
134
148
|
parser (>= 3.1)
|
|
135
149
|
rainbow (>= 2.2.2, < 4.0)
|
|
136
|
-
rbs (~> 3.
|
|
150
|
+
rbs (~> 3.9)
|
|
137
151
|
securerandom (>= 0.1)
|
|
138
152
|
strscan (>= 1.0.0)
|
|
139
|
-
terminal-table (>= 2, <
|
|
153
|
+
terminal-table (>= 2, < 5)
|
|
140
154
|
uri (>= 0.12.0)
|
|
141
|
-
strscan (3.1.
|
|
142
|
-
terminal-table (
|
|
143
|
-
unicode-display_width (>= 1.1.1, <
|
|
144
|
-
thor (1.
|
|
155
|
+
strscan (3.1.7)
|
|
156
|
+
terminal-table (4.0.0)
|
|
157
|
+
unicode-display_width (>= 1.1.1, < 4)
|
|
158
|
+
thor (1.5.0)
|
|
159
|
+
tsort (0.2.0)
|
|
145
160
|
tzinfo (2.0.6)
|
|
146
161
|
concurrent-ruby (~> 1.0)
|
|
147
|
-
unicode-display_width (2.
|
|
148
|
-
|
|
162
|
+
unicode-display_width (3.2.0)
|
|
163
|
+
unicode-emoji (~> 4.1)
|
|
164
|
+
unicode-emoji (4.2.0)
|
|
165
|
+
uri (1.1.1)
|
|
149
166
|
|
|
150
167
|
PLATFORMS
|
|
151
168
|
ruby
|
data/lib/irasutoya/irasuto.rb
CHANGED
|
@@ -49,7 +49,7 @@ module Irasutoya
|
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
def random_url
|
|
52
|
-
jsonp = Net::HTTP.get(
|
|
52
|
+
jsonp = Net::HTTP.get(URI.parse("https://www.irasutoya.com#{random_api_path}"))
|
|
53
53
|
JSON.parse(jsonp[/{.+}/]) # rubocop:disable Style/SingleArgumentDig
|
|
54
54
|
.dig('feed', 'entry')
|
|
55
55
|
.first
|
|
@@ -26,7 +26,9 @@ module Irasutoya
|
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
def description_from(document:)
|
|
29
|
-
document.css('.entry
|
|
29
|
+
separators = document.css('.entry .separator')
|
|
30
|
+
target = separators.length > 1 ? separators[1] : separators[0]
|
|
31
|
+
target&.text&.strip || ''
|
|
30
32
|
end
|
|
31
33
|
|
|
32
34
|
def image_url_from(document:)
|
data/lib/irasutoya/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: irasutoya
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yuji Ueki
|
|
@@ -198,6 +198,7 @@ executables: []
|
|
|
198
198
|
extensions: []
|
|
199
199
|
extra_rdoc_files: []
|
|
200
200
|
files:
|
|
201
|
+
- ".github/CODEOWNERS"
|
|
201
202
|
- ".github/dependabot.yml"
|
|
202
203
|
- ".github/workflows/release.yaml"
|
|
203
204
|
- ".github/workflows/test.yml"
|