posting_zon 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_zon.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: cffe32ec90ca4508cf0f80153a70e96bdb4429c55cb36e0ea7f61e8fac692115
|
4
|
+
data.tar.gz: 64dfcded6e86ca87c30a2623ce4ad48dc90bbd9dd8a40bed5249c143c4870d91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cdea80c7f0931a50e553a0c30637eae5746f8d709da567e1465edd6927031d7d65a3940017b8d9624151429052e021df915cdc1d860f8729948d8c702c8c83f
|
7
|
+
data.tar.gz: bfa9d6a10dc664f2cb358c2b35024946c7a40072a4a99e120c8e85d8a05e1acb1e622bf76bc8936ab84f6cd40552bf3ef4cd7c8b5d932f0461606b938157b351
|
data/lib/posting_zon.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
|
@@ -9147,7 +9152,7 @@ class Wordpress
|
|
9147
9152
|
counter10 = 0
|
9148
9153
|
while joongbok_check == 0
|
9149
9154
|
if @data['포스트설정']['내용과자동생성'].checked?
|
9150
|
-
|
9155
|
+
content = content.split("(자동생성글)")[1].split("\n")
|
9151
9156
|
else
|
9152
9157
|
if @data['포스트설정']['내용과자동생성'].checked? == false and @data['포스트설정']['내용을자동생성'].checked? == false and @data['포스트설정']['막글삽입'].checked? == true
|
9153
9158
|
snumber = @data['포스트설정']['막글삽입시작숫자'].text.to_s.to_i
|
@@ -9158,9 +9163,9 @@ class Wordpress
|
|
9158
9163
|
@data['포스트설정']['막글'] = @data['포스트설정']['막글'].split(' ').shuffle.join(' ')
|
9159
9164
|
@data['포스트설정']['막글'] = @data['포스트설정']['막글'].split(' ').shuffle.join(' ')
|
9160
9165
|
last_text = @data['포스트설정']['막글'][0..rand(snumber..enumber)].split(' ').shuffle.join(' ')
|
9161
|
-
|
9166
|
+
content = last_text.split(' ')
|
9162
9167
|
else
|
9163
|
-
|
9168
|
+
content = content.split("\n")
|
9164
9169
|
end
|
9165
9170
|
end
|
9166
9171
|
position_point = rand(0..(content22.length-2))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: posting_zon
|
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: posting app
|
14
14
|
email: mymin26@naver.com
|