cafe_buy 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.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: e7c8989d585089b973707a6c6c6a27289728cb6ef7ddfc7d2234d0000bd264c2
|
4
|
+
data.tar.gz: f3963a691796b668a6fa193534ec2d249ec10abd41d09ef97e996651c1424a88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5e7d469d77acbcd05a8a1d886751bd3127373b061ae20dd94c3c35203a53d7093d94422002bcc08182e40c7aa3b95369b89b73e9f0ea1e51753c511dfdd7601
|
7
|
+
data.tar.gz: aa81966d5c2ec6682ee96906c1958dd217f69d7be271d649de74d466e6e5fc798dcab4773ff90fbe315e27a603b3254c176a0876c82ac4c47c2a386aae67846b
|
data/lib/cafe_buy.rb
CHANGED
@@ -2455,18 +2455,40 @@ class Wordpress
|
|
2455
2455
|
image_filter()
|
2456
2456
|
end
|
2457
2457
|
|
2458
|
-
insert_image_text1 = ''
|
2459
|
-
insert_image_text2 = ''
|
2460
2458
|
if @data['이미지설정']['글자삽입1'].checked?
|
2461
|
-
|
2459
|
+
if @data['이미지설정']['이미지글자1'].length == 0
|
2460
|
+
image_text_path1 = ''
|
2461
|
+
else
|
2462
|
+
if @data['이미지설정']['글자랜덤'].checked?
|
2463
|
+
image_text_path1 = @data['이미지설정']['이미지글자1'].sample
|
2464
|
+
else
|
2465
|
+
image_text_path1 = @data['이미지설정']['이미지글자1'][@image_text_soon1]
|
2466
|
+
@image_text_soon1 += 1
|
2467
|
+
if @image_text_soon1 > @data['이미지설정']['이미지글자1'].length - 1
|
2468
|
+
@image_text_soon1 = 0
|
2469
|
+
end
|
2470
|
+
end
|
2471
|
+
end
|
2462
2472
|
end
|
2463
2473
|
|
2464
2474
|
if @data['이미지설정']['글자삽입2'].checked?
|
2465
|
-
|
2475
|
+
if @data['이미지설정']['이미지글자2'].length == 0
|
2476
|
+
image_text_path2 = ''
|
2477
|
+
else
|
2478
|
+
if @data['이미지설정']['글자랜덤'].checked?
|
2479
|
+
image_text_path2 = @data['이미지설정']['이미지글자2'].sample
|
2480
|
+
else
|
2481
|
+
image_text_path2 = @data['이미지설정']['이미지글자2'][@image_text_soon2]
|
2482
|
+
@image_text_soon2 += 1
|
2483
|
+
if @image_text_soon2 > @data['이미지설정']['이미지글자2'].length - 1
|
2484
|
+
@image_text_soon2 = 0
|
2485
|
+
end
|
2486
|
+
end
|
2487
|
+
end
|
2466
2488
|
end
|
2467
|
-
|
2489
|
+
|
2468
2490
|
if @data['이미지설정']['글자삽입1'].checked? or @data['이미지설정']['글자삽입2'].checked?
|
2469
|
-
image_text(
|
2491
|
+
image_text(image_text_path1, image_text_path2)
|
2470
2492
|
end
|
2471
2493
|
|
2472
2494
|
if @data['이미지설정']['테두리사용'].checked?
|
@@ -2530,6 +2552,8 @@ class Wordpress
|
|
2530
2552
|
title_soon = 0
|
2531
2553
|
keyword_soon = 0
|
2532
2554
|
content_soon = 0
|
2555
|
+
@image_text_soon1 = 0
|
2556
|
+
@image_text_soon2 = 0
|
2533
2557
|
@my_ip = 'init'
|
2534
2558
|
@image_counter = 0
|
2535
2559
|
@inumber2 = 0
|
@@ -4811,9 +4835,30 @@ class Wordpress
|
|
4811
4835
|
top 1
|
4812
4836
|
left 6
|
4813
4837
|
}
|
4814
|
-
@data['이미지설정']['
|
4838
|
+
@data['이미지설정']['글자순서'] = checkbox('글자 리스트 순서대로 사용'){
|
4815
4839
|
top 2
|
4816
4840
|
left 0
|
4841
|
+
on_toggled{
|
4842
|
+
if @data['이미지설정']['글자순서'].checked?
|
4843
|
+
@data['이미지설정']['글자랜덤'].checked = false
|
4844
|
+
end
|
4845
|
+
}
|
4846
|
+
}
|
4847
|
+
|
4848
|
+
@data['이미지설정']['글자랜덤'] = checkbox('글자 리스트 랜덤으로 사용'){
|
4849
|
+
top 2
|
4850
|
+
left 1
|
4851
|
+
on_toggled{
|
4852
|
+
if @data['이미지설정']['글자랜덤'].checked?
|
4853
|
+
@data['이미지설정']['글자순서'].checked = false
|
4854
|
+
end
|
4855
|
+
}
|
4856
|
+
}
|
4857
|
+
|
4858
|
+
|
4859
|
+
@data['이미지설정']['필터사용'] = checkbox('필터사용(색상 사진 적용불가)'){
|
4860
|
+
top 2
|
4861
|
+
left 2
|
4817
4862
|
}
|
4818
4863
|
@data['이미지설정']['테두리사용'] = checkbox('테두리 사용'){
|
4819
4864
|
top 3
|
@@ -5936,6 +5981,7 @@ class Wordpress
|
|
5936
5981
|
@data['포스트설정']['자동출처 사용'].checked = false
|
5937
5982
|
@data['포스트설정']['CCL사용'].checked = false
|
5938
5983
|
@data['포스트설정']['인용구랜덤'].checked = true
|
5984
|
+
@data['이미지설정']['글자순서'].checked = true
|
5939
5985
|
|
5940
5986
|
}.show
|
5941
5987
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cafe_buy
|
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
|