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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe54fa7e2447945dfdec7a3e4115d6a31d028842d78b26631885d4e324cd77bc
4
- data.tar.gz: 178acfce9a35034338ae281542c46c84ae96982c0202a5568585f976239abe20
3
+ metadata.gz: c3c05305f5598c756c440e7a668d1d8a7021f18b079d4ead930e3bac72c0115a
4
+ data.tar.gz: 9b620bcffca253ef2a464a1be4d39e7864064ac4310acca2a49457a62ab6f33b
5
5
  SHA512:
6
- metadata.gz: 48e6196bf2fd6ae860211a5e31e670ef22fbe66d1cca0c44ae239b8ab82faa7ad3a657a3afcda15b6930e54becc8f743a2e415cef5648f3e03583158be5d507c
7
- data.tar.gz: 4a5b80426e7e08be93eb514e42420c9f8bc15563b427fc20cc0d648d3a7280db092756ba1980153385696cc4e9249fb3843c26047e856a6ebfef39791f5dbe26
6
+ metadata.gz: d3cea5c0f8687fa542916a3e4478f14612d2b1d590be461518d6bcf58ca141360301a0416bd624e7298170c9fc8abda77c16dc119c5f377d550fb0b79c818e11
7
+ data.tar.gz: 5bc4f5db091bb6257e8eb8b4af3c0e76900b493ec2a4a80ea261380a8a91323e2d25cfc7b6d40cbb1877e96a3b7d673efa6b8795917f6c169e975f6c3f1acf9b
data/CHANGELOG.txt CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ #### 0.3.12 Thu Feb 6 06:18:33 UTC 2020
4
+
5
+ * #58 Change the way additional gems are installed so there are not conflicts
6
+
3
7
  #### 0.3.11 Wed Jan 29 06:48:37 UTC 2020
4
8
 
5
9
  * #57 rubocop gemfiles mismatch
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_language_server (0.3.11)
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.0.1)
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.11.1)
39
+ ffi (1.12.2)
40
40
  formatador (0.2.5)
41
41
  fuzzy_match (2.1.0)
42
- guard (2.15.0)
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.1)
58
+ i18n (1.8.2)
59
59
  concurrent-ruby (~> 1.0)
60
- jaro_winkler (1.5.3)
60
+ jaro_winkler (1.5.4)
61
61
  json (2.3.0)
62
- listen (3.1.5)
63
- rb-fsevent (~> 0.9, >= 0.9.4)
64
- rb-inotify (~> 0.9, >= 0.9.7)
65
- ruby_dep (~> 1.2)
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.17.0)
78
- parser (2.6.3.0)
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.7.0)
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.0)
90
+ rb-inotify (0.10.1)
92
91
  ffi (~> 1.0)
93
- rubocop (0.74.0)
92
+ rubocop (0.79.0)
94
93
  jaro_winkler (~> 1.5.1)
95
94
  parallel (~> 1.10)
96
- parser (>= 2.6)
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.12.1)
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.20.3)
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.0)
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 (= 5.13.0)
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(gem_names)
10
- gem_names&.compact!
11
- gem_names&.reject! { |name| name.strip == '' }
12
- return if gem_names.nil? || gem_names.empty?
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
- gem 'rubocop', rubocop_gem.version.to_s
19
- gem 'minitest', '5.13.0' # Very specific version matching one in gemspec
20
- gem_names.each do |gem_name|
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyLanguageServer
4
- VERSION = '0.3.11'
4
+ VERSION = '0.3.12'
5
5
  end
@@ -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', '5.13.0' # Very exact verion matching the one in gem_installer.rb because of runtime gem version conflicts
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.11
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-01-29 00:00:00.000000000 Z
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: 5.13.0
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: 5.13.0
208
+ version: '0'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: minitest-color
211
211
  requirement: !ruby/object:Gem::Requirement