nblog_zon 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_zon.rb +53 -7
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6f2c441d7cfe974b89ba6f8e7901d9cf833a31fbbcf68bce6b267781818944d
4
- data.tar.gz: 72480bf7945e6e183b4587ca094c353fb0009526f1160c67f9b8f11bb892c175
3
+ metadata.gz: 4b960b4fb6c6f618360cb4f07e5bdecbe1e6a4c8da4c5af370f951b81c4b3faa
4
+ data.tar.gz: 0f809fd5a57042a3a26b4c4e748667b5badef6b67ed4de04fbe73bea6da17131
5
5
  SHA512:
6
- metadata.gz: 17d12511ac2cf7d50b1f6d02cf3f654f0e856ebbe5974b0be1e477c7f35aca14c29e9c4348bb78ca545d72b4985018ce868340c97cb3fbf3fa57caf728bfb17a
7
- data.tar.gz: c04d5f5b542d761ed299cef4dff7b73c803107a295d550d2344fc6a4fcd59dc065b265286e5391a701546f144daaf6d2ebb577c64a3b47eff5332f5e8a4ecbaa
6
+ metadata.gz: d4da117575fe77fae6f23e3c38e6c6984b6abb1cb0542c6490664c648835cc7fc482ea52ed2ad99e7754210f226edcba45672e3382fd5b647878fec217edccbe
7
+ data.tar.gz: 69ea10c74cf7dc62d1ed71d4b695fcfa1a1cecbd33f01569f75bdcd0dec5dec33dd1bee047638a009a60b61fb3f8ae529eeb160cd8dd7fa4c491c704f8ba7124
data/lib/nblog_zon.rb CHANGED
@@ -2324,18 +2324,40 @@ class Wordpress
2324
2324
  image_filter()
2325
2325
  end
2326
2326
 
2327
- insert_image_text1 = ''
2328
- insert_image_text2 = ''
2329
2327
  if @data['이미지설정']['글자삽입1'].checked?
2330
- insert_image_text1 = @data['이미지설정']['이미지글자1'].sample
2328
+ if @data['이미지설정']['이미지글자1'].length == 0
2329
+ image_text_path1 = ''
2330
+ else
2331
+ if @data['이미지설정']['글자랜덤'].checked?
2332
+ image_text_path1 = @data['이미지설정']['이미지글자1'].sample
2333
+ else
2334
+ image_text_path1 = @data['이미지설정']['이미지글자1'][@image_text_soon1]
2335
+ @image_text_soon1 += 1
2336
+ if @image_text_soon1 > @data['이미지설정']['이미지글자1'].length - 1
2337
+ @image_text_soon1 = 0
2338
+ end
2339
+ end
2340
+ end
2331
2341
  end
2332
2342
 
2333
2343
  if @data['이미지설정']['글자삽입2'].checked?
2334
- insert_image_text2 = @data['이미지설정']['이미지글자2'].sample
2344
+ if @data['이미지설정']['이미지글자2'].length == 0
2345
+ image_text_path2 = ''
2346
+ else
2347
+ if @data['이미지설정']['글자랜덤'].checked?
2348
+ image_text_path2 = @data['이미지설정']['이미지글자2'].sample
2349
+ else
2350
+ image_text_path2 = @data['이미지설정']['이미지글자2'][@image_text_soon2]
2351
+ @image_text_soon2 += 1
2352
+ if @image_text_soon2 > @data['이미지설정']['이미지글자2'].length - 1
2353
+ @image_text_soon2 = 0
2354
+ end
2355
+ end
2356
+ end
2335
2357
  end
2336
-
2358
+
2337
2359
  if @data['이미지설정']['글자삽입1'].checked? or @data['이미지설정']['글자삽입2'].checked?
2338
- image_text(insert_image_text1, insert_image_text2)
2360
+ image_text(image_text_path1, image_text_path2)
2339
2361
  end
2340
2362
 
2341
2363
  if @data['이미지설정']['테두리사용'].checked?
@@ -2399,6 +2421,8 @@ class Wordpress
2399
2421
  title_soon = 0
2400
2422
  keyword_soon = 0
2401
2423
  content_soon = 0
2424
+ @image_text_soon1 = 0
2425
+ @image_text_soon2 = 0
2402
2426
  @my_ip = 'init'
2403
2427
  @image_counter = 0
2404
2428
  @inumber2 = 0
@@ -4767,9 +4791,30 @@ class Wordpress
4767
4791
  top 1
4768
4792
  left 6
4769
4793
  }
4770
- @data['이미지설정']['필터사용'] = checkbox('필터사용(색상 사진 적용불가)'){
4794
+ @data['이미지설정']['글자순서'] = checkbox('글자 리스트 순서대로 사용'){
4771
4795
  top 2
4772
4796
  left 0
4797
+ on_toggled{
4798
+ if @data['이미지설정']['글자순서'].checked?
4799
+ @data['이미지설정']['글자랜덤'].checked = false
4800
+ end
4801
+ }
4802
+ }
4803
+
4804
+ @data['이미지설정']['글자랜덤'] = checkbox('글자 리스트 랜덤으로 사용'){
4805
+ top 2
4806
+ left 1
4807
+ on_toggled{
4808
+ if @data['이미지설정']['글자랜덤'].checked?
4809
+ @data['이미지설정']['글자순서'].checked = false
4810
+ end
4811
+ }
4812
+ }
4813
+
4814
+
4815
+ @data['이미지설정']['필터사용'] = checkbox('필터사용(색상 사진 적용불가)'){
4816
+ top 2
4817
+ left 2
4773
4818
  }
4774
4819
  @data['이미지설정']['테두리사용'] = checkbox('테두리 사용'){
4775
4820
  top 3
@@ -5778,6 +5823,7 @@ class Wordpress
5778
5823
  @data['포스트설정']['공감허용'].checked = true
5779
5824
  @data['포스트설정']['발행기능'].checked = true
5780
5825
  @data['포스트설정']['인용구랜덤'].checked = true
5826
+ @data['이미지설정']['글자순서'].checked = true
5781
5827
  }.show
5782
5828
  end
5783
5829
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nblog_zon
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: rnjstnswp123@naver.com