tiupd 0.0.2 → 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/tiupd.rb +23 -23
- 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: a41726f93df2db3b90b5d4f502744dfc8f36581b00b094dd2225c86b16bd760b
|
4
|
+
data.tar.gz: 8df09a7a38bac32622624e707d9934eaa87dea1391e73f564aa61b7f9cda5661
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cdacbf16ec6d55f8cf1ebf6fcad6e23bb5c28165fb6eefd318b19cdfd681417537e299b32123f4e1ae5fc3145307214bd191e6465c3e58c7ca2dd9a812a2fc1
|
7
|
+
data.tar.gz: 6ae1ee97f0f4d27bef1bdb5261b115f2db3f7a0bb236128539a78f52eb310ff5f361ef16317ed56aba0a50135c4e5a0681c0f180b6675054b9f411a895c47ae4
|
data/lib/tiupd.rb
CHANGED
@@ -2393,33 +2393,33 @@ class Wordpress
|
|
2393
2393
|
button(' 폴더째로 불러오기 ') {
|
2394
2394
|
|
2395
2395
|
on_clicked {
|
2396
|
-
|
2397
|
-
|
2398
|
-
|
2399
|
-
|
2400
|
-
|
2401
|
-
|
2402
|
-
|
2403
|
-
|
2404
|
-
|
2405
|
-
|
2406
|
-
|
2407
|
-
|
2408
|
-
|
2409
|
-
|
2396
|
+
path = @data['디엠설정']['폴더경로'].text.to_s.force_encoding('utf-8').force_encoding('utf-8')
|
2397
|
+
|
2398
|
+
# 경로가 유효한지 확인
|
2399
|
+
if Dir.exist?(path)
|
2400
|
+
Dir.entries(path).each do |file|
|
2401
|
+
if file == '.' or file == '..'
|
2402
|
+
next
|
2403
|
+
else
|
2404
|
+
begin
|
2405
|
+
# 파일을 열고 내용을 읽어서 추가
|
2406
|
+
file_data = File.open(path + '/' + file, 'r', encoding: 'utf-8').read
|
2407
|
+
@data['디엠설정']['디엠'] << [false, file, file_data]
|
2408
|
+
rescue => e
|
2409
|
+
# 파일을 열 수 없는 경우, 오류 메시지 출력
|
2410
|
+
puts "파일을 열 수 없습니다: #{file}, 오류: #{e.message}"
|
2410
2411
|
end
|
2411
2412
|
end
|
2412
|
-
@data['디엠설정']['디엠'] << []
|
2413
|
-
@data['디엠설정']['디엠'].pop
|
2414
|
-
else
|
2415
|
-
# 경로가 없으면 경고 메시지 출력
|
2416
|
-
puts "경로 '#{path}'이 존재하지 않습니다."
|
2417
2413
|
end
|
2418
|
-
|
2419
|
-
#
|
2420
|
-
|
2414
|
+
|
2415
|
+
# 내용 배열에서 마지막 빈 항목 제거
|
2416
|
+
@data['디엠설정']['디엠'] << []
|
2417
|
+
@data['디엠설정']['디엠'].pop
|
2418
|
+
else
|
2419
|
+
# 경로가 유효하지 않을 경우, 오류 메시지 출력
|
2420
|
+
puts "경로가 존재하지 않습니다: #{path}"
|
2421
2421
|
end
|
2422
|
-
|
2422
|
+
}
|
2423
2423
|
}
|
2424
2424
|
}
|
2425
2425
|
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiupd
|
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
|