cafe_buy 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.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: d8aa88180e56e98489d18a2bbd9cd831b77555449cdbfcf94c03404b1cb3727a
|
4
|
+
data.tar.gz: 81cefe106e324fb36cb261594c32fc434a05f595a1c5a8b5d68ba6d56fb2ecc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f00ff5c44adce128f451aa2a0c18a0735f1ee114b63c0c025e4d7e3cee264053cc2b37b603283876245c57fa6e2f788b3cd07cd4552e9a39a8b84d023f9ee93
|
7
|
+
data.tar.gz: 7e49d0b1680fe2f33fd42a9bb5a188db8f58dabb0aa8ee1a0020828ec31bb75a65b6e92045fecb25a1b1ba16b9fc0b83c23c7275d815bffbdcfb47db4fe7d5d2
|
data/lib/cafe_buy.rb
CHANGED
@@ -2869,33 +2869,33 @@ class Wordpress
|
|
2869
2869
|
end
|
2870
2870
|
end
|
2871
2871
|
|
2872
|
-
|
2873
|
-
|
2874
|
-
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2875
|
-
image_url22 = get_image_file().force_encoding('utf-8')
|
2876
|
-
end
|
2877
|
-
|
2878
|
-
position.each do |i|
|
2879
|
-
image_url = get_image_file().force_encoding('utf-8')
|
2880
|
-
puts image_url
|
2881
|
-
|
2882
|
-
puts '사진넣는위치 => '+i.to_s
|
2883
|
-
if @data['포스트설정']['내용사진링크'].checked?
|
2884
|
-
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>'+""
|
2885
|
-
content5.insert(i, '**image**')
|
2886
|
-
else
|
2887
|
-
image_memory << ""+'<img src="'+image_url+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
2888
|
-
content5.insert(i, '**image**')
|
2889
|
-
end
|
2890
|
-
end
|
2891
|
-
|
2892
|
-
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2893
|
-
content = content5.join("\n")+'(자동생성글)'+content55
|
2872
|
+
position = position.sort
|
2873
|
+
##여기서부터 이미지 순서대로 안되서 변경####-------------------------------------------------------------------------------
|
2874
|
+
# if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2875
|
+
# image_url22 = get_image_file().force_encoding('utf-8')
|
2876
|
+
# end
|
2877
|
+
|
2878
|
+
# position.each do |i|
|
2879
|
+
# image_url = get_image_file().force_encoding('utf-8')
|
2880
|
+
# puts image_url
|
2881
|
+
|
2882
|
+
# puts '사진넣는위치 => '+i.to_s
|
2883
|
+
# if @data['포스트설정']['내용사진링크'].checked?
|
2884
|
+
# 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>'+""
|
2885
|
+
# content5.insert(i, '**image**')
|
2886
|
+
# else
|
2887
|
+
# image_memory << ""+'<img src="'+image_url+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
2888
|
+
# content5.insert(i, '**image**')
|
2889
|
+
# end
|
2890
|
+
# end
|
2891
|
+
|
2892
|
+
# if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2893
|
+
# content = content5.join("\n")+'(자동생성글)'+content55
|
2894
2894
|
# iconv = Iconv.new('UTF-8', 'ASCII-8BIT')
|
2895
2895
|
# content = iconv.iconv(content)
|
2896
2896
|
# content = content.encode('UTF-8', 'binary', invalid: :replace, replace: '')
|
2897
|
-
puts content
|
2898
|
-
image_url = image_url22
|
2897
|
+
# puts content
|
2898
|
+
# image_url = image_url22
|
2899
2899
|
|
2900
2900
|
# if @data['포스트설정']['자동글 수식에 입력'].checked?
|
2901
2901
|
|
@@ -2906,6 +2906,32 @@ class Wordpress
|
|
2906
2906
|
# content = content.split('(자동생성글)')[0]+""+'<img src="'+image_url+'" alt="'+keyword+'" >'+""+'(자동생성글)'+content.split('(자동생성글)')[1]
|
2907
2907
|
# end
|
2908
2908
|
# end
|
2909
|
+
###여기까지 이미지 순서대로 안되서 변경##-------------------------------------------------------------------------------
|
2910
|
+
|
2911
|
+
##여기서부터 이미지 순서대로 수정코드 변경####-------------------------------------------------------------------------------
|
2912
|
+
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2913
|
+
sleep(2)
|
2914
|
+
puts '이미지 자동 세탁 중 · · · '
|
2915
|
+
end
|
2916
|
+
sleep(2)
|
2917
|
+
position.each do |i|
|
2918
|
+
image_url22 = get_image_file().force_encoding('utf-8')
|
2919
|
+
puts image_url22
|
2920
|
+
puts '사진넣는위치 => '+i.to_s
|
2921
|
+
if @data['포스트설정']['내용사진링크'].checked?
|
2922
|
+
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>'+""
|
2923
|
+
content5.insert(i, '**image**')
|
2924
|
+
else
|
2925
|
+
image_memory << ""+'<img src="'+image_url22+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
2926
|
+
content5.insert(i, '**image**')
|
2927
|
+
end
|
2928
|
+
end
|
2929
|
+
sleep(2)
|
2930
|
+
puts '이미지 자동 세탁 완료 · · · '
|
2931
|
+
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
|
2932
|
+
content = content5.join("\n")+'(자동생성글)'+content55
|
2933
|
+
puts content
|
2934
|
+
##여기서부터 이미지 순서대로 수정코드 변경####-------------------------------------------------------------------------------
|
2909
2935
|
else
|
2910
2936
|
content = content5.join("\n")
|
2911
2937
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cafe_buy
|
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
|