zon_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/zon_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: 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,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?
|
@@ -2798,7 +2810,17 @@ end
|
|
2798
2810
|
@data['table'] << []
|
2799
2811
|
@data['table'].pop
|
2800
2812
|
|
2801
|
-
|
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
|
+
|
2802
2824
|
|
2803
2825
|
#네이버로그인
|
2804
2826
|
login_check = naver.login(user_id, user_pw, option['proxy'])
|
@@ -4209,11 +4231,21 @@ end
|
|
4209
4231
|
|
4210
4232
|
horizontal_box{
|
4211
4233
|
stretchy false
|
4212
|
-
@data['내용설정']['순서사용'] = checkbox('순서사용'){
|
4234
|
+
@data['내용설정']['순서사용'] = checkbox('계정마다 순서사용'){
|
4213
4235
|
stretchy false
|
4214
4236
|
on_toggled{ |c|
|
4215
4237
|
if c.checked?
|
4216
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
|
4217
4249
|
end
|
4218
4250
|
}
|
4219
4251
|
}
|
@@ -4222,6 +4254,7 @@ end
|
|
4222
4254
|
on_toggled{ |c|
|
4223
4255
|
if c.checked?
|
4224
4256
|
@data['내용설정']['순서사용'].checked = false
|
4257
|
+
@data['포스트설정']['순서사용2'].checked = false
|
4225
4258
|
end
|
4226
4259
|
}
|
4227
4260
|
}
|