tailwind-sorter 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82b25d2e48c760db25e242cafa14a986831e6ccaff1498ea7fbf638dc22392d9
4
- data.tar.gz: dc94b034b7e7922bafc9f618a7db6f839d102eb2c38f916689f538fcfab07d2c
3
+ metadata.gz: 3e1f3de5d352e6a073f1767524d2c7b3ccc16940694a6b876e9a96d6cc0b680b
4
+ data.tar.gz: e1210fc5d3bfac44ae7a077aa8801299b78a129c1688502b9621bb9a70ebaf0a
5
5
  SHA512:
6
- metadata.gz: 95a45a46c6a5911db7bd2e48fde99b7a752f2de25bc5832b009c0fe5d840912474be6047caf2f7ecb3d2325e894c466bab4ff9f32f71fe88506448ff204bb74c
7
- data.tar.gz: 98a11cdfd1bebff6fd7a8a24069326dc26776dffdcb4b37f8271374793c04133823ebd2c3375c5a6192cec5f5f68ac0b61e9322be9757658b102d32898f02358
6
+ metadata.gz: a7bc6b3eb7efe05511fbb215831d7e904ccd2d2988e6b9e7672813f40515a98d35e066066cc2b3640da3b1f8b55130c9eb45600c2773a0286ef054a688ca8063
7
+ data.tar.gz: 5448c1f0386877c77c50558cf1646cfa75e074a42369b47aa8a927a33dd493d18baf6446e4c7c8360fc235d6378677af9a7abf307bab18b496c16dc3f8205494
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.4.1
2
+
3
+ Add support for processing multiple files at once.
4
+
1
5
  ### 0.4.0
2
6
 
3
7
  - Add support for regular expressions in configuration for class ordering (#3)
data/README.md CHANGED
@@ -163,6 +163,12 @@ The script requires the configuration file to be present in `config/tailwind_sor
163
163
  bin/tailwind_sorter -c path/to/my/config_file.yml app/views/my_template.html.slim
164
164
  ```
165
165
 
166
+ Multiple files can be processed in a single run:
167
+
168
+ ```sh
169
+ bin/tailwind_sorter app/views/my_template.html.slim app/views/another_template.html.slim
170
+ ```
171
+
166
172
  ## Running automatically via your IDE / editor
167
173
 
168
174
  Perhaps the best way to run the script is using your editor or IDE. Many editors provide the possibility to watch your
data/exe/tailwind_sorter CHANGED
@@ -15,12 +15,15 @@ while (arg = ARGV.shift)
15
15
  when "-c"
16
16
  config_file = ARGV.shift
17
17
  else
18
- file_name = arg
18
+ ARGV.unshift(arg)
19
+ break
19
20
  end
20
21
  end
21
22
 
22
23
  begin
23
- TailwindSorter::Sorter.run(file_name, warn_only: warn_only, config_file: config_file)
24
+ while (file_name = ARGV.shift)
25
+ TailwindSorter::Sorter.run(file_name, warn_only: warn_only, config_file: config_file)
26
+ end
24
27
  rescue ArgumentError => e
25
28
  STDERR.puts e.message
26
29
  exit 1
@@ -1,3 +1,3 @@
1
1
  module TailwindSorter
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tailwind-sorter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - NejŘemeslníci.cz