dmm-crawler 0.2.7 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/dmm-crawler/attributes.rb +7 -5
- data/lib/dmm-crawler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 887f658de6263664d744fd096a8863a9e404d2ba239f0a9780cba03837c1feda
|
4
|
+
data.tar.gz: 26c85a3bfaf5ab705ae521fcb8487b0266240823ee2e8247b89c84d821062270
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77969cb4ee34c406882e433fb8fda0f4e9e226bdc761922fa4d2de772fd80b4abab321f733069a6d2329a854d564f20bb376c9e28bb2a171592ddb0b86ebe0e1
|
7
|
+
data.tar.gz: 631a047f8ae2adbafd72039f00ea2e637bb113a105ffbb3f61604754373c150b07ebc6e3e941b12b560a5b45312fbafa90155a8a3c69b781d257c72907db9c9a
|
data/CHANGELOG.md
CHANGED
@@ -61,11 +61,13 @@ module DMMCrawler
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def price
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
64
|
+
price = @page.search('.priceList__main').text.strip.delete('円,')
|
65
|
+
|
66
|
+
if price.empty?
|
67
|
+
Integer(@page.search('.priceList__main').text.strip.delete('円,'))
|
68
|
+
else
|
69
|
+
Integer(price)
|
70
|
+
end
|
69
71
|
end
|
70
72
|
|
71
73
|
def author
|
data/lib/dmm-crawler/version.rb
CHANGED
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.
|
4
|
+
version: 0.3.0
|
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-04-
|
11
|
+
date: 2018-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mechanize
|