nblog_duo 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_duo.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: 3884bbf822f4851e52730ab806b85cc7104d33d2c0759984d2adf9b7dbe35042
|
4
|
+
data.tar.gz: 2bdf1bb6fe27020b4a44c236240bd3ce8b505931c3d946444b5b4fdc69fccd6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa85a658b9e92047ebbbd8752188f4ad0c36799b578269cae2c127f5b0d09cbe353d71164ee4b40c67ba9d5090eb88da341178155f141bef5b3d496db0fe986d
|
7
|
+
data.tar.gz: e227a2bc4e02fc8449cee110784d27ba66d29ef7c1b49b882c4589bd9fc86eb6d26ed89fd57a2c02faa0b549cb8422d0422ea1d1220c247552c29a7ffabf1cf9
|
data/lib/nblog_duo.rb
CHANGED
@@ -2595,32 +2595,32 @@ class Wordpress
|
|
2595
2595
|
end
|
2596
2596
|
|
2597
2597
|
position = position.sort
|
2598
|
-
|
2599
|
-
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2600
|
-
image_url22 = get_image_file().force_encoding('utf-8')
|
2601
|
-
end
|
2602
|
-
|
2603
|
-
position.each do |i|
|
2604
|
-
image_url = get_image_file().force_encoding('utf-8')
|
2605
|
-
puts image_url
|
2606
|
-
|
2607
|
-
puts '사진넣는위치 => '+i.to_s
|
2608
|
-
if @data['포스트설정']['내용사진링크'].checked?
|
2609
|
-
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>'+""
|
2610
|
-
content5.insert(i, '**image**')
|
2611
|
-
else
|
2612
|
-
image_memory << ""+'<img src="'+image_url+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
2613
|
-
content5.insert(i, '**image**')
|
2614
|
-
end
|
2615
|
-
end
|
2616
|
-
|
2617
|
-
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2618
|
-
content = content5.join("\n")+'(자동생성글)'+content55
|
2598
|
+
###여기까지 이미지 순서대로 안되서 변경##-------------------------------------------------------------------------------
|
2599
|
+
# if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2600
|
+
# image_url22 = get_image_file().force_encoding('utf-8')
|
2601
|
+
# end
|
2602
|
+
|
2603
|
+
# position.each do |i|
|
2604
|
+
# image_url = get_image_file().force_encoding('utf-8')
|
2605
|
+
# puts image_url
|
2606
|
+
|
2607
|
+
# puts '사진넣는위치 => '+i.to_s
|
2608
|
+
# if @data['포스트설정']['내용사진링크'].checked?
|
2609
|
+
# 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>'+""
|
2610
|
+
# content5.insert(i, '**image**')
|
2611
|
+
# else
|
2612
|
+
# image_memory << ""+'<img src="'+image_url+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
2613
|
+
# content5.insert(i, '**image**')
|
2614
|
+
# end
|
2615
|
+
# end
|
2616
|
+
|
2617
|
+
# if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2618
|
+
# content = content5.join("\n")+'(자동생성글)'+content55
|
2619
2619
|
# iconv = Iconv.new('UTF-8', 'ASCII-8BIT')
|
2620
2620
|
# content = iconv.iconv(content)
|
2621
2621
|
# content = content.encode('UTF-8', 'binary', invalid: :replace, replace: '')
|
2622
|
-
puts content
|
2623
|
-
image_url = image_url22
|
2622
|
+
# puts content
|
2623
|
+
# image_url = image_url22
|
2624
2624
|
|
2625
2625
|
# if @data['포스트설정']['자동글 수식에 입력'].checked?
|
2626
2626
|
|
@@ -2631,12 +2631,42 @@ class Wordpress
|
|
2631
2631
|
# content = content.split('(자동생성글)')[0]+""+'<img src="'+image_url+'" alt="'+keyword+'" >'+""+'(자동생성글)'+content.split('(자동생성글)')[1]
|
2632
2632
|
# end
|
2633
2633
|
# end
|
2634
|
-
else
|
2635
|
-
content = content5.join("\n")
|
2636
|
-
end
|
2634
|
+
# else
|
2635
|
+
# content = content5.join("\n")
|
2636
|
+
# end
|
2637
|
+
# end
|
2638
|
+
# end
|
2639
|
+
###여기까지 이미지 순서대로 안되서 변경##-------------------------------------------------------------------------------
|
2640
|
+
|
2641
|
+
##여기서부터 이미지 순서대로 수정코드 변경####-------------------------------------------------------------------------------
|
2642
|
+
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2643
|
+
sleep(2)
|
2644
|
+
puts '이미지 자동 세탁 중 · · · '
|
2645
|
+
end
|
2646
|
+
sleep(2)
|
2647
|
+
position.each do |i|
|
2648
|
+
image_url22 = get_image_file().force_encoding('utf-8')
|
2649
|
+
puts image_url22
|
2650
|
+
puts '사진넣는위치 => '+i.to_s
|
2651
|
+
if @data['포스트설정']['내용사진링크'].checked?
|
2652
|
+
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>'+""
|
2653
|
+
content5.insert(i, '**image**')
|
2654
|
+
else
|
2655
|
+
image_memory << ""+'<img src="'+image_url22+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
2656
|
+
content5.insert(i, '**image**')
|
2637
2657
|
end
|
2638
2658
|
end
|
2639
|
-
|
2659
|
+
sleep(2)
|
2660
|
+
puts '이미지 자동 세탁 완료 · · · '
|
2661
|
+
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2662
|
+
content = content5.join("\n")+'(자동생성글)'+content55
|
2663
|
+
puts content
|
2664
|
+
else
|
2665
|
+
content = content5.join("\n")
|
2666
|
+
end
|
2667
|
+
end
|
2668
|
+
end
|
2669
|
+
##여기서부터 이미지 순서대로 수정코드 변경####-------------------------------------------------------------------------------
|
2640
2670
|
@data['table'][index][-1] = 70
|
2641
2671
|
@data['table'] << []
|
2642
2672
|
@data['table'].pop
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nblog_duo
|
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
|