posting_duo 0.0.1 → 0.0.3
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/posting_duo.rb +8 -3
- 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: d8e439d0d8427338278234a5e866eb2a5a5575c310622caa2fb6227865bfb849
|
4
|
+
data.tar.gz: 7af450d47ef15053caf58a827c1bf597b3bc2af4d12290338e9c5a1d8610e8d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1210edd0668f48ee83ca8fadbed71909726c9dcde87856760ae9499b10f87ff3ab1093ff35366c817faf3b3dd889d1e6d013864570ff028983f33560364d1cc5
|
7
|
+
data.tar.gz: d4b5067038aab7e48fed7f91cb1f83e5728b649621144bfe85ee5d0bd165d33134f775efceb5b1e70e6fc886a11911d4526596ba41696cb7bf42e45e24e32a1e
|
data/lib/posting_duo.rb
CHANGED
@@ -5155,6 +5155,11 @@ begin
|
|
5155
5155
|
@driver.find_element(:xpath, '//*[@title="카테고리"]').click
|
5156
5156
|
sleep(1)
|
5157
5157
|
rescue
|
5158
|
+
begin
|
5159
|
+
@driver.find_element(:xpath, '//*[@id="category"]').click
|
5160
|
+
sleep(1)
|
5161
|
+
rescue
|
5162
|
+
end
|
5158
5163
|
end
|
5159
5164
|
end
|
5160
5165
|
end
|
@@ -9217,7 +9222,7 @@ class Wordpress
|
|
9217
9222
|
counter10 = 0
|
9218
9223
|
while joongbok_check == 0
|
9219
9224
|
if @data['포스트설정']['내용과자동생성'].checked?
|
9220
|
-
|
9225
|
+
content = content.split("(자동생성글)")[1].split("\n")
|
9221
9226
|
else
|
9222
9227
|
if @data['포스트설정']['내용과자동생성'].checked? == false and @data['포스트설정']['내용을자동생성'].checked? == false and @data['포스트설정']['막글삽입'].checked? == true
|
9223
9228
|
snumber = @data['포스트설정']['막글삽입시작숫자'].text.to_s.to_i
|
@@ -9228,9 +9233,9 @@ class Wordpress
|
|
9228
9233
|
@data['포스트설정']['막글'] = @data['포스트설정']['막글'].split(' ').shuffle.join(' ')
|
9229
9234
|
@data['포스트설정']['막글'] = @data['포스트설정']['막글'].split(' ').shuffle.join(' ')
|
9230
9235
|
last_text = @data['포스트설정']['막글'][0..rand(snumber..enumber)].split(' ').shuffle.join(' ')
|
9231
|
-
|
9236
|
+
content = last_text.split(' ')
|
9232
9237
|
else
|
9233
|
-
|
9238
|
+
content = content.split("\n")
|
9234
9239
|
end
|
9235
9240
|
end
|
9236
9241
|
position_point = rand(0..(content22.length-2))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: posting_duo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
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-
|
11
|
+
date: 2024-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: File to Clipboard gem
|
14
14
|
email: mymin26@naver.com
|