deltago4 13.0.12 → 14.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/deltago4.rb +36 -36
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1790f951784ab54749de688fdb42a95a7805f607f82115a7626d08063c7c03ee
4
- data.tar.gz: 37d73ca335648b0984d401b849115a114b34e14bfce8856d59be3b3214411766
3
+ metadata.gz: 874035352a6c084f8974c6c470b181ccfa31acf7fec62fe22db99ef80249d8ab
4
+ data.tar.gz: 185a62ef488880152024655ae63d136d7882461cf72a14daa1cf20648748f81d
5
5
  SHA512:
6
- metadata.gz: b1e36517975d2c92345e319695b59e23de36cdbc4d5d57b6e249ccbb3f735f3d2c6d8c458b4b4c25caefb383d7ab4e7a2e4cfbb765569a461be0e4f4c9b0bf1a
7
- data.tar.gz: d6d19439bab550e492b7ec8f35f2ee479404c6f14c5174ec05d257a952321f8fa68195e2a9aa5a718798fb0f6805ef6bad608f8d4dcad82d668bda753428036a
6
+ metadata.gz: 3d8e3b4ddaa8b5e6df6562ca0edc616664a0b9b98dca379069d835d53898feac6e72a5d28937ba0efb371c8bf8d7f25d9ab97b9ec54dceadf8d0df1d2a94b883
7
+ data.tar.gz: 69df996f7e25b0d160e278ccd7840566ea293dfd6e8d68a0494431684f9711baeb96d9ddfc37c86c36d0e57b544ad8aeb218bbe29bc2cd31a4dbc5ab64be39fa
data/lib/deltago4.rb CHANGED
@@ -120,7 +120,7 @@ class Soonje
120
120
  end
121
121
 
122
122
  title = title.to_s
123
-
123
+
124
124
  if @title_setting1 == true
125
125
  title = product_data2[0]['title'] + ' ' +title
126
126
  end
@@ -139,7 +139,7 @@ class Soonje
139
139
  text_top = @text_top.to_s.force_encoding('utf-8')+'_'
140
140
  if text_top != ''
141
141
  if @tt1.checked?
142
- @change_memory2.each do |key,v|
142
+ @change_memory2.each do |key,v|
143
143
  text_top = text_top.split(key).join(v.shuffle[0])
144
144
  end
145
145
  end
@@ -161,7 +161,7 @@ class Soonje
161
161
  end
162
162
  end
163
163
 
164
- if @point_change_text2
164
+ if @point_change_text2
165
165
  text_bottom = text_bottom.split(@point_keyword11.text.force_encoding('utf-8')).join(@search_text[0].force_encoding('utf-8'))
166
166
  end
167
167
 
@@ -176,7 +176,7 @@ class Soonje
176
176
  end
177
177
 
178
178
  add_text_check = @add_text_setting2
179
-
179
+
180
180
  if @tag_setting
181
181
  search_text = @search_text[0]
182
182
  else
@@ -235,7 +235,7 @@ class Soonje
235
235
  if url_change_check
236
236
  link_url = change_url(link_url)
237
237
  end
238
-
238
+
239
239
  vv = '<center><img style="text-align: center;" align="center" src="'+dd['image'].to_s.split('212x212').join('500x500')+'"></center>'
240
240
  vv = vv+ '<p style="text-align: center;" align="center">'+dd['productId'].to_s+' => 파일사진위치</p>'
241
241
  vv = vv+ '<div style="text-align: center;" align="center"><span style="font-size: 18pt;">'+dd['title']+'</span></div>'
@@ -274,7 +274,7 @@ class Soonje
274
274
  File.open('./data/'+title22+'/'+product[0]['productId'].to_s.split(' ').join('')+'2.html', 'w') do |f|
275
275
  f.write(vv2)
276
276
  end
277
-
277
+
278
278
 
279
279
  product.each do |dd|
280
280
  begin
@@ -394,7 +394,7 @@ class Soonje
394
394
  end
395
395
  end
396
396
  end
397
-
397
+
398
398
  for n in 0..100
399
399
  begin
400
400
  text3 += text1.shuffle[0..5].join(' ')+text2.shuffle[0]
@@ -402,7 +402,7 @@ class Soonje
402
402
 
403
403
  end
404
404
  end
405
-
405
+
406
406
  max_text = rand(900)+600
407
407
  text3 = text3[0..max_text]
408
408
  return text3
@@ -441,13 +441,13 @@ class Soonje
441
441
  json = Hash.new
442
442
  json['mb_id'] = 'marketingduo'
443
443
  json['mb_password'] = 'mhhs0201'
444
-
444
+
445
445
  http = HTTP.post('http://marketingduo.co.kr/bbs/login_check.php', :form => json)
446
446
  cookie = Hash.new
447
447
  http.cookies.each do |i|
448
448
  cookie[i.to_s.split('=')[0]] = i.to_s.split('=')[1]
449
449
  end
450
-
450
+
451
451
  http = HTTP.cookies(cookie).get('http://marketingduo.co.kr/bbs/board.php?bo_table=product&sca=&sfl=wr_subject&sop=and&stx='+userid)
452
452
  noko = Nokogiri::HTML(http.to_s)
453
453
  mac_history = Array.new
@@ -461,7 +461,7 @@ class Soonje
461
461
  break
462
462
  end
463
463
  end
464
-
464
+
465
465
  mac_url.each do |i|
466
466
  http = HTTP.cookies(cookie).get(i)
467
467
  noko = Nokogiri::HTML(http.to_s)
@@ -472,7 +472,7 @@ class Soonje
472
472
  end
473
473
 
474
474
  mac_history = mac_history.uniq
475
-
475
+
476
476
  mac_address, stderr, status = Open3.capture3('getmac /v')
477
477
  mac_address = mac_address.force_encoding('cp949').encode('utf-8').split('이더넷')[1]
478
478
  mac_address = mac_address.split("\n").join('').split(' ').join
@@ -495,7 +495,7 @@ class Soonje
495
495
  json = {'token' => token, 'uid' => uid, 'bo_table' => 'product', 'wr_id' => '0', 'wr_subject' => userid, 'wr_content' => mac_address}
496
496
  http = HTTP.cookies(cookie).post('http://marketingduo.co.kr/bbs/write_update.php', :form => json)
497
497
  return 1
498
- end
498
+ end
499
499
  end
500
500
  end
501
501
 
@@ -527,9 +527,9 @@ class Soonje
527
527
  @where_search = 'goldbox'
528
528
  @proxy_list = Array.new
529
529
  @change_text_setting3 = false
530
- @user_login_ok = 0
530
+ @user_login_ok = 4
531
531
  @code_text = Array.new
532
-
532
+
533
533
 
534
534
  window('Contacts', 1000, 450) {
535
535
  margined true
@@ -541,13 +541,13 @@ class Soonje
541
541
  label 'ID'
542
542
  text
543
543
  }
544
-
544
+
545
545
  @user_password = password_entry{
546
546
  label 'PW'
547
547
  text
548
548
  }
549
549
  }
550
-
550
+
551
551
  button('로그인') {
552
552
  on_clicked {
553
553
  @user_login_ok = login_check(@user_id.text.to_s, @user_password.text.to_s)
@@ -564,7 +564,7 @@ class Soonje
564
564
  end
565
565
  }
566
566
  }
567
-
567
+
568
568
  button('세팅저장') {
569
569
  on_clicked {
570
570
  begin
@@ -585,7 +585,7 @@ class Soonje
585
585
  end
586
586
  dd['쿠팡아이디'] = @coupang_id.text.to_s
587
587
  dd['쿠팡비번'] = @coupang_password.text.to_s
588
- dd['포스팅딜레이'] = @post_delay.text.to_s
588
+ dd['포스팅딜레이'] = @post_delay.text.to_s
589
589
  dd['포스팅수량'] = @post_counter.text.to_s
590
590
  dd['포스팅갯수1'] = @counter_start.text.to_s
591
591
  dd['포스닝갯수2'] = @counter_end.text.to_s
@@ -631,7 +631,7 @@ class Soonje
631
631
  end
632
632
  }
633
633
  }
634
-
634
+
635
635
  button('세팅로드') {
636
636
  on_clicked {
637
637
  begin
@@ -724,7 +724,7 @@ class Soonje
724
724
  end
725
725
  }
726
726
  }
727
- }
727
+ }
728
728
 
729
729
  tab {
730
730
  tab_item('실행설정'){
@@ -780,7 +780,7 @@ class Soonje
780
780
  @tedering = checkbox('테더링 사용'){
781
781
  stretchy false
782
782
  on_toggled do |c|
783
-
783
+
784
784
  end
785
785
  }
786
786
 
@@ -857,7 +857,7 @@ class Soonje
857
857
  if check == true
858
858
  @update_type = 1
859
859
  end
860
- end
860
+ end
861
861
  }
862
862
  }
863
863
 
@@ -1078,7 +1078,7 @@ class Soonje
1078
1078
  }
1079
1079
  vertical_separator {
1080
1080
  stretchy false
1081
-
1081
+
1082
1082
  }
1083
1083
 
1084
1084
  horizontal_box{
@@ -1195,7 +1195,7 @@ class Soonje
1195
1195
  end
1196
1196
  }
1197
1197
 
1198
-
1198
+
1199
1199
  }
1200
1200
 
1201
1201
  vertical_separator {
@@ -1290,7 +1290,7 @@ class Soonje
1290
1290
  @tt4 = checkbox(' 쿠팡파트너스 링크우회/단축도메인 사용'){
1291
1291
  stretchy false
1292
1292
  on_toggled do |c|
1293
- @url_change_setting = c.checked?
1293
+ @url_change_setting = c.checked?
1294
1294
  end
1295
1295
  }
1296
1296
  }
@@ -1407,7 +1407,7 @@ class Soonje
1407
1407
  stretchy false
1408
1408
  }
1409
1409
 
1410
-
1410
+
1411
1411
  }
1412
1412
  }
1413
1413
  }
@@ -1449,9 +1449,9 @@ class Coupang
1449
1449
  #@driver.find_element(:xpath, '/html/body/div[1]/div/div/form/div[4]/label/span').click
1450
1450
  #sleep(1)
1451
1451
  begin
1452
- @driver.find_element(:xpath, '/html/body/div[1]/div[1]/div[2]/div[1]/form/div[5]/button').click
1452
+ @driver.find_element(:xpath, '/html/body/div[1]/div[1]/div[2]/div[1]/form/div[6]/button').click
1453
1453
  rescue
1454
- @driver.find_element(:xpath, '/html/body/div[1]/div[1]/div[1]/div/form/div[5]/button').click
1454
+ @driver.find_element(:xpath, '/html/body/div[1]/div[1]/div[1]/div/form/div[6]/button').click
1455
1455
  end
1456
1456
  sleep(5)
1457
1457
 
@@ -1587,8 +1587,8 @@ class WordLib
1587
1587
  @h['User-Agent'] = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36'
1588
1588
  puts @cookie2
1589
1589
  @h['Cookie'] = @cookie2
1590
-
1591
-
1590
+
1591
+
1592
1592
  image_json = {
1593
1593
  'name' => product_id.to_s+'.jpg',
1594
1594
  'action' => 'upload-attachment',
@@ -1596,7 +1596,7 @@ class WordLib
1596
1596
  'post_id' => post_id.to_i,
1597
1597
  'async-upload' => File.new('./image/'+product_id.to_s+'.jpg')
1598
1598
  }
1599
-
1599
+
1600
1600
  puts image_json
1601
1601
  puts @url.split('ttps://').join('ttp://')+'/wp-admin/async-upload.php'
1602
1602
  begin
@@ -1640,7 +1640,7 @@ class WordLib
1640
1640
  end
1641
1641
  end
1642
1642
 
1643
-
1643
+
1644
1644
  vv2 = '<div style="text-align: center;" align="center">'+text_top+'</div><br>'
1645
1645
  vv2 += '<div style="text-align: center;" align="center"> </div><br>'
1646
1646
  vv2 += '<div style="text-align: center;" align="center"> </div><br>'
@@ -1685,7 +1685,7 @@ class WordLib
1685
1685
  data2['user_ID'] = 1
1686
1686
  data2['action'] = 'editpost'
1687
1687
  data2['originalaction'] = 'editpost'
1688
- data2['post_author'] = 1
1688
+ data2['post_author'] = 1
1689
1689
  data2['post_type'] = 'post'
1690
1690
  data2['original_post_status'] = 'draft'
1691
1691
  data2['referredby'] = @url+'/wp-admin/edit.php'
@@ -1737,7 +1737,7 @@ class WordLib
1737
1737
 
1738
1738
  begin
1739
1739
  if proxy_check
1740
- begin
1740
+ begin
1741
1741
  http = HTTP.via(proxy_ip.split(':')[0], proxy_ip.split(':')[1].to_i).cookies(@cookie).post(@url+'/wp-admin/post.php', :form => data2)
1742
1742
  rescue
1743
1743
  puts proxy_ip.to_s+' proxy error 프록시 없이 업로드'
@@ -1752,7 +1752,7 @@ class WordLib
1752
1752
  retry
1753
1753
  end
1754
1754
  puts http.to_s
1755
-
1755
+
1756
1756
  end
1757
1757
 
1758
1758
  def change_url(url)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deltago4
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.0.12
4
+ version: 14.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - soonje
@@ -36,7 +36,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0'
38
38
  requirements: []
39
- rubygems_version: 3.1.6
39
+ rubygems_version: 3.3.7
40
40
  signing_key:
41
41
  specification_version: 4
42
42
  summary: file to clipboard