cafe_basics 0.0.35 → 0.0.37
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/cafe_basics.rb +11 -7
- 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: 9076d66ab295d8bff24c25d9c6ef9491188a8fe2ec1ef0a580230989a527f8b3
|
4
|
+
data.tar.gz: ca38f98b1421f51f08d80a1c2218e7b2ac7e44dd2f4e41722a1ddb2102b88d8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af0cd6a2b838c835838022be97e9aabd69b6bfffce34e95919e2d7ca042edeeccf8f28108d321a4dd23100fbd9be9336da14d3dfed43618779f72cce836e7898
|
7
|
+
data.tar.gz: be1fcfc56e05eab719f71678019bd5bb8f8ff7d40c2b7e5634a182dc4fa015afad72f4c13ea80cbe50a31a79ae43a7025f1c1dfa209df2535aaa47a9ab5bdeed
|
data/lib/cafe_basics.rb
CHANGED
@@ -226,6 +226,8 @@ class Naver
|
|
226
226
|
begin
|
227
227
|
Selenium::WebDriver::Chrome::Service.driver_path = './chromedriver.exe'
|
228
228
|
options = Selenium::WebDriver::Chrome::Options.new
|
229
|
+
options.add_argument('--no-first-run') # 자동 실행 시 나타나는 "첫 실행" 화면 방지
|
230
|
+
options.add_argument('--disable-extensions') # 확장 프로그램 초기화 화면 방지
|
229
231
|
options.page_load_strategy = :normal
|
230
232
|
options.timeouts = {page_load: 20_000}
|
231
233
|
options.page_load_strategy = 'none'
|
@@ -241,13 +243,8 @@ class Naver
|
|
241
243
|
begin
|
242
244
|
Selenium::WebDriver::Chrome::Service.driver_path = './chromedriver.exe'
|
243
245
|
options = Selenium::WebDriver::Chrome::Options.new
|
244
|
-
#
|
245
|
-
|
246
|
-
# profile['network.proxy.http'] = proxy.split(':')[0]
|
247
|
-
# profile['network.proxy.http_port'] = proxy.split(':')[1].to_i
|
248
|
-
# options = Selenium::WebDriver::Chrome::Options.new
|
249
|
-
# options.profile = profile
|
250
|
-
options = Selenium::WebDriver::Chrome::Options.new
|
246
|
+
options.add_argument('--no-first-run') # 자동 실행 시 나타나는 "첫 실행" 화면 방지
|
247
|
+
options.add_argument('--disable-extensions') # 확장 프로그램 초기화 화면 방지
|
251
248
|
options.add_argument '--proxy-server='+proxy.to_s.force_encoding('utf-8').to_s
|
252
249
|
options.page_load_strategy = :normal
|
253
250
|
options.timeouts = {page_load: 20_000}
|
@@ -263,6 +260,8 @@ class Naver
|
|
263
260
|
begin
|
264
261
|
Selenium::WebDriver::Chrome::Service.driver_path = './chromedriver.exe'
|
265
262
|
options = Selenium::WebDriver::Chrome::Options.new
|
263
|
+
options.add_argument('--no-first-run') # 자동 실행 시 나타나는 "첫 실행" 화면 방지
|
264
|
+
options.add_argument('--disable-extensions') # 확장 프로그램 초기화 화면 방지
|
266
265
|
options.page_load_strategy = :normal
|
267
266
|
options.timeouts = {page_load: 20_000}
|
268
267
|
options.page_load_strategy = 'none'
|
@@ -360,6 +359,7 @@ class Naver
|
|
360
359
|
end
|
361
360
|
end
|
362
361
|
return 0
|
362
|
+
@driver.quit
|
363
363
|
end
|
364
364
|
|
365
365
|
else
|
@@ -383,6 +383,7 @@ class Naver
|
|
383
383
|
end
|
384
384
|
end
|
385
385
|
return 0
|
386
|
+
@driver.quit
|
386
387
|
end
|
387
388
|
end
|
388
389
|
|
@@ -709,6 +710,7 @@ class Naver
|
|
709
710
|
end
|
710
711
|
end
|
711
712
|
return 0
|
713
|
+
@driver.quit
|
712
714
|
end
|
713
715
|
|
714
716
|
|
@@ -737,6 +739,7 @@ class Naver
|
|
737
739
|
end
|
738
740
|
end
|
739
741
|
return 0
|
742
|
+
@driver.quit
|
740
743
|
end
|
741
744
|
sleep(2)
|
742
745
|
@driver.action.key_down(:control).key_down('a').key_up('a').key_up(:control).perform
|
@@ -1663,6 +1666,7 @@ class Naver
|
|
1663
1666
|
puts "Failed to close tab: #{e.message}"
|
1664
1667
|
end
|
1665
1668
|
end
|
1669
|
+
@driver.quit
|
1666
1670
|
rescue
|
1667
1671
|
|
1668
1672
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cafe_basics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.37
|
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
|