cafe_basics_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_basics_duo.rb +49 -23
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0a45bd383b22a4918846aec12af0721794a65b3782eb20b0e567bcf9b4add94
4
- data.tar.gz: 7d3eda91cde96b284f584e45d53974d86f37f08dfc0409c25efa0aace5bc26a4
3
+ metadata.gz: 24628989028646f284019ea640835c020fa24c5439b8893220cd4060b2dcdf99
4
+ data.tar.gz: bcac8e71ecc9dc89bef690de8444b57bc6f1a811609b7bbee8ed51bfc72a416a
5
5
  SHA512:
6
- metadata.gz: 2705c303204387afd6a1c225b804453b2316aaf2229a1e5b1a894b53bd9e732c2e3b52e97a0cc74f50219fbc05969f3c2c16ed838e1b5c308a5d9702ce792a24
7
- data.tar.gz: 718578463f17bdfe3e19eb0fca1499310609e0d85a26d4b034dc47d6319e39f7318e10cbfbd86e6c90d87194d0ab3fca2276ca9a32a0bb7e48d64f93abd69608
6
+ metadata.gz: 234b9fbe945c4efa012612cccc698eef0b2c65718c997d112f2633d619c08cb03a1f35a5b0217d373607f88e0ed4a86eff2056f835e40683fa517826b062ccbc
7
+ data.tar.gz: 831110c970df2a84181aa4bc8ade54a5e56a8a08f7047cbbbd6f08c1d966cde23b2031c5f7f6e51203571c07301a4e303a6ead61e9b78a47a9e5b007c1377fcf
@@ -2604,32 +2604,32 @@ class Wordpress
2604
2604
  end
2605
2605
 
2606
2606
  position = position.sort
2607
-
2608
- if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
2609
- image_url22 = get_image_file().force_encoding('utf-8')
2610
- end
2611
-
2612
- position.each do |i|
2613
- image_url = get_image_file().force_encoding('utf-8')
2614
- puts image_url
2615
-
2616
- puts '사진넣는위치 => '+i.to_s
2617
- if @data['포스트설정']['내용사진링크'].checked?
2618
- 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>'+""
2619
- content5.insert(i, '**image**')
2620
- else
2621
- image_memory << ""+'<img src="'+image_url+'" alt="'+keyword+'" class="aligncenter size-full">'+""
2622
- content5.insert(i, '**image**')
2623
- end
2624
- end
2625
-
2626
- if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
2627
- content = content5.join("\n")+'(자동생성글)'+content55
2607
+ ##여기서부터 이미지 순서대로 안되서 변경####-------------------------------------------------------------------------------
2608
+ # if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
2609
+ # image_url22 = get_image_file().force_encoding('utf-8')
2610
+ # end
2611
+
2612
+ # position.each do |i|
2613
+ # image_url = get_image_file().force_encoding('utf-8')
2614
+ # puts image_url
2615
+
2616
+ # puts '사진넣는위치 => '+i.to_s
2617
+ # if @data['포스트설정']['내용사진링크'].checked?
2618
+ # 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>'+""
2619
+ # content5.insert(i, '**image**')
2620
+ # else
2621
+ # image_memory << ""+'<img src="'+image_url+'" alt="'+keyword+'" class="aligncenter size-full">'+""
2622
+ # content5.insert(i, '**image**')
2623
+ # end
2624
+ # end
2625
+
2626
+ # if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
2627
+ # content = content5.join("\n")+'(자동생성글)'+content55
2628
2628
  # iconv = Iconv.new('UTF-8', 'ASCII-8BIT')
2629
2629
  # content = iconv.iconv(content)
2630
2630
  # content = content.encode('UTF-8', 'binary', invalid: :replace, replace: '')
2631
- puts content
2632
- image_url = image_url22
2631
+ # puts content
2632
+ # image_url = image_url22
2633
2633
 
2634
2634
  # if @data['포스트설정']['자동글 수식에 입력'].checked?
2635
2635
 
@@ -2640,6 +2640,32 @@ class Wordpress
2640
2640
  # content = content.split('(자동생성글)')[0]+""+'<img src="'+image_url+'" alt="'+keyword+'" >'+""+'(자동생성글)'+content.split('(자동생성글)')[1]
2641
2641
  # end
2642
2642
  # end
2643
+ ###여기까지 이미지 순서대로 안되서 변경##-------------------------------------------------------------------------------
2644
+
2645
+ ##여기서부터 이미지 순서대로 수정코드 변경####-------------------------------------------------------------------------------
2646
+ if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
2647
+ sleep(2)
2648
+ puts '이미지 자동 세탁 중 · · · '
2649
+ end
2650
+ sleep(2)
2651
+ position.each do |i|
2652
+ image_url22 = get_image_file().force_encoding('utf-8')
2653
+ puts image_url22
2654
+ puts '사진넣는위치 => '+i.to_s
2655
+ if @data['포스트설정']['내용사진링크'].checked?
2656
+ 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>'+""
2657
+ content5.insert(i, '**image**')
2658
+ else
2659
+ image_memory << ""+'<img src="'+image_url22+'" alt="'+keyword+'" class="aligncenter size-full">'+""
2660
+ content5.insert(i, '**image**')
2661
+ end
2662
+ end
2663
+ sleep(2)
2664
+ puts '이미지 자동 세탁 완료 · · · '
2665
+ if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt'].checked?
2666
+ content = content5.join("\n")+'(자동생성글)'+content55
2667
+ puts content
2668
+ ##여기서부터 이미지 순서대로 수정코드 변경####-------------------------------------------------------------------------------
2643
2669
  else
2644
2670
  content = content5.join("\n")
2645
2671
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cafe_basics_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