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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cafe_buy_duo.rb +49 -23
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb6ef129b5267937b5e70cba626b17d6ba04f0af723c2505738fd8695180c1ca
4
- data.tar.gz: 7c78e4f4cdbb04673239884d6c347de883ecbbd48939d08a794c6fad3c09456c
3
+ metadata.gz: ab341b33fa278f470b34ae7094bb9a967ddbe1ad5428a5ea8e3cfeab0a976542
4
+ data.tar.gz: 9c4adb3dd964318c8ba43e6c3fc2613844c4a5e1c20735177cb815c3447bd0c2
5
5
  SHA512:
6
- metadata.gz: f73db7b61de41cc135eac8db2671ab0a7aa74f6b15a887fd2b9626aa4d8cded5847c1c115ba0e25dae37b3626d0465779ce4e785ed16c4d4817e5d41259d5288
7
- data.tar.gz: 073c80ff54c3159cdef7b94f06f0013c2c917d60cef36f8f3b8bd2044744b445613a8516401b154388a9c9c17300f9cc699e759b6de98f6c054fd1c440bbb5b6
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.1
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-10-22 00:00:00.000000000 Z
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