yoyakutopten_scraper 0.0.7 → 0.0.8
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 +4 -4
- data/lib/test.rb +2 -3
- data/lib/yoyakutopten_scraper/app.rb +1 -1
- data/lib/yoyakutopten_scraper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7b66e31cc5521770afa60cdfe4352beff53b60b
|
4
|
+
data.tar.gz: 745c6cb815fbcc0b7ba0b923c1a52c6473ada8c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8bdb31593a01981088cd2b526b87ba828898886c4249a5a7e56e74d9398592c62692732840ae5ba05e0f795f42baf9e2a7b9a0c6925527ce7b22bc1bb30b1e2
|
7
|
+
data.tar.gz: da690259ce64b41548268ac48d7fa6b3dac4e0bf29658da8bf7037d08554838569607fdb84d70342b06365099753b329c4e6b98a48416dd664917fbb5525c444
|
data/lib/test.rb
CHANGED
@@ -3,13 +3,12 @@ require 'yoyakutopten_scraper'
|
|
3
3
|
ranking = YoyakutoptenScraper::Ranking.new os_type: :ios, feed: :new
|
4
4
|
ranking.update
|
5
5
|
|
6
|
-
p ranking.results
|
7
|
-
|
8
6
|
app = ranking.results.first
|
9
7
|
|
10
8
|
app_detail = YoyakutoptenScraper::App.new app_id: app[:app_id], os_type: app[:os_type]
|
11
9
|
bonus_detail = YoyakutoptenScraper::Bonus.new bonus_id: app[:bonus_id], os_type: app[:os_type]
|
12
10
|
|
11
|
+
app_detail.update
|
12
|
+
p app_detail.description
|
13
13
|
|
14
|
-
# app_detail.update
|
15
14
|
# bonus_detail.update
|
@@ -56,7 +56,7 @@ module YoyakutoptenScraper
|
|
56
56
|
@description = description.to_html
|
57
57
|
@video_url = video_url
|
58
58
|
@bonus_id = bonus_id
|
59
|
-
@bonus_url = bonus_url
|
59
|
+
@bonus_url = (YoyakutoptenScraper.make_absolute_url bonus_url)
|
60
60
|
@website_url = (YoyakutoptenScraper.make_absolute_url ("#{YoyakutoptenScraper::PC_PREFIX}/#{@app_id}"))
|
61
61
|
end
|
62
62
|
|