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 +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/rubycritic/commands/compare.rb +1 -1
- data/lib/rubycritic/source_control_systems/git.rb +2 -2
- data/lib/rubycritic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc68d230e7fdaaa4cd295dff2293e5ddf0ea81f4
|
4
|
+
data.tar.gz: d837d86ada9350d0a08b1a984bd24b003b5a49f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
@@ -52,11 +52,11 @@ module RubyCritic
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def self.switch_branch(branch)
|
55
|
-
uncommitted_changes? ?
|
55
|
+
uncommitted_changes? ? abort('Uncommitted changes are present.') : `git checkout #{branch}`
|
56
56
|
end
|
57
57
|
|
58
58
|
def self.uncommitted_changes?
|
59
|
-
|
59
|
+
!`git ls-files --other --exclude-standard --directory`.empty? || !`git status --porcelain`.empty?
|
60
60
|
end
|
61
61
|
|
62
62
|
def self.modified_files
|
data/lib/rubycritic/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flay
|