cafe_buy_duo 0.0.79 → 0.1.33
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 +174 -149
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf58cb753dd5234bab0337a09ff29b879671f7b7cdd38e73db1fa03cd4f05ec4
|
4
|
+
data.tar.gz: fdead3022dd5766c19f8be68b3e7f2b5c8fa150095bbddaa4f1c53d01025368e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ff3098d00d17aa9f243d618dfc738e02069874a996d127ebb940fdf25b47df046f1589effc3fa9e9ba73c47f425528dc7d349aac44a2178942806b4124ba8be
|
7
|
+
data.tar.gz: 966120bd364544bba12922142c0b2e2f5b0d56cc735eacba361f88820b2267291acb03ce642c5a00648422879be2fe60f3b26080f232dd43c922ccef09962a38
|
data/lib/cafe_buy_duo.rb
CHANGED
@@ -2380,20 +2380,27 @@ class Wordpress
|
|
2380
2380
|
|
2381
2381
|
def save_image
|
2382
2382
|
if @data['이미지설정']['이미지'].length == 0
|
2383
|
-
|
2383
|
+
return
|
2384
|
+
end
|
2385
|
+
|
2386
|
+
if @data['이미지설정']['순서사용'].checked?
|
2387
|
+
image_path = @data['이미지설정']['이미지'][@image_counter][2]
|
2388
|
+
@image_counter += 1
|
2389
|
+
if @image_counter > @data['이미지설정']['이미지'].length - 1
|
2390
|
+
@image_counter = 0
|
2391
|
+
end
|
2384
2392
|
else
|
2385
|
-
|
2386
|
-
|
2387
|
-
|
2388
|
-
|
2389
|
-
@image_counter = 0
|
2390
|
-
end
|
2391
|
-
else
|
2392
|
-
image_path = @data['이미지설정']['이미지'].sample[2]
|
2393
|
+
# 초기화가 안됐거나 다 썼으면 새롭게 섞는다
|
2394
|
+
@shuffled_images ||= []
|
2395
|
+
if @shuffled_images.empty?
|
2396
|
+
@shuffled_images = @data['이미지설정']['이미지'].shuffle
|
2393
2397
|
end
|
2394
|
-
|
2395
|
-
|
2398
|
+
|
2399
|
+
image_path = @shuffled_images.shift[2]
|
2396
2400
|
end
|
2401
|
+
|
2402
|
+
img = Magick::Image.read(image_path).first
|
2403
|
+
img.write('./image/memory.png')
|
2397
2404
|
end
|
2398
2405
|
|
2399
2406
|
def change_image_size(w)
|
@@ -2924,6 +2931,22 @@ class Wordpress
|
|
2924
2931
|
@data['table'].pop
|
2925
2932
|
#제목끝
|
2926
2933
|
# content = " #{content} "
|
2934
|
+
if @data['포스트설정']['gpt키워드'].checked?
|
2935
|
+
gpt_keyword_prompt = @data['포스트설정']['gpt키워드_프롬프트'].text.to_s.force_encoding('utf-8')
|
2936
|
+
gpt_keyword_prompt_sample = gpt_keyword_prompt.strip.empty? ? "프롬프트: 관련된 글을 1500자에서 2500자 사이로 만들어줘" : gpt_keyword_prompt
|
2937
|
+
chat = Chat.new(@data['포스트설정']['api_key'].text.to_s.force_encoding('utf-8'), gpt_keyword_prompt)
|
2938
|
+
gpt_text = chat.message(keyword)
|
2939
|
+
#content = content.to_s + "\n(자동생성글)\n" + gpt_text.to_s
|
2940
|
+
content = content.to_s + "(자동생성글)" + gpt_text.to_s
|
2941
|
+
elsif @data['포스트설정']['내용을자동생성'].checked?
|
2942
|
+
content = auto_text
|
2943
|
+
elsif @data['포스트설정']['내용과자동생성'].checked?
|
2944
|
+
#content = content + "\n(자동생성글)\n" + auto_text
|
2945
|
+
content = content + "(자동생성글)" + auto_text
|
2946
|
+
end
|
2947
|
+
@data['table'][index][-1] = 45
|
2948
|
+
@data['table'] << []
|
2949
|
+
@data['table'].pop
|
2927
2950
|
|
2928
2951
|
if @data['포스트설정']['특정단어굵기'].checked?
|
2929
2952
|
content2 = ''
|
@@ -2963,7 +2986,7 @@ class Wordpress
|
|
2963
2986
|
content = content2
|
2964
2987
|
end
|
2965
2988
|
end
|
2966
|
-
@data['table'][index][-1] =
|
2989
|
+
@data['table'][index][-1] = 50
|
2967
2990
|
@data['table'] << []
|
2968
2991
|
@data['table'].pop
|
2969
2992
|
if @data['포스트설정']['단어크기변경'].checked?
|
@@ -2984,19 +3007,7 @@ class Wordpress
|
|
2984
3007
|
@data['table'][index][-1] = 50
|
2985
3008
|
@data['table'] << []
|
2986
3009
|
@data['table'].pop
|
2987
|
-
|
2988
|
-
gpt_keyword_prompt = @data['포스트설정']['gpt키워드_프롬프트'].text.to_s.force_encoding('utf-8')
|
2989
|
-
gpt_keyword_prompt_sample = gpt_keyword_prompt.strip.empty? ? "프롬프트: 관련된 글을 1500자에서 2500자 사이로 만들어줘" : gpt_keyword_prompt
|
2990
|
-
chat = Chat.new(@data['포스트설정']['api_key'].text.to_s.force_encoding('utf-8'), gpt_keyword_prompt)
|
2991
|
-
gpt_text = chat.message(keyword)
|
2992
|
-
#content = content.to_s + "\n(자동생성글)\n" + gpt_text.to_s
|
2993
|
-
content = content.to_s + "(자동생성글)" + gpt_text.to_s
|
2994
|
-
elsif @data['포스트설정']['내용을자동생성'].checked?
|
2995
|
-
content = auto_text
|
2996
|
-
elsif @data['포스트설정']['내용과자동생성'].checked?
|
2997
|
-
#content = content + "\n(자동생성글)\n" + auto_text
|
2998
|
-
content = content + "(자동생성글)" + auto_text
|
2999
|
-
end
|
3010
|
+
|
3000
3011
|
|
3001
3012
|
if @data['포스트설정']['내용키워드삽입'].checked?
|
3002
3013
|
puts '내용키워드삽입...'
|
@@ -3181,134 +3192,86 @@ class Wordpress
|
|
3181
3192
|
puts '내용사진자동삽입...'
|
3182
3193
|
sn = @data['포스트설정']['내용사진자동삽입시작숫자'].text.to_s.force_encoding('utf-8').to_i
|
3183
3194
|
en = @data['포스트설정']['내용사진자동삽입끝숫자'].text.to_s.force_encoding('utf-8').to_i
|
3195
|
+
|
3184
3196
|
begin
|
3185
3197
|
cn = rand(sn..en)
|
3186
3198
|
rescue
|
3187
3199
|
cn = 0
|
3188
3200
|
puts 'cn = rand(sn..en) error cn = 1'
|
3189
3201
|
end
|
3190
|
-
|
3202
|
+
|
3191
3203
|
if cn != 0
|
3192
|
-
|
3204
|
+
# content5 구성 및 위치 배열 생성
|
3193
3205
|
if @data['포스트설정']['내용과자동생성'].checked?
|
3194
|
-
if @data['포스트설정']['자동글 수식에 입력'].checked?
|
3195
|
-
for n in 1..cn
|
3196
|
-
position << rand(0..(content.split("(자동생성글)")[0].split("\n").length-1))
|
3197
|
-
sleep(2)
|
3198
|
-
end
|
3199
|
-
else
|
3200
|
-
for n in 1..cn
|
3201
|
-
position << rand(0..(content.split("(자동생성글)")[0].split("\n").length-1))
|
3202
|
-
sleep(2)
|
3203
|
-
end
|
3204
|
-
end
|
3205
|
-
# position.pop
|
3206
|
-
else
|
3207
|
-
for n in 1..cn
|
3208
|
-
position << rand(0..(content.split("\n").length-2))
|
3209
|
-
sleep(2)
|
3210
|
-
end
|
3211
|
-
end
|
3212
|
-
|
3213
|
-
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt키워드'].checked?
|
3214
3206
|
if @data['포스트설정']['자동글 수식에 입력'].checked?
|
3215
3207
|
content5 = content.split("(자동생성글)")[0].to_s.split("\n")
|
3216
3208
|
content55 = content.split("(자동생성글)")[1].to_s
|
3209
|
+
position = content5.length.times.to_a.sample(cn).sort.reverse
|
3217
3210
|
else
|
3218
3211
|
content5 = content.split("(자동생성글)")[0].to_s.split("\n")
|
3219
3212
|
content55 = content.split("(자동생성글)")[1].to_s
|
3213
|
+
position = content5.length.times.to_a.sample(cn).sort.reverse
|
3220
3214
|
end
|
3215
|
+
elsif @data['포스트설정']['gpt키워드'].checked?
|
3216
|
+
content5 = content.split("(자동생성글)")[1].to_s.split("\n")
|
3217
|
+
content_prefix = content.split("(자동생성글)")[0].to_s
|
3218
|
+
content55 = ''
|
3219
|
+
position = content5.length.times.to_a.sample(cn).sort.reverse
|
3221
3220
|
else
|
3221
|
+
content5 = content.split("\n")
|
3222
3222
|
content55 = ''
|
3223
|
-
|
3223
|
+
position = content5.length.times.to_a.sample(cn).sort.reverse
|
3224
3224
|
end
|
3225
|
-
|
3226
|
-
|
3227
|
-
puts content55
|
3228
|
-
p position
|
3229
|
-
|
3225
|
+
|
3226
|
+
# 중복 필터링 로직
|
3230
3227
|
while true
|
3231
3228
|
check11 = 0
|
3232
|
-
|
3233
|
-
if content5[
|
3229
|
+
position.each_with_index do |pos, idx|
|
3230
|
+
if content5[pos].to_s.include?('style') || content5[pos].to_s.include?('<') || content5[pos].to_s.include?('>')
|
3234
3231
|
check11 = 1
|
3235
|
-
position[
|
3232
|
+
position[idx] += 4
|
3236
3233
|
end
|
3237
3234
|
end
|
3238
|
-
if check11 == 0
|
3239
|
-
break
|
3240
|
-
end
|
3235
|
+
break if check11 == 0
|
3241
3236
|
end
|
3242
|
-
|
3243
|
-
|
3244
|
-
|
3245
|
-
|
3246
|
-
|
3247
|
-
|
3248
|
-
|
3249
|
-
|
3250
|
-
|
3251
|
-
|
3252
|
-
|
3253
|
-
# puts '사진넣는위치 => '+i.to_s
|
3254
|
-
# if @data['포스트설정']['내용사진링크'].checked?
|
3255
|
-
# 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>'+""
|
3256
|
-
# content5.insert(i, '**image**')
|
3257
|
-
# else
|
3258
|
-
# image_memory << ""+'<img src="'+image_url+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
3259
|
-
# content5.insert(i, '**image**')
|
3260
|
-
# end
|
3261
|
-
# end
|
3262
|
-
|
3263
|
-
# if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt키워드'].checked?
|
3264
|
-
# content = content5.join("\n")+'(자동생성글)'+content55
|
3265
|
-
# iconv = Iconv.new('UTF-8', 'ASCII-8BIT')
|
3266
|
-
# content = iconv.iconv(content)
|
3267
|
-
# content = content.encode('UTF-8', 'binary', invalid: :replace, replace: '')
|
3268
|
-
# puts content
|
3269
|
-
# image_url = image_url22
|
3270
|
-
|
3271
|
-
# if @data['포스트설정']['자동글 수식에 입력'].checked?
|
3272
|
-
|
3273
|
-
# else
|
3274
|
-
# if @data['포스트설정']['내용사진링크'].checked?
|
3275
|
-
# content = content.split('(자동생성글)')[0]+""+'<a href="'+@data['포스트설정']['내용사진링크값'].text.to_s.force_encoding('utf-8')+'"><img src="'+image_url+'" alt="'+keyword+'"></a>'+""+'(자동생성글)'+content.split('(자동생성글)')[1]
|
3276
|
-
# else
|
3277
|
-
# content = content.split('(자동생성글)')[0]+""+'<img src="'+image_url+'" alt="'+keyword+'" >'+""+'(자동생성글)'+content.split('(자동생성글)')[1]
|
3278
|
-
# end
|
3279
|
-
# end
|
3280
|
-
###여기까지 이미지 순서대로 안되서 변경##-------------------------------------------------------------------------------
|
3281
|
-
|
3282
|
-
##여기서부터 이미지 순서대로 수정코드 변경####-------------------------------------------------------------------------------
|
3283
|
-
if @data['포스트설정']['내용과자동생성'].checked? or @data['포스트설정']['gpt키워드'].checked?
|
3237
|
+
|
3238
|
+
if @data['포스트설정']['내용과자동생성'].checked? || @data['포스트설정']['gpt키워드'].checked?
|
3239
|
+
sleep(2)
|
3240
|
+
puts '이미지 자동 세탁 중 · · · '
|
3241
|
+
end
|
3242
|
+
|
3243
|
+
p content5
|
3244
|
+
puts content55
|
3245
|
+
p position
|
3246
|
+
|
3284
3247
|
sleep(2)
|
3285
|
-
|
3286
|
-
|
3287
|
-
|
3288
|
-
|
3289
|
-
|
3290
|
-
|
3291
|
-
|
3292
|
-
|
3293
|
-
|
3294
|
-
content5.insert(i, '**image**')
|
3295
|
-
else
|
3296
|
-
image_memory << ""+'<img src="'+image_url22+'" alt="'+keyword+'" class="aligncenter size-full">'+""
|
3297
|
-
content5.insert(i, '**image**')
|
3248
|
+
position.each do |i|
|
3249
|
+
image_url22 = get_image_file().force_encoding('utf-8')
|
3250
|
+
if @data['포스트설정']['내용사진링크'].checked?
|
3251
|
+
image_tag = '<a href="' + @data['포스트설정']['내용사진링크값'].text.to_s.force_encoding('utf-8') +
|
3252
|
+
'"><img src="' + image_url22 + '" alt="' + keyword.force_encoding('utf-8') + '" class="aligncenter size-full"></a>'
|
3253
|
+
else
|
3254
|
+
image_tag = '<img src="' + image_url22 + '" alt="' + keyword + '" class="aligncenter size-full">'
|
3255
|
+
end
|
3256
|
+
content5.insert(i, image_tag)
|
3298
3257
|
end
|
3299
|
-
|
3300
|
-
|
3301
|
-
|
3302
|
-
|
3303
|
-
|
3304
|
-
|
3305
|
-
|
3258
|
+
|
3259
|
+
sleep(2)
|
3260
|
+
puts '이미지 자동 세탁 완료 · · · '
|
3261
|
+
|
3262
|
+
if @data['포스트설정']['내용과자동생성'].checked?
|
3263
|
+
content = content5.join("\n") + '(자동생성글)' + content55
|
3264
|
+
elsif @data['포스트설정']['gpt키워드'].checked?
|
3265
|
+
content = content_prefix + "(자동생성글)" + content5.join("\n")
|
3306
3266
|
else
|
3307
3267
|
content = content5.join("\n")
|
3308
3268
|
end
|
3309
3269
|
end
|
3310
3270
|
end
|
3271
|
+
|
3311
3272
|
|
3273
|
+
|
3274
|
+
##여기서부터 이미지 순서대로 수정코드 변경####-------------------------------------------------------------------------------
|
3312
3275
|
@data['table'][index][-1] = 70
|
3313
3276
|
@data['table'] << []
|
3314
3277
|
@data['table'].pop
|
@@ -3316,13 +3279,22 @@ class Wordpress
|
|
3316
3279
|
content_memory = content.split('(자동생성글)')
|
3317
3280
|
content = content_memory[0]
|
3318
3281
|
content_end = content_memory[1].to_s
|
3282
|
+
if @data['포스트설정']['gpt키워드'].checked?
|
3283
|
+
if @data['포스트설정']['gpt상단'].checked?
|
3284
|
+
content = "(자동생성글)\n" + content_end + "\n" + content
|
3285
|
+
else
|
3286
|
+
content = content + "\n(자동생성글)\n" + content_end
|
3287
|
+
end
|
3288
|
+
else
|
3289
|
+
content = content + "\n(자동생성글)\n" + content_end
|
3290
|
+
end
|
3319
3291
|
|
3320
3292
|
if @data['포스트설정']['특정단어키워드로변경'].checked?
|
3321
3293
|
@data['포스트설정']['특정단어키워드로변경값'].text.to_s.force_encoding('utf-8').split(',').each do |i|
|
3322
3294
|
content = content.split(i.force_encoding('utf-8')).join(keyword)
|
3323
3295
|
end
|
3324
3296
|
end
|
3325
|
-
|
3297
|
+
|
3326
3298
|
@data['table'][index][-1] = 75
|
3327
3299
|
@data['table'] << []
|
3328
3300
|
@data['table'].pop
|
@@ -3349,6 +3321,7 @@ class Wordpress
|
|
3349
3321
|
if i.force_encoding('utf-8').to_s.include?('@')
|
3350
3322
|
image_memory << ""+'<img src="'+image_url+'" alt="'+keyword+'">'+""
|
3351
3323
|
content[index3] = content[index3] + '**image()**'
|
3324
|
+
|
3352
3325
|
else
|
3353
3326
|
image_memory << ""+ '<img src="'+image_url+'" alt="'+keyword+'">'+""
|
3354
3327
|
content[index3] = content[index3] + '**image**'
|
@@ -3358,6 +3331,8 @@ class Wordpress
|
|
3358
3331
|
content = content.join('')
|
3359
3332
|
end
|
3360
3333
|
end
|
3334
|
+
|
3335
|
+
|
3361
3336
|
|
3362
3337
|
con_memory = Array.new
|
3363
3338
|
index5 = 0
|
@@ -3395,6 +3370,8 @@ class Wordpress
|
|
3395
3370
|
content = content.split(i.force_encoding('utf-8')).join("<sticker></sticker>")
|
3396
3371
|
end
|
3397
3372
|
end
|
3373
|
+
|
3374
|
+
|
3398
3375
|
|
3399
3376
|
if @data['포스트설정']['영상으로변경'].checked?
|
3400
3377
|
if @video.length == 0
|
@@ -3423,36 +3400,79 @@ class Wordpress
|
|
3423
3400
|
# end
|
3424
3401
|
#end
|
3425
3402
|
if @data['포스트설정']['지도로변경'].checked?
|
3426
|
-
# 지도 주소와 사용자 설정 단어들을 가져옵니다.
|
3427
3403
|
map_address = @data['포스트설정']['지도주소'].text.to_s.force_encoding('utf-8')
|
3428
|
-
|
3429
|
-
# 여러 단어로 설정된 '지도로변경단어'를 분리하여 배열로 저장
|
3430
3404
|
change_words = @data['포스트설정']['지도로변경단어'].text.to_s.force_encoding('utf-8').split(',')
|
3431
3405
|
|
3432
|
-
# content를 각 줄로 분할
|
3433
3406
|
content_lines = content.split("\n")
|
3407
|
+
new_lines = []
|
3408
|
+
|
3409
|
+
content_lines.each do |line|
|
3410
|
+
# 이미 처리된 줄은 건너뜀
|
3411
|
+
if line.include?("<koreamap>")
|
3412
|
+
new_lines << line
|
3413
|
+
next
|
3414
|
+
end
|
3415
|
+
|
3416
|
+
processed = false
|
3434
3417
|
|
3435
|
-
content_lines.each_with_index do |line, index|
|
3436
|
-
# 각 단어에 대해 처리
|
3437
3418
|
change_words.each do |change_word|
|
3438
|
-
#
|
3439
|
-
if line.
|
3440
|
-
|
3441
|
-
if
|
3442
|
-
|
3443
|
-
|
3444
|
-
|
3445
|
-
|
3446
|
-
#
|
3447
|
-
|
3419
|
+
# 1. [단어][주소] 패턴 처리: 분리 + 출력
|
3420
|
+
if line =~ /#{Regexp.escape(change_word)}\[(.*?)\]/
|
3421
|
+
match_data = line.match(/(.*)#{Regexp.escape(change_word)}\[(.*?)\](.*)/)
|
3422
|
+
if match_data
|
3423
|
+
before = match_data[1]
|
3424
|
+
address = match_data[2]
|
3425
|
+
after = match_data[3]
|
3426
|
+
|
3427
|
+
# 태그 추출
|
3428
|
+
open_tag = before[/<p[^>]*?>/i] || ""
|
3429
|
+
close_tag = after[/<\/p>/i] || ""
|
3430
|
+
|
3431
|
+
# 텍스트 정리
|
3432
|
+
before_text = before.sub(open_tag, '')
|
3433
|
+
after_text = after.sub(close_tag, '')
|
3434
|
+
|
3435
|
+
# 줄 분리
|
3436
|
+
new_lines << "#{open_tag}#{before_text}</p>" unless before_text.strip.empty?
|
3437
|
+
new_lines << "<koreamap>#{address}</koreamap>"
|
3438
|
+
new_lines << "#{open_tag}#{after_text}#{close_tag}" unless after_text.strip.empty?
|
3439
|
+
|
3440
|
+
processed = true
|
3441
|
+
break
|
3448
3442
|
end
|
3449
3443
|
end
|
3444
|
+
|
3445
|
+
# 2. 일반 단어 처리 (한 줄에만 등장하는 경우)
|
3446
|
+
if !processed && line.include?(change_word)
|
3447
|
+
parts = line.split(change_word, 2)
|
3448
|
+
prefix = parts[0]
|
3449
|
+
suffix = parts[1]
|
3450
|
+
|
3451
|
+
open_tag = prefix[/<p[^>]*?>/i] || ""
|
3452
|
+
close_tag = suffix[/<\/p>/i] || ""
|
3453
|
+
|
3454
|
+
prefix_text = prefix.sub(open_tag, '')
|
3455
|
+
suffix_text = suffix.sub(close_tag, '')
|
3456
|
+
|
3457
|
+
new_lines << "#{open_tag}#{prefix_text}</p>" unless prefix_text.strip.empty?
|
3458
|
+
new_lines << "<koreamap>#{map_address}</koreamap>"
|
3459
|
+
new_lines << "#{open_tag}#{suffix_text}#{close_tag}" unless suffix_text.strip.empty?
|
3460
|
+
|
3461
|
+
processed = true
|
3462
|
+
break
|
3463
|
+
end
|
3450
3464
|
end
|
3465
|
+
|
3466
|
+
# 변경이 없었으면 원래 줄 추가
|
3467
|
+
new_lines << line unless processed
|
3451
3468
|
end
|
3452
3469
|
|
3453
|
-
|
3454
|
-
content = content_lines.join("\n")
|
3470
|
+
content = new_lines.join("\n")
|
3455
3471
|
end
|
3472
|
+
|
3473
|
+
|
3474
|
+
|
3475
|
+
|
3456
3476
|
|
3457
3477
|
if @data['포스트설정']['인용구변경'].checked?
|
3458
3478
|
if @data['포스트설정']['인용구문구설정'].checked?
|
@@ -3490,21 +3510,26 @@ class Wordpress
|
|
3490
3510
|
@data['table'] << []
|
3491
3511
|
@data['table'].pop
|
3492
3512
|
|
3513
|
+
|
3514
|
+
parts = content.split('(자동생성글)', 2)
|
3515
|
+
content_main = parts[0].strip
|
3516
|
+
content_end = parts[1].to_s.strip
|
3517
|
+
|
3493
3518
|
soosick_1 = ''
|
3494
3519
|
soosick_2 = ''
|
3495
3520
|
if @data['포스트설정']['자동글 수식에 입력'].checked?
|
3496
|
-
|
3497
|
-
|
3521
|
+
content = content_main
|
3522
|
+
soosick_1 = content_end
|
3498
3523
|
else
|
3499
|
-
|
3500
|
-
|
3501
|
-
|
3502
|
-
else
|
3503
|
-
content = content+"\n"+content_end+"\n"
|
3504
|
-
end
|
3524
|
+
if @data['포스트설정']['gpt키워드'].checked?
|
3525
|
+
if @data['포스트설정']['gpt상단'].checked?
|
3526
|
+
content = content_end + "\n" + content_main + "\n"
|
3505
3527
|
else
|
3506
|
-
|
3528
|
+
content = content_main + "\n" + content_end + "\n"
|
3507
3529
|
end
|
3530
|
+
else
|
3531
|
+
content = content_main + "\n" + content_end + "\n"
|
3532
|
+
end
|
3508
3533
|
end
|
3509
3534
|
|
3510
3535
|
if @data['포스트설정']['막글삽입'].checked?
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cafe_buy_duo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zon
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date: 2025-
|
10
|
+
date: 2025-04-24 00:00:00.000000000 Z
|
12
11
|
dependencies: []
|
13
12
|
description: File to Clipboard gem
|
14
13
|
email: mymin26@naver.com
|
@@ -21,7 +20,6 @@ homepage: ''
|
|
21
20
|
licenses:
|
22
21
|
- zon
|
23
22
|
metadata: {}
|
24
|
-
post_install_message:
|
25
23
|
rdoc_options: []
|
26
24
|
require_paths:
|
27
25
|
- lib
|
@@ -36,8 +34,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
36
34
|
- !ruby/object:Gem::Version
|
37
35
|
version: '0'
|
38
36
|
requirements: []
|
39
|
-
rubygems_version: 3.
|
40
|
-
signing_key:
|
37
|
+
rubygems_version: 3.6.7
|
41
38
|
specification_version: 4
|
42
39
|
summary: file to clipboard
|
43
40
|
test_files: []
|