cafe_buy_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_buy_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: 248ffb1cd2911811afb751290979b2a39f537fc0125ea6cd9bc2616b247c2a9e
|
4
|
+
data.tar.gz: 72c940097156c9ac66452db9aad84ce7048c5b4c7d06ae9b87c44e519a0ba0ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dc056c50f0ce595bef3897910bc2b7a3afd4c3fdac1a73147cfc139e6af8e80a05300ca6f1a11708f4963729a06482a19ccb3e24a8e1c27b623e6ba4cafc5ef
|
7
|
+
data.tar.gz: 603e100097a0412a567cbd6431fa68cf9cee74ef8a6866f4017015b33e622cbddd92a2bd2342a32715a94a719ab6634cce89a088d3511bde40c32c2e0c78faac
|
data/lib/cafe_buy_duo.rb
CHANGED
@@ -2523,18 +2523,40 @@ class Wordpress
|
|
2523
2523
|
image_filter()
|
2524
2524
|
end
|
2525
2525
|
|
2526
|
-
insert_image_text1 = ''
|
2527
|
-
insert_image_text2 = ''
|
2528
2526
|
if @data['이미지설정']['글자삽입1'].checked?
|
2529
|
-
|
2527
|
+
if @data['이미지설정']['이미지글자1'].length == 0
|
2528
|
+
image_text_path1 = ''
|
2529
|
+
else
|
2530
|
+
if @data['이미지설정']['글자랜덤'].checked?
|
2531
|
+
image_text_path1 = @data['이미지설정']['이미지글자1'].sample
|
2532
|
+
else
|
2533
|
+
image_text_path1 = @data['이미지설정']['이미지글자1'][@image_text_soon1]
|
2534
|
+
@image_text_soon1 += 1
|
2535
|
+
if @image_text_soon1 > @data['이미지설정']['이미지글자1'].length - 1
|
2536
|
+
@image_text_soon1 = 0
|
2537
|
+
end
|
2538
|
+
end
|
2539
|
+
end
|
2530
2540
|
end
|
2531
2541
|
|
2532
2542
|
if @data['이미지설정']['글자삽입2'].checked?
|
2533
|
-
|
2543
|
+
if @data['이미지설정']['이미지글자2'].length == 0
|
2544
|
+
image_text_path2 = ''
|
2545
|
+
else
|
2546
|
+
if @data['이미지설정']['글자랜덤'].checked?
|
2547
|
+
image_text_path2 = @data['이미지설정']['이미지글자2'].sample
|
2548
|
+
else
|
2549
|
+
image_text_path2 = @data['이미지설정']['이미지글자2'][@image_text_soon2]
|
2550
|
+
@image_text_soon2 += 1
|
2551
|
+
if @image_text_soon2 > @data['이미지설정']['이미지글자2'].length - 1
|
2552
|
+
@image_text_soon2 = 0
|
2553
|
+
end
|
2554
|
+
end
|
2555
|
+
end
|
2534
2556
|
end
|
2535
|
-
|
2557
|
+
|
2536
2558
|
if @data['이미지설정']['글자삽입1'].checked? or @data['이미지설정']['글자삽입2'].checked?
|
2537
|
-
image_text(
|
2559
|
+
image_text(image_text_path1, image_text_path2)
|
2538
2560
|
end
|
2539
2561
|
|
2540
2562
|
if @data['이미지설정']['테두리사용'].checked?
|
@@ -2598,6 +2620,8 @@ class Wordpress
|
|
2598
2620
|
title_soon = 0
|
2599
2621
|
keyword_soon = 0
|
2600
2622
|
content_soon = 0
|
2623
|
+
@image_text_soon1 = 0
|
2624
|
+
@image_text_soon2 = 0
|
2601
2625
|
@my_ip = 'init'
|
2602
2626
|
@image_counter = 0
|
2603
2627
|
@inumber2 = 0
|
@@ -4885,9 +4909,30 @@ class Wordpress
|
|
4885
4909
|
top 1
|
4886
4910
|
left 6
|
4887
4911
|
}
|
4888
|
-
@data['이미지설정']['
|
4912
|
+
@data['이미지설정']['글자순서'] = checkbox('글자 리스트 순서대로 사용'){
|
4889
4913
|
top 2
|
4890
4914
|
left 0
|
4915
|
+
on_toggled{
|
4916
|
+
if @data['이미지설정']['글자순서'].checked?
|
4917
|
+
@data['이미지설정']['글자랜덤'].checked = false
|
4918
|
+
end
|
4919
|
+
}
|
4920
|
+
}
|
4921
|
+
|
4922
|
+
@data['이미지설정']['글자랜덤'] = checkbox('글자 리스트 랜덤으로 사용'){
|
4923
|
+
top 2
|
4924
|
+
left 1
|
4925
|
+
on_toggled{
|
4926
|
+
if @data['이미지설정']['글자랜덤'].checked?
|
4927
|
+
@data['이미지설정']['글자순서'].checked = false
|
4928
|
+
end
|
4929
|
+
}
|
4930
|
+
}
|
4931
|
+
|
4932
|
+
|
4933
|
+
@data['이미지설정']['필터사용'] = checkbox('필터사용(색상 사진 적용불가)'){
|
4934
|
+
top 2
|
4935
|
+
left 2
|
4891
4936
|
}
|
4892
4937
|
@data['이미지설정']['테두리사용'] = checkbox('테두리 사용'){
|
4893
4938
|
top 3
|
@@ -6010,6 +6055,7 @@ class Wordpress
|
|
6010
6055
|
@data['포스트설정']['자동출처 사용'].checked = false
|
6011
6056
|
@data['포스트설정']['CCL사용'].checked = false
|
6012
6057
|
@data['포스트설정']['인용구랜덤'].checked = true
|
6058
|
+
@data['이미지설정']['글자순서'].checked = true
|
6013
6059
|
|
6014
6060
|
}.show
|
6015
6061
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cafe_buy_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
|