soonje_3 4.0.30 → 7.0.4

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.

Potentially problematic release.


This version of soonje_3 might be problematic. Click here for more details.

Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/soonje_3.rb +114 -14
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d95252e2a4e4eeb10ed3e0b4f3d6cea1419e0beabfe9ed241615fbbc2bdf792
4
- data.tar.gz: 4b9691f4ae7846ab04edbd050b3963abaf52d7bd5c09008636ce237e6591af86
3
+ metadata.gz: 2c55eede93f30d664bfb192989ae7d1c9eda4d5e9f4fb0f58d5c77251d4b37f9
4
+ data.tar.gz: d01a4c55f689cdae34698a3b48b3249081d9d3252f725a538df099aad6e887a5
5
5
  SHA512:
6
- metadata.gz: e6fb9ef92bbbc9aaab9c6a336c5d8be2b902e886cc0c6cc2b5dd09963817491520d4a5640dd1a7761703a4badeb7be588ff05a440e96b854e9082d2b15dcb7dd
7
- data.tar.gz: 7c7a10dd6253b1a6c250b9f55b9abaede39c71f813533e4d00fa7c5a1694d07b32ae659a2a5036cbf9084ed35a0c97d054fb4079c2c03d8c28f22fe1311f4222
6
+ metadata.gz: 16efa9bd193b0b8e1dce23a8a97f882c92f1c4c84f21874b361d609ddb6b57bb17c9f4c317ce35635d9d6238d2ca54c72df3b16f4d25558642d3a5041d60803c
7
+ data.tar.gz: 979f1dbf119ff3805fc3630db496f858c869d47e44ca8ccf64162e3f57f5ab3f16bbde752780f92e1e4e621dbd79e1a575d074f03f84235c96c4b8527c556b88
data/lib/soonje_3.rb CHANGED
@@ -152,7 +152,7 @@ class Wordpress
152
152
  text_array = Array.new
153
153
  for page in 1..7
154
154
  begin
155
- http = HTTP.get('https://search.zum.com/search.zum?method=blog&option=accu&query='+q.to_s+'&rd=1&page='+page.to_s+'&mm=direct')
155
+ http = HTTP.get('https://search.zum.com/search.zum?method=blog&option=accu&query='+q.to_s.split(' ').join('')+'&rd=1&page='+page.to_s+'&mm=direct')
156
156
  sleep(1)
157
157
  noko = Nokogiri::HTML(http.to_s)
158
158
  for n in 1..10
@@ -1286,6 +1286,45 @@ class Wordpress
1286
1286
  end
1287
1287
  last_text = content333.join(" ")
1288
1288
 
1289
+ if @data['포스트설정']['막글키워드삽입'].checked?
1290
+ snumber = @data['포스트설정']['막을키워드삽입시작숫자'].text.to_s.to_i
1291
+ enumber = @data['포스트설정']['막을키워드삽입끝숫자'].text.to_s.to_i
1292
+ knumber = rand(snumber..enumber)
1293
+ last_text4 = Array.new
1294
+ last_text.split(" ").each_with_index do |ttt, index|
1295
+ last_text4 << ttt
1296
+ if index%10 == 0
1297
+ last_text4 << "\n"
1298
+ end
1299
+ end
1300
+ last_text = last_text4.join(' ')
1301
+ last_text2 = []
1302
+ last_text3 = last_text.split("\n")
1303
+ position10 = []
1304
+ for nn in 1..knumber
1305
+ position10 << rand(0..(last_text3.length-1))
1306
+ end
1307
+ p position10
1308
+
1309
+ last_text3.each_with_index do |text9, index|
1310
+ if position10.include?(index)
1311
+ puts index
1312
+ text99 = text9.split(' ')
1313
+ if @data['포스트설정']['키워드삽입'].checked?
1314
+ itext = text99.insert(rand(0..(text99.length-1)), ' <a href="'+@data['포스트설정']['키워드삽입시링크'].text.to_s+'" title="'+keyword.to_s+'">'+@data['키워드설정']['키워드'].sample[1]+'</a> ')
1315
+ else
1316
+ itext = text99.insert(rand(0..(text99.length-1)), @data['키워드설정']['키워드'].sample[1])
1317
+ end
1318
+ last_text2 << itext.join(' ')
1319
+ else
1320
+ last_text2 << text9
1321
+ end
1322
+ end
1323
+
1324
+ last_text = last_text2.join("\n")
1325
+ last_text = last_text.split("\n").join('')
1326
+ end
1327
+
1289
1328
  if @data['포스트설정']['막글투명'].checked?
1290
1329
  content = content + "\n" + insert_keyword_text + "\n" + '<div style="overflow:hidden; width:1px; height:1px" hidden><table width="165" style="width: 124pt; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0"><tbody><tr height="22" style="height: 16.5pt;"><td width="165" height="22" style="width: 124pt; text-align: center; font-size: 8pt; vertical-align: bottom; white-space: nowrap;">' + last_text + '</td></tr></tbody></table></div>'
1291
1330
  else
@@ -1296,6 +1335,46 @@ class Wordpress
1296
1335
  enumber = @data['포스트설정']['막글삽입끝숫자'].text.to_s.to_i
1297
1336
  last_text = @data['포스트설정']['막글'][0..rand(snumber..enumber)].split(' ').shuffle.join(' ')
1298
1337
 
1338
+ if @data['포스트설정']['막글키워드삽입'].checked?
1339
+ snumber = @data['포스트설정']['막을키워드삽입시작숫자'].text.to_s.to_i
1340
+ enumber = @data['포스트설정']['막을키워드삽입끝숫자'].text.to_s.to_i
1341
+ knumber = rand(snumber..enumber)
1342
+ last_text4 = Array.new
1343
+ last_text.split(" ").each_with_index do |ttt, index|
1344
+ last_text4 << ttt
1345
+ if index%10 == 0
1346
+ last_text4 << "\n"
1347
+ end
1348
+ end
1349
+ last_text = last_text4.join(' ')
1350
+ puts 'knumber => '+knumber.to_s
1351
+ last_text2 = []
1352
+ last_text3 = last_text.split("\n")
1353
+ position10 = []
1354
+ for nn in 1..knumber
1355
+ position10 << rand(0..(last_text3.length-1))
1356
+ end
1357
+ p position10
1358
+
1359
+ last_text3.each_with_index do |text9, index|
1360
+ if position10.include?(index)
1361
+ puts index
1362
+ text99 = text9.split(' ')
1363
+ if @data['포스트설정']['키워드삽입'].checked?
1364
+ itext = text99.insert(rand(0..(text99.length-1)), ' <a href="'+@data['포스트설정']['키워드삽입시링크'].text.to_s+'" title="'+keyword.to_s+'">'+@data['키워드설정']['키워드'].sample[1]+'</a> ')
1365
+ else
1366
+ itext = text99.insert(rand(0..(text99.length-1)), @data['키워드설정']['키워드'].sample[1])
1367
+ end
1368
+ last_text2 << itext.join(' ')
1369
+ else
1370
+ last_text2 << text9
1371
+ end
1372
+ end
1373
+
1374
+ last_text = last_text2.join("\n")
1375
+ last_text = last_text.split("\n").join('')
1376
+ end
1377
+
1299
1378
  if @data['포스트설정']['막글투명'].checked?
1300
1379
  content = content + '<div style="overflow:hidden; width:1px; height:1px" hidden><table width="165" style="width: 124pt; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0"><tbody><tr height="22" style="height: 16.5pt;"><td width="165" height="22" style="width: 124pt; text-align: center; font-size: 8pt; vertical-align: bottom; white-space: nowrap;">' + last_text + '</td></tr></tbody></table></div>'
1301
1380
  else
@@ -2712,62 +2791,83 @@ class Wordpress
2712
2791
  end
2713
2792
  }
2714
2793
  }
2715
- @data['포스트설정']['막글투명'] = checkbox('막글 안보이게 처리'){
2794
+
2795
+ @data['포스트설정']['막글키워드삽입'] = checkbox('막글에 키워드 삽입'){
2716
2796
  top 7
2717
2797
  left 0
2718
2798
  }
2719
- @data['포스트설정']['특성이미지사용'] = checkbox('특성이미지사용'){
2799
+ @data['포스트설정']['막을키워드삽입시작숫자'] = entry{
2800
+ top 7
2801
+ left 1
2802
+ text '최소수량'
2803
+ }
2804
+ label('~'){
2805
+ top 7
2806
+ left 2
2807
+ }
2808
+
2809
+ @data['포스트설정']['막을키워드삽입끝숫자'] = entry{
2810
+ top 7
2811
+ left 3
2812
+ text '최대수량'
2813
+ }
2814
+
2815
+ @data['포스트설정']['막글투명'] = checkbox('막글 안보이게 처리'){
2720
2816
  top 8
2721
2817
  left 0
2818
+ }
2819
+ @data['포스트설정']['특성이미지사용'] = checkbox('특성이미지사용'){
2820
+ top 9
2821
+ left 0
2722
2822
  enabled false
2723
2823
  }
2724
2824
  @data['포스트설정']['태그삽입1'] = checkbox('태그삽입 1 (일반 방식의 태그 형식)'){
2725
- top 9
2825
+ top 10
2726
2826
  left 0
2727
2827
  }
2728
2828
  @data['포스트설정']['태그삽입1시작숫자'] = entry{
2729
- top 9
2829
+ top 10
2730
2830
  left 1
2731
2831
  text '최소수량'
2732
2832
  }
2733
2833
  label('~'){
2734
- top 9
2834
+ top 10
2735
2835
  left 2
2736
2836
  }
2737
2837
  @data['포스트설정']['태그삽입1끝숫자'] = entry{
2738
- top 9
2838
+ top 10
2739
2839
  left 3
2740
2840
  text '최대수량'
2741
2841
  }
2742
2842
 
2743
2843
  @data['포스트설정']['태그삽입2'] = checkbox('태그삽입 2 (링크 삽입된 버튼 형식)'){
2744
- top 10
2844
+ top 11
2745
2845
  left 0
2746
2846
  }
2747
2847
  @data['포스트설정']['태그삽입2시작숫자'] = entry{
2748
- top 10
2848
+ top 11
2749
2849
  left 1
2750
2850
  text '최소수량'
2751
2851
  }
2752
2852
  label('~'){
2753
- top 10
2853
+ top 11
2754
2854
  left 2
2755
2855
  }
2756
2856
  @data['포스트설정']['태그삽입2끝숫자'] = entry{
2757
- top 10
2857
+ top 11
2758
2858
  left 3
2759
2859
  text '최대수량'
2760
2860
  }
2761
2861
  @data['포스트설정']['테더링'] = checkbox('테더링 IP 사용'){
2762
- top 11
2862
+ top 12
2763
2863
  left 0
2764
2864
  }
2765
2865
  @data['포스트설정']['프록시'] = checkbox('프록시 IP 사용'){
2766
- top 12
2866
+ top 13
2767
2867
  left 0
2768
2868
  }
2769
2869
  button('프록시 IP 파일 불러오기'){
2770
- top 12
2870
+ top 13
2771
2871
  left 1
2772
2872
  on_clicked{
2773
2873
  file = open_file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soonje_3
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.30
4
+ version: 7.0.4
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.3.7
39
+ rubygems_version: 3.1.6
40
40
  signing_key:
41
41
  specification_version: 4
42
42
  summary: file to clipboard