mymedia_ftp 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/mymedia_ftp.rb +5 -4
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7eb16a509a0458ad7e202999d535cb7aabe305e08b5267ae0f39f3583ffeecd
|
4
|
+
data.tar.gz: 4c0f913a18c5a00fc91c6a4be31895fcbdd265f47382b66fce04ecba22d7b05c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cd0981666fe7fd3434a601d80698d774972706743503e1d5300fe0c94da5ab6b84816ec141f5b61f2464f38c6bbd3f8c5a10d0ab5fba58fa29009cec5dce640
|
7
|
+
data.tar.gz: b4b03d2487ac64c1d571f51ec11886e70adbe943c1f6111be4cff7a9e2ded7b797c84adfcb86e74af9c3925500a38feacc2a683019a56a2c0ff58907a7837066
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/mymedia_ftp.rb
CHANGED
@@ -119,7 +119,7 @@ class MyMediaFTP < Net::FTP
|
|
119
119
|
'file deleted'
|
120
120
|
end
|
121
121
|
|
122
|
-
def list_filenames(s=@curdir+'/*')
|
122
|
+
def list_filenames(s=@curdir+'/*', ctimesort: false)
|
123
123
|
|
124
124
|
if @debug
|
125
125
|
puts 'inside list_filenames'
|
@@ -143,12 +143,13 @@ class MyMediaFTP < Net::FTP
|
|
143
143
|
|
144
144
|
raw_attr, _, owner, group, filesize, month, day, time, filename = \
|
145
145
|
x.split(/ +/,9)
|
146
|
-
type = raw_attr
|
146
|
+
type = raw_attr[0] == 'd' ? :directory : :file
|
147
|
+
d = Time.parse([Date.today.year, month, day, time].join(' ') )
|
147
148
|
|
148
149
|
if q then
|
149
|
-
filename[/^#{q}$/] ? r << {name: filename, type: type} : r
|
150
|
+
filename[/^#{q}$/] ? r << {name: filename, type: type, filesize: filesize, ctime: d} : r
|
150
151
|
else
|
151
|
-
r << {name: filename, type: type}
|
152
|
+
r << {name: filename, type: type, filesize: filesize, ctime: d}
|
152
153
|
end
|
153
154
|
r
|
154
155
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mymedia_ftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
vmQbOdyo1gepCZyCN+UN/SCimjgu1yZtpI0S9lPHE1w/fMob3ohXflP/mnwUFxsN
|
36
36
|
KVwzt+QIecFrRei1GVykx8z3
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2020-
|
38
|
+
date: 2020-10-16 00:00:00.000000000 Z
|
39
39
|
dependencies: []
|
40
40
|
description:
|
41
41
|
email: james@jamesrobertson.eu
|
metadata.gz.sig
CHANGED
Binary file
|