tidpd 0.0.1 → 0.0.3
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/tidpd.rb +14 -21
- 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: 036aa6a30e93cff53110c051dd141b716467a8af2227d2124a02dd2b9ea1eb93
|
4
|
+
data.tar.gz: 7c0f9457bbe5258b53c5ec2e36f2ddd60c833210bde2d9d9bf758d861a0a658f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1832e030eedb46853ef158ff2bc3c623eda0bee16e51b30aa64a0175eb6c93ad450aeacf57db12c8d98795cf2f618c63669f3b48dd543c4cfd0384be0163a86a
|
7
|
+
data.tar.gz: a831f268c488ae423bc1556d7266d77ab506f35f4597f087e5a8ef5fb15768720bd6671cffbf511bb2fc50e51d37f652e307ab8759b5233213ce51a2ba114402
|
data/lib/tidpd.rb
CHANGED
@@ -9,7 +9,6 @@ require 'open3'
|
|
9
9
|
require 'clipboard'
|
10
10
|
require 'crack'
|
11
11
|
require 'uri'
|
12
|
-
require 'digest'
|
13
12
|
require 'auto_click'
|
14
13
|
require 'rainbow/refinement'
|
15
14
|
require 'win32ole'
|
@@ -415,12 +414,6 @@ class Naver
|
|
415
414
|
end
|
416
415
|
end
|
417
416
|
|
418
|
-
def create_id
|
419
|
-
@seed += 1
|
420
|
-
hash = Digest::SHA256.hexdigest((Time.now.to_i+@seed).to_s).to_s
|
421
|
-
answer = "SE-#{hash[0..7]}-#{hash[8..11]}-#{hash[12..15]}-#{hash[16..19]}-#{hash[20..31]}"
|
422
|
-
return answer
|
423
|
-
end
|
424
417
|
|
425
418
|
def update(content, option, tagg, table_comment_input, captcha_api_key, sleep_delay)
|
426
419
|
@tagg = tagg
|
@@ -2134,32 +2127,32 @@ class Wordpress
|
|
2134
2127
|
button(' 폴더째로 불러오기 ') {
|
2135
2128
|
|
2136
2129
|
on_clicked {
|
2137
|
-
begin
|
2138
2130
|
path = @data['디엠설정']['폴더경로'].text.to_s.force_encoding('utf-8').force_encoding('utf-8')
|
2139
2131
|
|
2140
|
-
|
2132
|
+
# 경로가 유효한지 확인
|
2133
|
+
if Dir.exist?(path)
|
2141
2134
|
Dir.entries(path).each do |file|
|
2142
|
-
|
2143
|
-
|
2135
|
+
if file == '.' or file == '..'
|
2136
|
+
next
|
2137
|
+
else
|
2144
2138
|
begin
|
2145
|
-
|
2146
|
-
|
2139
|
+
# 파일을 열고 내용을 읽어서 추가
|
2140
|
+
file_data = File.open(path + '/' + file, 'r', encoding: 'utf-8').read
|
2141
|
+
@data['디엠설정']['디엠'] << [false, file, file_data]
|
2147
2142
|
rescue => e
|
2148
|
-
#
|
2149
|
-
puts "
|
2143
|
+
# 파일을 열 수 없는 경우, 오류 메시지 출력
|
2144
|
+
puts "파일을 열 수 없습니다: #{file}, 오류: #{e.message}"
|
2150
2145
|
end
|
2151
2146
|
end
|
2152
2147
|
end
|
2148
|
+
|
2149
|
+
# 내용 배열에서 마지막 빈 항목 제거
|
2153
2150
|
@data['디엠설정']['디엠'] << []
|
2154
2151
|
@data['디엠설정']['디엠'].pop
|
2155
2152
|
else
|
2156
|
-
# 경로가
|
2157
|
-
puts "
|
2153
|
+
# 경로가 유효하지 않을 경우, 오류 메시지 출력
|
2154
|
+
puts "경로가 존재하지 않습니다: #{path}"
|
2158
2155
|
end
|
2159
|
-
rescue => e
|
2160
|
-
# 경로 처리 중 발생한 오류 처리
|
2161
|
-
puts "오류 발생: #{e.message}"
|
2162
|
-
end
|
2163
2156
|
}
|
2164
2157
|
}
|
2165
2158
|
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tidpd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zon
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-05-01 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: File to Clipboard gem
|
13
13
|
email: mymin26@naver.com
|