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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 274845ed6481b4fd03edb07cc42b7aa4391ce0b2
4
- data.tar.gz: 36261cc4d6b56606f37a09e3f02eca05dfb549ba
3
+ metadata.gz: 17ae0df86dbc44d3a2cdba80bfe10b225b2c94bf
4
+ data.tar.gz: 96affe19a633f65d347e8c71ab1132d9ee29a77a
5
5
  SHA512:
6
- metadata.gz: 8738c824990a19e4d9429a28eb1a669bb95cc4f32539e17ec8023f0ebe5ebc51600f6b9a2cb3e3ce20d8b5f531061509f0dc3b844489cc390a4daa8a763c365f
7
- data.tar.gz: 923e38a8977c7506311757dcd0a5c9a66d01d09409203a95214a62d662baa2b403999d774c37c3e0cc6a939b7a9b1736196d454a3c7d4b9f2253a45e9fcacf3f
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
@@ -4,7 +4,7 @@ atomic, 1.1.14, Apache-2.0
4
4
  awesome_print, 1.1.0, MIT
5
5
  backports, 3.3.3, MIT
6
6
  brakeman, 2.1.1, MIT
7
- bundler, 1.3.5, MIT
7
+ bundler, 1.4.0.pre.2, MIT
8
8
  bundler-audit, 0.2.0, GPLv3
9
9
  cane, 2.6.0, Apache 2.0
10
10
  code_analyzer, 0.4.2, MIT
data/doc/dependencies.db CHANGED
Binary file
@@ -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 1:50pm</p>
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://gembundler.com">bundler</a>
246
- v1.3.5
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></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">
@@ -17,7 +17,9 @@ module RailsAudit
17
17
  def self.run
18
18
  config = load_config
19
19
 
20
- failures = run_threads config
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
@@ -1,7 +1,7 @@
1
1
  module RailsAudit
2
2
  class Version
3
3
  MAJOR = 0
4
- MINOR = 9
4
+ MINOR = 10
5
5
  PATCH = 0
6
6
 
7
7
  def self.to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-audit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Schramm