immosquare-cleaner 0.1.75 → 0.1.76

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
  SHA256:
3
- metadata.gz: 969ab498986c59a2c92a63cfb84c338dec84269688eb8ff5d18fadda3edc3615
4
- data.tar.gz: b6d54676b6acdf359f1eeb6cffdcc7ebd39e11dad6504304db102085ba2ab01a
3
+ metadata.gz: e15be9a3bb8efbbe08399d5bb73f355eaad049e30b78785ba8259ebb7355ec37
4
+ data.tar.gz: 81ba7269dc35c045b3339a2903be46e7bb827ef09defce8eb9d615e625d0967c
5
5
  SHA512:
6
- metadata.gz: de65dff9503382b33efaff275354650aa569d36d99a80f60cecb18a63df2cc0ed557714101833dc236882eb76481ef2e8cc6658644b32140ce33cf2e70efb9a1
7
- data.tar.gz: c1388e7a5109a04bb5c22bfed7aa14c0d99e41507369ab2a09ae3048a1f1ba82dc33d05d23bc80a1cff152c24b708d386ef7f8d7a81c4248273b273a39aa14fc
6
+ metadata.gz: 4000da3a2e542830dd2e5964d421099480d95bc7bc5f6380dba01f99d59f1c90af0fad4cedab107723b58fd217b720ad6cc8cdf34b55203a2715c1dc77f9d531
7
+ data.tar.gz: b04f1e509f1c17cec60f606d6f6dffcf0d6d7e4942ced834ca113afcee77d09eec8594345904dca41103dd8e5e2c19947d4c224ca7f8ea8c0d097c36f548e233
@@ -1,3 +1,3 @@
1
1
  module ImmosquareCleaner
2
- VERSION = "0.1.75".freeze
2
+ VERSION = "0.1.76".freeze
3
3
  end
@@ -191,18 +191,21 @@ module ImmosquareCleaner
191
191
  File.normalize_last_line(file_path)
192
192
 
193
193
  ##============================================================##
194
- ## Shell files (.sh)
194
+ ## Shell files (.sh) and other shell files
195
+ ## (Attention : certains fichiers peuvent ne pas avoir de point devant,
196
+ ## car ils sont parfois utilisés comme liens symboliques synchronisés ou fichiers de config globaux.)
197
+ ## Ne pas inclure de fichiers non shell (ex: fish, csh, tcsh) car shfmt ne les supporte pas.
195
198
  ## ---------
196
199
  ## Uses shfmt to format shell scripts with 2-space indentation
197
200
  ## Checks if shfmt is available before processing
198
201
  ##============================================================##
199
- elsif file_path.end_with?(".sh")
202
+ elsif file_path.end_with?(".sh", "bash", "zsh", "zshrc", "bashrc", "bash_profile", "zprofile")
200
203
  if system("which shfmt > /dev/null 2>&1")
201
204
  cmds = ["shfmt -i 2 -w \"#{file_path}\""]
202
205
  launch_cmds(cmds)
203
206
  File.normalize_last_line(file_path)
204
207
  else
205
- puts "ERROR: shfmt is not installed. Please install it with: brew install shfmt"
208
+ puts("ERROR: shfmt is not installed. Please install it with: brew install shfmt")
206
209
  end
207
210
 
208
211
  ##============================================================##
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: immosquare-cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.75
4
+ version: 0.1.76
5
5
  platform: ruby
6
6
  authors:
7
7
  - immosquare