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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70b64854b4af1689d9c02b6db9af47760a956c428630a05ab9681fcb109a8e33
4
- data.tar.gz: 7e216ea42a4aa8635f31ea0d0bdd63e3efd25ba743e53b8c5d8623967dfeffbe
3
+ metadata.gz: b7eb16a509a0458ad7e202999d535cb7aabe305e08b5267ae0f39f3583ffeecd
4
+ data.tar.gz: 4c0f913a18c5a00fc91c6a4be31895fcbdd265f47382b66fce04ecba22d7b05c
5
5
  SHA512:
6
- metadata.gz: 5ba16fcace08fd38a254afefcd4f97eda8b8a14914873ab24ab5deb29c007c6498edb59d4296302642f539761a503893eb8c57a473f9c5df3880874fa52b6106
7
- data.tar.gz: 0563b8523d8050a66dd683a0ea390c9f25cebfe9650471eec542f121a6cacb611a8de55ec5a319f7dbf8b7aa1c52fb368f7c4856dd7c78692da39d0ed61474c6
6
+ metadata.gz: 5cd0981666fe7fd3434a601d80698d774972706743503e1d5300fe0c94da5ab6b84816ec141f5b61f2464f38c6bbd3f8c5a10d0ab5fba58fa29009cec5dce640
7
+ data.tar.gz: b4b03d2487ac64c1d571f51ec11886e70adbe943c1f6111be4cff7a9e2ded7b797c84adfcb86e74af9c3925500a38feacc2a683019a56a2c0ff58907a7837066
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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 =~ /d/ ? :directory : :file
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.2
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-09-12 00:00:00.000000000 Z
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