struggle 2.4.3 → 2.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/struggle.rb +1 -1
- data/lib/struggle/ftp_tool.rb +0 -1
- data/lib/struggle/tfile.rb +9 -8
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8eed13f75451e0fd49c798b83dc03571562b6214177b0145b282361ba9284e3a
|
4
|
+
data.tar.gz: d5ca75d4fed7a3b5bb540c4defc2857517270966b198c86be8b761863f275b16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87563c4c6cd9350c061a5afca3beefcf6ec414e32acdd8a2a53c875253720e19cabc1f4097bb5386ec02e89efd0cb7a791b2c7cce113d3b098fa5182ac2e4c4f
|
7
|
+
data.tar.gz: 1de164ba9a53f52aae43c29558a9f9753afd80e859264a0ce5ce895cb5cfc983102d036f02c157099911ef1b60c24479880687207384b3a12d15c7c470e35a9d
|
data/lib/struggle.rb
CHANGED
data/lib/struggle/ftp_tool.rb
CHANGED
data/lib/struggle/tfile.rb
CHANGED
@@ -51,14 +51,15 @@ module Struggle
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def Tfile.getname(filestream, filepath)
|
54
|
-
file_for = Tfile.file_format(filestream.original_filename)
|
55
|
-
filename = Time.now.strftime("%Y%m%d%h%m%s")<<rand(99999).to_s<<file_for
|
56
|
-
file = filepath+filename
|
57
|
-
while File.exist?(file) do
|
58
|
-
|
59
|
-
|
60
|
-
end
|
61
|
-
filename
|
54
|
+
# file_for = Tfile.file_format(filestream.original_filename)
|
55
|
+
# filename = Time.now.strftime("%Y%m%d%h%m%s")<<rand(99999).to_s<<file_for
|
56
|
+
# file = filepath+filename
|
57
|
+
# while File.exist?(file) do
|
58
|
+
# filename = Time.now.strftime("%Y%m%d%h%m%s")<<rand(99999).to_s<<file_for
|
59
|
+
# file = filepath+filename
|
60
|
+
# end
|
61
|
+
# filename
|
62
|
+
filepath+filestream.original_filename
|
62
63
|
end
|
63
64
|
|
64
65
|
def Tfile.file_format(filename)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: struggle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lean
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iconv
|
@@ -138,8 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|
141
|
-
|
142
|
-
rubygems_version: 2.7.7
|
141
|
+
rubygems_version: 3.0.8
|
143
142
|
signing_key:
|
144
143
|
specification_version: 4
|
145
144
|
summary: struggle!
|