njongto_duo 0.0.37 → 0.0.50

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/njongto_duo.rb +12 -7
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1526507244d8cd0dd3816213479befe8de8175207c83469944b2a95dbdbfde9b
4
- data.tar.gz: ce3d0473037d5087f7d16bcb0d7c601a028313c744fdc7a6d6ec43e67bea1b1a
3
+ metadata.gz: 98362172929d84e95721b15124bc435e8e112520dc2dbebfeb1f255e8d98207c
4
+ data.tar.gz: 1b18b9b09d145408624d758b762ab8bf6648a0cbec121c76ddf8ea15b221b6fb
5
5
  SHA512:
6
- metadata.gz: 8006c574435c487fbb115b9672d1fd811f137faf49c6465bc4fed688c95c8248393339f5c5afdb3baa7e68ef093930738fa97d69ed9edfc1297762b0b7227188
7
- data.tar.gz: a68abc66947a09fbb36b49b215cf748f3bddd9877ea1def43cfab17ccfc23db57be30ffae0ce5d2eb4e96ca88384ea4da70aeaa0076332d8e4080f7e0af1a74e
6
+ metadata.gz: 3aa4611aebae97f092a9a307a77489e524e5276e6bd6b123c8a891e874e466c908a3e00016697c8b0d3e7fa8ed86fdffa262c4db2a03487ae505f167d89d1343
7
+ data.tar.gz: f62e23025cd78c048fea601a1ada411e8463b6b1857f091491f30f0bcb4db687208d46867c9847a7f5802833a088eec517524a41b70c59f4050b309803e53080
data/lib/njongto_duo.rb CHANGED
@@ -42,6 +42,8 @@ class Naver
42
42
  begin
43
43
  Selenium::WebDriver::Chrome::Service.driver_path = './chromedriver.exe'
44
44
  options = Selenium::WebDriver::Chrome::Options.new
45
+ options.add_argument('--no-first-run') # 자동 실행 시 나타나는 "첫 실행" 화면 방지
46
+ options.add_argument('--disable-extensions') # 확장 프로그램 초기화 화면 방지
45
47
  options.page_load_strategy = :normal
46
48
  options.timeouts = {page_load: 20_000}
47
49
  options.page_load_strategy = 'none'
@@ -57,13 +59,8 @@ class Naver
57
59
  begin
58
60
  Selenium::WebDriver::Chrome::Service.driver_path = './chromedriver.exe'
59
61
  options = Selenium::WebDriver::Chrome::Options.new
60
- # profile = Selenium::WebDriver::Chrome::Profile.new
61
- # profile['network.proxy.type'] = 1
62
- # profile['network.proxy.http'] = proxy.split(':')[0]
63
- # profile['network.proxy.http_port'] = proxy.split(':')[1].to_i
64
- # options = Selenium::WebDriver::Chrome::Options.new
65
- # options.profile = profile
66
- options = Selenium::WebDriver::Chrome::Options.new
62
+ options.add_argument('--no-first-run') # 자동 실행 시 나타나는 "첫 실행" 화면 방지
63
+ options.add_argument('--disable-extensions') # 확장 프로그램 초기화 화면 방지
67
64
  options.add_argument '--proxy-server='+proxy.to_s.force_encoding('utf-8').to_s
68
65
  options.page_load_strategy = :normal
69
66
  options.timeouts = {page_load: 20_000}
@@ -79,6 +76,8 @@ class Naver
79
76
  begin
80
77
  Selenium::WebDriver::Chrome::Service.driver_path = './chromedriver.exe'
81
78
  options = Selenium::WebDriver::Chrome::Options.new
79
+ options.add_argument('--no-first-run') # 자동 실행 시 나타나는 "첫 실행" 화면 방지
80
+ options.add_argument('--disable-extensions') # 확장 프로그램 초기화 화면 방지
82
81
  options.page_load_strategy = :normal
83
82
  options.timeouts = {page_load: 20_000}
84
83
  options.page_load_strategy = 'none'
@@ -176,6 +175,7 @@ class Naver
176
175
  end
177
176
  end
178
177
  return 0
178
+ @driver.quit
179
179
  end
180
180
 
181
181
  else
@@ -199,6 +199,7 @@ class Naver
199
199
  end
200
200
  end
201
201
  return 0
202
+ @driver.quit
202
203
  end
203
204
  end
204
205
 
@@ -247,6 +248,7 @@ class Naver
247
248
  end
248
249
  end
249
250
  return 0
251
+ @driver.quit
250
252
  end
251
253
  end
252
254
 
@@ -278,6 +280,7 @@ class Naver
278
280
  end
279
281
  end
280
282
  return 0
283
+ @driver.quit
281
284
  end
282
285
  end
283
286
 
@@ -362,6 +365,7 @@ class Naver
362
365
  end
363
366
  end
364
367
  return 0
368
+ @driver.quit
365
369
  end
366
370
 
367
371
 
@@ -378,6 +382,7 @@ class Naver
378
382
  puts "Failed to close tab: #{e.message}"
379
383
  end
380
384
  end
385
+ @driver.quit
381
386
  rescue
382
387
 
383
388
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: njongto_duo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.37
4
+ version: 0.0.50
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: mymin26@naver.com