ruumba 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fafd39b3906f96cb173baba1641bbfa0777a4b3c
4
- data.tar.gz: 0dba64840915c70dbebe88abf2967ff6d7f446e8
3
+ metadata.gz: a94082b1dbd3bce02b2320be4bc6244904fe7961
4
+ data.tar.gz: e6134104091c61eef3dee8d12efb1c1cf528bb4e
5
5
  SHA512:
6
- metadata.gz: 2904ae4dba8f24ff05aff0edaaf0402fdb595c014fe7cd012451520e376afd029088c4935b87e2035d35b39088262acbb61fd1e6d0564a4c7b5f09bf4de71953
7
- data.tar.gz: f751620c7c88f2e4cbec5467584f723c49e97c45d3e1e74f2271366f727da6d83888b84485a509acf7bd10cd4c9dbe1167206be9e980a0e2d34d4db46298f7a9
6
+ metadata.gz: c474cc0665b9c5189e70d381f2ed5c980ba5d2199d62b9a8b9d77a652fc87733b5a83079a5a9b5d03c886db205a11039364db5155a61fbefdbefd333abaa2d52
7
+ data.tar.gz: 96a414167f4f47fe13203f695db8d6a6bc8a01bfc33c1c420f7407f6dba3b6e996d498141861df9f97b76895f18eb2b9046f4969054dc1c6ac764a2105e35e7a
data/README.md CHANGED
@@ -68,13 +68,13 @@ cannot apply. You can disable them in your Ruumba config file:
68
68
  ```yaml
69
69
  Style/FrozenStringLiteralComment:
70
70
  Enabled: false
71
- Layout/AlignHash:
71
+ Layout/HashAlignment:
72
72
  Enabled: false
73
- Layout/AlignParameters:
73
+ Layout/ParameterAlignment:
74
74
  Enabled: false
75
75
  Layout/IndentationWidth:
76
76
  Enabled: false
77
- Layout/TrailingBlankLines:
77
+ Layout/TrailingEmptyLines:
78
78
  Enabled: false
79
79
  ```
80
80
 
data/bin/ruumba CHANGED
@@ -104,6 +104,11 @@ opts_parser = OptionParser.new do |opts|
104
104
  options[:arguments] << '--auto-correct'
105
105
  options[:auto_correct] = true
106
106
  end
107
+
108
+ opts.on(nil, '--safe-auto-correct', "Run auto-correct only when it's safe.") do
109
+ options[:arguments] << '--safe-auto-correct'
110
+ options[:auto_correct] = true
111
+ end
107
112
  end
108
113
 
109
114
  begin
@@ -115,7 +115,9 @@ module Ruumba
115
115
  if region[0] == '#'
116
116
  region.gsub!(/^ /, '#')
117
117
  region.gsub!(/^(?!#)/, '#')
118
- elsif match_marker
118
+ end
119
+
120
+ if match_marker
119
121
  region.prepend("\n", match_marker, "\n")
120
122
  region.concat("\n", match_marker, "\n")
121
123
  end
@@ -5,6 +5,6 @@
5
5
  module Ruumba
6
6
  # Provides the ruumba version
7
7
  module Version
8
- STRING = '0.1.14'
8
+ STRING = '0.1.15'
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruumba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Weinstein
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-11-07 00:00:00.000000000 Z
14
+ date: 2020-05-19 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rubocop