rubycritic 3.5.0 → 3.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6299ec37fabeb3fb630a70326b39377eee3aa4c4
4
- data.tar.gz: c82518cf3a9c6120e109399fb967ede60a38b7bf
3
+ metadata.gz: bc68d230e7fdaaa4cd295dff2293e5ddf0ea81f4
4
+ data.tar.gz: d837d86ada9350d0a08b1a984bd24b003b5a49f1
5
5
  SHA512:
6
- metadata.gz: e9df974efb0abbf35414284b494b4295a8b927d8c5d7c7a688dcb22666dfb7b2d2b183fa0621f1b50a70fe82f5e9376f7d5c5b3022305ce850fdfbd100b5d730
7
- data.tar.gz: e57225932ea86556058a25b9f06fe6068457edd1d127abdbdbda126d040dc62a8964eb4bc6abcda4f4b39ba43aa7626078ba81d8cd6e7ff966e4ec10be72a8cc
6
+ metadata.gz: 78942609220a7083dcd95faa4cb79d4fd4950be9e103dcf5ea7740a84a2301a7f9d1b0f2f2a4349a8b234c93c0de7469e4695b081921697908df2aed456df4e3
7
+ data.tar.gz: c672a98d1180779fd48d70fa9fbb434889a3cc98e14cddf08f215f139b36d21e4d7d5c5f71243d07782a2157f8000cbbbc3cd40a76f62e7cc6fafbeda8861df0
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- # master [(unreleased)](https://github.com/whitesmith/rubycritic/compare/v3.5.0...master)
1
+ # master [(unreleased)](https://github.com/whitesmith/rubycritic/compare/v3.5.1...master)
2
+
3
+ # 3.5.1 / 2018-09-05 [(commits)](https://github.com/whitesmith/rubycritic/compare/v3.5.0...v3.5.1)
4
+
5
+ * [BUGFIX] Fix branches score comparison when threshold is 0 (by [@antoineLeclercq][])
2
6
 
3
7
  # 3.5.0 / 2018-09-03 [(commits)](https://github.com/whitesmith/rubycritic/compare/v3.4.0...v3.5.0)
4
8
 
@@ -244,3 +248,4 @@
244
248
  [@joshrpowell]: https://github.com/joshrpowell
245
249
  [@HemanthMudalaiah]: https://github.com/HemanthMudalaiah
246
250
  [@SuperSandro2000]: https://github.com/SuperSandro2000
251
+ [@antoineLeclercq]: https://github.com/antoineLeclercq
@@ -76,7 +76,7 @@ module RubyCritic
76
76
  end
77
77
 
78
78
  def mark_build_fail?
79
- Config.threshold_score > 0 && threshold_reached?
79
+ Config.threshold_score >= 0 && threshold_reached?
80
80
  end
81
81
 
82
82
  def threshold_reached?
@@ -52,11 +52,11 @@ module RubyCritic
52
52
  end
53
53
 
54
54
  def self.switch_branch(branch)
55
- uncommitted_changes? ? `git checkout #{branch}` : abort('Uncommitted changes are present.')
55
+ uncommitted_changes? ? abort('Uncommitted changes are present.') : `git checkout #{branch}`
56
56
  end
57
57
 
58
58
  def self.uncommitted_changes?
59
- `git ls-files --other --exclude-standard --directory`.empty? && `git status --porcelain`.empty?
59
+ !`git ls-files --other --exclude-standard --directory`.empty? || !`git status --porcelain`.empty?
60
60
  end
61
61
 
62
62
  def self.modified_files
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyCritic
4
- VERSION = '3.5.0'.freeze
4
+ VERSION = '3.5.1'.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: 3.5.0
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Simoes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-03 00:00:00.000000000 Z
11
+ date: 2018-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flay