panchira 1.3.1 → 1.3.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: cf1b6f4f73236bda86a93f4ae24c377a2ef4dc8dad1f721d87cc78b0659ca413
4
- data.tar.gz: 5e75576bc2bd8c8d4147f12537750646e88d464e81800d6847c9210b9bf66831
3
+ metadata.gz: 4b6ab5f09a68a55d7fa54720b6ed5544605c5b4fa25ff839583058ac3af5611b
4
+ data.tar.gz: 22814f2437ac515c59d22a634c4709212eb639735a831157b7a64375559c1cf1
5
5
  SHA512:
6
- metadata.gz: 911a1e50dc8d0d443bb323f2e260a88bc3c353c9c3e6cca1dc7d1f592b50c51d0ac92a8ce2a5bd0619f04a5a8cfc3db4d441e739908be861e522d8b555d36128
7
- data.tar.gz: ce917b7a4a905dc6364a39764262b9f4777e074c57f7962439cc8a3b1181feb2f995b1f756eaae431185e5a4a58d82c219a028582038fd1c0bcb771294b137a9
6
+ metadata.gz: a2a42f6023db6ce19d076079044c6fd88e49870478590d89ad25810dd3b72e72439627b416bd3d439d78ab8eaa72683746617fe565f441e69a758811e4b50023
7
+ data.tar.gz: 6f4573bf646ea21d9d5887ee67a1e95e275e6b1de6d152d4c096c7b8a4e70fa29409143a8a00af0c32f6a1e023f4b0a5c84a30d50fd789dc5f6822cb161cd0ed
data/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ 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.3.2 - 2021-05-23
8
+ ### Fixed
9
+ - Fixed an issue where Fanza Resolver was retrieving incorrect cannonical URLs from meta tags.
10
+ - Fixed an issue where Narou Resolver retrieved wrong descriptions from meta tags.
11
+
12
+ ### Changed
13
+ - Updated dependencies.
14
+
7
15
  ## 1.3.1 - 2021-02-17
8
16
  ### Added
9
17
  - Added support for Fanza Video.
data/Gemfile.lock CHANGED
@@ -1,41 +1,41 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- panchira (1.3.1)
4
+ panchira (1.3.2)
5
5
  fastimage (~> 2.1.7)
6
6
  nokogiri (>= 1.10.9, < 1.12.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- ast (2.4.1)
11
+ ast (2.4.2)
12
12
  fastimage (2.1.7)
13
- minitest (5.14.2)
14
- nokogiri (1.11.1-x86_64-darwin)
13
+ minitest (5.14.4)
14
+ nokogiri (1.11.5-x86_64-darwin)
15
15
  racc (~> 1.4)
16
16
  parallel (1.20.1)
17
- parser (3.0.0.0)
17
+ parser (3.0.1.1)
18
18
  ast (~> 2.4.1)
19
19
  racc (1.5.2)
20
20
  rainbow (3.0.0)
21
21
  rake (12.3.3)
22
- regexp_parser (2.0.3)
23
- rexml (3.2.4)
24
- rubocop (1.7.0)
22
+ regexp_parser (2.1.1)
23
+ rexml (3.2.5)
24
+ rubocop (1.15.0)
25
25
  parallel (~> 1.10)
26
- parser (>= 2.7.1.5)
26
+ parser (>= 3.0.0.0)
27
27
  rainbow (>= 2.2.2, < 4.0)
28
28
  regexp_parser (>= 1.8, < 3.0)
29
29
  rexml
30
- rubocop-ast (>= 1.2.0, < 2.0)
30
+ rubocop-ast (>= 1.5.0, < 2.0)
31
31
  ruby-progressbar (~> 1.7)
32
- unicode-display_width (>= 1.4.0, < 2.0)
33
- rubocop-ast (1.4.0)
34
- parser (>= 2.7.1.5)
35
- rubocop-minitest (0.10.2)
36
- rubocop (>= 0.87, < 2.0)
32
+ unicode-display_width (>= 1.4.0, < 3.0)
33
+ rubocop-ast (1.5.0)
34
+ parser (>= 3.0.1.1)
35
+ rubocop-minitest (0.12.1)
36
+ rubocop (>= 0.90, < 2.0)
37
37
  ruby-progressbar (1.11.0)
38
- unicode-display_width (1.7.0)
38
+ unicode-display_width (2.0.0)
39
39
 
40
40
  PLATFORMS
41
41
  ruby
@@ -41,6 +41,12 @@ module Panchira
41
41
 
42
42
  private
43
43
 
44
+ # canonical urlに別サービス(FANZA GAMES)のURLが設定されていることがあるため、
45
+ # 別サービスの場合はとりあえず元URLを設定する
46
+ def parse_canonical_url
47
+ @url
48
+ end
49
+
44
50
  def parse_circle
45
51
  @page.css('a.circleName__txt').first.text
46
52
  end
@@ -25,6 +25,10 @@ module Panchira
25
25
  Nokogiri::HTML.parse(res.body, uri)
26
26
  end
27
27
 
28
+ def parse_description
29
+ @desc&.xpath('//*[@id="noveltable1"]/tr/td')&.first&.text&.strip
30
+ end
31
+
28
32
  def parse_author
29
33
  @desc&.xpath('//*[@id="noveltable1"]/tr[2]/td')&.text&.strip
30
34
  end
@@ -47,6 +51,10 @@ module Panchira
47
51
  end
48
52
  end
49
53
 
54
+ def parse_description
55
+ @desc&.xpath('//*[@id="noveltable1"]/tr/td')&.first&.text&.strip
56
+ end
57
+
50
58
  def parse_author
51
59
  @desc&.xpath('//*[@id="noveltable1"]/tr[2]/td')&.text&.strip
52
60
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Panchira
4
- VERSION = '1.3.1'
4
+ VERSION = '1.3.2'
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.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kyp
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-17 00:00:00.000000000 Z
11
+ date: 2021-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler