umarell 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/umarell/arguments.rb +3 -2
- data/lib/umarell/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfa5cd43ec19a2156558162faeb13f94f71e350e5232a483956857e56fc6d66b
|
4
|
+
data.tar.gz: 1f7ea6bf62742f199e9db99853c2a2804ec61da76604b9499bfd1ece823157ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94b7b47b583e23c18654e874b529a7a6e4f5ecab67f01fa87256af5290fb4ddd9aa044a96685b84ba1915c93a7f517e5a61ca7a33b94f39aa1a24a2e8d0ebc63
|
7
|
+
data.tar.gz: 56900214503d499a4737c38687445b8628df3cddf8d541af4dcb54f5d355fad76d7ee96a198c698f4471f7864354c2a66debec51241bd8403efc07680c5d36d0
|
data/lib/umarell/arguments.rb
CHANGED
@@ -9,12 +9,13 @@ module Umarell
|
|
9
9
|
|
10
10
|
alias autofix? autofix
|
11
11
|
|
12
|
+
DEFAULT_TARGET = './'
|
12
13
|
MODIFIED_FILES_TARGET = '`git ls-files -mo --exclude-standard %s`'
|
13
14
|
|
14
15
|
def initialize
|
15
16
|
@autofix = false
|
16
17
|
@modified = false
|
17
|
-
@target =
|
18
|
+
@target = DEFAULT_TARGET
|
18
19
|
end
|
19
20
|
|
20
21
|
# Parse command line arguments
|
@@ -37,7 +38,7 @@ module Umarell
|
|
37
38
|
end
|
38
39
|
|
39
40
|
def parse_target
|
40
|
-
last_argument = ARGV.pop
|
41
|
+
last_argument = ARGV.pop || DEFAULT_TARGET
|
41
42
|
@target = if @modified
|
42
43
|
MODIFIED_FILES_TARGET % last_argument
|
43
44
|
else
|
data/lib/umarell/version.rb
CHANGED