ruby_language_server 0.3.11 → 0.3.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.txt +4 -0
- data/Gemfile.lock +20 -22
- data/lib/ruby_language_server/gem_installer.rb +12 -9
- data/lib/ruby_language_server/project_manager.rb +1 -1
- data/lib/ruby_language_server/version.rb +1 -1
- data/ruby_language_server.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3c05305f5598c756c440e7a668d1d8a7021f18b079d4ead930e3bac72c0115a
|
4
|
+
data.tar.gz: 9b620bcffca253ef2a464a1be4d39e7864064ac4310acca2a49457a62ab6f33b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3cea5c0f8687fa542916a3e4478f14612d2b1d590be461518d6bcf58ca141360301a0416bd624e7298170c9fc8abda77c16dc119c5f377d550fb0b79c818e11
|
7
|
+
data.tar.gz: 5bc4f5db091bb6257e8eb8b4af3c0e76900b493ec2a4a80ea261380a8a91323e2d25cfc7b6d40cbb1877e96a3b7d673efa6b8795917f6c169e975f6c3f1acf9b
|
data/CHANGELOG.txt
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruby_language_server (0.3.
|
4
|
+
ruby_language_server (0.3.12)
|
5
5
|
activerecord (~> 5.2)
|
6
6
|
amatch
|
7
7
|
bundler
|
@@ -32,14 +32,14 @@ GEM
|
|
32
32
|
tins (~> 1.0)
|
33
33
|
arel (9.0.0)
|
34
34
|
ast (2.4.0)
|
35
|
-
byebug (11.
|
35
|
+
byebug (11.1.1)
|
36
36
|
coderay (1.1.2)
|
37
37
|
concurrent-ruby (1.1.5)
|
38
38
|
etc (1.1.0)
|
39
|
-
ffi (1.
|
39
|
+
ffi (1.12.2)
|
40
40
|
formatador (0.2.5)
|
41
41
|
fuzzy_match (2.1.0)
|
42
|
-
guard (2.
|
42
|
+
guard (2.16.1)
|
43
43
|
formatador (>= 0.2.4)
|
44
44
|
listen (>= 2.7, < 4.0)
|
45
45
|
lumberjack (>= 1.0.12, < 2.0)
|
@@ -55,15 +55,14 @@ GEM
|
|
55
55
|
guard-rubocop (1.3.0)
|
56
56
|
guard (~> 2.0)
|
57
57
|
rubocop (~> 0.20)
|
58
|
-
i18n (1.8.
|
58
|
+
i18n (1.8.2)
|
59
59
|
concurrent-ruby (~> 1.0)
|
60
|
-
jaro_winkler (1.5.
|
60
|
+
jaro_winkler (1.5.4)
|
61
61
|
json (2.3.0)
|
62
|
-
listen (3.1
|
63
|
-
rb-fsevent (~> 0.
|
64
|
-
rb-inotify (~> 0.9, >= 0.9.
|
65
|
-
|
66
|
-
lumberjack (1.0.13)
|
62
|
+
listen (3.2.1)
|
63
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
64
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
65
|
+
lumberjack (1.2.4)
|
67
66
|
method_source (0.9.2)
|
68
67
|
minitest (5.13.0)
|
69
68
|
minitest-color (0.0.2)
|
@@ -74,26 +73,26 @@ GEM
|
|
74
73
|
notiffany (0.1.3)
|
75
74
|
nenv (~> 0.1)
|
76
75
|
shellany (~> 0.0)
|
77
|
-
parallel (1.
|
78
|
-
parser (2.
|
76
|
+
parallel (1.19.1)
|
77
|
+
parser (2.7.0.2)
|
79
78
|
ast (~> 2.4.0)
|
80
79
|
protocol (2.0.0)
|
81
80
|
ruby_parser (~> 3.0)
|
82
81
|
pry (0.12.2)
|
83
82
|
coderay (~> 1.1.0)
|
84
83
|
method_source (~> 0.9.0)
|
85
|
-
pry-byebug (3.
|
84
|
+
pry-byebug (3.8.0)
|
86
85
|
byebug (~> 11.0)
|
87
86
|
pry (~> 0.10)
|
88
87
|
rainbow (3.0.0)
|
89
88
|
rake (13.0.1)
|
90
89
|
rb-fsevent (0.10.3)
|
91
|
-
rb-inotify (0.10.
|
90
|
+
rb-inotify (0.10.1)
|
92
91
|
ffi (~> 1.0)
|
93
|
-
rubocop (0.
|
92
|
+
rubocop (0.79.0)
|
94
93
|
jaro_winkler (~> 1.5.1)
|
95
94
|
parallel (~> 1.10)
|
96
|
-
parser (>= 2.
|
95
|
+
parser (>= 2.7.0.1)
|
97
96
|
rainbow (>= 2.2.2, < 4.0)
|
98
97
|
ruby-progressbar (~> 1.7)
|
99
98
|
unicode-display_width (>= 1.4.0, < 1.7)
|
@@ -102,20 +101,19 @@ GEM
|
|
102
101
|
rubocop-rspec (1.37.1)
|
103
102
|
rubocop (>= 0.68.1)
|
104
103
|
ruby-progressbar (1.10.1)
|
105
|
-
ruby_dep (1.5.0)
|
106
104
|
ruby_parser (3.14.1)
|
107
105
|
sexp_processor (~> 4.9)
|
108
|
-
sexp_processor (4.
|
106
|
+
sexp_processor (4.13.0)
|
109
107
|
shellany (0.0.1)
|
110
108
|
sqlite3 (1.4.2)
|
111
109
|
sync (0.5.0)
|
112
|
-
thor (0.
|
110
|
+
thor (1.0.1)
|
113
111
|
thread_safe (0.3.6)
|
114
112
|
tins (1.24.0)
|
115
113
|
sync
|
116
114
|
tzinfo (1.2.6)
|
117
115
|
thread_safe (~> 0.1)
|
118
|
-
unicode-display_width (1.6.
|
116
|
+
unicode-display_width (1.6.1)
|
119
117
|
|
120
118
|
PLATFORMS
|
121
119
|
ruby
|
@@ -124,7 +122,7 @@ DEPENDENCIES
|
|
124
122
|
guard
|
125
123
|
guard-minitest
|
126
124
|
guard-rubocop
|
127
|
-
minitest
|
125
|
+
minitest
|
128
126
|
minitest-color
|
129
127
|
pry
|
130
128
|
pry-byebug
|
@@ -6,18 +6,21 @@ module RubyLanguageServer
|
|
6
6
|
# Sole purpose is to install gems
|
7
7
|
module GemInstaller
|
8
8
|
class << self
|
9
|
-
def install_gems(
|
10
|
-
|
11
|
-
|
12
|
-
return if
|
9
|
+
def install_gems(additional_gem_names)
|
10
|
+
additional_gem_names&.compact!
|
11
|
+
additional_gem_names&.reject! { |name| name.strip == '' }
|
12
|
+
return if additional_gem_names.nil? || additional_gem_names.empty?
|
13
|
+
|
14
|
+
RubyLanguageServer.logger.info("Trying to install gems #{additional_gem_names}")
|
13
15
|
|
14
|
-
RubyLanguageServer.logger.info("Trying to install gems #{gem_names}")
|
15
|
-
rubocop_gem = Gem::Specification.find_by_name 'rubocop'
|
16
16
|
gemfile do
|
17
17
|
source 'https://rubygems.org'
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
# Lock all the gems we already have installed to the versions we have installed
|
19
|
+
# For some reason, installing bundler makes it unhappy. Whatever.
|
20
|
+
Gem::Specification.reject { |s| s.name == 'bundler' }.each do |specification|
|
21
|
+
gem(specification.name, specification.version.to_s)
|
22
|
+
end
|
23
|
+
additional_gem_names.each do |gem_name|
|
21
24
|
gem gem_name
|
22
25
|
end
|
23
26
|
end
|
@@ -62,7 +62,7 @@ module RubyLanguageServer
|
|
62
62
|
RubyLanguageServer::GemInstaller.install_gems(gem_names)
|
63
63
|
@additional_gem_mutex.synchronize { @additional_gems_installed = true }
|
64
64
|
rescue StandardError => e
|
65
|
-
RubyLanguageServer.logger.error("Issue installing rubocop gems: #{e}")
|
65
|
+
RubyLanguageServer.logger.error("Issue installing rubocop gems: #{e} #{e.backtrace}")
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
@@ -52,7 +52,7 @@ Gem::Specification.new do |spec|
|
|
52
52
|
spec.add_development_dependency 'guard'
|
53
53
|
spec.add_development_dependency 'guard-minitest'
|
54
54
|
spec.add_development_dependency 'guard-rubocop'
|
55
|
-
spec.add_development_dependency 'minitest'
|
55
|
+
spec.add_development_dependency 'minitest'
|
56
56
|
spec.add_development_dependency 'minitest-color'
|
57
57
|
spec.add_development_dependency 'pry'
|
58
58
|
spec.add_development_dependency 'pry-byebug'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_language_server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kurt Werle
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -196,16 +196,16 @@ dependencies:
|
|
196
196
|
name: minitest
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- -
|
199
|
+
- - ">="
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
201
|
+
version: '0'
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- -
|
206
|
+
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
208
|
+
version: '0'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: minitest-color
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|