File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,3 @@ shards:
16
16
git: https://github.com/samueleaton/sentry.git
17
17
version: 0.3.2+git.commit.e448ce83486f99ef016c311e10ec0cac805cded3
18
18
19
- version_from_shard:
20
- git: https://github.com/hugopl/version_from_shard.git
21
- version: 1.2.5
22
-
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ targets:
13
13
dependencies :
14
14
lsp :
15
15
github : elbywan/crystal-lsp
16
- version_from_shard :
17
- github : hugopl/version_from_shard
18
16
priority-queue :
19
17
github : spider-gazelle/priority-queue
20
18
Original file line number Diff line number Diff line change 1
1
require " ./crystalline/requires"
2
2
require " ./crystalline/*"
3
3
4
+ if ARGV .includes?(" --version" )
5
+ puts(Crystalline ::VERSION )
6
+ exit
7
+ end
8
+
4
9
Crystalline .init
Original file line number Diff line number Diff line change @@ -2,11 +2,10 @@ require "log"
2
2
require " lsp/server"
3
3
require " ./ext/*"
4
4
require " ./*"
5
- require " version_from_shard"
6
5
7
6
module Crystalline
8
- VersionFromShard .declare( __DIR__)
9
-
7
+ VERSION = {{ ( ` shards version #{ __DIR__ } ` .strip + " + " +
8
+ system( " git rev-parse --short HEAD || echo unknown " ).stringify).stringify.strip }}
10
9
# Supported server capabilities.
11
10
SERVER_CAPABILITIES = LSP ::ServerCapabilities .new(
12
11
text_document_sync: LSP ::TextDocumentSyncKind ::Incremental ,
You can’t perform that action at this time.
0 commit comments