cafe_basics_duo 0.1.35 → 0.1.36
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/cafe_basics_duo.rb +53 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed29b474605d5e69da6839887f2098f9440775ec05d0702341b143138a0c654b
|
4
|
+
data.tar.gz: bdb4ed6fee966c5f02f4089f2ad2f60858bcd3e2cc4d778848130cc642fd355c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a191bbefbfbfc7a7f1a46a6de3578da551839430a635d0add360e8e6572c076f1ace730a3fa45ddbe70e62f31b1adf1dc52ec369b0f56682afc260639231b4bf
|
7
|
+
data.tar.gz: 65dc2ff26d0ffc33ace43524d2c729a554aae460a5e11241865cdb089142cad4a277905226905993b143b84f55aefbd7e53935948ffb4b6f295f733eed3848c9
|
data/lib/cafe_basics_duo.rb
CHANGED
@@ -2185,18 +2185,40 @@ class Wordpress
|
|
2185
2185
|
image_filter()
|
2186
2186
|
end
|
2187
2187
|
|
2188
|
-
insert_image_text1 = ''
|
2189
|
-
insert_image_text2 = ''
|
2190
2188
|
if @data['이미지설정']['글자삽입1'].checked?
|
2191
|
-
|
2189
|
+
if @data['이미지설정']['이미지글자1'].length == 0
|
2190
|
+
image_text_path1 = ''
|
2191
|
+
else
|
2192
|
+
if @data['이미지설정']['글자랜덤'].checked?
|
2193
|
+
image_text_path1 = @data['이미지설정']['이미지글자1'].sample
|
2194
|
+
else
|
2195
|
+
image_text_path1 = @data['이미지설정']['이미지글자1'][@image_text_soon1]
|
2196
|
+
@image_text_soon1 += 1
|
2197
|
+
if @image_text_soon1 > @data['이미지설정']['이미지글자1'].length - 1
|
2198
|
+
@image_text_soon1 = 0
|
2199
|
+
end
|
2200
|
+
end
|
2201
|
+
end
|
2192
2202
|
end
|
2193
2203
|
|
2194
2204
|
if @data['이미지설정']['글자삽입2'].checked?
|
2195
|
-
|
2205
|
+
if @data['이미지설정']['이미지글자2'].length == 0
|
2206
|
+
image_text_path2 = ''
|
2207
|
+
else
|
2208
|
+
if @data['이미지설정']['글자랜덤'].checked?
|
2209
|
+
image_text_path2 = @data['이미지설정']['이미지글자2'].sample
|
2210
|
+
else
|
2211
|
+
image_text_path2 = @data['이미지설정']['이미지글자2'][@image_text_soon2]
|
2212
|
+
@image_text_soon2 += 1
|
2213
|
+
if @image_text_soon2 > @data['이미지설정']['이미지글자2'].length - 1
|
2214
|
+
@image_text_soon2 = 0
|
2215
|
+
end
|
2216
|
+
end
|
2217
|
+
end
|
2196
2218
|
end
|
2197
|
-
|
2219
|
+
|
2198
2220
|
if @data['이미지설정']['글자삽입1'].checked? or @data['이미지설정']['글자삽입2'].checked?
|
2199
|
-
image_text(
|
2221
|
+
image_text(image_text_path1, image_text_path2)
|
2200
2222
|
end
|
2201
2223
|
|
2202
2224
|
if @data['이미지설정']['테두리사용'].checked?
|
@@ -2260,6 +2282,8 @@ class Wordpress
|
|
2260
2282
|
title_soon = 0
|
2261
2283
|
keyword_soon = 0
|
2262
2284
|
content_soon = 0
|
2285
|
+
@image_text_soon1 = 0
|
2286
|
+
@image_text_soon2 = 0
|
2263
2287
|
@my_ip = 'init'
|
2264
2288
|
@image_counter = 0
|
2265
2289
|
@inumber2 = 0
|
@@ -4500,9 +4524,30 @@ class Wordpress
|
|
4500
4524
|
top 1
|
4501
4525
|
left 6
|
4502
4526
|
}
|
4503
|
-
@data['이미지설정']['
|
4527
|
+
@data['이미지설정']['글자순서'] = checkbox('글자 리스트 순서대로 사용'){
|
4504
4528
|
top 2
|
4505
4529
|
left 0
|
4530
|
+
on_toggled{
|
4531
|
+
if @data['이미지설정']['글자순서'].checked?
|
4532
|
+
@data['이미지설정']['글자랜덤'].checked = false
|
4533
|
+
end
|
4534
|
+
}
|
4535
|
+
}
|
4536
|
+
|
4537
|
+
@data['이미지설정']['글자랜덤'] = checkbox('글자 리스트 랜덤으로 사용'){
|
4538
|
+
top 2
|
4539
|
+
left 1
|
4540
|
+
on_toggled{
|
4541
|
+
if @data['이미지설정']['글자랜덤'].checked?
|
4542
|
+
@data['이미지설정']['글자순서'].checked = false
|
4543
|
+
end
|
4544
|
+
}
|
4545
|
+
}
|
4546
|
+
|
4547
|
+
|
4548
|
+
@data['이미지설정']['필터사용'] = checkbox('필터사용(색상 사진 적용불가)'){
|
4549
|
+
top 2
|
4550
|
+
left 2
|
4506
4551
|
}
|
4507
4552
|
@data['이미지설정']['테두리사용'] = checkbox('테두리 사용'){
|
4508
4553
|
top 3
|
@@ -5413,6 +5458,7 @@ class Wordpress
|
|
5413
5458
|
@data['포스트설정']['자동출처 사용'].checked = false
|
5414
5459
|
@data['포스트설정']['CCL사용'].checked = false
|
5415
5460
|
@data['포스트설정']['인용구랜덤'].checked = true
|
5461
|
+
@data['이미지설정']['글자순서'].checked = true
|
5416
5462
|
}.show
|
5417
5463
|
end
|
5418
5464
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cafe_basics_duo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zon
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-05-
|
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
|