smart_proxy_openscap 0.5.4 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/Rakefile +2 -0
- data/lib/smart_proxy_openscap/storage_fs.rb +3 -1
- data/lib/smart_proxy_openscap/version.rb +1 -1
- metadata +83 -62
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8278c2ea84e4fdf6bba35a966c459cd875ebac0e
|
4
|
+
data.tar.gz: 3fc2719dbaee2b0d64592c665eec0877943ee1a3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 462b6607100ddf4d16471315b63116365f9c3bb028a70837a54bc2b5a0105c2922dfc3063871db203d812164a9a5681e54f9f616a0877955a2d87fce331050fc
|
7
|
+
data.tar.gz: 0c2b19375d3ff1b9d253d720f15f91151b520089f646531ee4c797a8aa88bc750d58b13844ad1645d195e29bf80976e8221319c0bdc2b0b50daa870693585a97
|
data/Rakefile
CHANGED
@@ -23,6 +23,8 @@ module Proxy::OpenSCAP
|
|
23
23
|
xml = get_arf_file(digest)[:xml]
|
24
24
|
size = get_arf_file(digest)[:size]
|
25
25
|
arf_object = OpenSCAP::DS::Arf.new(:content => xml, :path => 'arf.xml.bz2', :length => size)
|
26
|
+
# @TODO: Drop this when support for 1.8.7 ends
|
27
|
+
return arf_object.html if RUBY_VERSION.start_with? '1.8'
|
26
28
|
arf_object.html.force_encoding('UTF-8')
|
27
29
|
end
|
28
30
|
|
@@ -72,7 +74,7 @@ module Proxy::OpenSCAP
|
|
72
74
|
full_path = @path + digest
|
73
75
|
raise FileNotFound, "Can't find path #{full_path}" if !File.file?(full_path) || File.zero?(full_path)
|
74
76
|
file = File.open(full_path)
|
75
|
-
{ :size =>
|
77
|
+
{ :size => File.size(file), :xml => file.read }
|
76
78
|
end
|
77
79
|
end
|
78
80
|
end
|
metadata
CHANGED
@@ -1,78 +1,98 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_proxy_openscap
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
7
|
-
-
|
8
|
-
xaBpbW9uIEx1a2HFocOtaw==
|
9
|
-
|
6
|
+
authors:
|
7
|
+
- "Šimon Lukašík"
|
10
8
|
- Shlomi Zadok
|
11
9
|
- Marek Hulan
|
12
10
|
autorequire:
|
13
11
|
bindir: bin
|
14
12
|
cert_chain: []
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
19
16
|
name: rake
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: "0"
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - ">="
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
27
22
|
type: :development
|
28
|
-
version_requirements: *id001
|
29
|
-
- !ruby/object:Gem::Dependency
|
30
|
-
name: rack-test
|
31
23
|
prerelease: false
|
32
|
-
|
33
|
-
requirements:
|
34
|
-
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '0'
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: rack-test
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
35
36
|
type: :development
|
36
|
-
version_requirements: *id003
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: mocha
|
39
37
|
prerelease: false
|
40
|
-
|
41
|
-
requirements:
|
42
|
-
-
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: mocha
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
43
50
|
type: :development
|
44
|
-
version_requirements: *id004
|
45
|
-
- !ruby/object:Gem::Dependency
|
46
|
-
name: webmock
|
47
51
|
prerelease: false
|
48
|
-
|
49
|
-
requirements:
|
50
|
-
-
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: webmock
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
51
64
|
type: :development
|
52
|
-
version_requirements: *id005
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: openscap
|
55
65
|
prerelease: false
|
56
|
-
|
57
|
-
requirements:
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
58
68
|
- - ">="
|
59
|
-
- !ruby/object:Gem::Version
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: openscap
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
60
77
|
version: 0.4.3
|
61
78
|
type: :runtime
|
62
|
-
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 0.4.3
|
63
85
|
description: |-
|
64
86
|
A plug-in to the Foreman's smart-proxy which receives
|
65
87
|
bzip2ed ARF files and forwards them to the Foreman.
|
66
88
|
email: slukasik@redhat.com
|
67
|
-
executables:
|
89
|
+
executables:
|
68
90
|
- smart-proxy-openscap-send
|
69
91
|
extensions: []
|
70
|
-
|
71
92
|
extra_rdoc_files: []
|
72
|
-
|
73
|
-
|
74
|
-
- .
|
75
|
-
- .rubocop_todo.yml
|
93
|
+
files:
|
94
|
+
- ".rubocop.yml"
|
95
|
+
- ".rubocop_todo.yml"
|
76
96
|
- COPYING
|
77
97
|
- Gemfile
|
78
98
|
- README.md
|
@@ -106,27 +126,28 @@ files:
|
|
106
126
|
- test/scap_content_parser_api_test.rb
|
107
127
|
- test/test_helper.rb
|
108
128
|
homepage: http://github.com/OpenSCAP/smart_proxy_openscap
|
109
|
-
licenses:
|
129
|
+
licenses:
|
110
130
|
- GPL-3
|
111
131
|
metadata: {}
|
112
|
-
|
113
132
|
post_install_message:
|
114
133
|
rdoc_options: []
|
115
|
-
|
116
|
-
require_paths:
|
134
|
+
require_paths:
|
117
135
|
- lib
|
118
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
119
|
-
requirements:
|
120
|
-
-
|
121
|
-
|
122
|
-
|
123
|
-
|
136
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
124
146
|
requirements: []
|
125
|
-
|
126
147
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.
|
148
|
+
rubygems_version: 2.4.6
|
128
149
|
signing_key:
|
129
150
|
specification_version: 4
|
130
151
|
summary: OpenSCAP plug-in for Foreman's smart-proxy.
|
131
152
|
test_files: []
|
132
|
-
|
153
|
+
has_rdoc:
|