cafe_buy_duo 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_buy_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: 937cf1ec5d7c73e42983317219bf731c8cab8edc7b42cf770997f19d309a30d4
|
4
|
+
data.tar.gz: 65307f9cda2d64cff822ec5d800c526c3b7a722e4404a229300b871ec171e2ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 314d53d73b80270994311c03d6adf1a10ce964d1310e544b5d1331f9312485367b39a67bd485efa06c4762fb26689260eef86444c584065afbfaebe84571a05f
|
7
|
+
data.tar.gz: e3c85a8760a9eec8e1f1f34571341769086ceebc39bb296f30e4ca6672cbc74d86c82709465aacbbbb13f8a26916bac5f533d3d40a04c79355e8f9c5cff525a1
|
data/lib/cafe_buy_duo.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
|
|
@@ -1021,7 +1022,8 @@ end
|
|
1021
1022
|
puts "Failed to close tab: #{e.message}"
|
1022
1023
|
end
|
1023
1024
|
end
|
1024
|
-
return 0
|
1025
|
+
return 0
|
1026
|
+
@driver.quit
|
1025
1027
|
end
|
1026
1028
|
|
1027
1029
|
|
@@ -1050,6 +1052,7 @@ end
|
|
1050
1052
|
end
|
1051
1053
|
end
|
1052
1054
|
return 0
|
1055
|
+
@driver.quit
|
1053
1056
|
end
|
1054
1057
|
sleep(2)
|
1055
1058
|
@driver.action.key_down(:control).key_down('a').key_up('a').key_up(:control).perform
|
@@ -1971,6 +1974,7 @@ end
|
|
1971
1974
|
puts "Failed to close tab: #{e.message}"
|
1972
1975
|
end
|
1973
1976
|
end
|
1977
|
+
@driver.quit
|
1974
1978
|
rescue
|
1975
1979
|
|
1976
1980
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cafe_buy_duo
|
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
|