rubycritic 4.0.1 → 4.0.2

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
  SHA256:
3
- metadata.gz: d3132430741ac30bdaa6f20f560ede65e01b93acf76b7153ae19775aeb968ee4
4
- data.tar.gz: 51263545f9e96e3e17e04c2e3c43c1afe5832e112bc0f75ece347491625dc691
3
+ metadata.gz: df75e210aa0ea8009e2a23910fbd42e0e59416ed3413b887b0319747d26c0ef1
4
+ data.tar.gz: a6e3daf4bfa8853213c987a88fd58df06b06759e7e6e9e0c85bdc18e08ebed6a
5
5
  SHA512:
6
- metadata.gz: 9889018dec050aeb9ec6bb29674ae687847e94dd86cf916826af7f7f3a07946ef9885341f6c9b205ebe3c62e6f22404eeab507ef58c6936dcf738a2a3200231b
7
- data.tar.gz: e9de8a1897ca29f08a99fe912ffb78f7244305da7c63d0552f0ce0d702a0397247c91d27e25eef7937ccdd1bd13080fde8ab6b6f60ebb26d3d97999c8801b7ff
6
+ metadata.gz: e32162d4b575a62a72868927d93da26501f3911930feff237bd8db629fff87dd1b488abb513509b09a30302a0c13cdea03fe8e54ac72a3bb2d558bccc9f5b226
7
+ data.tar.gz: 55f54ae73bc65bbe10b49f086c93fea2d3d7e2bcde0e8f0bab5c2cb1df35df78500c3279a61be35fe800542382ee16d910f9c550713e224304c2edbfe23b186b
@@ -1,4 +1,8 @@
1
- # master [(unreleased)](https://github.com/whitesmith/rubycritic/compare/v4.0.1...master)
1
+ # master [(unreleased)](https://github.com/whitesmith/rubycritic/compare/v4.0.2...master)
2
+
3
+ # 4.0.2 / 2019-03-14 [(commits)](https://github.com/whitesmith/rubycritic/compare/v4.0.1...v4.0.2)
4
+
5
+ * [BUGFIX] Fix generating the default html report (by [@lightalloy][])
2
6
 
3
7
  # 4.0.1 / 2019-03-12 [(commits)](https://github.com/whitesmith/rubycritic/compare/v4.0.0...v4.0.1)
4
8
 
@@ -272,3 +276,4 @@
272
276
  [@taitran19]: https://github.com/taitran19
273
277
  [@AllanSiqueira]: https://github.com/AllanSiqueira
274
278
  [@harman28]: https://github.com/harman28
279
+ [@lightalloy]: https://github.com/lightalloy
@@ -26,7 +26,8 @@ module RubyCritic
26
26
  end
27
27
 
28
28
  def setup_formats(options)
29
- self.formats = options[:formats] || [:html]
29
+ formats = options[:formats].to_a
30
+ self.formats = formats.empty? ? [:html] : formats
30
31
  self.formatters = options[:formatters] || []
31
32
  end
32
33
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyCritic
4
- VERSION = '4.0.1'.freeze
4
+ VERSION = '4.0.2'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubycritic
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Simoes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-12 00:00:00.000000000 Z
11
+ date: 2019-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flay