duo_blog_cafe_comment 0.0.63 → 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/duo_blog_cafe_comment.rb +74 -41
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12b619dc6f0c2ce1233fd9f255f80854c9692bbd5a321cd54849dfbb4b4c9d6f
|
4
|
+
data.tar.gz: 94097c6c468da0fab709f98b256f15bfd5f8c5c42fe91d8a881fa383ee60eb8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9087fa0c7a96c4846b8aa5c66fec3b66e166dec6e5c17b9602ec33d9a6db735d26aa60396c4d419f22796ac4877753383a582c83dc53a7eaccb4096c56eb711
|
7
|
+
data.tar.gz: e2d4d83baecb36f84cfd8f910d42db36e39c8b8fdd1aec7b8cd1430b1d9d247f893d3177154d035572f0f2586f70879bf3e444de7a4700b64c489d3ed30a338d
|
@@ -499,19 +499,22 @@ class Naver
|
|
499
499
|
@driver.action.send_keys(:page_down).perform #스크롤 내리기
|
500
500
|
sleep(1)
|
501
501
|
|
502
|
-
@
|
502
|
+
if @data['포스트설정']['순서사용2'].checked?
|
503
|
+
@content_soon ||= 0 # 초기 한 번만 0으로 세팅
|
503
504
|
|
504
|
-
|
505
|
-
|
506
|
-
else
|
507
|
-
if @data.dig('내용설정', '랜덤사용')&.respond_to?(:checked?) && @data['내용설정']['랜덤사용'].checked?
|
508
|
-
content = @data['내용설정']['내용'].sample[2]
|
505
|
+
if @data['내용설정']['내용'].nil? || @data['내용설정']['내용'].empty?
|
506
|
+
content = ''
|
509
507
|
else
|
510
|
-
|
511
|
-
|
512
|
-
|
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
|
+
end
|
513
515
|
end
|
514
|
-
|
516
|
+
else
|
517
|
+
end
|
515
518
|
|
516
519
|
# 디엠 자동 변경이 체크된 경우 content를 변환
|
517
520
|
if @data['포스트설정']['내용자동변경'].checked?
|
@@ -764,19 +767,22 @@ class Naver
|
|
764
767
|
@driver.action.send_keys(:page_down).perform #스크롤 내리기
|
765
768
|
sleep(1)
|
766
769
|
|
767
|
-
@
|
770
|
+
if @data['포스트설정']['순서사용2'].checked?
|
771
|
+
@content_soon ||= 0 # 초기 한 번만 0으로 세팅
|
768
772
|
|
769
|
-
|
770
|
-
|
771
|
-
else
|
772
|
-
if @data.dig('내용설정', '랜덤사용')&.respond_to?(:checked?) && @data['내용설정']['랜덤사용'].checked?
|
773
|
-
content = @data['내용설정']['내용'].sample[2]
|
773
|
+
if @data['내용설정']['내용'].nil? || @data['내용설정']['내용'].empty?
|
774
|
+
content = ''
|
774
775
|
else
|
775
|
-
|
776
|
-
|
777
|
-
|
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
|
782
|
+
end
|
778
783
|
end
|
779
|
-
|
784
|
+
else
|
785
|
+
end
|
780
786
|
|
781
787
|
# 디엠 자동 변경이 체크된 경우 content를 변환
|
782
788
|
if @data['포스트설정']['내용자동변경'].checked?
|
@@ -1111,18 +1117,21 @@ class Naver
|
|
1111
1117
|
@driver.action.send_keys(:page_down).perform #스크롤 내리기
|
1112
1118
|
sleep(1)
|
1113
1119
|
|
1114
|
-
@
|
1120
|
+
if @data['포스트설정']['순서사용2'].checked?
|
1121
|
+
@content_soon ||= 0 # 초기 한 번만 0으로 세팅
|
1115
1122
|
|
1116
|
-
|
1117
|
-
|
1118
|
-
else
|
1119
|
-
if @data.dig('내용설정', '랜덤사용')&.respond_to?(:checked?) && @data['내용설정']['랜덤사용'].checked?
|
1120
|
-
content = @data['내용설정']['내용'].sample[2]
|
1123
|
+
if @data['내용설정']['내용'].nil? || @data['내용설정']['내용'].empty?
|
1124
|
+
content = ''
|
1121
1125
|
else
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
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
|
1132
|
+
end
|
1125
1133
|
end
|
1134
|
+
else
|
1126
1135
|
end
|
1127
1136
|
|
1128
1137
|
# 디엠 자동 변경이 체크된 경우 content를 변환
|
@@ -2131,19 +2140,22 @@ class Naver
|
|
2131
2140
|
else
|
2132
2141
|
end
|
2133
2142
|
|
2134
|
-
@
|
2143
|
+
if @data['포스트설정']['순서사용2'].checked?
|
2144
|
+
@content_soon ||= 0 # 초기 한 번만 0으로 세팅
|
2135
2145
|
|
2136
|
-
|
2137
|
-
|
2138
|
-
else
|
2139
|
-
if @data.dig('내용설정', '랜덤사용')&.respond_to?(:checked?) && @data['내용설정']['랜덤사용'].checked?
|
2140
|
-
content = @data['내용설정']['내용'].sample[2]
|
2146
|
+
if @data['내용설정']['내용'].nil? || @data['내용설정']['내용'].empty?
|
2147
|
+
content = ''
|
2141
2148
|
else
|
2142
|
-
|
2143
|
-
|
2144
|
-
|
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
|
2155
|
+
end
|
2145
2156
|
end
|
2146
|
-
|
2157
|
+
else
|
2158
|
+
end
|
2147
2159
|
|
2148
2160
|
# 디엠 자동 변경이 체크된 경우 content를 변환
|
2149
2161
|
if @data['포스트설정']['내용자동변경'].checked?
|
@@ -2867,7 +2879,17 @@ end
|
|
2867
2879
|
@data['table'] << []
|
2868
2880
|
@data['table'].pop
|
2869
2881
|
|
2870
|
-
|
2882
|
+
|
2883
|
+
if @data['포스트설정']['순서사용2'].checked?
|
2884
|
+
option['순서사용2'] = 'true'
|
2885
|
+
else
|
2886
|
+
option['순서사용2'] = 'false'
|
2887
|
+
end
|
2888
|
+
@data['table'][index][-1] = 35
|
2889
|
+
@data['table'] << []
|
2890
|
+
@data['table'].pop
|
2891
|
+
|
2892
|
+
|
2871
2893
|
|
2872
2894
|
#네이버로그인
|
2873
2895
|
login_check = naver.login(user_id, user_pw, option['proxy'])
|
@@ -4283,11 +4305,21 @@ end
|
|
4283
4305
|
|
4284
4306
|
horizontal_box{
|
4285
4307
|
stretchy false
|
4286
|
-
@data['내용설정']['순서사용'] = checkbox('순서사용'){
|
4308
|
+
@data['내용설정']['순서사용'] = checkbox('계정마다 순서사용'){
|
4287
4309
|
stretchy false
|
4288
4310
|
on_toggled{ |c|
|
4289
4311
|
if c.checked?
|
4290
4312
|
@data['내용설정']['랜덤사용'].checked = false
|
4313
|
+
@data['포스트설정']['순서사용2'].checked = false
|
4314
|
+
end
|
4315
|
+
}
|
4316
|
+
}
|
4317
|
+
@data['포스트설정']['순서사용2'] = checkbox('게시글마다 순서사용'){
|
4318
|
+
stretchy false
|
4319
|
+
on_toggled{ |c|
|
4320
|
+
if c.checked?
|
4321
|
+
@data['내용설정']['랜덤사용'].checked = false
|
4322
|
+
@data['내용설정']['순서사용'].checked = false
|
4291
4323
|
end
|
4292
4324
|
}
|
4293
4325
|
}
|
@@ -4296,6 +4328,7 @@ end
|
|
4296
4328
|
on_toggled{ |c|
|
4297
4329
|
if c.checked?
|
4298
4330
|
@data['내용설정']['순서사용'].checked = false
|
4331
|
+
@data['포스트설정']['순서사용2'].checked = false
|
4299
4332
|
end
|
4300
4333
|
}
|
4301
4334
|
}
|