zon_blog_cafe_comment 0.0.61 → 0.0.65
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/zon_blog_cafe_comment.rb +94 -57
- 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: 61601ad938c34c913e2c2b4b762b4a8b71c90c8d00f52d958488e303c2fc1877
|
4
|
+
data.tar.gz: 47a5531cc8a55f859022c79f0f798314e131fe7116253abfeb9cdc692158a860
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec4c38bf6b6dff23105c471c14630236f590e483fc940b9e3a8c06753392cde1cafaefd9972d8356a77b16738015dfec62f29b99bda8093bba72281de04f1dc7
|
7
|
+
data.tar.gz: ef4e209f2d2dd44405cd3066b56f54dd11003d6f04575bfce1673f61433f9bab94c14c266bbcd99963f9ae8dbf30dfd0342f48436e264476628d96c5833d3cf6
|
@@ -499,21 +499,22 @@ class Naver
|
|
499
499
|
@driver.action.send_keys(:page_down).perform #스크롤 내리기
|
500
500
|
sleep(1)
|
501
501
|
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
if @data.dig('내용설정', '랜덤사용')&.respond_to?(:checked?) && @data['내용설정']['랜덤사용'].checked?
|
508
|
-
content = @data['내용설정']['내용'].sample[2] # 랜덤 사용 시
|
502
|
+
if @data['포스트설정']['순서사용2'].checked?
|
503
|
+
@content_soon ||= 0 # 초기 한 번만 0으로 세팅
|
504
|
+
|
505
|
+
if @data['내용설정']['내용'].nil? || @data['내용설정']['내용'].empty?
|
506
|
+
content = ''
|
509
507
|
else
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
508
|
+
if @data.dig('내용설정', '랜덤사용')&.respond_to?(:checked?) && @data['내용설정']['랜덤사용'].checked?
|
509
|
+
content = @data['내용설정']['내용'].sample[2]
|
510
|
+
else
|
511
|
+
content = @data['내용설정']['내용'][@content_soon][2]
|
512
|
+
@content_soon += 1
|
513
|
+
@content_soon = 0 if @content_soon >= @data['내용설정']['내용'].length
|
514
514
|
end
|
515
515
|
end
|
516
|
-
|
516
|
+
else
|
517
|
+
end
|
517
518
|
|
518
519
|
# 디엠 자동 변경이 체크된 경우 content를 변환
|
519
520
|
if @data['포스트설정']['내용자동변경'].checked?
|
@@ -766,21 +767,22 @@ class Naver
|
|
766
767
|
@driver.action.send_keys(:page_down).perform #스크롤 내리기
|
767
768
|
sleep(1)
|
768
769
|
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
if @data.dig('내용설정', '랜덤사용')&.respond_to?(:checked?) && @data['내용설정']['랜덤사용'].checked?
|
775
|
-
content = @data['내용설정']['내용'].sample[2] # 랜덤 사용 시
|
770
|
+
if @data['포스트설정']['순서사용2'].checked?
|
771
|
+
@content_soon ||= 0 # 초기 한 번만 0으로 세팅
|
772
|
+
|
773
|
+
if @data['내용설정']['내용'].nil? || @data['내용설정']['내용'].empty?
|
774
|
+
content = ''
|
776
775
|
else
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
776
|
+
if @data.dig('내용설정', '랜덤사용')&.respond_to?(:checked?) && @data['내용설정']['랜덤사용'].checked?
|
777
|
+
content = @data['내용설정']['내용'].sample[2]
|
778
|
+
else
|
779
|
+
content = @data['내용설정']['내용'][@content_soon][2]
|
780
|
+
@content_soon += 1
|
781
|
+
@content_soon = 0 if @content_soon >= @data['내용설정']['내용'].length
|
781
782
|
end
|
782
783
|
end
|
783
|
-
|
784
|
+
else
|
785
|
+
end
|
784
786
|
|
785
787
|
# 디엠 자동 변경이 체크된 경우 content를 변환
|
786
788
|
if @data['포스트설정']['내용자동변경'].checked?
|
@@ -1115,20 +1117,21 @@ class Naver
|
|
1115
1117
|
@driver.action.send_keys(:page_down).perform #스크롤 내리기
|
1116
1118
|
sleep(1)
|
1117
1119
|
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
if @data.dig('내용설정', '랜덤사용')&.respond_to?(:checked?) && @data['내용설정']['랜덤사용'].checked?
|
1124
|
-
content = @data['내용설정']['내용'].sample[2] # 랜덤 사용 시
|
1120
|
+
if @data['포스트설정']['순서사용2'].checked?
|
1121
|
+
@content_soon ||= 0 # 초기 한 번만 0으로 세팅
|
1122
|
+
|
1123
|
+
if @data['내용설정']['내용'].nil? || @data['내용설정']['내용'].empty?
|
1124
|
+
content = ''
|
1125
1125
|
else
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1126
|
+
if @data.dig('내용설정', '랜덤사용')&.respond_to?(:checked?) && @data['내용설정']['랜덤사용'].checked?
|
1127
|
+
content = @data['내용설정']['내용'].sample[2]
|
1128
|
+
else
|
1129
|
+
content = @data['내용설정']['내용'][@content_soon][2]
|
1130
|
+
@content_soon += 1
|
1131
|
+
@content_soon = 0 if @content_soon >= @data['내용설정']['내용'].length
|
1130
1132
|
end
|
1131
1133
|
end
|
1134
|
+
else
|
1132
1135
|
end
|
1133
1136
|
|
1134
1137
|
# 디엠 자동 변경이 체크된 경우 content를 변환
|
@@ -2137,21 +2140,22 @@ class Naver
|
|
2137
2140
|
else
|
2138
2141
|
end
|
2139
2142
|
|
2140
|
-
|
2141
|
-
|
2142
|
-
|
2143
|
-
|
2144
|
-
|
2145
|
-
if @data.dig('내용설정', '랜덤사용')&.respond_to?(:checked?) && @data['내용설정']['랜덤사용'].checked?
|
2146
|
-
content = @data['내용설정']['내용'].sample[2] # 랜덤 사용 시
|
2143
|
+
if @data['포스트설정']['순서사용2'].checked?
|
2144
|
+
@content_soon ||= 0 # 초기 한 번만 0으로 세팅
|
2145
|
+
|
2146
|
+
if @data['내용설정']['내용'].nil? || @data['내용설정']['내용'].empty?
|
2147
|
+
content = ''
|
2147
2148
|
else
|
2148
|
-
|
2149
|
-
|
2150
|
-
|
2151
|
-
|
2149
|
+
if @data.dig('내용설정', '랜덤사용')&.respond_to?(:checked?) && @data['내용설정']['랜덤사용'].checked?
|
2150
|
+
content = @data['내용설정']['내용'].sample[2]
|
2151
|
+
else
|
2152
|
+
content = @data['내용설정']['내용'][@content_soon][2]
|
2153
|
+
@content_soon += 1
|
2154
|
+
@content_soon = 0 if @content_soon >= @data['내용설정']['내용'].length
|
2152
2155
|
end
|
2153
2156
|
end
|
2154
|
-
|
2157
|
+
else
|
2158
|
+
end
|
2155
2159
|
|
2156
2160
|
# 디엠 자동 변경이 체크된 경우 content를 변환
|
2157
2161
|
if @data['포스트설정']['내용자동변경'].checked?
|
@@ -2168,16 +2172,28 @@ class Naver
|
|
2168
2172
|
end
|
2169
2173
|
|
2170
2174
|
begin #댓글 작업 >> 시작
|
2175
|
+
# 댓글 쓰기 버튼 클릭
|
2171
2176
|
# 댓글 쓰기 버튼 클릭
|
2172
2177
|
begin
|
2173
|
-
|
2174
|
-
|
2175
|
-
|
2176
|
-
|
2177
|
-
|
2178
|
-
|
2179
|
-
|
2180
|
-
|
2178
|
+
wait = Selenium::WebDriver::Wait.new(:timeout => 3)
|
2179
|
+
wait.until { @driver.find_element(:xpath, '//*[@class="area_comment pcol2"]') }
|
2180
|
+
element = @driver.find_element(:xpath, '//*[@class="area_comment pcol2"]')
|
2181
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", element) # 크롤 이동
|
2182
|
+
sleep(1)
|
2183
|
+
@driver.find_element(:xpath, '//*[@class="area_comment pcol2"]').click
|
2184
|
+
sleep(1)
|
2185
|
+
rescue
|
2186
|
+
begin
|
2187
|
+
wait = Selenium::WebDriver::Wait.new(:timeout => 3)
|
2188
|
+
wait.until { @driver.find_element(xpath: "//span[@class='btn_arr']//span[@class='blind']") }
|
2189
|
+
element = @driver.find_element(xpath: "//span[@class='btn_arr']//span[@class='blind']")
|
2190
|
+
@driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", element) # 크롤 이동
|
2191
|
+
sleep(1)
|
2192
|
+
@driver.find_element(xpath: "//span[@class='btn_arr']//span[@class='blind']").click
|
2193
|
+
sleep(1)
|
2194
|
+
rescue => e
|
2195
|
+
puts "댓글 작성 필드가 존재 하지않습니다."
|
2196
|
+
end
|
2181
2197
|
end
|
2182
2198
|
|
2183
2199
|
if option['댓글패스'] == 'true'
|
@@ -2794,7 +2810,17 @@ end
|
|
2794
2810
|
@data['table'] << []
|
2795
2811
|
@data['table'].pop
|
2796
2812
|
|
2797
|
-
|
2813
|
+
|
2814
|
+
if @data['포스트설정']['순서사용2'].checked?
|
2815
|
+
option['순서사용2'] = 'true'
|
2816
|
+
else
|
2817
|
+
option['순서사용2'] = 'false'
|
2818
|
+
end
|
2819
|
+
@data['table'][index][-1] = 35
|
2820
|
+
@data['table'] << []
|
2821
|
+
@data['table'].pop
|
2822
|
+
|
2823
|
+
|
2798
2824
|
|
2799
2825
|
#네이버로그인
|
2800
2826
|
login_check = naver.login(user_id, user_pw, option['proxy'])
|
@@ -4205,11 +4231,21 @@ end
|
|
4205
4231
|
|
4206
4232
|
horizontal_box{
|
4207
4233
|
stretchy false
|
4208
|
-
@data['내용설정']['순서사용'] = checkbox('순서사용'){
|
4234
|
+
@data['내용설정']['순서사용'] = checkbox('계정마다 순서사용'){
|
4209
4235
|
stretchy false
|
4210
4236
|
on_toggled{ |c|
|
4211
4237
|
if c.checked?
|
4212
4238
|
@data['내용설정']['랜덤사용'].checked = false
|
4239
|
+
@data['포스트설정']['순서사용2'].checked = false
|
4240
|
+
end
|
4241
|
+
}
|
4242
|
+
}
|
4243
|
+
@data['포스트설정']['순서사용2'] = checkbox('게시글마다 순서사용'){
|
4244
|
+
stretchy false
|
4245
|
+
on_toggled{ |c|
|
4246
|
+
if c.checked?
|
4247
|
+
@data['내용설정']['랜덤사용'].checked = false
|
4248
|
+
@data['내용설정']['순서사용'].checked = false
|
4213
4249
|
end
|
4214
4250
|
}
|
4215
4251
|
}
|
@@ -4218,6 +4254,7 @@ end
|
|
4218
4254
|
on_toggled{ |c|
|
4219
4255
|
if c.checked?
|
4220
4256
|
@data['내용설정']['순서사용'].checked = false
|
4257
|
+
@data['포스트설정']['순서사용2'].checked = false
|
4221
4258
|
end
|
4222
4259
|
}
|
4223
4260
|
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zon_blog_cafe_comment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.65
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zon
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-06-
|
10
|
+
date: 2025-06-27 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: File to Clipboard gem
|
13
13
|
email: mymin26@naver.com
|