deltago 0.1.8 → 0.1.9
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/deltago.rb +20 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bae913b44a575a3360a0eb9350064d361c73f30d25e663caa659522fbdd44114
|
4
|
+
data.tar.gz: f42f88ab6280f4898784f09778547ccff9cbcd3baf6a3c4ba8becabef37a8f72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 687cfcb4df3af896a954b190cad36764f04dc77a237b8088f8c90862ec69a90b454330a67c9cd5be399ce98bb1bd96cb9e9ae136ff4d2bb3a8fbc912c3b86f9c
|
7
|
+
data.tar.gz: 543598ec3c52a807dc7d2cc3a0365d3c586bf218bdf1c0a15b32140a981da220c78f19098c60094cb14f6bc66a831d33c6786de7e65778d17c12d4ceca9a80ec
|
data/lib/deltago.rb
CHANGED
@@ -94,7 +94,21 @@ class Soonje
|
|
94
94
|
puts url_memory
|
95
95
|
|
96
96
|
if @title_file.length == 0
|
97
|
-
title = '
|
97
|
+
title = ''
|
98
|
+
|
99
|
+
if @title_setting1 == true
|
100
|
+
title = product_data2[0]['title'] + ' ' +title
|
101
|
+
end
|
102
|
+
|
103
|
+
if @keyword_setting1 == true
|
104
|
+
title = @search_text[0] + ' ' + title
|
105
|
+
end
|
106
|
+
|
107
|
+
if @change_text_setting1 == true
|
108
|
+
@change_memory1.each do |key,v|
|
109
|
+
title = (title+'_').split(key).join(v.shuffle[0])
|
110
|
+
end
|
111
|
+
end
|
98
112
|
else
|
99
113
|
title = @title_file.shuffle[0]
|
100
114
|
|
@@ -239,7 +253,11 @@ class Soonje
|
|
239
253
|
vv2 += '<div style="text-align: center;" align="center">'+add_text+'</div><br>'
|
240
254
|
end
|
241
255
|
|
242
|
-
|
256
|
+
begin
|
257
|
+
Dir.mkdir('./data/'+title)
|
258
|
+
rescue
|
259
|
+
|
260
|
+
end
|
243
261
|
File.open('./data/'+title+'/'+product[0]['productId'].to_s+'.html', 'w') do |f|
|
244
262
|
f.write(vv2)
|
245
263
|
end
|