posting_duo 0.0.11 → 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/posting_duo.rb +30 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 162aff5d32f6fe74538b9341206eb9ae3a6fdf6c606a1a5c985bacb2ff105059
4
- data.tar.gz: be4a5c136e9401b94b3bb64b67bede9d0f06f78e4135d624071f2c02c9793fac
3
+ metadata.gz: 0e9aac868e76854f511676f7baf7b12e515b0d0a827568cefe70ddeca76db1ee
4
+ data.tar.gz: 372415f9f141c6cecd74ce005aa93dbce43b837d2704781fc488a63ff100a464
5
5
  SHA512:
6
- metadata.gz: 72e1d2ab7ec9350c6a3c037a3c53de8a46533539ac8c3ab96ab5ff4b472ec56b4abab5df6b121e7fed1f2eb95f9a2ce5f1a704fab66585b3c75a27df3caa1716
7
- data.tar.gz: c15a4c077d49c579e1980a93c13a59daec72765a750820591639a28b6ba1c3d967447da76a06c5b53e5a83e31511d3d6970b58c14e2aeca8563a9064aaa8179f
6
+ metadata.gz: d4a438e1d87a1f39c77e13965ba5e99e332860c1be946c9b48d24733a5f73e29dd77f6e6c309b009077caeb238a0db60f849b417370e2f4dbe93448281ebb339
7
+ data.tar.gz: b2a63d4e39a6d8dc20e6676147e3456ea7b4cd7c67f307ec67913a4e6b7843396abfd4f7b28a00035a97145651ba7dcbe0a6675a3e6afa9b3d2a4d16bc1b8398
data/lib/posting_duo.rb CHANGED
@@ -42,7 +42,11 @@ class Naver
42
42
  options.timeouts = {page_load: 20_000}
43
43
  options.add_argument('--start-maximized')
44
44
  options.add_argument('user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.59 Safari/537.36') # user-agent 위조
45
-
45
+ # `capabilities` 사용
46
+ capabilities = [options]
47
+
48
+ # 드라이버 초기화 (capabilities 사용)
49
+ @driver = Selenium::WebDriver.for(:chrome, capabilities: capabilities)
46
50
  #options.add_argument('--disable-blink-features=AutomationControlled')
47
51
  #options.add_argument('--disable-popup-blocking')
48
52
  #options.add_argument('--dns-prefetch-disable')
@@ -59,9 +63,14 @@ class Naver
59
63
  #options.add_argument('--disable-translate')
60
64
  #options.add_argument('--disable-extensions-file-access-check')
61
65
  #options.add_argument('--disable-impl-side-painting')
62
- @driver = Selenium::WebDriver.for(:chrome, capabilities: options)
66
+ #@driver = Selenium::WebDriver.for(:chrome, capabilities: options)
63
67
  rescue
64
- @driver = Selenium::WebDriver.for(:chrome, capabilities: options)
68
+ #@driver = Selenium::WebDriver.for(:chrome, capabilities: options)
69
+ # `capabilities` 사용
70
+ capabilities = [options]
71
+
72
+ # 드라이버 초기화 (capabilities 사용)
73
+ @driver = Selenium::WebDriver.for(:chrome, capabilities: capabilities)
65
74
  end
66
75
  else
67
76
  begin
@@ -94,7 +103,12 @@ class Naver
94
103
  #options.add_argument('--disable-translate')
95
104
  #options.add_argument('--disable-extensions-file-access-check')
96
105
  #options.add_argument('--disable-impl-side-painting')
97
- @driver = Selenium::WebDriver.for(:chrome, capabilities: options)
106
+ #@driver = Selenium::WebDriver.for(:chrome, capabilities: options)
107
+ # `capabilities` 사용
108
+ capabilities = [options]
109
+
110
+ # 드라이버 초기화 (capabilities 사용)
111
+ @driver = Selenium::WebDriver.for(:chrome, capabilities: capabilities)
98
112
  rescue => e
99
113
  puts e
100
114
  puts 'proxy error...'
@@ -123,9 +137,19 @@ class Naver
123
137
  #options.add_argument('--disable-translate')
124
138
  #options.add_argument('--disable-extensions-file-access-check')
125
139
  #options.add_argument('--disable-impl-side-painting')
126
- @driver = Selenium::WebDriver.for(:chrome, capabilities: options)
140
+ #@driver = Selenium::WebDriver.for(:chrome, capabilities: options)
141
+ # `capabilities` 사용
142
+ capabilities = [options]
143
+
144
+ # 드라이버 초기화 (capabilities 사용)
145
+ @driver = Selenium::WebDriver.for(:chrome, capabilities: capabilities)
127
146
  rescue
128
- @driver = Selenium::WebDriver.for(:chrome, capabilities: options)
147
+ #@driver = Selenium::WebDriver.for(:chrome, capabilities: options)
148
+ # `capabilities` 사용
149
+ capabilities = [options]
150
+
151
+ # 드라이버 초기화 (capabilities 사용)
152
+ @driver = Selenium::WebDriver.for(:chrome, capabilities: capabilities)
129
153
  end
130
154
  end
131
155
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: posting_duo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - zon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-11 00:00:00.000000000 Z
11
+ date: 2024-01-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: File to Clipboard gem
14
14
  email: mymin26@naver.com