dmm-crawler 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba00ec149d0da09749dc8ec8816ec3ddf8622f4e480c61eceadff8debebbcda8
4
- data.tar.gz: 214724b5d29f1f1f6d8ba1de2352a237f9912bfd268a08c773b72fbdc103642b
3
+ metadata.gz: b9e097c2a504bd209610b13b88938419591d646bc58dc666e7780c19f2d252e4
4
+ data.tar.gz: 8c3be56018b75796857bfedf8dbbb7a130bf166013a2d813a5b98a9b03b19942
5
5
  SHA512:
6
- metadata.gz: bd1d972aba0af499834e7749e5a5e55d3ee790761000a4a33f62045c6e30e8bf3c8046509acac7d77bcbb991f7e3f95a37534f5244c2aa8594bb6305cf4f2389
7
- data.tar.gz: db9c7320934c9883568b129882d66fd355ddc2c348074dbc0949598f0f044bb325d84346a1650e2be0bfd0f5182990d11130a727fb87fd61c5af4a8c26acb767
6
+ metadata.gz: 9c67e16b9a629013b113d2e838b8f8793c25fc07ee86feb41738a4243e7ffb46f1931a0aea3065f48707e78bc6135665c0f2d441b7f75424dc9d1db9346de8ea
7
+ data.tar.gz: ea408fcf68c7c12ced8c2426d5a248ee1acbefb671cc1c5391a56d22443571531ff8a4e6197d06061d7077a9049965dddcfd81473becc7e476e66dcc2d0b567c
@@ -1,5 +1,8 @@
1
1
  # Change logs
2
2
 
3
+ ## 0.3.5
4
+ - Drop support of fetching art's price.
5
+
3
6
  ## 0.3.4
4
7
  - Support Ruby `2.5.1`.
5
8
  - Implement the function to detect excluded arts for affiliating.
data/README.md CHANGED
@@ -37,7 +37,6 @@ client.rankings(term: '24', submedia: 'cg')
37
37
  # author: "author",
38
38
  # informations: [{key: 'key', value: 'value'}],
39
39
  # rank: '1'
40
- # price: '1000'
41
40
  # tags: ["tag1", "tag2"]
42
41
  # }
43
42
  ```
@@ -15,7 +15,6 @@ module DMMCrawler
15
15
  submedia,
16
16
  author,
17
17
  informations,
18
- price,
19
18
  affiliateable?,
20
19
  tags
21
20
  ]
@@ -64,16 +63,6 @@ module DMMCrawler
64
63
  .delete('-')
65
64
  end
66
65
 
67
- def price
68
- price = @page.search('.priceList__main').text.strip.delete('円,')
69
-
70
- if price.empty?
71
- Integer(@page.search('.priceList__main').text.strip.delete('円,'))
72
- else
73
- Integer(price)
74
- end
75
- end
76
-
77
66
  def author
78
67
  @page.search('div.circleName__item').text.strip
79
68
  end
@@ -15,7 +15,7 @@ module DMMCrawler
15
15
  end
16
16
  end
17
17
 
18
- arts.map.with_index(1) do |(title, title_link, image_url, submedia, author, informations, price, affiliateable, tags), rank|
18
+ arts.map.with_index(1) do |(title, title_link, image_url, submedia, author, informations, affiliateable, tags), rank|
19
19
  {
20
20
  title: title,
21
21
  title_link: title_link,
@@ -24,7 +24,6 @@ module DMMCrawler
24
24
  author: author,
25
25
  informations: informations,
26
26
  rank: rank,
27
- price: price,
28
27
  affiliateable: affiliateable,
29
28
  tags: tags
30
29
  }
@@ -1,3 +1,3 @@
1
1
  module DMMCrawler
2
- VERSION = '0.3.4'.freeze
2
+ VERSION = '0.3.5'.freeze
3
3
  end
@@ -19,7 +19,7 @@ describe DMMCrawler::Ranking do
19
19
  let(:attachments) { described_class.new(arguments).arts }
20
20
  let(:term) { '24' }
21
21
 
22
- it { is_expected.to all(include(:title, :title_link, :image_url, :submedia, :author, :informations, :rank, :price, :affiliateable, :tags)) }
22
+ it { is_expected.to all(include(:title, :title_link, :image_url, :submedia, :author, :informations, :rank, :affiliateable, :tags)) }
23
23
  it { is_expected.to all(satisfy { |art| art.all? { |_k, v| v != '' } }) }
24
24
  end
25
25
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dmm-crawler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi Ohmori
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-27 00:00:00.000000000 Z
11
+ date: 2018-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdmm