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 CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA512:
3
- data.tar.gz: 1e3762a0add8f215482859c23933ef292a73c2512d18100d06ae47a452c4607a7ae65787a9c7adec74ceee8bf432461190eca7e23e61f8e8023939491285ab62
4
- metadata.gz: 6833ac54593b8ce05f55570e9aba27df9c42041721dd5e8e84ceb70ee0331cb643b092297e76f8ce515f3ba87c05acf521e76617ae2133c46da6c411e11c1739
5
- SHA1:
6
- data.tar.gz: 451634ad2aaf6c9b1f7cf19c3a99a18dea15d097
7
- metadata.gz: 50bd53594454c8b43afd26904e978a01a8a8004c
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
@@ -1,6 +1,8 @@
1
1
  require 'rake'
2
2
  require 'rake/testtask'
3
3
 
4
+ Bundler::GemHelper.install_tasks
5
+
4
6
  desc 'Default: run unit tests.'
5
7
  task :default => :test
6
8
 
@@ -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 => file.size, :xml => file.read }
77
+ { :size => File.size(file), :xml => file.read }
76
78
  end
77
79
  end
78
80
  end
@@ -10,6 +10,6 @@
10
10
 
11
11
  module Proxy
12
12
  module OpenSCAP
13
- VERSION = '0.5.4'
13
+ VERSION = '0.6.0'
14
14
  end
15
15
  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.5.4
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.0
5
5
  platform: ruby
6
- authors:
7
- - !binary |
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
- date: 2016-06-02 00:00:00 Z
17
- dependencies:
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
- prerelease: false
21
- requirement: &id001 !ruby/object:Gem::Requirement
22
- requirements:
23
- - &id002
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
- requirement: &id003 !ruby/object:Gem::Requirement
33
- requirements:
34
- - *id002
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
- requirement: &id004 !ruby/object:Gem::Requirement
41
- requirements:
42
- - *id002
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
- requirement: &id005 !ruby/object:Gem::Requirement
49
- requirements:
50
- - *id002
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
- requirement: &id006 !ruby/object:Gem::Requirement
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
- version_requirements: *id006
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
- files:
74
- - .rubocop.yml
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
- - *id002
121
- required_rubygems_version: !ruby/object:Gem::Requirement
122
- requirements:
123
- - *id002
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.0.17
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: