cafe_buy_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/cafe_buy_duo.rb +49 -23
- 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: ab341b33fa278f470b34ae7094bb9a967ddbe1ad5428a5ea8e3cfeab0a976542
|
4
|
+
data.tar.gz: 9c4adb3dd964318c8ba43e6c3fc2613844c4a5e1c20735177cb815c3447bd0c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6211be56ad866f21ba5339331d47e1aeee686f2cbd1d0971a3a49c8c46079a8b156d8a43cb55688d3f3805bbb3826cf628c81776216d6607a8347e3d0e48d2cd
|
7
|
+
data.tar.gz: abbb051d07ec2fb735771d6c7704238f10a35edda4f41162111f9f89f5ea61d904d18c977b387601f836719fad9e935b31649100bcd7dcde58adf07eae4ab2d4
|
data/lib/cafe_buy_duo.rb
CHANGED
@@ -2939,32 +2939,32 @@ class Wordpress
|
|
2939
2939
|
end
|
2940
2940
|
|
2941
2941
|
position = position.sort
|
2942
|
-
|
2943
|
-
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2944
|
-
image_url22 = get_image_file().force_encoding('utf-8')
|
2945
|
-
end
|
2946
|
-
|
2947
|
-
position.each do |i|
|
2948
|
-
image_url = get_image_file().force_encoding('utf-8')
|
2949
|
-
puts image_url
|
2950
|
-
|
2951
|
-
puts '사진넣는위치 => '+i.to_s
|
2952
|
-
if @data['포스트설정']['내용사진링크'].checked?
|
2953
|
-
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>'+""
|
2954
|
-
content5.insert(i, '**image**')
|
2955
|
-
else
|
2956
|
-
image_memory << ""+'<img src="'+image_url+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
2957
|
-
content5.insert(i, '**image**')
|
2958
|
-
end
|
2959
|
-
end
|
2960
|
-
|
2961
|
-
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2962
|
-
content = content5.join("\n")+'(자동생성글)'+content55
|
2942
|
+
##여기서부터 이미지 순서대로 안되서 변경####-------------------------------------------------------------------------------
|
2943
|
+
# if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2944
|
+
# image_url22 = get_image_file().force_encoding('utf-8')
|
2945
|
+
# end
|
2946
|
+
|
2947
|
+
# position.each do |i|
|
2948
|
+
# image_url = get_image_file().force_encoding('utf-8')
|
2949
|
+
# puts image_url
|
2950
|
+
|
2951
|
+
# puts '사진넣는위치 => '+i.to_s
|
2952
|
+
# if @data['포스트설정']['내용사진링크'].checked?
|
2953
|
+
# 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>'+""
|
2954
|
+
# content5.insert(i, '**image**')
|
2955
|
+
# else
|
2956
|
+
# image_memory << ""+'<img src="'+image_url+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
2957
|
+
# content5.insert(i, '**image**')
|
2958
|
+
# end
|
2959
|
+
# end
|
2960
|
+
|
2961
|
+
# if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2962
|
+
# content = content5.join("\n")+'(자동생성글)'+content55
|
2963
2963
|
# iconv = Iconv.new('UTF-8', 'ASCII-8BIT')
|
2964
2964
|
# content = iconv.iconv(content)
|
2965
2965
|
# content = content.encode('UTF-8', 'binary', invalid: :replace, replace: '')
|
2966
|
-
puts content
|
2967
|
-
image_url = image_url22
|
2966
|
+
# puts content
|
2967
|
+
# image_url = image_url22
|
2968
2968
|
|
2969
2969
|
# if @data['포스트설정']['자동글 수식에 입력'].checked?
|
2970
2970
|
|
@@ -2975,6 +2975,32 @@ class Wordpress
|
|
2975
2975
|
# content = content.split('(자동생성글)')[0]+""+'<img src="'+image_url+'" alt="'+keyword+'" >'+""+'(자동생성글)'+content.split('(자동생성글)')[1]
|
2976
2976
|
# end
|
2977
2977
|
# end
|
2978
|
+
###여기까지 이미지 순서대로 안되서 변경##-------------------------------------------------------------------------------
|
2979
|
+
|
2980
|
+
##여기서부터 이미지 순서대로 수정코드 변경####-------------------------------------------------------------------------------
|
2981
|
+
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2982
|
+
sleep(2)
|
2983
|
+
puts '이미지 자동 세탁 중 · · · '
|
2984
|
+
end
|
2985
|
+
sleep(2)
|
2986
|
+
position.each do |i|
|
2987
|
+
image_url22 = get_image_file().force_encoding('utf-8')
|
2988
|
+
puts image_url22
|
2989
|
+
puts '사진넣는위치 => '+i.to_s
|
2990
|
+
if @data['포스트설정']['내용사진링크'].checked?
|
2991
|
+
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>'+""
|
2992
|
+
content5.insert(i, '**image**')
|
2993
|
+
else
|
2994
|
+
image_memory << ""+'<img src="'+image_url22+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
2995
|
+
content5.insert(i, '**image**')
|
2996
|
+
end
|
2997
|
+
end
|
2998
|
+
sleep(2)
|
2999
|
+
puts '이미지 자동 세탁 완료 · · · '
|
3000
|
+
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
3001
|
+
content = content5.join("\n")+'(자동생성글)'+content55
|
3002
|
+
puts content
|
3003
|
+
##여기서부터 이미지 순서대로 수정코드 변경####-------------------------------------------------------------------------------
|
2978
3004
|
else
|
2979
3005
|
content = content5.join("\n")
|
2980
3006
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cafe_buy_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
|