ruboclean 0.7.0 → 0.7.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: 87c2863ba79e2de69359cfa6d5401b391adedcdd0af495ac1bb9d24dab31d712
4
- data.tar.gz: 96e15d4e14377bae49d5f36822ff41696944098048ff1ca0b55a1eceff686afb
3
+ metadata.gz: 83d33545be3fee0dac0b9079635c279efa82b2af8b304880314be985e39302e1
4
+ data.tar.gz: 955b57ad29b70210d72c2da05b8df40027f10323c0d4f3de09a98d4c72724faf
5
5
  SHA512:
6
- metadata.gz: 220e073ea849964a2c2eceebf7516586855bc2de4dc0ab4fce74dcb2780e09aee57767ba01227fa02b2fcc4fdb8d21b117535e86d8b8ffee7270ec9d3e86a66c
7
- data.tar.gz: 4572357405026dad1a56dee3871c015327bb44be6d3a979c5ed86c8a78e4cbbec1d112a808681f5f9a7238c766b3f1b0f4346a60f987e1707c7d7d9d77ea7adb
6
+ metadata.gz: 9a906081afe314920743999bc31471cd1c6e2837281409e9babf3bb68149dd7d094eb8a0942f9efa1bd4eec7f0a354a3d5f4530a4169b1ef039c0c4f61dab460
7
+ data.tar.gz: '097a82f5d6654f12fc5104d0f463e01204dbbe3c143819c93d8567e13f6bc5d0ecb06512775732884cf3f11f63b9dc834ce77c7658689ebf3dfb2308193f9a4b'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruboclean (0.7.0)
4
+ ruboclean (0.7.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ruboclean
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
data/lib/ruboclean.rb CHANGED
@@ -15,15 +15,20 @@ require "ruboclean/version"
15
15
 
16
16
  # Ruboclean entry point
17
17
  module Ruboclean
18
- def self.run_from_cli!(args)
19
- runner = Runner.new(args)
20
- logger = Ruboclean::Logger.new(runner.verbose? ? :verbose : :none)
18
+ def self.run_from_cli!(args) # rubocop:disable Metrics/MethodLength
19
+ if args.include?("--version")
20
+ print Ruboclean::VERSION
21
+ else
22
+ runner = Runner.new(args)
23
+ logger = Ruboclean::Logger.new(runner.verbose? ? :verbose : :none)
24
+
25
+ logger.verbose "Using input path '#{runner.input_path}' ... "
26
+ changed = runner.run!
27
+ logger.verbose post_execution_message(changed, runner.verify?)
21
28
 
22
- logger.verbose "Using input path '#{runner.input_path}' ... "
23
- changed = runner.run!
24
- logger.verbose post_execution_message(changed, runner.verify?)
29
+ exit !changed if runner.verify?
30
+ end
25
31
 
26
- exit !changed if runner.verify?
27
32
  exit 0
28
33
  end
29
34
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboclean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - lxxxvi