dradis-projects 3.14.0 → 3.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/dradis-projects.gemspec +1 -1
- data/lib/dradis/plugins/projects/gem_version.rb +1 -1
- data/lib/dradis/plugins/projects/upload/package.rb +9 -6
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bcb99879ce1660ca26e84dfa80564c46aaf5e99
|
4
|
+
data.tar.gz: c9838ef567edba5bd151ca33651661ff7d0d05f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86bd5c1ee5bdb8793b10e9e17f2da497dfadaf0b1a70a693b4b76d43756a6c6e47cba220defe57ec94c3a783a19fe04fc69786bb668c4000c75c758a02120292
|
7
|
+
data.tar.gz: 8d9ed93eb3d32eadba159a2bcd6051de9b8c4c8f87e62c72d4a9a21fa77a76a978b016218781b8e55fddb121ef8059d31e95ae158ca55553dd8ba5fe27350ce6
|
data/CHANGELOG.md
CHANGED
data/dradis-projects.gemspec
CHANGED
@@ -18,18 +18,21 @@ module Dradis::Plugins::Projects::Upload
|
|
18
18
|
success = false
|
19
19
|
|
20
20
|
# Unpack the archive in a temporary location
|
21
|
-
|
21
|
+
temporary_dir = Rails.root.join('tmp', 'zip')
|
22
|
+
FileUtils.mkdir temporary_dir
|
22
23
|
|
23
24
|
begin
|
24
25
|
logger.info { 'Uncompressing the file...' }
|
25
26
|
#TODO: this could be improved by only uncompressing the XML, then parsing
|
26
27
|
# it to get the node_lookup table and then uncompressing each entry to its
|
27
28
|
# final destination
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
Dir.chdir(temporary_dir) do
|
30
|
+
Zip::File.foreach(package) do |entry|
|
31
|
+
path = temporary_dir.join(entry.name)
|
32
|
+
FileUtils.mkdir_p(File.dirname(path))
|
33
|
+
entry.extract
|
34
|
+
logger.info { "\t#{entry.name}" }
|
35
|
+
end
|
33
36
|
end
|
34
37
|
logger.info { 'Done.' }
|
35
38
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dradis-projects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.14.
|
4
|
+
version: 3.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: rubyzip
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: '0'
|
97
97
|
description: This plugin allows you to dump the contents of the repo into a zip archive
|
98
98
|
and restore the state from one of them.
|
99
99
|
email:
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: '0'
|
154
154
|
requirements: []
|
155
155
|
rubyforge_project:
|
156
|
-
rubygems_version: 2.
|
156
|
+
rubygems_version: 2.6.8
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: Project export/upload for the Dradis Framework.
|