posting_zon 3.77.777 → 3.77.779
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 +38 -14
- 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: 57743c0cd98e53af8c26cdd14f20b94c824793cbfb590708ab479422ce794407
|
4
|
+
data.tar.gz: 8d4f27212a3d14d5943b70bd975701daea42229ff04cc5d0f25b7a1270b53c01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc30b561b69a209ea7ecff1daaf5fbd69b6bf25e771a933e315a3c9c973bfe79005125eac523e0d953ce5fe4c656c1ec465f4acdcbe7167ceab37f10b5c8bd9d
|
7
|
+
data.tar.gz: fc1d9822420119b1eeaa04876ff71c3d705feb8b1af1bd66ceaa27b575ce6265d27a2510b92570a3e8a4d0d8824357bded585bd6539078d8a0b89851376a1434
|
data/lib/posting_zon.rb
CHANGED
@@ -10333,7 +10333,7 @@ class Wordpress
|
|
10333
10333
|
if @data['포스트설정']['내용과자동생성'].checked?
|
10334
10334
|
content22 = content.split("(자동생성글)")[1].split("\n")
|
10335
10335
|
else
|
10336
|
-
if @data['포스트설정']['내용과자동생성'].checked? == false and @data['포스트설정']['내용을자동생성'].checked? == false and @data['포스트설정']['막글삽입'].checked? ==
|
10336
|
+
if @data['포스트설정']['내용과자동생성'].checked? == false and @data['포스트설정']['내용을자동생성'].checked? == false and @data['포스트설정']['막글삽입'].checked? == true
|
10337
10337
|
snumber = @data['포스트설정']['막글삽입시작숫자'].text.to_s.to_i
|
10338
10338
|
enumber = @data['포스트설정']['막글삽입끝숫자'].text.to_s.to_i
|
10339
10339
|
@data['포스트설정']['막글'] = @data['포스트설정']['막글'].split(' ').shuffle.join(' ')
|
@@ -10557,15 +10557,15 @@ class Wordpress
|
|
10557
10557
|
|
10558
10558
|
content = last_text.split(" ")
|
10559
10559
|
insert_keyword_text = keyword.to_s
|
10560
|
-
if @data['포스트설정']['키워드삽입'].checked?
|
10561
|
-
insert_keyword_text = ' <a href="'+@data['포스트설정']['키워드삽입시링크'].text.to_s+'" title="'+keyword.to_s+'">'+insert_keyword_text.to_s+'</a> '
|
10560
|
+
if @data['포스트설정']['키워드삽입1'].checked?
|
10561
|
+
insert_keyword_text = ' <a href="'+@data['포스트설정']['키워드삽입시링크1'].text.to_s+'" title="'+keyword.to_s+'">'+insert_keyword_text.to_s+'</a> '
|
10562
10562
|
end
|
10563
10563
|
content.each_with_index do |con, index|
|
10564
10564
|
begin
|
10565
10565
|
if position3[1..-1].include?(index)
|
10566
10566
|
insert_keyword_text = keyword.to_s
|
10567
|
-
if @data['포스트설정']['키워드삽입'].checked?
|
10568
|
-
insert_keyword_text = ' <a href="'+@data['포스트설정']['키워드삽입시링크'].text.to_s+'" title="'+keyword.to_s+'">'+insert_keyword_text.to_s+'</a> '
|
10567
|
+
if @data['포스트설정']['키워드삽입1'].checked?
|
10568
|
+
insert_keyword_text = ' <a href="'+@data['포스트설정']['키워드삽입시링크1'].text.to_s+'" title="'+keyword.to_s+'">'+insert_keyword_text.to_s+'</a> '
|
10569
10569
|
end
|
10570
10570
|
con2 = con.split('')
|
10571
10571
|
content333 << con2.join('')
|
@@ -10604,8 +10604,8 @@ class Wordpress
|
|
10604
10604
|
if position10.include?(index)
|
10605
10605
|
puts index
|
10606
10606
|
text99 = text9.split(' ')
|
10607
|
-
if @data['포스트설정']['키워드삽입'].checked?
|
10608
|
-
itext = text99.insert(rand(0..(text99.length-1)), ' <a href="'+@data['포스트설정']['키워드삽입시링크'].text.to_s+'" title="'+keyword.to_s+'">'+@data['키워드설정']['키워드'].sample[1]+'</a> ')
|
10607
|
+
if @data['포스트설정']['키워드삽입1'].checked?
|
10608
|
+
itext = text99.insert(rand(0..(text99.length-1)), ' <a href="'+@data['포스트설정']['키워드삽입시링크1'].text.to_s+'" title="'+keyword.to_s+'">'+@data['키워드설정']['키워드'].sample[1]+'</a> ')
|
10609
10609
|
else
|
10610
10610
|
itext = text99.insert(rand(0..(text99.length-1)), @data['키워드설정']['키워드'].sample[1])
|
10611
10611
|
end
|
@@ -10659,8 +10659,8 @@ class Wordpress
|
|
10659
10659
|
if position10.include?(index)
|
10660
10660
|
puts index
|
10661
10661
|
text99 = text9.split(' ')
|
10662
|
-
if @data['포스트설정']['키워드삽입'].checked?
|
10663
|
-
itext = text99.insert(rand(0..(text99.length-1)), ' <a href="'+@data['포스트설정']['키워드삽입시링크'].text.to_s+'" title="'+keyword.to_s+'">'+@data['키워드설정']['키워드'].sample[1]+'</a> ')
|
10662
|
+
if @data['포스트설정']['키워드삽입1'].checked?
|
10663
|
+
itext = text99.insert(rand(0..(text99.length-1)), ' <a href="'+@data['포스트설정']['키워드삽입시링크1'].text.to_s+'" title="'+keyword.to_s+'">'+@data['키워드설정']['키워드'].sample[1]+'</a> ')
|
10664
10664
|
else
|
10665
10665
|
itext = text99.insert(rand(0..(text99.length-1)), @data['키워드설정']['키워드'].sample[1])
|
10666
10666
|
end
|
@@ -11954,6 +11954,12 @@ class Wordpress
|
|
11954
11954
|
@data['포스트설정']['내용키워드삽입'] = checkbox('원고에 키워드 삽입 '){
|
11955
11955
|
top 1
|
11956
11956
|
left 0
|
11957
|
+
on_toggled{
|
11958
|
+
if @data['포스트설정']['내용키워드삽입'].checked?
|
11959
|
+
@data['포스트설정']['막글삽입2'].checked = false
|
11960
|
+
@data['포스트설정']['키워드삽입1'].checked = false
|
11961
|
+
end
|
11962
|
+
}
|
11957
11963
|
}
|
11958
11964
|
@data['포스트설정']['키워드삽입시작숫자'] = entry(){
|
11959
11965
|
top 1
|
@@ -12170,22 +12176,40 @@ class Wordpress
|
|
12170
12176
|
top 5
|
12171
12177
|
left 4
|
12172
12178
|
}
|
12173
|
-
|
12174
|
-
|
12175
|
-
|
12179
|
+
}
|
12180
|
+
grid{
|
12181
|
+
stretchy false
|
12182
|
+
@data['포스트설정']['막글삽입2'] = checkbox('막글에 키워드 삽입 '){
|
12183
|
+
top 0
|
12176
12184
|
left 0
|
12185
|
+
on_toggled{
|
12186
|
+
if @data['포스트설정']['막글삽입2'].checked?
|
12187
|
+
@data['포스트설정']['내용키워드삽입'].checked = false
|
12188
|
+
@data['포스트설정']['키워드삽입'].checked = false
|
12189
|
+
end
|
12190
|
+
}
|
12177
12191
|
}
|
12178
12192
|
@data['포스트설정']['막글삽입시작숫자2'] = entry{
|
12179
|
-
top
|
12193
|
+
top 0
|
12180
12194
|
left 1
|
12181
12195
|
text '최소수량'
|
12182
12196
|
}
|
12183
12197
|
|
12184
12198
|
@data['포스트설정']['막글삽입끝숫자2'] = entry{
|
12185
|
-
top
|
12199
|
+
top 0
|
12186
12200
|
left 2
|
12187
12201
|
text '최대수량'
|
12188
12202
|
}
|
12203
|
+
|
12204
|
+
@data['포스트설정']['키워드삽입1'] = checkbox('키워드 링크 적용'){
|
12205
|
+
top 0
|
12206
|
+
left 3
|
12207
|
+
}
|
12208
|
+
@data['포스트설정']['키워드삽입시링크1'] = entry(){
|
12209
|
+
top 0
|
12210
|
+
left 4
|
12211
|
+
text 'URL'
|
12212
|
+
}
|
12189
12213
|
}
|
12190
12214
|
vertical_separator{
|
12191
12215
|
stretchy false
|