scaptimony 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20141121164042_replace_arf_report_breakdown_view.rb +2 -1
- data/db/migrate/20150115155947_add_scaptimony_scap_content_digest.rb +7 -5
- data/lib/scaptimony/version.rb +1 -1
- metadata +36 -39
- data/app/assets/javascripts/scaptimony/application.js +0 -15
- data/app/assets/stylesheets/scaptimony/application.css +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c85cdf5e5200243bcbc6fd921f8e0dc8e9a60725
|
4
|
+
data.tar.gz: fd898b02bb9ccf2dfc1ead4cc2a8905e2d911c58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 753619f13db6c59ea744e91c914dbc6e8d923f6ea0cae1cfa92ee4c0a18d17dfeca5d4cae765e4289613baff3f9b3ff60ad36879acc2f8189f803c05b97af075
|
7
|
+
data.tar.gz: f0e49f0dab062c4e2ae1171bd5c92b1b836dd213658b688c2a8382c158ce55faf53507bb8d5f3f70d7bb9885e1e782b44614ec0f9f9e646d71c8256e4f863a6b
|
@@ -1,7 +1,8 @@
|
|
1
1
|
class ReplaceArfReportBreakdownView < ActiveRecord::Migration
|
2
2
|
def self.up
|
3
|
+
execute 'DROP VIEW IF EXISTS scaptimony_arf_report_breakdowns'
|
3
4
|
execute <<-SQL
|
4
|
-
CREATE
|
5
|
+
CREATE VIEW scaptimony_arf_report_breakdowns AS
|
5
6
|
SELECT
|
6
7
|
arf.id as arf_report_id,
|
7
8
|
COUNT(CASE WHEN result.name IN ('pass','fixed') THEN 1 ELSE null END) as passed,
|
@@ -2,12 +2,14 @@ require 'digest/sha2'
|
|
2
2
|
|
3
3
|
class AddScaptimonyScapContentDigest < ActiveRecord::Migration
|
4
4
|
def change
|
5
|
-
|
6
|
-
|
7
|
-
content
|
8
|
-
|
5
|
+
unless column_exists?(:scaptimony_scap_contents, :digest)
|
6
|
+
add_column :scaptimony_scap_contents, :digest, :string, :limit => 128
|
7
|
+
ScapContentHack.find_each do |content|
|
8
|
+
content.digest
|
9
|
+
content.save!
|
10
|
+
end
|
11
|
+
change_column :scaptimony_scap_contents, :digest, :string, :null => false
|
9
12
|
end
|
10
|
-
change_column :scaptimony_scap_contents, :digest, :string, :null => false
|
11
13
|
end
|
12
14
|
|
13
15
|
class ScapContentHack < ActiveRecord::Base
|
data/lib/scaptimony/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scaptimony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Šimon Lukašík"
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -65,8 +65,6 @@ files:
|
|
65
65
|
- COPYING
|
66
66
|
- README.md
|
67
67
|
- Rakefile
|
68
|
-
- app/assets/javascripts/scaptimony/application.js
|
69
|
-
- app/assets/stylesheets/scaptimony/application.css
|
70
68
|
- app/controllers/scaptimony/application_controller.rb
|
71
69
|
- app/helpers/scaptimony/application_helper.rb
|
72
70
|
- app/models/scaptimony/arf_report.rb
|
@@ -187,60 +185,59 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
185
|
version: '0'
|
188
186
|
requirements: []
|
189
187
|
rubyforge_project:
|
190
|
-
rubygems_version: 2.
|
188
|
+
rubygems_version: 2.4.5
|
191
189
|
signing_key:
|
192
190
|
specification_version: 4
|
193
191
|
summary: SCAPtimony is SCAP database and storage server
|
194
192
|
test_files:
|
193
|
+
- test/lib/scaptimony/arf_reports_helper_test.rb
|
195
194
|
- test/dummy/script/rails
|
196
|
-
- test/dummy/
|
197
|
-
- test/dummy/public/favicon.ico
|
198
|
-
- test/dummy/public/404.html
|
199
|
-
- test/dummy/public/500.html
|
200
|
-
- test/dummy/public/422.html
|
195
|
+
- test/dummy/config.ru
|
201
196
|
- test/dummy/app/views/layouts/application.html.erb
|
202
|
-
- test/dummy/app/helpers/application_helper.rb
|
203
197
|
- test/dummy/app/controllers/application_controller.rb
|
204
198
|
- test/dummy/app/assets/stylesheets/application.css
|
205
199
|
- test/dummy/app/assets/javascripts/application.js
|
206
|
-
- test/dummy/
|
207
|
-
- test/dummy/
|
208
|
-
- test/dummy/
|
209
|
-
- test/dummy/config/
|
210
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
211
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
212
|
-
- test/dummy/config/initializers/inflections.rb
|
213
|
-
- test/dummy/config/initializers/session_store.rb
|
214
|
-
- test/dummy/config/environments/development.rb
|
200
|
+
- test/dummy/app/helpers/application_helper.rb
|
201
|
+
- test/dummy/README.rdoc
|
202
|
+
- test/dummy/Rakefile
|
203
|
+
- test/dummy/config/environment.rb
|
215
204
|
- test/dummy/config/environments/test.rb
|
205
|
+
- test/dummy/config/environments/development.rb
|
216
206
|
- test/dummy/config/environments/production.rb
|
207
|
+
- test/dummy/config/initializers/inflections.rb
|
208
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
209
|
+
- test/dummy/config/initializers/mime_types.rb
|
210
|
+
- test/dummy/config/initializers/secret_token.rb
|
211
|
+
- test/dummy/config/initializers/session_store.rb
|
212
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
217
213
|
- test/dummy/config/database.yml
|
218
|
-
- test/dummy/config/environment.rb
|
219
214
|
- test/dummy/config/routes.rb
|
220
215
|
- test/dummy/config/locales/en.yml
|
221
|
-
- test/dummy/config.
|
222
|
-
- test/dummy/
|
223
|
-
- test/
|
224
|
-
- test/
|
225
|
-
- test/
|
216
|
+
- test/dummy/config/boot.rb
|
217
|
+
- test/dummy/config/application.rb
|
218
|
+
- test/dummy/public/422.html
|
219
|
+
- test/dummy/public/404.html
|
220
|
+
- test/dummy/public/favicon.ico
|
221
|
+
- test/dummy/public/500.html
|
222
|
+
- test/integration/navigation_test.rb
|
223
|
+
- test/fixtures/scaptimony/scap_content_profiles.yml
|
226
224
|
- test/fixtures/scaptimony/xccdf_rules.yml
|
227
|
-
- test/fixtures/scaptimony/policy_revisions.yml
|
228
225
|
- test/fixtures/scaptimony/arf_reports.yml
|
229
|
-
- test/fixtures/scaptimony/
|
226
|
+
- test/fixtures/scaptimony/policies.yml
|
227
|
+
- test/fixtures/scaptimony/xccdf_rule_results.yml
|
228
|
+
- test/fixtures/scaptimony/policy_revisions.yml
|
229
|
+
- test/fixtures/scaptimony/xccdf_results.yml
|
230
230
|
- test/fixtures/scaptimony/assets.yml
|
231
231
|
- test/scaptimony_test.rb
|
232
|
-
- test/lib/scaptimony/arf_reports_helper_test.rb
|
233
|
-
- test/test_helper.rb
|
234
|
-
- test/integration/navigation_test.rb
|
235
|
-
- test/models/scaptimony/scap_content_profiles_test.rb
|
236
232
|
- test/models/scaptimony/policy_revision_test.rb
|
237
|
-
- test/models/scaptimony/
|
238
|
-
- test/models/scaptimony/scap_content_test.rb
|
239
|
-
- test/models/scaptimony/xccdf_result_test.rb
|
240
|
-
- test/models/scaptimony/arf_report_breakdown_test.rb
|
241
|
-
- test/models/scaptimony/arf_report_test.rb
|
233
|
+
- test/models/scaptimony/xccdf_rule_result_test.rb
|
242
234
|
- test/models/scaptimony/asset_test.rb
|
243
235
|
- test/models/scaptimony/arf_report_raw_test.rb
|
244
|
-
- test/models/scaptimony/
|
236
|
+
- test/models/scaptimony/scap_content_profiles_test.rb
|
245
237
|
- test/models/scaptimony/policy_test.rb
|
246
|
-
|
238
|
+
- test/models/scaptimony/arf_report_test.rb
|
239
|
+
- test/models/scaptimony/xccdf_rule_test.rb
|
240
|
+
- test/models/scaptimony/xccdf_result_test.rb
|
241
|
+
- test/models/scaptimony/arf_report_breakdown_test.rb
|
242
|
+
- test/models/scaptimony/scap_content_test.rb
|
243
|
+
- test/test_helper.rb
|
@@ -1,15 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// the compiled file.
|
9
|
-
//
|
10
|
-
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
11
|
-
// GO AFTER THE REQUIRES BELOW.
|
12
|
-
//
|
13
|
-
//= require jquery
|
14
|
-
//= require jquery_ujs
|
15
|
-
//= require_tree .
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
-
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
-
*
|
11
|
-
*= require_self
|
12
|
-
*= require_tree .
|
13
|
-
*/
|