rex-core 0.1.6 → 0.1.7
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 +1 -1
- data/lib/rex/core/version.rb +1 -1
- data/lib/rex/file.rb +10 -4
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fea71cce3fd3ae9a66a3b497a925eccc514b1a6
|
4
|
+
data.tar.gz: d61bbc5425e6e5de99060906ede476a48710aeed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e4ffd7648d8d4f4eb0a5207fd47e6bbc93cc1e0630b9af30424fc084a2fe6e4b4a4623d000b78e9afae55b9f8113b0fd4aff772d754057c54ae80918c25dac5
|
7
|
+
data.tar.gz: 3f6dac207d4b9608928a6be3076898bf865f78f8dcb471586d0b8f58defb36b7dde41fa846ffb27ae3dd36540e9663b532f06141ac2987d89cc160cd76ceba8f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
@:�:Y���.1G���:��������zL��>}�
|
data/lib/rex/core/version.rb
CHANGED
data/lib/rex/file.rb
CHANGED
@@ -67,11 +67,17 @@ module FileUtils
|
|
67
67
|
#
|
68
68
|
def self.clean_path(old)
|
69
69
|
path = old.dup
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
70
|
+
|
71
|
+
leading = /\A\.\.\\|\A\.\.\// # '..\' or '../' at start of string
|
72
|
+
linux_style = /\/\.\.\/|\/\.\.\\/ # '/../' or '/..\'
|
73
|
+
windows_style = /\\\.\.\\|\\\.\.\// # '\..\' or '\../'
|
74
|
+
|
75
|
+
while(path.index(leading) != nil or path.index(linux_style) != nil or path.index(windows_style) != nil)
|
76
|
+
path.gsub!(leading,'')
|
77
|
+
path.gsub!(linux_style,'/')
|
78
|
+
path.gsub!(windows_style,'\\')
|
74
79
|
end
|
80
|
+
|
75
81
|
path
|
76
82
|
end
|
77
83
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rex-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Maloney
|
@@ -88,7 +88,7 @@ cert_chain:
|
|
88
88
|
G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
|
89
89
|
8mVuTXnyJOKRJA==
|
90
90
|
-----END CERTIFICATE-----
|
91
|
-
date: 2017-
|
91
|
+
date: 2017-02-07 00:00:00.000000000 Z
|
92
92
|
dependencies:
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: bundler
|
metadata.gz.sig
CHANGED
Binary file
|