immosquare-cleaner 0.1.69 → 0.1.70
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/bin/immosquare-cleaner +7 -20
- data/lib/immosquare-cleaner/version.rb +1 -1
- data/package.json +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 782a12c647e52cbe70bc4acd7b09e66e4d2003f7f9bd19f3492a113e3fb439b4
|
4
|
+
data.tar.gz: 259600c6629bbf15fcc2b88789905524225e5055003f3c326ba2f7586f4dc3a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4518f8288d7f75406220f77dfee70b1c215465c1481a6ae3e6aabc91364c890d99ec77f03836ca4743ab5006e19ae1c2312c7af010b7ad31a4a234411575de60
|
7
|
+
data.tar.gz: d132961013cec829005dda99912bddd0a5da2914bc014154e5fa5db6c744c158746fe2286b942750e5e1445ccad0ef7fbc5c537d248c3a86fe792bc1583f2e37
|
data/bin/immosquare-cleaner
CHANGED
@@ -25,25 +25,13 @@ options = {}
|
|
25
25
|
##============================================================##
|
26
26
|
## optparse is a standard library of ruby, it's used to parse command line
|
27
27
|
##============================================================##
|
28
|
-
OptionParser.new do |
|
29
|
-
|
28
|
+
OptionParser.new do |parser|
|
29
|
+
parser.banner = "Usage: immosquare-cleaner [options] file"
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
("a".."z").each do |letter|
|
35
|
-
opts.on("-#{letter} [OPTION]", "Option -#{letter}") do |value|
|
36
|
-
options[letter.to_sym] = value
|
37
|
-
end
|
31
|
+
parser.on("-h", "--help", "Prints this help") do
|
32
|
+
puts parser
|
33
|
+
exit
|
38
34
|
end
|
39
|
-
|
40
|
-
##============================================================##
|
41
|
-
## If you also want to capture longer options, add them here
|
42
|
-
## Example:
|
43
|
-
## opts.on("--tag TAG", "Tag option") do |t|
|
44
|
-
## options[:tag] = t
|
45
|
-
## end
|
46
|
-
##============================================================##
|
47
35
|
end.parse!
|
48
36
|
|
49
37
|
##============================================================##
|
@@ -78,9 +66,8 @@ if !File.directory?(node_modules_folder)
|
|
78
66
|
end
|
79
67
|
end
|
80
68
|
|
81
|
-
|
82
|
-
|
83
69
|
##============================================================##
|
84
|
-
## We can now call the clean method, passing the file path and options
|
70
|
+
## We can now call the clean method, passing the file absolute path and options
|
85
71
|
##============================================================##
|
72
|
+
file_path = File.expand_path(file_path)
|
86
73
|
ImmosquareCleaner.clean(file_path, **options)
|
data/package.json
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
"name": "immosquare-cleaner",
|
3
3
|
"private": true,
|
4
4
|
"dependencies": {
|
5
|
-
"@eslint/js": "^9.
|
6
|
-
"eslint": "^9.
|
5
|
+
"@eslint/js": "^9.24.0",
|
6
|
+
"eslint": "^9.24.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",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
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.70
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- immosquare
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: erb_lint
|
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
175
|
- !ruby/object:Gem::Version
|
176
176
|
version: '0'
|
177
177
|
requirements: []
|
178
|
-
rubygems_version: 3.6.
|
178
|
+
rubygems_version: 3.6.7
|
179
179
|
specification_version: 4
|
180
180
|
summary: A gem to lint and organize files in a Rails application.
|
181
181
|
test_files: []
|