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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02c4a1d31b2468844f1020aac5056eb672b9fcbf157e9a45d4b3dd02e68f56b1
4
- data.tar.gz: 777ea7314af257174ecbd72eefb09ea6db066008be331ed1483e082ffc5fd8a4
3
+ metadata.gz: dfa5cd43ec19a2156558162faeb13f94f71e350e5232a483956857e56fc6d66b
4
+ data.tar.gz: 1f7ea6bf62742f199e9db99853c2a2804ec61da76604b9499bfd1ece823157ce
5
5
  SHA512:
6
- metadata.gz: c9b17be527c2f742cc32a4b4fc8db25a9574b6983047c69bc58623f84b07cbac7a9e8fbba7c267526f6e2be8ba3510f7b55986a3fe9c46d0ba19f0f7429ac1fb
7
- data.tar.gz: 8bc7e99a7acaa2173bc90b20d802ddabf523fbb66a73399b38fb819b4319d0c37a9da4a6084392719c3d88476606ff84e1cbda9c421fb095ef6e9a2fdfa28159
6
+ metadata.gz: 94b7b47b583e23c18654e874b529a7a6e4f5ecab67f01fa87256af5290fb4ddd9aa044a96685b84ba1915c93a7f517e5a61ca7a33b94f39aa1a24a2e8d0ebc63
7
+ data.tar.gz: 56900214503d499a4737c38687445b8628df3cddf8d541af4dcb54f5d355fad76d7ee96a198c698f4471f7864354c2a66debec51241bd8403efc07680c5d36d0
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Umarell
4
4
  module Version
5
- STRING = '1.3.0'
5
+ STRING = '1.3.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: umarell
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filippo Liverani