nblog_duo 0.0.59 → 0.0.61
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/nblog_duo.rb +12 -8
- 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: 4255d51cb767034563eefa7fa1b7c5895cc51f90bf3590662010b3e89c5e3541
|
4
|
+
data.tar.gz: 54b5ac1a8105657545de0ec91c26cb825543206bd5c2122c14db5ad946ef2caf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a14fa6137115da532a69a505277ad951dae3cf4f2f4da22e6f340f0f33ca7770f15e9bde4230813fa96b6489ca5c6b58ca4eaa7189c0467c2315c7d1e65dcf5d
|
7
|
+
data.tar.gz: 98b1fca8555d0a5f43103830a9db466e7caf289d17a9e875c6477935102c6689333918ef77a13181ee22687582e3800dd38f8ba3cecd023d69d237404358e520
|
data/lib/nblog_duo.rb
CHANGED
@@ -221,6 +221,8 @@ class Naver
|
|
221
221
|
begin
|
222
222
|
Selenium::WebDriver::Chrome::Service.driver_path = './chromedriver.exe'
|
223
223
|
options = Selenium::WebDriver::Chrome::Options.new
|
224
|
+
options.add_argument('--no-first-run') # 자동 실행 시 나타나는 "첫 실행" 화면 방지
|
225
|
+
options.add_argument('--disable-extensions') # 확장 프로그램 초기화 화면 방지
|
224
226
|
options.page_load_strategy = :normal
|
225
227
|
options.timeouts = {page_load: 20_000}
|
226
228
|
options.page_load_strategy = 'none'
|
@@ -236,13 +238,8 @@ class Naver
|
|
236
238
|
begin
|
237
239
|
Selenium::WebDriver::Chrome::Service.driver_path = './chromedriver.exe'
|
238
240
|
options = Selenium::WebDriver::Chrome::Options.new
|
239
|
-
#
|
240
|
-
|
241
|
-
# profile['network.proxy.http'] = proxy.split(':')[0]
|
242
|
-
# profile['network.proxy.http_port'] = proxy.split(':')[1].to_i
|
243
|
-
# options = Selenium::WebDriver::Chrome::Options.new
|
244
|
-
# options.profile = profile
|
245
|
-
options = Selenium::WebDriver::Chrome::Options.new
|
241
|
+
options.add_argument('--no-first-run') # 자동 실행 시 나타나는 "첫 실행" 화면 방지
|
242
|
+
options.add_argument('--disable-extensions') # 확장 프로그램 초기화 화면 방지
|
246
243
|
options.add_argument '--proxy-server='+proxy.to_s.force_encoding('utf-8').to_s
|
247
244
|
options.page_load_strategy = :normal
|
248
245
|
options.timeouts = {page_load: 20_000}
|
@@ -258,6 +255,8 @@ class Naver
|
|
258
255
|
begin
|
259
256
|
Selenium::WebDriver::Chrome::Service.driver_path = './chromedriver.exe'
|
260
257
|
options = Selenium::WebDriver::Chrome::Options.new
|
258
|
+
options.add_argument('--no-first-run') # 자동 실행 시 나타나는 "첫 실행" 화면 방지
|
259
|
+
options.add_argument('--disable-extensions') # 확장 프로그램 초기화 화면 방지
|
261
260
|
options.page_load_strategy = :normal
|
262
261
|
options.timeouts = {page_load: 20_000}
|
263
262
|
options.page_load_strategy = 'none'
|
@@ -355,6 +354,7 @@ class Naver
|
|
355
354
|
end
|
356
355
|
end
|
357
356
|
return 0
|
357
|
+
@driver.quit
|
358
358
|
end
|
359
359
|
|
360
360
|
else
|
@@ -377,7 +377,8 @@ class Naver
|
|
377
377
|
puts "Failed to close tab: #{e.message}"
|
378
378
|
end
|
379
379
|
end
|
380
|
-
return 0
|
380
|
+
return 0
|
381
|
+
@driver.quit
|
381
382
|
end
|
382
383
|
end
|
383
384
|
|
@@ -694,6 +695,7 @@ class Naver
|
|
694
695
|
end
|
695
696
|
end
|
696
697
|
return 0
|
698
|
+
@driver.quit
|
697
699
|
end
|
698
700
|
|
699
701
|
ele = @driver.find_element(:xpath, '//*[@draggable="false"]')
|
@@ -1599,6 +1601,7 @@ class Naver
|
|
1599
1601
|
end
|
1600
1602
|
end
|
1601
1603
|
return 0
|
1604
|
+
@driver.quit
|
1602
1605
|
end
|
1603
1606
|
|
1604
1607
|
|
@@ -1760,6 +1763,7 @@ class Naver
|
|
1760
1763
|
puts "Failed to close tab: #{e.message}"
|
1761
1764
|
end
|
1762
1765
|
end
|
1766
|
+
@driver.quit
|
1763
1767
|
rescue
|
1764
1768
|
|
1765
1769
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nblog_duo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.61
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: File to Clipboard gem
|
14
14
|
email: mymin26@naver.com
|