rails-audit 0.9.0 → 0.10.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/README.md +4 -0
- data/doc/dependencies.csv +1 -1
- data/doc/dependencies.db +0 -0
- data/doc/dependencies.html +9 -4
- data/lib/rails-audit/runner.rb +14 -1
- data/lib/rails-audit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17ae0df86dbc44d3a2cdba80bfe10b225b2c94bf
|
4
|
+
data.tar.gz: 96affe19a633f65d347e8c71ab1132d9ee29a77a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65678a41217b856b79a2a1efc96164f6212862fe87f697823efb5b448facc7a2213d5f51cfe970c981addb0d1ee60889b637d114c30a6eb34d33100da34505ce
|
7
|
+
data.tar.gz: f1de45a8c923b20d4f9f00d28d134313a2e70c0c768678917eff299270d610f34b66da335bd20bb0b588a2cbd0a2de69e8535a6ce439973e61f6d364c444b8d6
|
data/README.md
CHANGED
@@ -26,6 +26,10 @@ Rails support may be disabled. Only pure Ruby audits are then executed:
|
|
26
26
|
|
27
27
|
Rails: false
|
28
28
|
|
29
|
+
To improve output to the expense of time concurreny can be disabled:
|
30
|
+
|
31
|
+
Concurrency: false
|
32
|
+
|
29
33
|
### [Brakeman](http://brakemanscanner.org/)
|
30
34
|
|
31
35
|
Brakeman is a security scanner for Rails.
|
data/doc/dependencies.csv
CHANGED
data/doc/dependencies.db
CHANGED
Binary file
|
data/doc/dependencies.html
CHANGED
@@ -31,7 +31,7 @@
|
|
31
31
|
<div class="summary hero-unit">
|
32
32
|
<h2>Dependencies</h2>
|
33
33
|
|
34
|
-
<p>As of September 12, 2013
|
34
|
+
<p>As of September 12, 2013 4:57pm</p>
|
35
35
|
|
36
36
|
<h4>
|
37
37
|
46 total
|
@@ -242,8 +242,8 @@
|
|
242
242
|
</div>
|
243
243
|
<div id="bundler" class="approved">
|
244
244
|
<h2>
|
245
|
-
<a href="http://
|
246
|
-
v1.
|
245
|
+
<a href="http://bundler.io">bundler</a>
|
246
|
+
v1.4.0.pre.2
|
247
247
|
</h2>
|
248
248
|
<table class="table table-striped table-bordered">
|
249
249
|
<thead>
|
@@ -274,6 +274,7 @@
|
|
274
274
|
<dd>powerpack</dd>
|
275
275
|
<dd>rails_best_practices</dd>
|
276
276
|
<dd>rubocop</dd>
|
277
|
+
<dd>rails-audit</dd>
|
277
278
|
</dl>
|
278
279
|
</div>
|
279
280
|
<div id="bundler-audit" class="approved">
|
@@ -970,7 +971,10 @@ extract-method refactorings still apply.</td>
|
|
970
971
|
<tbody>
|
971
972
|
<tr>
|
972
973
|
<td>Runs multiple audit and review tools to ensure quality and security of Rails projects</td>
|
973
|
-
<td
|
974
|
+
<td>
|
975
|
+
Runs multiple audit and review tools to ensure quality and security of
|
976
|
+
Rails projects
|
977
|
+
</td>
|
974
978
|
<td>
|
975
979
|
<a href="http://opensource.org/licenses/mit-license">MIT</a>
|
976
980
|
</td>
|
@@ -987,6 +991,7 @@ extract-method refactorings still apply.</td>
|
|
987
991
|
<dd>license_finder</dd>
|
988
992
|
<dd>rails_best_practices</dd>
|
989
993
|
<dd>rubocop</dd>
|
994
|
+
<dd>bundler</dd>
|
990
995
|
</dl>
|
991
996
|
</div>
|
992
997
|
<div id="rails_best_practices" class="approved">
|
data/lib/rails-audit/runner.rb
CHANGED
@@ -17,7 +17,9 @@ module RailsAudit
|
|
17
17
|
def self.run
|
18
18
|
config = load_config
|
19
19
|
|
20
|
-
|
20
|
+
concurrency = config['Concurrency'].nil? && true || config['Concurrency']
|
21
|
+
|
22
|
+
failures = concurrency && run_threads(config) || run_sequence(config)
|
21
23
|
|
22
24
|
if failures.any?
|
23
25
|
puts 'Failed tests:'
|
@@ -27,6 +29,17 @@ module RailsAudit
|
|
27
29
|
failures.none?
|
28
30
|
end
|
29
31
|
|
32
|
+
def self.run_sequence(config)
|
33
|
+
failures = []
|
34
|
+
|
35
|
+
Audits::ALL.each do |audit|
|
36
|
+
success = audit.run get_config(config, audit.get_name)
|
37
|
+
failures << audit.get_name unless success
|
38
|
+
end
|
39
|
+
|
40
|
+
failures
|
41
|
+
end
|
42
|
+
|
30
43
|
def self.run_threads(config)
|
31
44
|
failures = []
|
32
45
|
mutex = Mutex.new
|
data/lib/rails-audit/version.rb
CHANGED