cafe_basics 0.0.1 → 0.0.2
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.rb +50 -24
- 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: 3ebcbf4c865b74e526a718805fc9e237c249b2f26f66116c0589e985fc05908b
|
4
|
+
data.tar.gz: 65a64dcad12b978f17767957583c2d008c6ce47bbad6268bcc4841bac7a3e8ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc88b4a1bb0326d8c15f3b9db186d3820040023fc30bbb2098fbb1d9133eea738bf2ae9c448dfb32da8948a193f89ded8dac0065a721d91e018a915705090a75
|
7
|
+
data.tar.gz: ca29fad4f693e48d4edbe38b751f0d6f75ac88c7d020c0cc5b6d19bcc1e6fcd940488b589691862d48c76e0884b781f41ead03adb86f562a9cb584ee95eb1f6e
|
data/lib/cafe_basics.rb
CHANGED
@@ -2534,33 +2534,33 @@ class Wordpress
|
|
2534
2534
|
end
|
2535
2535
|
end
|
2536
2536
|
|
2537
|
-
|
2538
|
-
|
2539
|
-
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2540
|
-
image_url22 = get_image_file().force_encoding('utf-8')
|
2541
|
-
end
|
2542
|
-
|
2543
|
-
position.each do |i|
|
2544
|
-
image_url = get_image_file().force_encoding('utf-8')
|
2545
|
-
puts image_url
|
2546
|
-
|
2547
|
-
puts '사진넣는위치 => '+i.to_s
|
2548
|
-
if @data['포스트설정']['내용사진링크'].checked?
|
2549
|
-
image_memory << ""+'<a href="'+@data['포스트설정']['내용사진링크값'].text.to_s.force_encoding('utf-8').force_encoding('utf-8')+'"><img src="'+image_url+'" alt="'+keyword.force_encoding('utf-8')+'"></a>'+""
|
2550
|
-
content5.insert(i, '**image**')
|
2551
|
-
else
|
2552
|
-
image_memory << ""+'<img src="'+image_url+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
2553
|
-
content5.insert(i, '**image**')
|
2554
|
-
end
|
2555
|
-
end
|
2556
|
-
|
2557
|
-
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2558
|
-
content = content5.join("\n")+'(자동생성글)'+content55
|
2537
|
+
position = position.sort
|
2538
|
+
##여기서부터 이미지 순서대로 안되서 변경####-------------------------------------------------------------------------------
|
2539
|
+
# if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2540
|
+
# image_url22 = get_image_file().force_encoding('utf-8')
|
2541
|
+
# end
|
2542
|
+
|
2543
|
+
# position.each do |i|
|
2544
|
+
# image_url = get_image_file().force_encoding('utf-8')
|
2545
|
+
# puts image_url
|
2546
|
+
|
2547
|
+
# puts '사진넣는위치 => '+i.to_s
|
2548
|
+
# if @data['포스트설정']['내용사진링크'].checked?
|
2549
|
+
# image_memory << ""+'<a href="'+@data['포스트설정']['내용사진링크값'].text.to_s.force_encoding('utf-8').force_encoding('utf-8')+'"><img src="'+image_url+'" alt="'+keyword.force_encoding('utf-8')+'"></a>'+""
|
2550
|
+
# content5.insert(i, '**image**')
|
2551
|
+
# else
|
2552
|
+
# image_memory << ""+'<img src="'+image_url+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
2553
|
+
# content5.insert(i, '**image**')
|
2554
|
+
# end
|
2555
|
+
# end
|
2556
|
+
|
2557
|
+
# if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2558
|
+
# content = content5.join("\n")+'(자동생성글)'+content55
|
2559
2559
|
# iconv = Iconv.new('UTF-8', 'ASCII-8BIT')
|
2560
2560
|
# content = iconv.iconv(content)
|
2561
2561
|
# content = content.encode('UTF-8', 'binary', invalid: :replace, replace: '')
|
2562
|
-
puts content
|
2563
|
-
image_url = image_url22
|
2562
|
+
# puts content
|
2563
|
+
# image_url = image_url22
|
2564
2564
|
|
2565
2565
|
# if @data['포스트설정']['자동글 수식에 입력'].checked?
|
2566
2566
|
|
@@ -2571,6 +2571,32 @@ class Wordpress
|
|
2571
2571
|
# content = content.split('(자동생성글)')[0]+""+'<img src="'+image_url+'" alt="'+keyword+'" >'+""+'(자동생성글)'+content.split('(자동생성글)')[1]
|
2572
2572
|
# end
|
2573
2573
|
# end
|
2574
|
+
###여기까지 이미지 순서대로 안되서 변경##-------------------------------------------------------------------------------
|
2575
|
+
|
2576
|
+
##여기서부터 이미지 순서대로 수정코드 변경####-------------------------------------------------------------------------------
|
2577
|
+
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2578
|
+
sleep(2)
|
2579
|
+
puts '이미지 자동 세탁 중 · · · '
|
2580
|
+
end
|
2581
|
+
sleep(2)
|
2582
|
+
position.each do |i|
|
2583
|
+
image_url22 = get_image_file().force_encoding('utf-8')
|
2584
|
+
puts image_url22
|
2585
|
+
puts '사진넣는위치 => '+i.to_s
|
2586
|
+
if @data['포스트설정']['내용사진링크'].checked?
|
2587
|
+
image_memory << ""+'<a href="'+@data['포스트설정']['내용사진링크값'].text.to_s.force_encoding('utf-8').force_encoding('utf-8')+'"><img src="'+image_url22+'" alt="'+keyword.force_encoding('utf-8')+'"></a>'+""
|
2588
|
+
content5.insert(i, '**image**')
|
2589
|
+
else
|
2590
|
+
image_memory << ""+'<img src="'+image_url22+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
2591
|
+
content5.insert(i, '**image**')
|
2592
|
+
end
|
2593
|
+
end
|
2594
|
+
sleep(2)
|
2595
|
+
puts '이미지 자동 세탁 완료 · · · '
|
2596
|
+
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2597
|
+
content = content5.join("\n")+'(자동생성글)'+content55
|
2598
|
+
puts content
|
2599
|
+
##여기서부터 이미지 순서대로 수정코드 변경####-------------------------------------------------------------------------------
|
2574
2600
|
else
|
2575
2601
|
content = content5.join("\n")
|
2576
2602
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cafe_basics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: File to Clipboard gem
|
14
14
|
email: mymin26@naver.com
|