tg_send_zon 0.0.12 → 0.0.13

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/tg_send_zon.rb +11 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eac22b88caa1438b657577802dacdf4d978285cbbf8c09579ad4f9396dc68215
4
- data.tar.gz: 156eb29803be4eef010229ab97762f9a58e7829ddcaaa682f2b2b680644127b5
3
+ metadata.gz: 382e497ceeb4c2f30bcbfa9d478bfbe4875f4b6c98b1362163a8cb94bed33aad
4
+ data.tar.gz: aff42cf76ef189ee6c2100dc1b2b2f8b464a10d55e9d2e1e30410142e45747cd
5
5
  SHA512:
6
- metadata.gz: fdc28d878ee14e55d25b0737d4bebd8924de735c514f7358869e50e9c4dd8ca1ed5e2776e3235d8ed90b5912165ca96364fde40c5c2ce2bbd435f6612b46e9dc
7
- data.tar.gz: cfbf9b0f58c84652bcc53fa57d7c6392a83096dc236deb713bfaf44ae4a98411fa37680484b66e65dbe19216e3fb9a6ae1ca910317614d23716582479f7e8a9b
6
+ metadata.gz: 692f07549e03dd30d4997b83b99fb759dcca7f1d247a79d96bf6d08909d61f275c0ccc6f9a460f4063e8bfdeab51481917c1b7b6f361e8bbefa76c3082155a0b
7
+ data.tar.gz: 8de0d8e543d08a5de0d4394d36adfbeef99b19cf914590bdb51f140f141d0fe9b7dba260f352f1cef3b8d6591bfd89b6e8b0031fa36c5713f2abe483d3c70831
data/lib/tg_send_zon.rb CHANGED
@@ -54,8 +54,11 @@ class Naver
54
54
  Selenium::WebDriver::Chrome::Service.driver_path = './chromedriver.exe'
55
55
  options = Selenium::WebDriver::Chrome::Options.new
56
56
 
57
+ options.add_argument('--headless') # 브라우저 UI 없이 실행
58
+ options.add_argument('--disable-gpu') # GPU 가속을 비활성화 (헤드리스에서 필요할 수 있음)
57
59
  options.add_argument('--no-sandbox')
58
- options.add_argument('--disable-gpu')
60
+ options.add_argument('--disable-popup-blocking')
61
+
59
62
  options.page_load_strategy = :normal
60
63
  options.timeouts = {page_load: 20_000}
61
64
  options.page_load_strategy = 'none'
@@ -63,7 +66,7 @@ class Naver
63
66
  options.add_argument('--remote-debugging-port=9222')
64
67
  options.add_argument('user-data-dir=C:/telegram_cookie/' + telegram_number)
65
68
 
66
-
69
+
67
70
  @driver = Selenium::WebDriver.for(:chrome, capabilities: options)
68
71
 
69
72
 
@@ -92,8 +95,10 @@ class Naver
92
95
  begin
93
96
  Selenium::WebDriver::Chrome::Service.driver_path = './chromedriver.exe'
94
97
  options = Selenium::WebDriver::Chrome::Options.new
98
+ options.add_argument('--headless') # 브라우저 UI 없이 실행
99
+ options.add_argument('--disable-gpu') # GPU 가속을 비활성화 (헤드리스에서 필요할 수 있음)
95
100
  options.add_argument('--no-sandbox')
96
- options.add_argument('--disable-gpu')
101
+ options.add_argument('--disable-popup-blocking')
97
102
  options.add_argument '--proxy-server='+proxy.to_s.force_encoding('utf-8').to_s
98
103
  options.page_load_strategy = :normal
99
104
  options.timeouts = {page_load: 20_000}
@@ -112,8 +117,10 @@ class Naver
112
117
  options.timeouts = {page_load: 20_000}
113
118
  options.page_load_strategy = 'none'
114
119
  options.add_argument('--disable-notifications')
120
+ options.add_argument('--headless') # 브라우저 UI 없이 실행
121
+ options.add_argument('--disable-gpu') # GPU 가속을 비활성화 (헤드리스에서 필요할 수 있음)
115
122
  options.add_argument('--no-sandbox')
116
- options.add_argument('--disable-gpu')
123
+ options.add_argument('--disable-popup-blocking')
117
124
  options.add_argument('--remote-debugging-port=9222')
118
125
  options.add_argument('user-data-dir=C:/telegram_cookie/' + telegram_number)
119
126
  @driver = Selenium::WebDriver.for(:chrome, capabilities: options)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tg_send_zon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - zon