rex-core 0.1.6 → 0.1.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa0781934c68c6142cbbbbc0732b1411498f33e7
4
- data.tar.gz: c58c1887381f21b52a0bcad1b98524eed07398a0
3
+ metadata.gz: 3fea71cce3fd3ae9a66a3b497a925eccc514b1a6
4
+ data.tar.gz: d61bbc5425e6e5de99060906ede476a48710aeed
5
5
  SHA512:
6
- metadata.gz: adfe1c525cf3cb8f302226d3ff2c7c6d1ed9c8e634fb54e3f0b903267ba8a0e4ac640e1857259ec5fc822fb359a4372e275a15dd67a45bf59521f4520cc13907
7
- data.tar.gz: 5f302f1ad1bc50eb5b0751939c65784d22df504d2f679ad8a7de864b831fb140f7cd5ce7c1797fe1efc9aaf667e1ac5dfc2dbd6504f79a225b15b3d7c1aa1e6e
6
+ metadata.gz: 6e4ffd7648d8d4f4eb0a5207fd47e6bbc93cc1e0630b9af30424fc084a2fe6e4b4a4623d000b78e9afae55b9f8113b0fd4aff772d754057c54ae80918c25dac5
7
+ data.tar.gz: 3f6dac207d4b9608928a6be3076898bf865f78f8dcb471586d0b8f58defb36b7dde41fa846ffb27ae3dd36540e9663b532f06141ac2987d89cc160cd76ceba8f
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- 9s�KR���$B���'�4A������*�8���A�Ebi���`�|�Q4���8w��O�y�k/ ��e����b�Z����Z�T�Z�֚�����C�������{z����D��r�z����� ��hHڣܖּ�^�_�J�����VA�!�I7�..0��Q�>7M]?kT���Ve�4_v�����G/0�6w4o��gYa�&�fA>���' ��������� c'�S�ĸC0.L�h�Cú�����i
1
+ @:�:Y���.1G���:��������zL��>}
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Core
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
@@ -67,11 +67,17 @@ module FileUtils
67
67
  #
68
68
  def self.clean_path(old)
69
69
  path = old.dup
70
- while(path.index(/\/..\/|\/..\\|\\..\\|\\..\/|\A..\\|\A..\//) != nil)
71
- path.gsub!(/\A..\\|\A..\//,'') #eliminate starting ..\ or ../
72
- path.gsub!(/\/..\/|\/..\\/,'/') #clean linux style
73
- path.gsub!(/\\..\\|\\..\//,'\\') #clean windows style
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.6
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-01-11 00:00:00.000000000 Z
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