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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db1a58b657c3d48dc7f91c835ac13dddae17c41c8c20bace9192272c4afac117
4
- data.tar.gz: a865736e22883d7adc258768beb889fd72e555ffe3ed7f39b31ab129008c6ff2
3
+ metadata.gz: 782a12c647e52cbe70bc4acd7b09e66e4d2003f7f9bd19f3492a113e3fb439b4
4
+ data.tar.gz: 259600c6629bbf15fcc2b88789905524225e5055003f3c326ba2f7586f4dc3a6
5
5
  SHA512:
6
- metadata.gz: 43858b82680c79049477cfb96c1b1d348f3d6487cd18e5028d7a5d1c4487cbdb767bd25e86f4cf68e8a27439122a8a7c7905b522c3125b97b9804f70f1dd9d24
7
- data.tar.gz: f4e784d1f926138ea0a7cfb1e8d3aa00740acf757f4a1d5cbf72c0aa41ab1f7fae5caaca53cf7351c130400d002fde1dbb4cd0ebd84efcd533973c536b132300
6
+ metadata.gz: 4518f8288d7f75406220f77dfee70b1c215465c1481a6ae3e6aabc91364c890d99ec77f03836ca4743ab5006e19ae1c2312c7af010b7ad31a4a234411575de60
7
+ data.tar.gz: d132961013cec829005dda99912bddd0a5da2914bc014154e5fa5db6c744c158746fe2286b942750e5e1445ccad0ef7fbc5c537d248c3a86fe792bc1583f2e37
@@ -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 |opts|
29
- opts.banner = "Usage: immosquare-cleaner [options] file"
28
+ OptionParser.new do |parser|
29
+ parser.banner = "Usage: immosquare-cleaner [options] file"
30
30
 
31
- ##============================================================##
32
- ## Capture all single-letter options (like '-t', '-a', etc.)
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)
@@ -1,3 +1,3 @@
1
1
  module ImmosquareCleaner
2
- VERSION = "0.1.69".freeze
2
+ VERSION = "0.1.70".freeze
3
3
  end
data/package.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "name": "immosquare-cleaner",
3
3
  "private": true,
4
4
  "dependencies": {
5
- "@eslint/js": "^9.22.0",
6
- "eslint": "^9.22.0",
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.69
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: 2025-03-14 00:00:00.000000000 Z
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.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: []