nblog_zon 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/nblog_zon.rb +57 -27
- 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: 363e88f672a3cf2a5ef64b65e4ae90ecdd7d5442007b88804459083380b6f44d
|
4
|
+
data.tar.gz: c3ab0c94258fbb544895529cf0e84efd65ca520afea82464f52052e25e5e7bf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8428971ef482d1cc6847f872a63c8c2ac785864c45223a337b3f52d13b0a448c47fa0aed803d1ca23bf589a5e09fc09e9e78d50a392767c374c5186c960c77b8
|
7
|
+
data.tar.gz: a9fa5c57de1d323a41423ded96440b93efcb3c4261f945440a7f879ecc56c4caf55bb9c56879efb5ed1d891faa87e11eb731f8f51980368c03495d1ba9d035f3
|
data/lib/nblog_zon.rb
CHANGED
@@ -2526,32 +2526,32 @@ class Wordpress
|
|
2526
2526
|
end
|
2527
2527
|
|
2528
2528
|
position = position.sort
|
2529
|
-
|
2530
|
-
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2531
|
-
image_url22 = get_image_file().force_encoding('utf-8')
|
2532
|
-
end
|
2533
|
-
|
2534
|
-
position.each do |i|
|
2535
|
-
image_url = get_image_file().force_encoding('utf-8')
|
2536
|
-
puts image_url
|
2537
|
-
|
2538
|
-
puts '사진넣는위치 => '+i.to_s
|
2539
|
-
if @data['포스트설정']['내용사진링크'].checked?
|
2540
|
-
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>'+""
|
2541
|
-
content5.insert(i, '**image**')
|
2542
|
-
else
|
2543
|
-
image_memory << ""+'<img src="'+image_url+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
2544
|
-
content5.insert(i, '**image**')
|
2545
|
-
end
|
2546
|
-
end
|
2547
|
-
|
2548
|
-
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2549
|
-
content = content5.join("\n")+'(자동생성글)'+content55
|
2529
|
+
###여기까지 이미지 순서대로 안되서 변경##-------------------------------------------------------------------------------
|
2530
|
+
# if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2531
|
+
# image_url22 = get_image_file().force_encoding('utf-8')
|
2532
|
+
# end
|
2533
|
+
|
2534
|
+
# position.each do |i|
|
2535
|
+
# image_url = get_image_file().force_encoding('utf-8')
|
2536
|
+
# puts image_url
|
2537
|
+
|
2538
|
+
# puts '사진넣는위치 => '+i.to_s
|
2539
|
+
# if @data['포스트설정']['내용사진링크'].checked?
|
2540
|
+
# 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>'+""
|
2541
|
+
# content5.insert(i, '**image**')
|
2542
|
+
# else
|
2543
|
+
# image_memory << ""+'<img src="'+image_url+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
2544
|
+
# content5.insert(i, '**image**')
|
2545
|
+
# end
|
2546
|
+
# end
|
2547
|
+
|
2548
|
+
# if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2549
|
+
# content = content5.join("\n")+'(자동생성글)'+content55
|
2550
2550
|
# iconv = Iconv.new('UTF-8', 'ASCII-8BIT')
|
2551
2551
|
# content = iconv.iconv(content)
|
2552
2552
|
# content = content.encode('UTF-8', 'binary', invalid: :replace, replace: '')
|
2553
|
-
puts content
|
2554
|
-
image_url = image_url22
|
2553
|
+
# puts content
|
2554
|
+
# image_url = image_url22
|
2555
2555
|
|
2556
2556
|
# if @data['포스트설정']['자동글 수식에 입력'].checked?
|
2557
2557
|
|
@@ -2562,12 +2562,42 @@ class Wordpress
|
|
2562
2562
|
# content = content.split('(자동생성글)')[0]+""+'<img src="'+image_url+'" alt="'+keyword+'" >'+""+'(자동생성글)'+content.split('(자동생성글)')[1]
|
2563
2563
|
# end
|
2564
2564
|
# end
|
2565
|
-
else
|
2566
|
-
content = content5.join("\n")
|
2567
|
-
end
|
2565
|
+
# else
|
2566
|
+
# content = content5.join("\n")
|
2567
|
+
# end
|
2568
|
+
# end
|
2569
|
+
# end
|
2570
|
+
###여기까지 이미지 순서대로 안되서 변경##-------------------------------------------------------------------------------
|
2571
|
+
|
2572
|
+
##여기서부터 이미지 순서대로 수정코드 변경####-------------------------------------------------------------------------------
|
2573
|
+
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2574
|
+
sleep(2)
|
2575
|
+
puts '이미지 자동 세탁 중 · · · '
|
2576
|
+
end
|
2577
|
+
sleep(2)
|
2578
|
+
position.each do |i|
|
2579
|
+
image_url22 = get_image_file().force_encoding('utf-8')
|
2580
|
+
puts image_url22
|
2581
|
+
puts '사진넣는위치 => '+i.to_s
|
2582
|
+
if @data['포스트설정']['내용사진링크'].checked?
|
2583
|
+
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>'+""
|
2584
|
+
content5.insert(i, '**image**')
|
2585
|
+
else
|
2586
|
+
image_memory << ""+'<img src="'+image_url22+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
2587
|
+
content5.insert(i, '**image**')
|
2568
2588
|
end
|
2569
2589
|
end
|
2570
|
-
|
2590
|
+
sleep(2)
|
2591
|
+
puts '이미지 자동 세탁 완료 · · · '
|
2592
|
+
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2593
|
+
content = content5.join("\n")+'(자동생성글)'+content55
|
2594
|
+
puts content
|
2595
|
+
else
|
2596
|
+
content = content5.join("\n")
|
2597
|
+
end
|
2598
|
+
end
|
2599
|
+
end
|
2600
|
+
##여기서부터 이미지 순서대로 수정코드 변경####-------------------------------------------------------------------------------
|
2571
2601
|
@data['table'][index][-1] = 70
|
2572
2602
|
@data['table'] << []
|
2573
2603
|
@data['table'].pop
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nblog_zon
|
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: rnjstnswp123@naver.com
|