scaptimony 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +7 -0
  2. data/COPYING +674 -0
  3. data/README.md +59 -0
  4. data/Rakefile +40 -0
  5. data/app/assets/javascripts/scaptimony/application.js +15 -0
  6. data/app/assets/stylesheets/scaptimony/application.css +13 -0
  7. data/app/controllers/scaptimony/application_controller.rb +4 -0
  8. data/app/helpers/scaptimony/application_helper.rb +4 -0
  9. data/app/models/scaptimony/arf_report.rb +38 -0
  10. data/app/models/scaptimony/asset.rb +4 -0
  11. data/app/models/scaptimony/policy.rb +4 -0
  12. data/app/views/layouts/scaptimony/application.html.erb +14 -0
  13. data/config/routes.rb +2 -0
  14. data/db/migrate/20141013172051_create_scaptimony_policies.rb +9 -0
  15. data/db/migrate/20141014105333_create_scaptimony_assets.rb +10 -0
  16. data/db/migrate/20141015092642_create_scaptimony_arf_reports.rb +13 -0
  17. data/db/migrate/20141015115511_add_arf_report_unique_constraint.rb +6 -0
  18. data/lib/scaptimony.rb +4 -0
  19. data/lib/scaptimony/arf_reports_helper.rb +24 -0
  20. data/lib/scaptimony/engine.rb +5 -0
  21. data/lib/scaptimony/version.rb +3 -0
  22. data/lib/tasks/scaptimony_tasks.rake +4 -0
  23. data/test/dummy/README.rdoc +261 -0
  24. data/test/dummy/Rakefile +7 -0
  25. data/test/dummy/app/assets/javascripts/application.js +15 -0
  26. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  27. data/test/dummy/app/controllers/application_controller.rb +3 -0
  28. data/test/dummy/app/helpers/application_helper.rb +2 -0
  29. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  30. data/test/dummy/config.ru +4 -0
  31. data/test/dummy/config/application.rb +59 -0
  32. data/test/dummy/config/boot.rb +10 -0
  33. data/test/dummy/config/database.yml +25 -0
  34. data/test/dummy/config/environment.rb +5 -0
  35. data/test/dummy/config/environments/development.rb +37 -0
  36. data/test/dummy/config/environments/production.rb +67 -0
  37. data/test/dummy/config/environments/test.rb +37 -0
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  39. data/test/dummy/config/initializers/inflections.rb +15 -0
  40. data/test/dummy/config/initializers/mime_types.rb +5 -0
  41. data/test/dummy/config/initializers/secret_token.rb +7 -0
  42. data/test/dummy/config/initializers/session_store.rb +8 -0
  43. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  44. data/test/dummy/config/locales/en.yml +5 -0
  45. data/test/dummy/config/routes.rb +4 -0
  46. data/test/dummy/public/404.html +26 -0
  47. data/test/dummy/public/422.html +26 -0
  48. data/test/dummy/public/500.html +25 -0
  49. data/test/dummy/public/favicon.ico +0 -0
  50. data/test/dummy/script/rails +6 -0
  51. data/test/fixtures/scaptimony/arf_reports.yml +13 -0
  52. data/test/fixtures/scaptimony/assets.yml +7 -0
  53. data/test/fixtures/scaptimony/policies.yml +7 -0
  54. data/test/integration/navigation_test.rb +10 -0
  55. data/test/lib/scaptimony/arf_reports_helper_test.rb +6 -0
  56. data/test/models/scaptimony/arf_report_test.rb +9 -0
  57. data/test/models/scaptimony/asset_test.rb +9 -0
  58. data/test/models/scaptimony/policy_test.rb +9 -0
  59. data/test/scaptimony_test.rb +7 -0
  60. data/test/test_helper.rb +15 -0
  61. metadata +172 -0
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,13 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ asset_id:
5
+ policy_id:
6
+ date: 2014-10-15 11:26:42
7
+ digest: MyString
8
+
9
+ two:
10
+ asset_id:
11
+ policy_id:
12
+ date: 2014-10-15 11:26:42
13
+ digest: MyString
@@ -0,0 +1,7 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ name: MyString
5
+
6
+ two:
7
+ name: MyString2
@@ -0,0 +1,7 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ name: MyString
5
+
6
+ two:
7
+ name: MyString2
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ module Scaptimony
4
+ class ArfReportsHelperTest < ActionView::TestCase
5
+ end
6
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module Scaptimony
4
+ class ArfReportTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module Scaptimony
4
+ class AssetTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module Scaptimony
4
+ class PolicyTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class ScaptimonyTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, Scaptimony
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
metadata ADDED
@@ -0,0 +1,172 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: scaptimony
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Šimon Lukašík
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-10-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 3.2.8
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 3.2.8
27
+ - !ruby/object:Gem::Dependency
28
+ name: sqlite3
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: |-
42
+ SCAPtimony is SCAP storage and database server build on top
43
+ of OpenSCAP library. SCAPtimony can be deployed as a part of your Rails
44
+ application (i.e. Foreman) or as a stand-alone sealed server.
45
+ email:
46
+ - slukasik@redhat.com
47
+ executables: []
48
+ extensions: []
49
+ extra_rdoc_files: []
50
+ files:
51
+ - app/views/layouts/scaptimony/application.html.erb
52
+ - app/helpers/scaptimony/application_helper.rb
53
+ - app/controllers/scaptimony/application_controller.rb
54
+ - app/assets/stylesheets/scaptimony/application.css
55
+ - app/assets/javascripts/scaptimony/application.js
56
+ - app/models/scaptimony/policy.rb
57
+ - app/models/scaptimony/arf_report.rb
58
+ - app/models/scaptimony/asset.rb
59
+ - config/routes.rb
60
+ - db/migrate/20141015115511_add_arf_report_unique_constraint.rb
61
+ - db/migrate/20141015092642_create_scaptimony_arf_reports.rb
62
+ - db/migrate/20141014105333_create_scaptimony_assets.rb
63
+ - db/migrate/20141013172051_create_scaptimony_policies.rb
64
+ - lib/scaptimony.rb
65
+ - lib/tasks/scaptimony_tasks.rake
66
+ - lib/scaptimony/engine.rb
67
+ - lib/scaptimony/version.rb
68
+ - lib/scaptimony/arf_reports_helper.rb
69
+ - COPYING
70
+ - Rakefile
71
+ - README.md
72
+ - test/dummy/script/rails
73
+ - test/dummy/Rakefile
74
+ - test/dummy/public/favicon.ico
75
+ - test/dummy/public/404.html
76
+ - test/dummy/public/500.html
77
+ - test/dummy/public/422.html
78
+ - test/dummy/app/views/layouts/application.html.erb
79
+ - test/dummy/app/helpers/application_helper.rb
80
+ - test/dummy/app/controllers/application_controller.rb
81
+ - test/dummy/app/assets/stylesheets/application.css
82
+ - test/dummy/app/assets/javascripts/application.js
83
+ - test/dummy/config/boot.rb
84
+ - test/dummy/config/application.rb
85
+ - test/dummy/config/initializers/secret_token.rb
86
+ - test/dummy/config/initializers/mime_types.rb
87
+ - test/dummy/config/initializers/backtrace_silencers.rb
88
+ - test/dummy/config/initializers/wrap_parameters.rb
89
+ - test/dummy/config/initializers/inflections.rb
90
+ - test/dummy/config/initializers/session_store.rb
91
+ - test/dummy/config/environments/development.rb
92
+ - test/dummy/config/environments/test.rb
93
+ - test/dummy/config/environments/production.rb
94
+ - test/dummy/config/database.yml
95
+ - test/dummy/config/environment.rb
96
+ - test/dummy/config/routes.rb
97
+ - test/dummy/config/locales/en.yml
98
+ - test/dummy/config.ru
99
+ - test/dummy/README.rdoc
100
+ - test/fixtures/scaptimony/policies.yml
101
+ - test/fixtures/scaptimony/arf_reports.yml
102
+ - test/fixtures/scaptimony/assets.yml
103
+ - test/scaptimony_test.rb
104
+ - test/lib/scaptimony/arf_reports_helper_test.rb
105
+ - test/test_helper.rb
106
+ - test/integration/navigation_test.rb
107
+ - test/models/scaptimony/arf_report_test.rb
108
+ - test/models/scaptimony/asset_test.rb
109
+ - test/models/scaptimony/policy_test.rb
110
+ homepage: https://github.com/OpenSCAP/scaptimony
111
+ licenses:
112
+ - GPL-3.0
113
+ metadata: {}
114
+ post_install_message:
115
+ rdoc_options: []
116
+ require_paths:
117
+ - lib
118
+ required_ruby_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ required_rubygems_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - '>='
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ requirements: []
129
+ rubyforge_project:
130
+ rubygems_version: 2.1.11
131
+ signing_key:
132
+ specification_version: 4
133
+ summary: SCAPtimony is SCAP database and storage server
134
+ test_files:
135
+ - test/dummy/script/rails
136
+ - test/dummy/Rakefile
137
+ - test/dummy/public/favicon.ico
138
+ - test/dummy/public/404.html
139
+ - test/dummy/public/500.html
140
+ - test/dummy/public/422.html
141
+ - test/dummy/app/views/layouts/application.html.erb
142
+ - test/dummy/app/helpers/application_helper.rb
143
+ - test/dummy/app/controllers/application_controller.rb
144
+ - test/dummy/app/assets/stylesheets/application.css
145
+ - test/dummy/app/assets/javascripts/application.js
146
+ - test/dummy/config/boot.rb
147
+ - test/dummy/config/application.rb
148
+ - test/dummy/config/initializers/secret_token.rb
149
+ - test/dummy/config/initializers/mime_types.rb
150
+ - test/dummy/config/initializers/backtrace_silencers.rb
151
+ - test/dummy/config/initializers/wrap_parameters.rb
152
+ - test/dummy/config/initializers/inflections.rb
153
+ - test/dummy/config/initializers/session_store.rb
154
+ - test/dummy/config/environments/development.rb
155
+ - test/dummy/config/environments/test.rb
156
+ - test/dummy/config/environments/production.rb
157
+ - test/dummy/config/database.yml
158
+ - test/dummy/config/environment.rb
159
+ - test/dummy/config/routes.rb
160
+ - test/dummy/config/locales/en.yml
161
+ - test/dummy/config.ru
162
+ - test/dummy/README.rdoc
163
+ - test/fixtures/scaptimony/policies.yml
164
+ - test/fixtures/scaptimony/arf_reports.yml
165
+ - test/fixtures/scaptimony/assets.yml
166
+ - test/scaptimony_test.rb
167
+ - test/lib/scaptimony/arf_reports_helper_test.rb
168
+ - test/test_helper.rb
169
+ - test/integration/navigation_test.rb
170
+ - test/models/scaptimony/arf_report_test.rb
171
+ - test/models/scaptimony/asset_test.rb
172
+ - test/models/scaptimony/policy_test.rb