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 +4 -4
- data/.github/workflows/test.yml +1 -1
- data/.github/workflows/update.yml +2 -2
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/ruby_lsp/standard/addon.rb +1 -1
- data/lib/standard/lsp/routes.rb +8 -1
- data/lib/standard/lsp/stdin_rubocop_runner.rb +5 -3
- data/lib/standard/version.rb +1 -1
- 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: e4964c3cb2f131dfc679aa69e7a734785c86584aeaca393e64e94e1512e11016
|
4
|
+
data.tar.gz: bd6bf79e88aef2147d2602d2ad1f0ffc75e1e04492774d073d128b985605a838
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bc33d41c7a08cfef0ea51b8cd7759e221213e3f3d7b4ac7eafe974414b04bdf31e10bb6166adfe5ec61223bb5db32d1bb78e8a296cf7c5475f67a5e990f62cc
|
7
|
+
data.tar.gz: 6b63c8e06eaaf81a9105aaa29dcded6110e9cdb95627639b15f708fb0797719e2e4438028af84a06f3125f878f2830940f4598d2bd50dcb2c09bc4f4ae31f267
|
data/.github/workflows/test.yml
CHANGED
@@ -14,7 +14,7 @@ jobs:
|
|
14
14
|
runs-on: ubuntu-latest
|
15
15
|
|
16
16
|
steps:
|
17
|
-
- uses: actions/checkout@
|
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@
|
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
@@ -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
|
]
|
data/lib/standard/lsp/routes.rb
CHANGED
@@ -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|
|
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
|
-
|
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)
|
data/lib/standard/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|