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 +4 -4
- data/lib/immosquare-cleaner/version.rb +1 -1
- data/lib/immosquare-cleaner.rb +7 -4
- data/package.json +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dcf780bea36b1c133a1fd6376c5a945076a75a6318a7609ffd102e6ce29c7c5
|
4
|
+
data.tar.gz: 30bba6cc12256047e7efb85f3ae0ffafdc32bd8d15e71afe2fb02faf7f4b102d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fa3d9c3a1f7be304ecf613704eb1357b5234b07569b27bb2ead14984dc2a50cfd6767b5b033a2228a1cc7d2010a13264175ef3c0f8e06d07f112aad27a89352
|
7
|
+
data.tar.gz: f62b5e4a83d14934f73766bf2d4ea835bbe5d09f2ee271b89cdb182cbebb621faa324a7bbb05b0dfaf1008760acd0ee2ebe084f082b632a88928c781389548a9
|
data/lib/immosquare-cleaner.rb
CHANGED
@@ -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
|
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.
|
6
|
-
"eslint": "^9.
|
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.
|
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.
|
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.
|
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: []
|