language_server 0.6.0 → 0.7.0

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
  SHA1:
3
- metadata.gz: b6d581c85b778bf6f4dfc8047fd15a519667bfd1
4
- data.tar.gz: 6f85df2e7f01eddb7d42ea27ecab34d4bb13acff
3
+ metadata.gz: 4f539c291399eeb7ea1e033307134aa1fd8b86c5
4
+ data.tar.gz: 3f5c47d75fe00323a36ddc34d426e538e3a258f5
5
5
  SHA512:
6
- metadata.gz: 6f56bc06183ed3eafbd2b5b8fa7e25f86e3dd844a5d1f2b66b7ac3dde6433955d912ca1c753844976dcf11bdd03bffe02e05b06ea8c333cb957c8d41074191b2
7
- data.tar.gz: dbd8e1dd7ccec152a0ef1c6d2c339acdd5442c8f773d5f5a0717ffe4614731fc13ef2f60c5d7bc6e457bb3e2a96a1d3dc41c5ad00862639e2d5a139bbf2acd7b
6
+ metadata.gz: 412ff31e6c1c49cd0ef3ab42afd604e35a9c7b2d02bfe86e2422644e02a44d86f73705e3c33a081b787c1d70d1590d179e4c817ade7084ef3734112e2d734dc6
7
+ data.tar.gz: b431130afd449e31ba64a233c7649974840509ca6a048d9cb686e8866487ae9cf6c3c6ff1dd9a0297efe8fd0e066df3337690266323e23e1185b44e6b0f85937
data/.gitignore CHANGED
@@ -9,4 +9,3 @@
9
9
  /tmp/
10
10
  /vendor/bundle/
11
11
  /node_modules/
12
- /.docker-sync
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Change log
2
2
 
3
+ ## Not released
4
+
5
+
6
+ ## 0.7.0
7
+
8
+ - Add binstub bin/language_server-ruby
9
+ - Stop using docker-sync for development
10
+ - Bump language_server-protocol
11
+
3
12
  ## 0.6.0
4
13
 
5
14
  - Rename exe file name language_server -> language_server-ruby
@@ -1,14 +1,14 @@
1
- ARG RUBY_VERSION=2.4.2
1
+ ARG RUBY_VERSION=
2
2
  FROM ruby:$RUBY_VERSION
3
3
 
4
4
  RUN apt-get update && apt-get install less -y
5
5
  RUN groupadd --gid 1000 ruby && useradd --uid 1000 --gid ruby --shell /bin/bash --create-home ruby
6
- RUN mkdir /app && chown ruby:ruby /app
6
+ RUN mkdir /app /vendor && chown -R ruby:ruby /app /vendor
7
7
 
8
8
  ENV LANG=C.UTF-8 \
9
- BUNDLE_PATH=/app/vendor/bundle/$RUBY_VERSION \
9
+ BUNDLE_PATH=/vendor/bundle/$RUBY_VERSION \
10
10
  BUNDLE_JOBS=4
11
11
 
12
12
  USER ruby
13
13
  WORKDIR /app
14
- CMD ["bundle", "exec", "exe/language_server-ruby"]
14
+ CMD ["bin/language_server-ruby"]
data/README.md CHANGED
@@ -48,15 +48,10 @@ Currently, language_server-ruby supports only stdio to communicate.
48
48
 
49
49
  https://docs.docker.com/engine/installation
50
50
 
51
- #### docker-sync
52
-
53
- https://github.com/EugenMayer/docker-sync/wiki/1.-Installation
54
-
55
51
  ### Setup
56
52
 
57
53
  $ git clone https://github.com/mtsmfm/language_server-ruby.git
58
54
  $ cd language_server-ruby
59
- $ docker-sync start
60
55
  $ docker-compose run app bin/setup
61
56
 
62
57
  ### Run test
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ ENV["BUNDLE_GEMFILE"] ||= File.join(__dir__, "..", "Gemfile")
4
+
5
+ require "rubygems"
6
+ require "bundler/setup"
7
+
8
+ load File.join(__dir__, "..", "exe", "language_server-ruby")
data/circle.yml CHANGED
@@ -4,6 +4,7 @@ jobs:
4
4
  docker:
5
5
  - image: tmaier/docker-compose
6
6
  environment:
7
+ COMPOSE_FILE: docker-compose.yml:docker-compose.ci.yml
7
8
  SERVICE_NAME: ruby-2-4
8
9
  steps:
9
10
  - checkout
@@ -13,10 +14,12 @@ jobs:
13
14
  name: setup
14
15
  command: |
15
16
  set -x
16
- docker volume create mtsmfm-language-server-sync
17
- docker create -v mtsmfm-language-server-sync:/app --name mtsmfm-language-server-sync busybox chown -R 1000:1000 /app
18
- docker cp . mtsmfm-language-server-sync:/app
19
- docker start mtsmfm-language-server-sync
17
+ docker info
18
+ docker volume create project
19
+ docker create -v project:/app --name project busybox chown -R 1000:1000 /app
20
+ docker cp . project:/app
21
+ docker start project
22
+ docker-compose build $SERVICE_NAME
20
23
  - run: docker-compose run $SERVICE_NAME bin/setup
21
24
  - run: docker-compose run $SERVICE_NAME bin/m
22
25
  test-2-3:
@@ -24,12 +27,14 @@ jobs:
24
27
  docker:
25
28
  - image: tmaier/docker-compose
26
29
  environment:
30
+ COMPOSE_FILE: docker-compose.yml:docker-compose.ci.yml
27
31
  SERVICE_NAME: ruby-2-3
28
32
  test-2-2:
29
33
  <<: *test
30
34
  docker:
31
35
  - image: tmaier/docker-compose
32
36
  environment:
37
+ COMPOSE_FILE: docker-compose.yml:docker-compose.ci.yml
33
38
  SERVICE_NAME: ruby-2-2
34
39
  workflows:
35
40
  version: 2
@@ -0,0 +1,14 @@
1
+ version: '3.0'
2
+ services:
3
+ app: &app
4
+ volumes:
5
+ - project:/app
6
+ ruby-2-4:
7
+ <<: *app
8
+ ruby-2-3:
9
+ <<: *app
10
+ ruby-2-2:
11
+ <<: *app
12
+ volumes:
13
+ project:
14
+ external: true
@@ -0,0 +1,14 @@
1
+ version: '3.0'
2
+ services:
3
+ app: &app
4
+ volumes:
5
+ - .:/app:cached
6
+ - $HOME/.gitconfig:/home/ruby/.gitconfig:ro
7
+ - $HOME/.ssh:/home/ruby/.ssh:ro
8
+ - $HOME/.gem:/home/ruby/.gem
9
+ ruby-2-4:
10
+ <<: *app
11
+ ruby-2-3:
12
+ <<: *app
13
+ ruby-2-2:
14
+ <<: *app
data/docker-compose.yml CHANGED
@@ -4,14 +4,13 @@ services:
4
4
  build: &app-build
5
5
  context: .
6
6
  dockerfile: Dockerfile.development
7
+ args:
8
+ RUBY_VERSION: 2.4.2
7
9
  environment:
8
10
  LANGUAGE_SERVER_RUBY_REMOTE_ROOT: $PWD
9
11
  volumes:
10
- - mtsmfm-language-server-sync:/app:nocopy
12
+ - vendor:/vendor
11
13
  - home:/home/ruby
12
- - $HOME/.gitconfig:/home/ruby/.gitconfig:ro
13
- - $HOME/.ssh:/home/ruby/.ssh:ro
14
- - $HOME/.gem:/home/ruby/.gem
15
14
  ruby-2-4:
16
15
  <<: *app
17
16
  ruby-2-3:
@@ -27,6 +26,5 @@ services:
27
26
  args:
28
27
  RUBY_VERSION: 2.2.7
29
28
  volumes:
30
- mtsmfm-language-server-sync:
31
- external: true
32
29
  home:
30
+ vendor:
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.require_paths = ["lib"]
27
27
 
28
28
  spec.add_dependency "rcodetools"
29
- spec.add_dependency "language_server-protocol", "0.3.0"
29
+ spec.add_dependency "language_server-protocol", "0.4.0"
30
30
 
31
31
  spec.add_development_dependency "bundler", "~> 1.14"
32
32
  spec.add_development_dependency "rake", "~> 10.0"
@@ -1,3 +1,3 @@
1
1
  module LanguageServer
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: language_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fumiaki MATSUSHIMA
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-21 00:00:00.000000000 Z
11
+ date: 2017-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rcodetools
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.3.0
33
+ version: 0.4.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.3.0
40
+ version: 0.4.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -155,11 +155,13 @@ files:
155
155
  - README.md
156
156
  - Rakefile
157
157
  - bin/console
158
+ - bin/language_server-ruby
158
159
  - bin/m
159
160
  - bin/setup
160
161
  - circle.yml
162
+ - docker-compose.ci.yml
163
+ - docker-compose.override.yml
161
164
  - docker-compose.yml
162
- - docker-sync.yml
163
165
  - exe/language_server-ruby
164
166
  - language_server.gemspec
165
167
  - lib/language_server.rb
data/docker-sync.yml DELETED
@@ -1,9 +0,0 @@
1
- version: '2'
2
- options:
3
- verbose: true
4
- syncs:
5
- mtsmfm-language-server-sync:
6
- src: .
7
- sync_userid: 1000
8
- image: mtsmfm/unison
9
- sync_excludes: ['vendor', 'node_modules', 'tmp']