pronto-stylelint 0.11.0 → 0.11.1

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: 72aadfab27603a70d2693342dd21de34d2029d2dde321ff65813375f6d2ff06d
4
- data.tar.gz: 965e9c5d044b55e4895812025d4482f63b1db1d71e7e51db2f6cc56cbbaadfaa
3
+ metadata.gz: cc56f88851f8ceac741c911729249045d7e2b69ab1ac9c4a464c930feaf6a14e
4
+ data.tar.gz: 3069e2dd965c7960204de8f9ef0a703bcbe096085dcc3cb54e7bdecccdd1fa21
5
5
  SHA512:
6
- metadata.gz: 62ea066e712ea0c8632b2d9502481e6c9e2dc11e23b72f4a2e4e9c01e803fa87b92d27e3fe83731613f2597ae301f035b3f1e2420008987b4c0b50d697a91652
7
- data.tar.gz: fe4cac1fc9d5a28963fac3739141797f7b01ad9a3d757ae816c29972f74b53624bd2e2fb5ad3c4d11a98c933647648e3e5e9533e37b659a1403a1230aa5f5a44
6
+ metadata.gz: 65674213814c1e153952e060645ddac0ff7c793251cd05f3a244f0680be5cd66fce3c233e5100d631f664d95e8f43dcccbccc7285946ae872fada8318a4ddf77
7
+ data.tar.gz: da09915c86e25591bb02f639bac10ad13c1bb3b659dfa471d6652965e9c5aebab893793366ac0bd3e5fdaf52dbc4cc62138250b32d439766e170adef6437172f
@@ -37,18 +37,16 @@ module Pronto
37
37
 
38
38
  def run
39
39
  Dir.chdir(git_repo_path) do
40
- Open3.popen3(cli_command) do |_stdin, stdout, stderr, thread|
41
- JSON.parse(
42
- case thread_status(thread)
43
- when :success, :lint_problem
44
- out = stdout.read
45
- out.empty? ? stderr.read : out
46
- else
47
- puts "#{STYLELINT_FAILURE} - #{thread_status(thread)}:\n#{stderr.read}"
48
- '[]'
49
- end
50
- )
51
- end
40
+ stdout, stderr, status = Open3.capture3(cli_command)
41
+ JSON.parse(
42
+ case thread_status(status)
43
+ when :success, :lint_problem
44
+ stdout.empty? ? stderr : stdout
45
+ else
46
+ puts "#{STYLELINT_FAILURE} - #{thread_status(status)}:\n#{stderr}"
47
+ '[]'
48
+ end
49
+ )
52
50
  end
53
51
  end
54
52
 
@@ -64,8 +62,8 @@ module Pronto
64
62
 
65
63
  # Status codes:
66
64
  # https://stylelint.io/user-guide/cli/#exit-codes
67
- def thread_status(thread)
68
- STATUS_CODES[thread.value.exitstatus] || :unknown
65
+ def thread_status(status)
66
+ STATUS_CODES[status.exitstatus] || :unknown
69
67
  end
70
68
  end
71
69
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Pronto
4
4
  module StylelintVersion
5
- VERSION = '0.11.0'
5
+ VERSION = '0.11.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-stylelint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Jalbert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-20 00:00:00.000000000 Z
11
+ date: 2025-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto