tiupz 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/tiupz.rb +23 -31
- 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: cc9dc0d55841892b1b11cc144c7889d5cdacec4357923482617734142f74ac0c
|
4
|
+
data.tar.gz: f81655218442aa2c03db9de178b2bb7ff3d37ca6b8dad047305ffda9f7e3e2dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4951798671d491b077e36e3e3f59d185f69cc0b7937b718fbebaf67ca097ddc3bc95692ea2af9f38ed2e4716afa4007f87f960f5c54855b29a37c921a9f3821
|
7
|
+
data.tar.gz: 8af9095db421249b5fe1dd53c6572229b43e562ad318cfedd3502d6f2ef53a1f80ff1cb99f7595888162450ae26102193df27e8f63464dbfb1614a3412f260c7
|
data/lib/tiupz.rb
CHANGED
@@ -12,7 +12,6 @@ require 'open3'
|
|
12
12
|
require 'clipboard'
|
13
13
|
require 'crack'
|
14
14
|
require 'uri'
|
15
|
-
require 'digest'
|
16
15
|
require 'auto_click'
|
17
16
|
require 'rainbow/refinement'
|
18
17
|
require 'win32ole'
|
@@ -418,14 +417,7 @@ class Naver
|
|
418
417
|
end
|
419
418
|
end
|
420
419
|
|
421
|
-
def create_id
|
422
|
-
@seed += 1
|
423
|
-
hash = Digest::SHA256.hexdigest((Time.now.to_i+@seed).to_s).to_s
|
424
|
-
answer = "SE-#{hash[0..7]}-#{hash[8..11]}-#{hash[12..15]}-#{hash[16..19]}-#{hash[20..31]}"
|
425
|
-
return answer
|
426
|
-
end
|
427
420
|
|
428
|
-
|
429
421
|
|
430
422
|
|
431
423
|
|
@@ -2320,33 +2312,33 @@ end
|
|
2320
2312
|
button(' 폴더째로 불러오기 ') {
|
2321
2313
|
|
2322
2314
|
on_clicked {
|
2323
|
-
|
2324
|
-
|
2325
|
-
|
2326
|
-
|
2327
|
-
|
2328
|
-
|
2329
|
-
|
2330
|
-
|
2331
|
-
|
2332
|
-
|
2333
|
-
|
2334
|
-
|
2335
|
-
|
2336
|
-
|
2315
|
+
path = @data['디엠설정']['폴더경로'].text.to_s.force_encoding('utf-8').force_encoding('utf-8')
|
2316
|
+
|
2317
|
+
# 경로가 유효한지 확인
|
2318
|
+
if Dir.exist?(path)
|
2319
|
+
Dir.entries(path).each do |file|
|
2320
|
+
if file == '.' or file == '..'
|
2321
|
+
next
|
2322
|
+
else
|
2323
|
+
begin
|
2324
|
+
# 파일을 열고 내용을 읽어서 추가
|
2325
|
+
file_data = File.open(path + '/' + file, 'r', encoding: 'utf-8').read
|
2326
|
+
@data['디엠설정']['디엠'] << [false, file, file_data]
|
2327
|
+
rescue => e
|
2328
|
+
# 파일을 열 수 없는 경우, 오류 메시지 출력
|
2329
|
+
puts "파일을 열 수 없습니다: #{file}, 오류: #{e.message}"
|
2337
2330
|
end
|
2338
2331
|
end
|
2339
|
-
@data['디엠설정']['디엠'] << []
|
2340
|
-
@data['디엠설정']['디엠'].pop
|
2341
|
-
else
|
2342
|
-
# 경로가 없으면 경고 메시지 출력
|
2343
|
-
puts "경로 '#{path}'이 존재하지 않습니다."
|
2344
2332
|
end
|
2345
|
-
|
2346
|
-
#
|
2347
|
-
|
2333
|
+
|
2334
|
+
# 내용 배열에서 마지막 빈 항목 제거
|
2335
|
+
@data['디엠설정']['디엠'] << []
|
2336
|
+
@data['디엠설정']['디엠'].pop
|
2337
|
+
else
|
2338
|
+
# 경로가 유효하지 않을 경우, 오류 메시지 출력
|
2339
|
+
puts "경로가 존재하지 않습니다: #{path}"
|
2348
2340
|
end
|
2349
|
-
|
2341
|
+
}
|
2350
2342
|
}
|
2351
2343
|
}
|
2352
2344
|
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiupz
|
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
|