itest5ch 3.0.0 → 3.0.2
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/dependabot.yml +2 -0
- data/.github/workflows/pages.yml +6 -6
- data/.github/workflows/release_gem.yml +41 -0
- data/.github/workflows/test.yml +6 -6
- data/CHANGELOG.md +14 -2
- data/lib/itest5ch/thread.rb +8 -1
- data/lib/itest5ch/version.rb +1 -1
- 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: 0ba7bcbae786c0fc73da5a5b72cc74ca911de50864798d7a18fe2ca590d74672
|
|
4
|
+
data.tar.gz: 2ea295d5c2b32c04a1650eee787dd9cd9784100656b57d87f92fb4ba276495bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c1938897f890d8d15a20089d4254e0674e02a62feb7dfbcc7f486f6a3de51aab58804553758cc499b4108f71a27b50dc831584afce3acea97686241761b37e17
|
|
7
|
+
data.tar.gz: b908b9b4ac1405049dd3549d7d4f6b4065495c53a643a89eb52af672cc5a69b6e16d58a24b8cbfc3be0f8ad6638046e502b70600a8fae55ed5796ba2975364e1
|
data/.github/dependabot.yml
CHANGED
data/.github/workflows/pages.yml
CHANGED
|
@@ -30,9 +30,9 @@ jobs:
|
|
|
30
30
|
runs-on: ubuntu-latest
|
|
31
31
|
steps:
|
|
32
32
|
- name: Checkout
|
|
33
|
-
uses: actions/checkout@
|
|
33
|
+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
34
34
|
|
|
35
|
-
- uses: ruby/setup-ruby@v1
|
|
35
|
+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
|
|
36
36
|
with:
|
|
37
37
|
ruby-version: ruby
|
|
38
38
|
bundler-cache: true
|
|
@@ -40,18 +40,18 @@ jobs:
|
|
|
40
40
|
- run: bundle exec yard
|
|
41
41
|
|
|
42
42
|
- name: Setup Pages
|
|
43
|
-
uses: actions/configure-pages@v5
|
|
43
|
+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
|
|
44
44
|
- name: Upload artifact
|
|
45
|
-
uses: actions/upload-pages-artifact@
|
|
45
|
+
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
|
|
46
46
|
with:
|
|
47
47
|
# Upload entire repository
|
|
48
48
|
path: './doc'
|
|
49
49
|
- name: Deploy to GitHub Pages
|
|
50
50
|
id: deployment
|
|
51
|
-
uses: actions/deploy-pages@
|
|
51
|
+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
|
|
52
52
|
|
|
53
53
|
- name: Slack Notification (not success)
|
|
54
|
-
uses: act10ns/slack@v2
|
|
54
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
55
55
|
if: "! success()"
|
|
56
56
|
continue-on-error: true
|
|
57
57
|
with:
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Publish gem to rubygems.org
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
release:
|
|
8
|
+
if: github.repository == 'sue445/itest5ch'
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
environment:
|
|
12
|
+
name: rubygems.org
|
|
13
|
+
url: https://rubygems.org/gems/itest5ch
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write
|
|
17
|
+
id-token: write
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: Harden Runner
|
|
21
|
+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
|
|
22
|
+
with:
|
|
23
|
+
egress-policy: audit
|
|
24
|
+
|
|
25
|
+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
26
|
+
|
|
27
|
+
- name: Set up Ruby
|
|
28
|
+
uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
|
|
29
|
+
with:
|
|
30
|
+
bundler-cache: true
|
|
31
|
+
ruby-version: ruby
|
|
32
|
+
|
|
33
|
+
- name: Publish to RubyGems
|
|
34
|
+
uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
|
|
35
|
+
|
|
36
|
+
- name: Create GitHub release
|
|
37
|
+
run: |
|
|
38
|
+
tag_name="$(git describe --tags --abbrev=0)"
|
|
39
|
+
gh release create "${tag_name}" --verify-tag --generate-notes
|
|
40
|
+
env:
|
|
41
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/.github/workflows/test.yml
CHANGED
|
@@ -29,9 +29,9 @@ jobs:
|
|
|
29
29
|
- "3.4"
|
|
30
30
|
|
|
31
31
|
steps:
|
|
32
|
-
- uses: actions/checkout@
|
|
32
|
+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
33
33
|
|
|
34
|
-
- uses: ruby/setup-ruby@v1
|
|
34
|
+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
|
|
35
35
|
with:
|
|
36
36
|
ruby-version: ${{ matrix.ruby }}
|
|
37
37
|
bundler-cache: true
|
|
@@ -43,7 +43,7 @@ jobs:
|
|
|
43
43
|
bundle update --jobs $(nproc) --retry 3
|
|
44
44
|
|
|
45
45
|
- name: Setup Code Climate Test Reporter
|
|
46
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
46
|
+
uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
|
|
47
47
|
with:
|
|
48
48
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
49
49
|
command: before-build
|
|
@@ -52,7 +52,7 @@ jobs:
|
|
|
52
52
|
- run: bundle exec rspec
|
|
53
53
|
|
|
54
54
|
- name: Teardown Code Climate Test Reporter
|
|
55
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
55
|
+
uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
|
|
56
56
|
with:
|
|
57
57
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
58
58
|
command: after-build
|
|
@@ -62,7 +62,7 @@ jobs:
|
|
|
62
62
|
- run: bundle exec rubocop
|
|
63
63
|
|
|
64
64
|
- name: Slack Notification (not success)
|
|
65
|
-
uses: act10ns/slack@v2
|
|
65
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
66
66
|
if: "! success()"
|
|
67
67
|
continue-on-error: true
|
|
68
68
|
with:
|
|
@@ -78,7 +78,7 @@ jobs:
|
|
|
78
78
|
|
|
79
79
|
steps:
|
|
80
80
|
- name: Slack Notification (success)
|
|
81
|
-
uses: act10ns/slack@v2
|
|
81
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
82
82
|
if: always()
|
|
83
83
|
continue-on-error: true
|
|
84
84
|
with:
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
## master
|
|
2
|
-
[full changelog](http://github.com/sue445/itest5ch/compare/v3.0.
|
|
2
|
+
[full changelog](http://github.com/sue445/itest5ch/compare/v3.0.2...master)
|
|
3
3
|
|
|
4
|
-
## v3.0.0
|
|
4
|
+
## [v3.0.1](https://github.com/sue445/itest5ch/releases/tag/v3.0.2)
|
|
5
|
+
[full changelog](http://github.com/sue445/itest5ch/compare/v3.0.1...v3.0.2)
|
|
6
|
+
|
|
7
|
+
* Release gem from GitHub Actions
|
|
8
|
+
* https://github.com/sue445/itest5ch/pull/117
|
|
9
|
+
|
|
10
|
+
## [v3.0.1](https://github.com/sue445/itest5ch/releases/tag/v3.0.1)
|
|
11
|
+
[full changelog](http://github.com/sue445/itest5ch/compare/v3.0.0...v3.0.1)
|
|
12
|
+
|
|
13
|
+
* Fix RangeError invalid codepoint in UTF-8 when htmlentities 4.4.0+
|
|
14
|
+
* https://github.com/sue445/itest5ch/pull/115
|
|
15
|
+
|
|
16
|
+
## [v3.0.0](https://github.com/sue445/itest5ch/releases/tag/v3.0.0)
|
|
5
17
|
[full changelog](http://github.com/sue445/itest5ch/compare/v2.0.2...v3.0.0)
|
|
6
18
|
|
|
7
19
|
### BREAKING CHANGES :bomb:
|
data/lib/itest5ch/thread.rb
CHANGED
|
@@ -82,7 +82,14 @@ module Itest5ch
|
|
|
82
82
|
#
|
|
83
83
|
# @return [String]
|
|
84
84
|
def self.normalize_message(message)
|
|
85
|
-
message =
|
|
85
|
+
message =
|
|
86
|
+
begin
|
|
87
|
+
coder.decode(message)
|
|
88
|
+
rescue RangeError
|
|
89
|
+
message.gsub(/&#\d+;/, "")
|
|
90
|
+
end
|
|
91
|
+
message = message.scrub("")
|
|
92
|
+
|
|
86
93
|
message = CGI.unescapeHTML(message)
|
|
87
94
|
message.gsub(/\s*<br>\s*/i, "\n").strip
|
|
88
95
|
end
|
data/lib/itest5ch/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: itest5ch
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: htmlentities
|
|
@@ -285,6 +285,7 @@ files:
|
|
|
285
285
|
- ".coveralls.yml"
|
|
286
286
|
- ".github/dependabot.yml"
|
|
287
287
|
- ".github/workflows/pages.yml"
|
|
288
|
+
- ".github/workflows/release_gem.yml"
|
|
288
289
|
- ".github/workflows/test.yml"
|
|
289
290
|
- ".gitignore"
|
|
290
291
|
- ".rspec"
|
|
@@ -330,7 +331,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
330
331
|
- !ruby/object:Gem::Version
|
|
331
332
|
version: '0'
|
|
332
333
|
requirements: []
|
|
333
|
-
rubygems_version: 3.6.
|
|
334
|
+
rubygems_version: 3.6.7
|
|
334
335
|
specification_version: 4
|
|
335
336
|
summary: 5ch (a.k.a. 2ch) reader via itest.5ch.net
|
|
336
337
|
test_files: []
|