nblog_zon 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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nblog_zon.rb +13 -9
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97a284727453d2d0f0b3616025ec32116ebb3cf931265f4a5511ffaf8f1b27e4
4
- data.tar.gz: 20b32196db249730309ed18f02c7dc0fdf45ed4bcb4227f92f2e55230a00d45b
3
+ metadata.gz: 584b103f7bcda3835286945919a2c2186d0eb4fbbdc20737cc4d73e50219a7a1
4
+ data.tar.gz: c79b1160dd5b1fa0b1c3f83124b19314da3ef7b4a6ee96ea8617c9bfd698c460
5
5
  SHA512:
6
- metadata.gz: 6eb2a9f89292260bd27fbade7aa5911107b3fd9770297fb65b8fef09a7b12b3c16f434497886e6d2be4f3a3bdd45cc18c15042848231bfcf7aae728d14c84458
7
- data.tar.gz: bbcc23d13a060dfd5ad0c43275b0cf994448f089a2721ff8fd065a7bb63a5da69dd0de6a1b3ef2bb9636cb6b947f1ed25ed07a5f6543f668a35c42a61aa8ed5e
6
+ metadata.gz: 4599c71139301462f86e5efb7598a0cb7a9a6914ca534f3b265e6fce98739447b40d7875d7cdb88d1c8fc12463d843ba4ae847b9b82273d3fa21a89b4ce60c1b
7
+ data.tar.gz: af7cd6e5150d120484e01d86549d8fcfde5848451eb914c3f4837d7f05505ede708528d2253d34d4fbc468c5c6873774739a4ab1fc3849adc7bfa542ccdd9ee1
data/lib/nblog_zon.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
- # profile = Selenium::WebDriver::Chrome::Profile.new
240
- # profile['network.proxy.type'] = 1
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'
@@ -356,6 +355,7 @@ class Naver
356
355
  end
357
356
  end
358
357
  return 0
358
+ @driver.quit
359
359
  end
360
360
 
361
361
  else
@@ -378,7 +378,8 @@ class Naver
378
378
  puts "Failed to close tab: #{e.message}"
379
379
  end
380
380
  end
381
- return 0
381
+ return 0
382
+ @driver.quit
382
383
  end
383
384
  end
384
385
 
@@ -695,7 +696,8 @@ class Naver
695
696
  puts "Failed to close tab: #{e.message}"
696
697
  end
697
698
  end
698
- return 0
699
+ return 0
700
+ @driver.quit
699
701
  end
700
702
 
701
703
  ele = @driver.find_element(:xpath, '//*[@draggable="false"]')
@@ -1601,6 +1603,7 @@ class Naver
1601
1603
  end
1602
1604
  end
1603
1605
  return 0
1606
+ @driver.quit
1604
1607
  end
1605
1608
 
1606
1609
 
@@ -1763,6 +1766,7 @@ class Naver
1763
1766
  puts "Failed to close tab: #{e.message}"
1764
1767
  end
1765
1768
  end
1769
+ @driver.quit
1766
1770
  rescue
1767
1771
 
1768
1772
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nblog_zon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.59
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-06 00:00:00.000000000 Z
11
+ date: 2025-02-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: File to Clipboard gem
14
14
  email: rnjstnswp123@naver.com