irasutoya 2.0.2 → 2.0.4

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: 5c5e8b91b6cb5d954c478a44fb173779aa044d6586a479b07bdb160fd3558627
4
- data.tar.gz: c75caf4532a948147a138875a32c1d397018a78689306ef9e3b3342205e7f9ba
3
+ metadata.gz: 9a528afe3932f9b5a8753756121a275b3b02ef997a2a38df6eaa1a85b5075f77
4
+ data.tar.gz: d64fda29003a8b9cfb5d61cdde0723f07e7eee06333e67744ce9ea265330c1ab
5
5
  SHA512:
6
- metadata.gz: 185ae5b31f4df23ce318616e5193a44a389ffe5353a3c7a22e60c0e1b2ac0278b7443dd62d95a5ea235593ee5caefd98801b0ec89fb52ae5c61cd223351b84fc
7
- data.tar.gz: 52d05c9a5b8c3153e5aa753104363a4fa68d4e38ba13eeedf45e9b8ab699533725da99763ce5ddf5f069ba1078e3ea43c18d3aace2e5e7c7f5be08a6a290258b
6
+ metadata.gz: ad1761b43347ced345ec10e19f2c6694b943cef460d95b0a5854e59ca43fb0ef0d27727ff3601cf824a82c4ee5bc01b7e466138ce750b3885d202b7ffb336194
7
+ data.tar.gz: 46261ed6800021139fd35961cccaf7e20f2cf10572a157cf34ae1eb7e230c1c6492b07622750f7fb0da1cfea620f5ff477c40cbbce0a2833914a0f49893c7905
@@ -0,0 +1 @@
1
+ * @unhappychoice
@@ -1,16 +1,15 @@
1
1
  version: 2
2
2
  updates:
3
- - package-ecosystem: bundler
4
- directory: "/"
5
- schedule:
6
- interval: daily
7
- time: "12:00"
8
- timezone: Asia/Tokyo
9
- open-pull-requests-limit: 20
10
- reviewers:
11
- - unhappychoice
12
- allow:
13
- - dependency-type: direct
14
- - dependency-type: indirect
15
- ignore:
16
-
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "12:00"
8
+ timezone: Asia/Tokyo
9
+ open-pull-requests-limit: 20
10
+ allow:
11
+ - dependency-type: direct
12
+ - dependency-type: indirect
13
+ ignore:
14
+ - dependency-name: parallel
15
+ update-types: ["version-update:semver-major"]
@@ -14,7 +14,7 @@ on:
14
14
  jobs:
15
15
  push:
16
16
  name: Push gem to RubyGems.org
17
- runs-on: ubuntu-latest
17
+ runs-on: ubuntu-24.04
18
18
  environment:
19
19
  name: release
20
20
  permissions:
@@ -30,7 +30,7 @@ jobs:
30
30
  - name: Setup Git
31
31
  run: |
32
32
  git config --global user.email "unhappychoice@gmail.com"
33
- git config --global user.name "unhappychoice"
33
+ git config --global user.name "Yuji Ueki"
34
34
  - name: Install gem-release
35
35
  run: gem install gem-release
36
36
  - name: Bump version
@@ -4,7 +4,7 @@ on: [push]
4
4
 
5
5
  jobs:
6
6
  lint:
7
- runs-on: ubuntu-latest
7
+ runs-on: ubuntu-24.04
8
8
  steps:
9
9
  - uses: actions/checkout@master
10
10
  - name: Set up Ruby
@@ -18,10 +18,10 @@ jobs:
18
18
  - name: Run lint
19
19
  run: bundle exec rubocop lib
20
20
  test:
21
- runs-on: ubuntu-latest
21
+ runs-on: ubuntu-24.04
22
22
  strategy:
23
23
  matrix:
24
- ruby: ['3.4.4', '3.3.8', '3.2.8', '3.1.7']
24
+ ruby: ['3.4.4', '3.3.8']
25
25
  steps:
26
26
  - uses: actions/checkout@master
27
27
  - name: Set up Ruby
@@ -37,5 +37,8 @@ jobs:
37
37
  env:
38
38
  RAILS_ENV: test
39
39
  COVERAGE: true
40
- CODECOV_TOKEN: 3786990f-aaba-4bc7-8a14-dcaac1d22749
41
40
  run: bundle exec rspec
41
+ - name: Upload coverage to Codecov
42
+ uses: codecov/codecov-action@v5
43
+ with:
44
+ token: ${{ secrets.CODECOV_TOKEN }}
data/.rubocop.yml CHANGED
@@ -2,11 +2,11 @@ inherit_from: .rubocop_todo.yml
2
2
 
3
3
  AllCops:
4
4
  NewCops: enable
5
- TargetRubyVersion: 3.1
5
+ TargetRubyVersion: 3.3
6
6
 
7
7
  Style/Documentation:
8
8
  Enabled: false
9
9
 
10
- Metrics/LineLength:
10
+ Layout/LineLength:
11
11
  Max: 120
12
12
 
data/Gemfile.lock CHANGED
@@ -1,44 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- irasutoya (2.0.2)
4
+ irasutoya (2.0.4)
5
5
  nokogiri
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (8.0.1)
11
- base64
12
- benchmark (>= 0.3)
13
- bigdecimal
14
- concurrent-ruby (~> 1.0, >= 1.3.1)
15
- connection_pool (>= 2.2.5)
16
- drb
17
- i18n (>= 1.6, < 2)
18
- logger (>= 1.4.2)
19
- minitest (>= 5.1)
20
- securerandom (>= 0.3)
21
- tzinfo (~> 2.0, >= 2.0.5)
22
- uri (>= 0.13.1)
23
- ast (2.4.2)
24
- base64 (0.2.0)
25
- benchmark (0.4.0)
26
- bigdecimal (3.1.9)
27
- codecov (0.6.0)
28
- simplecov (>= 0.15, < 0.22)
10
+ ast (2.4.3)
11
+ base64 (0.3.0)
29
12
  coderay (1.1.3)
30
- concurrent-ruby (1.3.4)
31
- connection_pool (2.4.1)
32
- csv (3.3.2)
33
- diff-lcs (1.5.1)
34
- docile (1.4.1)
35
- drb (2.2.1)
36
- ffi (1.17.1)
37
- fileutils (1.7.3)
38
- formatador (1.1.0)
39
- guard (2.19.0)
13
+ concurrent-ruby (1.3.8)
14
+ csv (3.3.7)
15
+ diff-lcs (1.6.2)
16
+ ffi (1.17.4)
17
+ fileutils (1.8.1)
18
+ formatador (1.2.3)
19
+ reline
20
+ guard (2.20.2)
40
21
  formatador (>= 0.2.4)
41
22
  listen (>= 2.7, < 4.0)
23
+ logger (~> 1.6)
42
24
  lumberjack (>= 1.0.12, < 2.0)
43
25
  nenv (~> 0.1)
44
26
  notiffany (~> 0.0)
@@ -53,99 +35,103 @@ GEM
53
35
  guard-rubocop (1.5.0)
54
36
  guard (~> 2.0)
55
37
  rubocop (< 2.0)
56
- i18n (1.14.6)
57
- concurrent-ruby (~> 1.0)
58
- json (2.9.1)
59
- language_server-protocol (3.17.0.3)
60
- listen (3.9.0)
38
+ io-console (0.9.5)
39
+ json (3.1.0)
40
+ language_server-protocol (3.17.0.6)
41
+ lint_roller (1.1.0)
42
+ listen (3.10.1)
43
+ logger
61
44
  rb-fsevent (~> 0.10, >= 0.10.3)
62
45
  rb-inotify (~> 0.9, >= 0.9.10)
63
- logger (1.6.4)
64
- lumberjack (1.2.10)
46
+ logger (1.7.0)
47
+ lumberjack (1.4.2)
65
48
  method_source (1.1.0)
66
49
  mini_portile2 (2.8.9)
67
- minitest (5.25.4)
68
50
  nenv (0.3.0)
69
- nokogiri (1.18.8)
51
+ nokogiri (1.19.7)
70
52
  mini_portile2 (~> 2.8.2)
71
53
  racc (~> 1.4)
72
54
  notiffany (0.1.3)
73
55
  nenv (~> 0.1)
74
56
  shellany (~> 0.0)
75
- parallel (1.26.3)
76
- parser (3.3.6.0)
57
+ parallel (2.3.0)
58
+ parser (3.3.13.0)
77
59
  ast (~> 2.4.1)
78
60
  racc
79
- pry (0.15.2)
61
+ prism (2.1.0)
62
+ pry (0.16.1)
80
63
  coderay (~> 1.1)
81
64
  method_source (~> 1.0)
65
+ reline (>= 0.6.0)
82
66
  racc (1.8.1)
83
67
  rainbow (3.1.1)
84
- rake (13.2.1)
68
+ rake (13.4.2)
85
69
  rb-fsevent (0.11.2)
86
70
  rb-inotify (0.11.1)
87
71
  ffi (~> 1.0)
88
- rbs (3.8.1)
72
+ rbs (4.2.0)
89
73
  logger
90
- regexp_parser (2.10.0)
91
- rspec (3.13.0)
74
+ prism (>= 1.6.0)
75
+ tsort
76
+ regexp_parser (2.13.1)
77
+ reline (0.7.0)
78
+ io-console (~> 0.5)
79
+ rspec (3.13.2)
92
80
  rspec-core (~> 3.13.0)
93
81
  rspec-expectations (~> 3.13.0)
94
82
  rspec-mocks (~> 3.13.0)
95
- rspec-core (3.13.2)
83
+ rspec-core (3.13.7)
96
84
  rspec-support (~> 3.13.0)
97
- rspec-expectations (3.13.3)
85
+ rspec-expectations (3.13.6)
98
86
  diff-lcs (>= 1.2.0, < 2.0)
99
87
  rspec-support (~> 3.13.0)
100
- rspec-mocks (3.13.2)
88
+ rspec-mocks (3.13.9)
101
89
  diff-lcs (>= 1.2.0, < 2.0)
102
90
  rspec-support (~> 3.13.0)
103
- rspec-support (3.13.2)
104
- rubocop (1.69.2)
105
- json (~> 2.3)
106
- language_server-protocol (>= 3.17.0)
107
- parallel (~> 1.10)
91
+ rspec-support (3.13.8)
92
+ rubocop (1.92.2)
93
+ json (>= 2.3)
94
+ language_server-protocol (~> 3.17.0.2)
95
+ lint_roller (~> 1.1.0)
96
+ parallel (>= 1.10)
108
97
  parser (>= 3.3.0.2)
109
98
  rainbow (>= 2.2.2, < 4.0)
110
- regexp_parser (>= 2.9.3, < 3.0)
111
- rubocop-ast (>= 1.36.2, < 2.0)
99
+ regexp_parser (>= 2.11.3, < 3.0)
100
+ rubocop-ast (>= 1.49.0, < 2.0)
112
101
  ruby-progressbar (~> 1.7)
113
102
  unicode-display_width (>= 2.4.0, < 4.0)
114
- rubocop-ast (1.37.0)
115
- parser (>= 3.3.1.0)
103
+ rubocop-ast (1.51.0)
104
+ parser (>= 3.3.7.2)
105
+ prism (>= 1.7)
116
106
  ruby-progressbar (1.13.0)
117
107
  securerandom (0.4.1)
118
108
  shellany (0.0.1)
119
- simplecov (0.21.2)
120
- docile (~> 1.1)
121
- simplecov-html (~> 0.11)
122
- simplecov_json_formatter (~> 0.1)
123
- simplecov-html (0.13.1)
124
- simplecov_json_formatter (0.1.4)
125
- steep (1.9.3)
126
- activesupport (>= 5.1)
109
+ simplecov (1.3.2)
110
+ steep (2.1.0)
127
111
  concurrent-ruby (>= 1.1.10)
128
112
  csv (>= 3.0.9)
129
113
  fileutils (>= 1.1.0)
130
114
  json (>= 2.1.0)
131
- language_server-protocol (>= 3.15, < 4.0)
115
+ language_server-protocol (>= 3.17.0.4, < 4.0)
132
116
  listen (~> 3.0)
133
117
  logger (>= 1.3.0)
134
- parser (>= 3.1)
118
+ parser (>= 3.2)
119
+ prism (>= 0.25.0)
135
120
  rainbow (>= 2.2.2, < 4.0)
136
- rbs (~> 3.8)
121
+ rbs (~> 4.2)
137
122
  securerandom (>= 0.1)
138
123
  strscan (>= 1.0.0)
139
- terminal-table (>= 2, < 4)
124
+ terminal-table (>= 2, < 5)
140
125
  uri (>= 0.12.0)
141
- strscan (3.1.2)
142
- terminal-table (3.0.2)
143
- unicode-display_width (>= 1.1.1, < 3)
144
- thor (1.3.2)
145
- tzinfo (2.0.6)
146
- concurrent-ruby (~> 1.0)
147
- unicode-display_width (2.6.0)
148
- uri (1.0.3)
126
+ strscan (3.1.8)
127
+ terminal-table (4.0.0)
128
+ unicode-display_width (>= 1.1.1, < 4)
129
+ thor (1.5.0)
130
+ tsort (0.2.0)
131
+ unicode-display_width (3.3.0)
132
+ unicode-emoji (~> 4.3)
133
+ unicode-emoji (4.3.0)
134
+ uri (1.1.2)
149
135
 
150
136
  PLATFORMS
151
137
  ruby
@@ -153,7 +139,6 @@ PLATFORMS
153
139
  DEPENDENCIES
154
140
  base64
155
141
  bundler (~> 2.0)
156
- codecov
157
142
  guard
158
143
  guard-rspec
159
144
  guard-rubocop
data/README.md CHANGED
@@ -62,3 +62,7 @@ The gem is available as open source under the terms of the [MIT License](https:/
62
62
  ## Code of Conduct
63
63
 
64
64
  Everyone interacting in the Irasutoya project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/irasutoya-tools/irasutoya/blob/master/CODE_OF_CONDUCT.md).
65
+
66
+ ## Author
67
+
68
+ [@unhappychoice](https://unhappychoice.com)
data/irasutoya.gemspec CHANGED
@@ -7,7 +7,7 @@ require 'irasutoya/version'
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'irasutoya'
9
9
  spec.version = Irasutoya::VERSION
10
- spec.required_ruby_version = '>= 3.1'
10
+ spec.required_ruby_version = '>= 3.3'
11
11
  spec.authors = ['Yuji Ueki']
12
12
  spec.email = ['unhappychoice@gmail.com']
13
13
 
@@ -33,7 +33,6 @@ Gem::Specification.new do |spec|
33
33
 
34
34
  spec.add_development_dependency 'base64'
35
35
  spec.add_development_dependency 'bundler', '~> 2.0'
36
- spec.add_development_dependency 'codecov'
37
36
  spec.add_development_dependency 'guard'
38
37
  spec.add_development_dependency 'guard-rspec'
39
38
  spec.add_development_dependency 'guard-rubocop'
@@ -26,7 +26,9 @@ module Irasutoya
26
26
  end
27
27
 
28
28
  def description_from(document:)
29
- document.css('.entry').css('.separator')[1].text.strip
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:)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Irasutoya
4
- VERSION = '2.0.2'
4
+ VERSION = '2.0.4'
5
5
  end
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.2
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Ueki
@@ -51,20 +51,6 @@ dependencies:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '2.0'
54
- - !ruby/object:Gem::Dependency
55
- name: codecov
56
- requirement: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: '0'
61
- type: :development
62
- prerelease: false
63
- version_requirements: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- version: '0'
68
54
  - !ruby/object:Gem::Dependency
69
55
  name: guard
70
56
  requirement: !ruby/object:Gem::Requirement
@@ -198,6 +184,7 @@ executables: []
198
184
  extensions: []
199
185
  extra_rdoc_files: []
200
186
  files:
187
+ - ".github/CODEOWNERS"
201
188
  - ".github/dependabot.yml"
202
189
  - ".github/workflows/release.yaml"
203
190
  - ".github/workflows/test.yml"
@@ -245,7 +232,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
245
232
  requirements:
246
233
  - - ">="
247
234
  - !ruby/object:Gem::Version
248
- version: '3.1'
235
+ version: '3.3'
249
236
  required_rubygems_version: !ruby/object:Gem::Requirement
250
237
  requirements:
251
238
  - - ">="