nblog_duo 111.115.779 → 111.116.779

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nblog_duo.rb +53 -7
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97cc85a3f170c59e52cada916aa44bfc47074093da01f7d97ce7fbf2cb1f8515
4
- data.tar.gz: 0ae365383002ba9ab2f62ca3a049c881ab8bc8bdc58b1608b923fd59f803a1d9
3
+ metadata.gz: c39351cbbe4c6f06860848aa34aa04936985acbb6ebefaa86a636cd93247fd96
4
+ data.tar.gz: 7833e7504e0377533cbe7584ecb1946835a52288a8acf6fdedd1562051519ebd
5
5
  SHA512:
6
- metadata.gz: 2599ab747b6f40a19a68a2528897f12d3c2a20d3fc2ae8b19fa9ebb790a6408f9814c1816a383e61f1a6433c9ce5db5abd66b2807e1326779816e994c19d4250
7
- data.tar.gz: 7723b3258f905973629ce97707acbd29e60bdbe88186504e0ed03a0078e3fe7d8327a22e3779e2af78f7f1267c30e940116f5daa08f396ae80ad80d87a43dde5
6
+ metadata.gz: 71aa2d85bd8ea93eb0c2ceeb070ac61fd608dd9f80fc656227b7795d47cee7abcfd06aac2294dae107c4f22b1d7c850a948cca6c7245fe8e8c9422b53443b1a9
7
+ data.tar.gz: c767fb07485c09c9400fff40957452adf842b88b3a147a6287b0bd5d8f5f27139799770d3ea3b6a986f13aa6ffe8dc5b94d345a7566bd7bed2facec93372a555
data/lib/nblog_duo.rb CHANGED
@@ -2393,18 +2393,40 @@ class Wordpress
2393
2393
  image_filter()
2394
2394
  end
2395
2395
 
2396
- insert_image_text1 = ''
2397
- insert_image_text2 = ''
2398
2396
  if @data['이미지설정']['글자삽입1'].checked?
2399
- insert_image_text1 = @data['이미지설정']['이미지글자1'].sample
2397
+ if @data['이미지설정']['이미지글자1'].length == 0
2398
+ image_text_path1 = ''
2399
+ else
2400
+ if @data['이미지설정']['글자랜덤'].checked?
2401
+ image_text_path1 = @data['이미지설정']['이미지글자1'].sample
2402
+ else
2403
+ image_text_path1 = @data['이미지설정']['이미지글자1'][@image_text_soon1]
2404
+ @image_text_soon1 += 1
2405
+ if @image_text_soon1 > @data['이미지설정']['이미지글자1'].length - 1
2406
+ @image_text_soon1 = 0
2407
+ end
2408
+ end
2409
+ end
2400
2410
  end
2401
2411
 
2402
2412
  if @data['이미지설정']['글자삽입2'].checked?
2403
- insert_image_text2 = @data['이미지설정']['이미지글자2'].sample
2413
+ if @data['이미지설정']['이미지글자2'].length == 0
2414
+ image_text_path2 = ''
2415
+ else
2416
+ if @data['이미지설정']['글자랜덤'].checked?
2417
+ image_text_path2 = @data['이미지설정']['이미지글자2'].sample
2418
+ else
2419
+ image_text_path2 = @data['이미지설정']['이미지글자2'][@image_text_soon2]
2420
+ @image_text_soon2 += 1
2421
+ if @image_text_soon2 > @data['이미지설정']['이미지글자2'].length - 1
2422
+ @image_text_soon2 = 0
2423
+ end
2424
+ end
2425
+ end
2404
2426
  end
2405
-
2427
+
2406
2428
  if @data['이미지설정']['글자삽입1'].checked? or @data['이미지설정']['글자삽입2'].checked?
2407
- image_text(insert_image_text1, insert_image_text2)
2429
+ image_text(image_text_path1, image_text_path2)
2408
2430
  end
2409
2431
 
2410
2432
  if @data['이미지설정']['테두리사용'].checked?
@@ -2468,6 +2490,8 @@ class Wordpress
2468
2490
  title_soon = 0
2469
2491
  keyword_soon = 0
2470
2492
  content_soon = 0
2493
+ @image_text_soon1 = 0
2494
+ @image_text_soon2 = 0
2471
2495
  @my_ip = 'init'
2472
2496
  @image_counter = 0
2473
2497
  @inumber2 = 0
@@ -4842,9 +4866,30 @@ class Wordpress
4842
4866
  top 1
4843
4867
  left 6
4844
4868
  }
4845
- @data['이미지설정']['필터사용'] = checkbox('필터사용(색상 사진 적용불가)'){
4869
+ @data['이미지설정']['글자순서'] = checkbox('글자 리스트 순서대로 사용'){
4846
4870
  top 2
4847
4871
  left 0
4872
+ on_toggled{
4873
+ if @data['이미지설정']['글자순서'].checked?
4874
+ @data['이미지설정']['글자랜덤'].checked = false
4875
+ end
4876
+ }
4877
+ }
4878
+
4879
+ @data['이미지설정']['글자랜덤'] = checkbox('글자 리스트 랜덤으로 사용'){
4880
+ top 2
4881
+ left 1
4882
+ on_toggled{
4883
+ if @data['이미지설정']['글자랜덤'].checked?
4884
+ @data['이미지설정']['글자순서'].checked = false
4885
+ end
4886
+ }
4887
+ }
4888
+
4889
+
4890
+ @data['이미지설정']['필터사용'] = checkbox('필터사용(색상 사진 적용불가)'){
4891
+ top 2
4892
+ left 2
4848
4893
  }
4849
4894
  @data['이미지설정']['테두리사용'] = checkbox('테두리 사용'){
4850
4895
  top 3
@@ -5853,6 +5898,7 @@ class Wordpress
5853
5898
  @data['포스트설정']['공감허용'].checked = true
5854
5899
  @data['포스트설정']['발행기능'].checked = true
5855
5900
  @data['포스트설정']['인용구랜덤'].checked = true
5901
+ @data['이미지설정']['글자순서'].checked = true
5856
5902
  }.show
5857
5903
  end
5858
5904
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nblog_duo
3
3
  version: !ruby/object:Gem::Version
4
- version: 111.115.779
4
+ version: 111.116.779
5
5
  platform: ruby
6
6
  authors:
7
7
  - zon
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-05-22 00:00:00.000000000 Z
10
+ date: 2025-05-23 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: File to Clipboard gem
13
13
  email: mymin26@naver.com