panchira 1.5.2 → 1.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db34e8033acf822616172b330fc61ffe2ee5a1c9dfe46bc1737257717aeff4c0
4
- data.tar.gz: 5ec893680ef7e04b2f85d16b3458ee9f6b2db76ac6c01544a088d280a574e98c
3
+ metadata.gz: b0a6e502368c14a15073925a7c717646a8e59ff1fbb17240aba4abdedd93fec7
4
+ data.tar.gz: 42557986e00b95619e845c79b20a15f17370fbf72b8bf163f98e0a1660d2d244
5
5
  SHA512:
6
- metadata.gz: 71b2d7707d78b21004acdca984f1869cc81a9e9169bee9239b13261a79002ed859a5a87c8aa08350a89d37ce734abb47637c909aa01b5dab171eb871ad27d9e0
7
- data.tar.gz: fbe9744acbbdbd13376e2a6bdaf1c4430c20861163b39f6bb7ed26436c8fd6c64876e329c0c9aae5c129a59257d7c06eac2508b7c1283bc27d405f0c2e836b0e
6
+ metadata.gz: 7f500d879e81fda3ac9c3869b16293b1591da1ac60b149e679fa35be797524a63e01696995f9e4d46f3e0854f213dc276dc84427cbb4bd0086504b931e9ac3f0
7
+ data.tar.gz: 120c8d8c4d86b3a6dda82d14b9cc63a9e9854d930b835fb46681c2392cabce0807ee67332fe2aaafea4f7afd4f626001842a53a8aa8cdb853bb2c7ff6c1773c2
data/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## 1.5.3 - 2022-06-04
8
+ ### Fixed
9
+ - Fixed an issue where Pixiv resolver can't retrieve image urls for manga.
10
+
11
+ ### Changed
12
+ - DLsite resolver now returns descriptions without platform PR sentences.
13
+
7
14
  ## 1.5.2 - 2022-03-20
8
15
  ### Fixed
9
16
  - Fixed an issue where Pixiv resolver can't retrieve not-proxied image scales.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- panchira (1.5.2)
4
+ panchira (1.5.3)
5
5
  fastimage (~> 2.1.7)
6
6
  nokogiri (>= 1.10.9, < 1.14.0)
7
7
 
@@ -10,35 +10,38 @@ GEM
10
10
  specs:
11
11
  ast (2.4.2)
12
12
  fastimage (2.1.7)
13
+ mini_portile2 (2.8.0)
13
14
  minitest (5.15.0)
14
- nokogiri (1.13.3-x86_64-darwin)
15
+ nokogiri (1.13.6)
16
+ mini_portile2 (~> 2.8.0)
15
17
  racc (~> 1.4)
16
- parallel (1.21.0)
17
- parser (3.1.1.0)
18
+ parallel (1.22.1)
19
+ parser (3.1.2.0)
18
20
  ast (~> 2.4.1)
19
21
  racc (1.6.0)
20
22
  rainbow (3.1.1)
21
23
  rake (12.3.3)
22
- regexp_parser (2.2.1)
24
+ regexp_parser (2.5.0)
23
25
  rexml (3.2.5)
24
- rubocop (1.25.1)
26
+ rubocop (1.30.0)
25
27
  parallel (~> 1.10)
26
28
  parser (>= 3.1.0.0)
27
29
  rainbow (>= 2.2.2, < 4.0)
28
30
  regexp_parser (>= 1.8, < 3.0)
29
- rexml
30
- rubocop-ast (>= 1.15.1, < 2.0)
31
+ rexml (>= 3.2.5, < 4.0)
32
+ rubocop-ast (>= 1.18.0, < 2.0)
31
33
  ruby-progressbar (~> 1.7)
32
34
  unicode-display_width (>= 1.4.0, < 3.0)
33
- rubocop-ast (1.16.0)
35
+ rubocop-ast (1.18.0)
34
36
  parser (>= 3.1.1.0)
35
- rubocop-minitest (0.17.2)
37
+ rubocop-minitest (0.20.0)
36
38
  rubocop (>= 0.90, < 2.0)
37
39
  ruby-progressbar (1.11.0)
38
40
  unicode-display_width (2.1.0)
39
41
 
40
42
  PLATFORMS
41
43
  ruby
44
+ x86_64-linux
42
45
 
43
46
  DEPENDENCIES
44
47
  bundler (~> 2.0)
@@ -18,6 +18,10 @@ module Panchira
18
18
  @title_md[1]
19
19
  end
20
20
 
21
+ def parse_description
22
+ super.split('「DLsite').first
23
+ end
24
+
21
25
  def parse_authors
22
26
  @page.css('table[id*="work_"] tr').each do |tr|
23
27
  next unless tr.css('th').text =~ /(作|著)者/
@@ -43,8 +43,9 @@ module Panchira
43
43
 
44
44
  proxy_url = "https://pixiv.cat/#{@illust_id}.jpg"
45
45
 
46
- case Net::HTTP.get_response(URI.parse(proxy_url))
47
- when Net::HTTPNotFound
46
+ case res = Net::HTTP.get_response(URI.parse(proxy_url))
47
+ when Net::HTTPMovedPermanently
48
+ # 301が返された場合、locationで渡されたURIにホストが含まれず扱いづらいため決め打ちする
48
49
  proxy_url = "https://pixiv.cat/#{@illust_id}-1.jpg"
49
50
  end
50
51
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Panchira
4
- VERSION = '1.5.2'
4
+ VERSION = '1.5.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panchira
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - kyp
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-20 00:00:00.000000000 Z
11
+ date: 2022-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler