klenod 0.0.29 → 0.0.30

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: b6369a562a44e9bb674e9b682d1b76b437aef3de26c6fcb645e900faab8315d4
4
- data.tar.gz: c934f001c9e2d666264e3c5c4c6ed523743f051eb1f3e29c927e2a390e14fef1
3
+ metadata.gz: e964f39ea2503b59dad27f8babceeb0e468ca9a1ab4c2628c6a1454f547f6d6d
4
+ data.tar.gz: 7ef24decab861c44a80dda2865f6a16f6bc182661c765bde8221020b630ee2ef
5
5
  SHA512:
6
- metadata.gz: efaa1b31aac27ccb07b4e57d022dfc5a95619b85983c4a85ac3031e216ff15741f5bfca39572b78c40d1c292873e7970f2cfa2b5f675f3e490b14e1ab963d8c6
7
- data.tar.gz: ea7c3bd80415cb86e105b0d8f9c356cd5fd563354eaed4ae658ff310582172c5d73ccf7e15e257a0383861a23f5689e5d78f627cb33a0ce672600b65b3c0f177
6
+ metadata.gz: 88c1b620627147f587430f45a7abfb18a08a116e7c0b6f1156dd600875701659780deb33162809ec42ea74647efa1a0215fe7080bc2ffe6273589d5767570fb1
7
+ data.tar.gz: 76c2adb75eb486c3f274058b22606089f715f6a2b3b49bd7eb44757a71440403ce2653d0a65525da1f58e9d5744cc72ad1d48c40524b3507c82a0233246377cb
@@ -16,6 +16,7 @@ module Klenod
16
16
 
17
17
  nested :command, {
18
18
  "build" => Klenod::Build::CLI::Build,
19
+ "check" => Klenod::CLI.check_command,
19
20
  "coverage" => Klenod::Test::CLI::CoverageCommand,
20
21
  "graph" => Klenod::Build::CLI::Graph,
21
22
  "lsp" => Klenod::CLI.lsp_command,
@@ -5,8 +5,8 @@ require "klenod/build/cli"
5
5
  module Klenod
6
6
  module CLI
7
7
  # The language server ships in the separate klenod-lsp gem. The `lsp`
8
- # subcommand stays visible without it so the help output explains what
9
- # to install.
8
+ # and `check` subcommands stay visible without it so the help output
9
+ # explains what to install.
10
10
  class MissingLSPCommand < Samovar::Command
11
11
  self.description = "Start a language server for editors (requires the klenod-lsp gem)."
12
12
 
@@ -18,11 +18,29 @@ module Klenod
18
18
  end
19
19
  end
20
20
 
21
+ class MissingCheckCommand < Samovar::Command
22
+ self.description = "Report language server diagnostics for every source file (requires the klenod-lsp gem)."
23
+
24
+ MESSAGE = "The klenod-lsp gem is not installed. Add `gem \"klenod-lsp\"` to your Gemfile to use `klenod check`."
25
+
26
+ def call
27
+ output.puts MESSAGE
28
+ 1
29
+ end
30
+ end
31
+
21
32
  def self.lsp_command
22
33
  require "klenod/lsp/cli"
23
34
  Klenod::LSP::CLI::Command
24
35
  rescue LoadError
25
36
  MissingLSPCommand
26
37
  end
38
+
39
+ def self.check_command
40
+ require "klenod/lsp/cli"
41
+ Klenod::LSP::CLI::CheckCommand
42
+ rescue LoadError
43
+ MissingCheckCommand
44
+ end
27
45
  end
28
46
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Klenod
4
- VERSION = "0.0.29"
4
+ VERSION = "0.0.30"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: klenod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.29
4
+ version: 0.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrés Alin
@@ -15,42 +15,42 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 0.0.29
18
+ version: 0.0.30
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 0.0.29
25
+ version: 0.0.30
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: klenod-runtime
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - '='
31
31
  - !ruby/object:Gem::Version
32
- version: 0.0.29
32
+ version: 0.0.30
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: 0.0.29
39
+ version: 0.0.30
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: klenod-test
42
42
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - '='
45
45
  - !ruby/object:Gem::Version
46
- version: 0.0.29
46
+ version: 0.0.30
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - '='
52
52
  - !ruby/object:Gem::Version
53
- version: 0.0.29
53
+ version: 0.0.30
54
54
  description: Umbrella package for Klenod.
55
55
  email:
56
56
  - andreas.alin@gmail.com