immosquare-cleaner 0.1.75 → 0.1.77

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: 4dcf780bea36b1c133a1fd6376c5a945076a75a6318a7609ffd102e6ce29c7c5
4
+ data.tar.gz: 30bba6cc12256047e7efb85f3ae0ffafdc32bd8d15e71afe2fb02faf7f4b102d
5
5
  SHA512:
6
- metadata.gz: de65dff9503382b33efaff275354650aa569d36d99a80f60cecb18a63df2cc0ed557714101833dc236882eb76481ef2e8cc6658644b32140ce33cf2e70efb9a1
7
- data.tar.gz: c1388e7a5109a04bb5c22bfed7aa14c0d99e41507369ab2a09ae3048a1f1ba82dc33d05d23bc80a1cff152c24b708d386ef7f8d7a81c4248273b273a39aa14fc
6
+ metadata.gz: 9fa3d9c3a1f7be304ecf613704eb1357b5234b07569b27bb2ead14984dc2a50cfd6767b5b033a2228a1cc7d2010a13264175ef3c0f8e06d07f112aad27a89352
7
+ data.tar.gz: f62b5e4a83d14934f73766bf2d4ea835bbe5d09f2ee271b89cdb182cbebb621faa324a7bbb05b0dfaf1008760acd0ee2ebe084f082b632a88928c781389548a9
@@ -1,3 +1,3 @@
1
1
  module ImmosquareCleaner
2
- VERSION = "0.1.75".freeze
2
+ VERSION = "0.1.77".freeze
3
3
  end
@@ -152,7 +152,7 @@ module ImmosquareCleaner
152
152
  ## Pour éviter ce problème on met le fichier dans un dossier temporaire dans le dossier du gem
153
153
  ## et on le supprime par la suite.
154
154
  ##============================================================##
155
- elsif file_path.end_with?(".js", ".mjs", "js.erb")
155
+ elsif file_path.end_with?(".js", ".mjs", "js.erb", ".jsx", ".ts", ".ts.erb", ".tsx")
156
156
  begin
157
157
  temp_folder_path = "#{gem_root}/tmp"
158
158
  temp_file_path = "#{temp_folder_path}/#{File.basename(file_path)}"
@@ -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
  ##============================================================##
data/package.json CHANGED
@@ -2,14 +2,14 @@
2
2
  "name": "immosquare-cleaner",
3
3
  "private": true,
4
4
  "dependencies": {
5
- "@eslint/js": "^9.31.0",
6
- "eslint": "^9.31.0",
5
+ "@eslint/js": "^9.35.0",
6
+ "eslint": "^9.35.0",
7
7
  "eslint-plugin-align-assignments": "^1.1.2",
8
8
  "eslint-plugin-align-import": "^1.0.0",
9
9
  "eslint-plugin-erb": "^2.1.1",
10
10
  "eslint-plugin-prefer-arrow": "^1.2.3",
11
- "eslint-plugin-sonarjs": "^3.0.4",
11
+ "eslint-plugin-sonarjs": "^3.0.5",
12
12
  "prettier": "^3.6.2"
13
13
  },
14
- "scripts": {"morning": "bundle update && bundle clean --force && bun update && bundle exec immosquare-cleaner 'package.json'"}
14
+ "scripts": {"morning": "bundle update && bundle clean --force && bun update --latest && bun install && bundle exec immosquare-cleaner 'package.json'"}
15
15
  }
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.77
5
5
  platform: ruby
6
6
  authors:
7
7
  - immosquare
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  - !ruby/object:Gem::Version
177
177
  version: '0'
178
178
  requirements: []
179
- rubygems_version: 3.7.1
179
+ rubygems_version: 3.7.2
180
180
  specification_version: 4
181
181
  summary: A gem to lint and organize files in a Rails application.
182
182
  test_files: []