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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0641134f599867c1e3f69db58c99a3b46e9e457ff38c881aba4a87a5cc7f4364
4
- data.tar.gz: ab3929820f060926521fca695f458e8bc55ad11c569fa52af63df45f3221b6a9
3
+ metadata.gz: 0ba7bcbae786c0fc73da5a5b72cc74ca911de50864798d7a18fe2ca590d74672
4
+ data.tar.gz: 2ea295d5c2b32c04a1650eee787dd9cd9784100656b57d87f92fb4ba276495bc
5
5
  SHA512:
6
- metadata.gz: eb1c92f3c8ace5743bab3b3b4fc7759e1345fdb3cc00d106c2b9d319c92cdac42c77b5fdeecf8ddd7d3d595b10712278b0fa29a1c0834285f4033cf101bdd318
7
- data.tar.gz: 6f1e7e0269af8773fb6667449198943321530807aa35c9fa475e4621029d120c60e71bb37d6bdb1367146e3963210f48e1c574a2de972d0e95b8cbbf7db50a48
6
+ metadata.gz: c1938897f890d8d15a20089d4254e0674e02a62feb7dfbcc7f486f6a3de51aab58804553758cc499b4108f71a27b50dc831584afce3acea97686241761b37e17
7
+ data.tar.gz: b908b9b4ac1405049dd3549d7d4f6b4065495c53a643a89eb52af672cc5a69b6e16d58a24b8cbfc3be0f8ad6638046e502b70600a8fae55ed5796ba2975364e1
@@ -6,5 +6,7 @@ updates:
6
6
  directory: /
7
7
  schedule:
8
8
  interval: weekly
9
+ cooldown:
10
+ default-days: 7
9
11
  assignees:
10
12
  - sue445
@@ -30,9 +30,9 @@ jobs:
30
30
  runs-on: ubuntu-latest
31
31
  steps:
32
32
  - name: Checkout
33
- uses: actions/checkout@v4
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@v3
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@main
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 }}
@@ -29,9 +29,9 @@ jobs:
29
29
  - "3.4"
30
30
 
31
31
  steps:
32
- - uses: actions/checkout@v4
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.0...master)
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:
@@ -82,7 +82,14 @@ module Itest5ch
82
82
  #
83
83
  # @return [String]
84
84
  def self.normalize_message(message)
85
- message = coder.decode(message).scrub("")
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
@@ -1,3 +1,3 @@
1
1
  module Itest5ch
2
- VERSION = "3.0.0".freeze
2
+ VERSION = "3.0.2".freeze
3
3
  end
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.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: 2025-03-24 00:00:00.000000000 Z
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.2
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: []