csp_report 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +23 -0
- data/README.md +70 -20
- data/config/routes.rb +3 -1
- data/lib/csp_report/version.rb +1 -1
- data/lib/generators/csp_report/csp_declaration_generator.rb +1 -1
- data/lib/generators/csp_report/initializer_install_generator.rb +18 -0
- data/lib/generators/csp_report/install_generator.rb +41 -7
- data/lib/generators/csp_report/migration_generator.rb +15 -0
- data/lib/generators/csp_report/mount_generator.rb +17 -0
- data/lib/generators/templates/csp_report_initializer.erb +3 -0
- data/spec/api/csp_report_create_spec.rb +19 -0
- data/spec/controllers/home_controller_spec.rb +5 -0
- data/spec/dummy/app/assets/javascripts/home.js +2 -0
- data/spec/dummy/app/assets/stylesheets/home.css.scss +3 -0
- data/spec/dummy/app/controllers/home_controller.rb +5 -0
- data/spec/dummy/app/helpers/home_helper.rb +2 -0
- data/spec/dummy/app/views/home/index.html.haml +10 -0
- data/spec/dummy/config/routes.rb +2 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/log/development.log +1101 -0
- data/spec/dummy/log/test.log +26944 -0
- data/spec/dummy/tmp/cache/assets/development/sass/3993bbee5479f52ce0cb34d1bfbe0a6755e8c605/home.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1638f87db345b13872695759502b54fe +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1c9faaf28d05409b88ad3113374d613c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/73cf352579b646a784a2780873ee5ea8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a9f028f7a492b5907ed80268be8f50f4 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b878faf942403e313a5b103e5d80488e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f1663d34d4b6003379113df98f1433a5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/3993bbee5479f52ce0cb34d1bfbe0a6755e8c605/home.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1638f87db345b13872695759502b54fe +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1c9faaf28d05409b88ad3113374d613c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b878faf942403e313a5b103e5d80488e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f1663d34d4b6003379113df98f1433a5 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/features/csp_report/csp_reports_report_by_ip_spec.rb +13 -0
- data/spec/generators/csp_report/initializer_install_generator_spec.rb +48 -0
- data/spec/generators/csp_report/mount_generator_spec.rb +45 -0
- data/spec/routing/csp_reports_routes_spec.rb +19 -0
- data/spec/spec_helper.rb +67 -48
- data/spec/support/api_helper.rb +14 -0
- metadata +138 -9
- data/spec/generators/csp_report/install_generators_spec.rb +0 -40
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/spec/dummy/tmp/cache/assets/test/sass/3993bbee5479f52ce0cb34d1bfbe0a6755e8c605/home.css.scssc
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'CspReport report by IP view' do
|
4
|
+
before(:each) do
|
5
|
+
@localhost4 = FactoryGirl.create(:local_inline)
|
6
|
+
@localhost4_2 = FactoryGirl.create(:local_home_index_inline)
|
7
|
+
@localhost6 = FactoryGirl.create(:local_ipv6_home_index_inline)
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'should display each IP only once' do
|
11
|
+
visit csp_reports_report_by_ip_path
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'genspec'
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
# Can work if we simulate the app repo. need to find a way to have it use
|
6
|
+
# the dummy repo
|
7
|
+
module CspReport
|
8
|
+
describe :"csp_report:initializer_install" do
|
9
|
+
|
10
|
+
INITIALIZER_PATH = "config/initializers"
|
11
|
+
INITIALIZER_FILE = INITIALIZER_PATH + "/csp_report.rb"
|
12
|
+
|
13
|
+
def content_regexp(mount_point)
|
14
|
+
/MOUNT_POINT\s*=\s*['|"]#{mount_point}['|"]/
|
15
|
+
end
|
16
|
+
|
17
|
+
within_source_root do
|
18
|
+
FileUtils.mkdir_p INITIALIZER_PATH
|
19
|
+
end
|
20
|
+
|
21
|
+
context "with no argument" do
|
22
|
+
it "should generate successfully" do
|
23
|
+
subject.should generate
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should put the right content in the initializer" do
|
27
|
+
# csp is the default mount point
|
28
|
+
subject.should generate {
|
29
|
+
File.read(INITIALIZER_FILE).should =~ content_regexp('csp')
|
30
|
+
}
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
with_args :foo do
|
35
|
+
it "should generate successfully" do
|
36
|
+
subject.should generate
|
37
|
+
end
|
38
|
+
|
39
|
+
it "should put the right content in the initializer" do
|
40
|
+
# csp is the default mount point
|
41
|
+
subject.should generate do
|
42
|
+
File.read(INITIALIZER_FILE).should =~ content_regexp('foo')
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'genspec'
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
# Can work if we simulate the app repo. need to find a way to have it use
|
6
|
+
# the dummy repo
|
7
|
+
module CspReport
|
8
|
+
describe :"csp_report:mount" do
|
9
|
+
|
10
|
+
def mount_string(mount_point)
|
11
|
+
"\n mount CspReport::Engine, at: '#{mount_point}'"
|
12
|
+
end
|
13
|
+
|
14
|
+
within_source_root do
|
15
|
+
FileUtils.mkdir_p "config"
|
16
|
+
FileUtils.touch "config/routes.rb"
|
17
|
+
end
|
18
|
+
|
19
|
+
context "with no argument" do
|
20
|
+
it "should generate successfully" do
|
21
|
+
subject.should generate
|
22
|
+
end
|
23
|
+
|
24
|
+
it "should mount the gem in the routes" do
|
25
|
+
# This checks that you call the inject_into_file with exactly this content.
|
26
|
+
# not very practical.
|
27
|
+
# csp is the default mount point
|
28
|
+
subject.should inject_into_file("config/routes.rb",
|
29
|
+
mount_string('csp'))
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
with_args :foo do
|
34
|
+
it "should generate successfully" do
|
35
|
+
subject.should generate
|
36
|
+
end
|
37
|
+
|
38
|
+
it "should mount the gem in the routes" do
|
39
|
+
subject.should inject_into_file("config/routes.rb",
|
40
|
+
mount_string('foo'))
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'csp_report routing' do
|
4
|
+
routes { CspReport::Engine.routes }
|
5
|
+
# # Figure out where this method is coming from
|
6
|
+
# assert_routing '/csp_report/csp_reports', controller: 'csp_reports', action: 'index'
|
7
|
+
it 'should respond to index request' do
|
8
|
+
get('/csp_reports').should route_to 'csp_report/csp_reports#index'
|
9
|
+
end
|
10
|
+
it 'should respond to create requests' do
|
11
|
+
post('/csp_reports').should route_to 'csp_report/csp_reports#create'
|
12
|
+
end
|
13
|
+
it 'should respond to delete requests' do
|
14
|
+
delete('/csp_reports/1').should route_to 'csp_report/csp_reports#destroy', id: '1'
|
15
|
+
end
|
16
|
+
it 'should respond to delete_all requests' do
|
17
|
+
get('/csp_reports/destroy_all').should route_to 'csp_report/csp_reports#destroy_all'
|
18
|
+
end
|
19
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,49 +1,68 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
require '
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
#
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
#
|
14
|
-
#
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
#
|
24
|
-
|
25
|
-
|
26
|
-
#
|
27
|
-
#
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
1
|
+
require 'rubygems'
|
2
|
+
require 'spork'
|
3
|
+
#uncomment the following line to use spork with the debugger
|
4
|
+
#require 'spork/ext/ruby-debug'
|
5
|
+
|
6
|
+
Spork.prefork do
|
7
|
+
# Loading more in this block will cause your tests to run faster. However,
|
8
|
+
# if you change any configuration or code from libraries loaded here, you'll
|
9
|
+
# need to restart spork for it take effect.
|
10
|
+
|
11
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
12
|
+
ENV["RAILS_ENV"] ||= 'test'
|
13
|
+
# Necessary to load the dummy application context and therefore be able to use
|
14
|
+
# the engine in the integrated context of a rails app
|
15
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
16
|
+
require 'rack/test'
|
17
|
+
require 'rspec/rails'
|
18
|
+
require 'rspec/autorun'
|
19
|
+
require 'factory_girl'
|
20
|
+
require 'capybara/rspec'
|
21
|
+
|
22
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
23
|
+
# in spec/support/ and its subdirectories.
|
24
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
25
|
+
|
26
|
+
# Checks for pending migrations before tests are run.
|
27
|
+
# If you are not using ActiveRecord, you can remove this line.
|
28
|
+
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
|
29
|
+
|
30
|
+
FactoryGirl.find_definitions
|
31
|
+
|
32
|
+
RSpec.configure do |config|
|
33
|
+
# For engine testing. Makes the Engine routes helpers available to the test files
|
34
|
+
config.include CspReport::Engine.routes.url_helpers
|
35
|
+
|
36
|
+
# ## Mock Framework
|
37
|
+
#
|
38
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
39
|
+
#
|
40
|
+
# config.mock_with :mocha
|
41
|
+
# config.mock_with :flexmock
|
42
|
+
# config.mock_with :rr
|
43
|
+
|
44
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
45
|
+
# config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
46
|
+
|
47
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
48
|
+
# examples within a transaction, remove the following line or assign false
|
49
|
+
# instead of true.
|
50
|
+
config.use_transactional_fixtures = true
|
51
|
+
|
52
|
+
# If true, the base class of anonymous controllers will be inferred
|
53
|
+
# automatically. This will be the default behavior in future versions of
|
54
|
+
# rspec-rails.
|
55
|
+
config.infer_base_class_for_anonymous_controllers = false
|
56
|
+
|
57
|
+
# Run specs in random order to surface order dependencies. If you find an
|
58
|
+
# order dependency and want to debug it, you can fix the order by providing
|
59
|
+
# the seed, which is printed after each run.
|
60
|
+
# --seed 1234
|
61
|
+
config.order = "random"
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
Spork.each_run do
|
66
|
+
# This code will be run each time you run your specs.
|
67
|
+
|
49
68
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csp_report
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregory Bataille
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 4.0.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: colorize
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.5.8
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.5.8
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: sqlite3
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +150,62 @@ dependencies:
|
|
136
150
|
- - ~>
|
137
151
|
- !ruby/object:Gem::Version
|
138
152
|
version: 0.2.8
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: guard
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ~>
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 1.8.1
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ~>
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 1.8.1
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: guard-spork
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ~>
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 1.5.1
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ~>
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 1.5.1
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: guard-rspec
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ~>
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 3.0.2
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ~>
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 3.0.2
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: terminal-notifier-guard
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ~>
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 1.5.3
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ~>
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 1.5.3
|
139
209
|
description: Provide reporting and analysis of your site CSP violations
|
140
210
|
email:
|
141
211
|
- gbataille.dev@gmail.com
|
@@ -159,15 +229,27 @@ files:
|
|
159
229
|
- lib/csp_report/version.rb
|
160
230
|
- lib/csp_report.rb
|
161
231
|
- lib/generators/csp_report/csp_declaration_generator.rb
|
232
|
+
- lib/generators/csp_report/initializer_install_generator.rb
|
162
233
|
- lib/generators/csp_report/install_generator.rb
|
234
|
+
- lib/generators/csp_report/migration_generator.rb
|
235
|
+
- lib/generators/csp_report/mount_generator.rb
|
236
|
+
- lib/generators/templates/csp_report_initializer.erb
|
163
237
|
- MIT-LICENSE
|
164
238
|
- Rakefile
|
165
239
|
- README.md
|
240
|
+
- CHANGELOG
|
241
|
+
- spec/api/csp_report_create_spec.rb
|
166
242
|
- spec/controllers/csp_report/csp_reports_controller_spec.rb
|
243
|
+
- spec/controllers/home_controller_spec.rb
|
167
244
|
- spec/dummy/app/assets/javascripts/application.js
|
245
|
+
- spec/dummy/app/assets/javascripts/home.js
|
168
246
|
- spec/dummy/app/assets/stylesheets/application.css
|
247
|
+
- spec/dummy/app/assets/stylesheets/home.css.scss
|
169
248
|
- spec/dummy/app/controllers/application_controller.rb
|
249
|
+
- spec/dummy/app/controllers/home_controller.rb
|
170
250
|
- spec/dummy/app/helpers/application_helper.rb
|
251
|
+
- spec/dummy/app/helpers/home_helper.rb
|
252
|
+
- spec/dummy/app/views/home/index.html.haml
|
171
253
|
- spec/dummy/app/views/layouts/application.html.erb
|
172
254
|
- spec/dummy/bin/bundle
|
173
255
|
- spec/dummy/bin/rails
|
@@ -200,30 +282,48 @@ files:
|
|
200
282
|
- spec/dummy/public/favicon.ico
|
201
283
|
- spec/dummy/Rakefile
|
202
284
|
- spec/dummy/README.rdoc
|
285
|
+
- spec/dummy/tmp/cache/assets/development/sass/3993bbee5479f52ce0cb34d1bfbe0a6755e8c605/home.css.scssc
|
286
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
287
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/1638f87db345b13872695759502b54fe
|
288
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/1c9faaf28d05409b88ad3113374d613c
|
289
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
290
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
291
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/73cf352579b646a784a2780873ee5ea8
|
292
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/a9f028f7a492b5907ed80268be8f50f4
|
293
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/b878faf942403e313a5b103e5d80488e
|
294
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
295
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
296
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/f1663d34d4b6003379113df98f1433a5
|
297
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
298
|
+
- spec/dummy/tmp/cache/assets/test/sass/3993bbee5479f52ce0cb34d1bfbe0a6755e8c605/home.css.scssc
|
203
299
|
- spec/dummy/tmp/cache/assets/test/sass/745019acb880ec9412f97713489f02ba42209a06/csp_report.css.sassc
|
204
300
|
- spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
301
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/1638f87db345b13872695759502b54fe
|
302
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/1c9faaf28d05409b88ad3113374d613c
|
205
303
|
- spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
206
304
|
- spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
207
305
|
- spec/dummy/tmp/cache/assets/test/sprockets/4949b199f7a3f61704ee406dfc99e38c
|
208
306
|
- spec/dummy/tmp/cache/assets/test/sprockets/9b94cd42c6d3c0778772d609a4d7006d
|
307
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/b878faf942403e313a5b103e5d80488e
|
209
308
|
- spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
210
309
|
- spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
211
310
|
- spec/dummy/tmp/cache/assets/test/sprockets/dc4c1ce2dc434402713320ef23981262
|
311
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/f1663d34d4b6003379113df98f1433a5
|
212
312
|
- spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
213
313
|
- spec/factories/csp_report_csp_reports.rb
|
214
314
|
- spec/features/csp_report/csp_reports_index_spec.rb
|
215
|
-
- spec/
|
315
|
+
- spec/features/csp_report/csp_reports_report_by_ip_spec.rb
|
316
|
+
- spec/generators/csp_report/initializer_install_generator_spec.rb
|
317
|
+
- spec/generators/csp_report/mount_generator_spec.rb
|
216
318
|
- spec/models/csp_report/csp_report_spec.rb
|
319
|
+
- spec/routing/csp_reports_routes_spec.rb
|
217
320
|
- spec/spec_helper.rb
|
321
|
+
- spec/support/api_helper.rb
|
218
322
|
homepage: http://www.github.com/gbataille/csp_report
|
219
323
|
licenses:
|
220
324
|
- MIT
|
221
325
|
metadata: {}
|
222
|
-
post_install_message:
|
223
|
-
The model changed in v0.2.0. Make sure to run both
|
224
|
-
rake csp_report:install:migrations
|
225
|
-
rake db:migrate
|
226
|
-
after upgrading
|
326
|
+
post_install_message: ''
|
227
327
|
rdoc_options: []
|
228
328
|
require_paths:
|
229
329
|
- lib
|
@@ -244,11 +344,18 @@ signing_key:
|
|
244
344
|
specification_version: 4
|
245
345
|
summary: Provide reporting and analysis of your site CSP violations
|
246
346
|
test_files:
|
347
|
+
- spec/api/csp_report_create_spec.rb
|
247
348
|
- spec/controllers/csp_report/csp_reports_controller_spec.rb
|
349
|
+
- spec/controllers/home_controller_spec.rb
|
248
350
|
- spec/dummy/app/assets/javascripts/application.js
|
351
|
+
- spec/dummy/app/assets/javascripts/home.js
|
249
352
|
- spec/dummy/app/assets/stylesheets/application.css
|
353
|
+
- spec/dummy/app/assets/stylesheets/home.css.scss
|
250
354
|
- spec/dummy/app/controllers/application_controller.rb
|
355
|
+
- spec/dummy/app/controllers/home_controller.rb
|
251
356
|
- spec/dummy/app/helpers/application_helper.rb
|
357
|
+
- spec/dummy/app/helpers/home_helper.rb
|
358
|
+
- spec/dummy/app/views/home/index.html.haml
|
252
359
|
- spec/dummy/app/views/layouts/application.html.erb
|
253
360
|
- spec/dummy/bin/bundle
|
254
361
|
- spec/dummy/bin/rails
|
@@ -281,18 +388,40 @@ test_files:
|
|
281
388
|
- spec/dummy/public/favicon.ico
|
282
389
|
- spec/dummy/Rakefile
|
283
390
|
- spec/dummy/README.rdoc
|
391
|
+
- spec/dummy/tmp/cache/assets/development/sass/3993bbee5479f52ce0cb34d1bfbe0a6755e8c605/home.css.scssc
|
392
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
393
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/1638f87db345b13872695759502b54fe
|
394
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/1c9faaf28d05409b88ad3113374d613c
|
395
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
396
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
397
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/73cf352579b646a784a2780873ee5ea8
|
398
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/a9f028f7a492b5907ed80268be8f50f4
|
399
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/b878faf942403e313a5b103e5d80488e
|
400
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
401
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
402
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/f1663d34d4b6003379113df98f1433a5
|
403
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
404
|
+
- spec/dummy/tmp/cache/assets/test/sass/3993bbee5479f52ce0cb34d1bfbe0a6755e8c605/home.css.scssc
|
284
405
|
- spec/dummy/tmp/cache/assets/test/sass/745019acb880ec9412f97713489f02ba42209a06/csp_report.css.sassc
|
285
406
|
- spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
407
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/1638f87db345b13872695759502b54fe
|
408
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/1c9faaf28d05409b88ad3113374d613c
|
286
409
|
- spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
287
410
|
- spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
288
411
|
- spec/dummy/tmp/cache/assets/test/sprockets/4949b199f7a3f61704ee406dfc99e38c
|
289
412
|
- spec/dummy/tmp/cache/assets/test/sprockets/9b94cd42c6d3c0778772d609a4d7006d
|
413
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/b878faf942403e313a5b103e5d80488e
|
290
414
|
- spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
291
415
|
- spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
292
416
|
- spec/dummy/tmp/cache/assets/test/sprockets/dc4c1ce2dc434402713320ef23981262
|
417
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/f1663d34d4b6003379113df98f1433a5
|
293
418
|
- spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
294
419
|
- spec/factories/csp_report_csp_reports.rb
|
295
420
|
- spec/features/csp_report/csp_reports_index_spec.rb
|
296
|
-
- spec/
|
421
|
+
- spec/features/csp_report/csp_reports_report_by_ip_spec.rb
|
422
|
+
- spec/generators/csp_report/initializer_install_generator_spec.rb
|
423
|
+
- spec/generators/csp_report/mount_generator_spec.rb
|
297
424
|
- spec/models/csp_report/csp_report_spec.rb
|
425
|
+
- spec/routing/csp_reports_routes_spec.rb
|
298
426
|
- spec/spec_helper.rb
|
427
|
+
- spec/support/api_helper.rb
|