standard 1.39.0 → 1.39.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: b15a7085baa8421e82fec821f8562214b001cfe17bd6a02f7a061bc892f047fa
4
- data.tar.gz: f67e28527faebd95dc452a57f8994523c11f2f3e5be6c28da458d374852c5f9e
3
+ metadata.gz: e4964c3cb2f131dfc679aa69e7a734785c86584aeaca393e64e94e1512e11016
4
+ data.tar.gz: bd6bf79e88aef2147d2602d2ad1f0ffc75e1e04492774d073d128b985605a838
5
5
  SHA512:
6
- metadata.gz: d6040219e08da54f2ccfff731e787228e9226b20ba0380530513a41b0f29946eecf1503e41cd93e8f6beca3259258a713ad2f6815099325074a11ec2fcaf8915
7
- data.tar.gz: 6749ee4c00f5cad2c52b774e96048f82769046a9527dccc6515e0ee75ed274987d72f11d6422407c747ceed15c8b9c12a884c94573657af07811d7f013889135
6
+ metadata.gz: 3bc33d41c7a08cfef0ea51b8cd7759e221213e3f3d7b4ac7eafe974414b04bdf31e10bb6166adfe5ec61223bb5db32d1bb78e8a296cf7c5475f67a5e990f62cc
7
+ data.tar.gz: 6b63c8e06eaaf81a9105aaa29dcded6110e9cdb95627639b15f708fb0797719e2e4438028af84a06f3125f878f2830940f4598d2bd50dcb2c09bc4f4ae31f267
@@ -25,7 +25,7 @@ jobs:
25
25
  runs-on: ${{ matrix.os }}
26
26
 
27
27
  steps:
28
- - uses: actions/checkout@v3
28
+ - uses: actions/checkout@v4
29
29
  - name: Set up Ruby ${{ matrix.ruby-version }}
30
30
  uses: ruby/setup-ruby@v1
31
31
  with:
@@ -14,7 +14,7 @@ jobs:
14
14
  runs-on: ubuntu-latest
15
15
 
16
16
  steps:
17
- - uses: actions/checkout@v3
17
+ - uses: actions/checkout@v4
18
18
  - name: Set up Ruby
19
19
  uses: ruby/setup-ruby@v1
20
20
  with:
@@ -45,7 +45,7 @@ jobs:
45
45
  id: date
46
46
  run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
47
47
  - name: Create Pull Request
48
- uses: peter-evans/create-pull-request@v3
48
+ uses: peter-evans/create-pull-request@v6
49
49
  with:
50
50
  reviewers: camilopayan
51
51
  commit-message: '[ ${{ steps.date.outputs.date }} ] - Update dependencies'
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.39.1
6
+
7
+ * Fix LSP when `format` is set [#638](https://github.com/standardrb/standard/issues/638)
8
+ * Fix LSP when todo is present (I think) [vscode-standard-ruby#26](https://github.com/standardrb/vscode-standard-ruby/issues/26)
9
+
5
10
  ## 1.39.0
6
11
 
7
12
  * Add support for LSP Code Actions / Quick Fix under Ruby LSP [#636](https://github.com/standardrb/standard/pull/636)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.39.0)
4
+ standard (1.39.1)
5
5
  language_server-protocol (~> 3.17.0.2)
6
6
  lint_roller (~> 1.0)
7
7
  rubocop (~> 1.64.0)
@@ -36,7 +36,7 @@ module RubyLsp
36
36
  register_options: Interface::DidChangeWatchedFilesRegistrationOptions.new(
37
37
  watchers: [
38
38
  Interface::FileSystemWatcher.new(
39
- glob_pattern: "**/.standard.yml",
39
+ glob_pattern: "**/.standard{,_todo}.yml",
40
40
  kind: Constant::WatchKind::CREATE | Constant::WatchKind::CHANGE | Constant::WatchKind::DELETE
41
41
  )
42
42
  ]
@@ -72,8 +72,15 @@ module Standard
72
72
  @logger.puts "Ignoring workspace/didChangeConfiguration"
73
73
  end
74
74
 
75
+ CONFIGURATION_FILE_PATTERNS = [
76
+ ".standard.yml",
77
+ ".standard_todo.yml"
78
+ ].freeze
79
+
75
80
  handle "workspace/didChangeWatchedFiles" do |request|
76
- if request[:params][:changes].any? { |change| change[:uri].end_with?(".standard.yml") }
81
+ if request[:params][:changes].any? { |change|
82
+ CONFIGURATION_FILE_PATTERNS.any? { |path| change[:uri].end_with?(path) }
83
+ }
77
84
  @logger.puts "Configuration file changed; restart required"
78
85
  @kills_server.call
79
86
  end
@@ -12,8 +12,10 @@ module Standard
12
12
  DEFAULT_RUBOCOP_OPTIONS = {
13
13
  stderr: true,
14
14
  force_exclusion: true,
15
- format: "RuboCop::Formatter::BaseFormatter",
16
- raise_cop_error: true
15
+ formatters: ["RuboCop::Formatter::BaseFormatter"],
16
+ raise_cop_error: true,
17
+ todo_file: nil,
18
+ todo_ignore_files: []
17
19
  }.freeze
18
20
 
19
21
  def initialize(config)
@@ -27,7 +29,7 @@ module Standard
27
29
  super(
28
30
  config.rubocop_options.merge(DEFAULT_RUBOCOP_OPTIONS),
29
31
  config.rubocop_config_store
30
- )
32
+ )
31
33
  end
32
34
 
33
35
  def run(path, contents)
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("1.39.0")
2
+ VERSION = Gem::Version.new("1.39.1")
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.39.0
4
+ version: 1.39.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-24 00:00:00.000000000 Z
11
+ date: 2024-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  requirements: []
191
- rubygems_version: 3.5.9
191
+ rubygems_version: 3.5.14
192
192
  signing_key:
193
193
  specification_version: 4
194
194
  summary: Ruby Style Guide, with linter & automatic code fixer