solargraph-rails 1.0.1 → 1.1.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
  SHA256:
3
- metadata.gz: 674da2b5a3f833920c2c92893cfa936cb430e23e0bae6a7712b91cebe4b2815f
4
- data.tar.gz: e7950faaeacc82868a4d91ceba186fc31aa78a6fe5e257969e9907ceb2b54656
3
+ metadata.gz: 8535143a29b76e1a9800e728bbc2c6d8d996dde200a162c4ad7b2747c859f3cb
4
+ data.tar.gz: 8fb9ee00b1486f63489b788bbc49db1301027ae47928f0aec1c686bdd0f0b6d0
5
5
  SHA512:
6
- metadata.gz: e3d254a4d99b5a85eb4f588d89014dc0bd349af5f702e3c42f011c5bc3dac6ad27901f3ab4267d04f277e011fe7124d20223e2864be241e48d7d50c932c82e9a
7
- data.tar.gz: 21f12ce2c310c873f4b1d7539c30be580a57437f1411553bbad073e174cc29dea8ec85f761e569cb546e0719c5dbe51477cb5efce25f2f0834e92c0b6b5570ec
6
+ metadata.gz: 013c47d9b9b382bb11da4f8463aeb5bdf94afe71bdcac2c8bce2609d1d81cc3a7f9857bc2003665615d2538a2ca6be43550b3ba14a21144315011c2d607a8475
7
+ data.tar.gz: 280e6f1520de2562a725da745d4d2295150660403c2eb02177cdbfbe3784e0c048d34363cbd431d59891226716c836517d0f197435cd01d5248252db56a9246c
@@ -14,25 +14,32 @@ on:
14
14
 
15
15
  jobs:
16
16
  test:
17
- runs-on: ubuntu-latest
17
+ # older versions of Ruby want openssl1 which is not on ubuntu-latest
18
+ runs-on: ubuntu-20.04
18
19
  strategy:
19
20
  matrix:
20
21
  ruby-version:
21
22
  - "2.7"
22
23
  - "3.0"
23
- - "3.1"
24
+ solargraph-version:
25
+ - "0.44.3"
26
+ - "0.45.0"
27
+ - "0.46.0"
28
+ - "0.47.2"
29
+ fail-fast: false
24
30
 
25
31
  steps:
26
32
  - uses: actions/checkout@v2
27
- - uses: ruby/setup-ruby@v1
33
+ - name: Cache RVM
34
+ uses: actions/cache@v3
35
+ id: rvm
28
36
  with:
29
- ruby-version: ${{ matrix.ruby-version }}
30
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
31
- - name: Install Rails 5 deps
32
- run: (cd spec/rails5; bundle install; yard gems)
33
- - name: Install Rails 6 deps
34
- run: (cd spec/rails6; bundle install; yard gems)
35
- - name: Install Rails 7 deps
36
- run: (cd spec/rails7; bundle install; yard gems)
37
- - name: Run tests
38
- run: bundle exec rspec
37
+ key: ${{ runner.os }}-rvm-${{ matrix.ruby-version }}
38
+ path: |
39
+ /home/runner/.rvm
40
+ /home/runner/.yardoc
41
+ #/usr/local/rvm/
42
+ #- name: Setup upterm session
43
+ # uses: lhotari/action-upterm@v1
44
+ - name: Test
45
+ run: "/bin/bash ./ci.sh ${{ matrix.ruby-version }} ${{ matrix.solargraph-version}}"
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Changes
4
4
 
5
+ ### v1.1.0
6
+
7
+ - remove pinned solargraph version
8
+
5
9
  ### v1.0.1
6
10
 
7
11
  https://github.com/alisnic/solargraph-arc was merged, with the following features:
data/ci.sh ADDED
@@ -0,0 +1,34 @@
1
+ #!/bin/bash
2
+ set -e
3
+ # when running in github actions:
4
+ RVM_PATH=/home/runner/.rvm
5
+ # when running locally using act:
6
+ #RVM_PATH=/usr/local/rvm
7
+ MATRIX_RUBY_VERSION=$1
8
+ MATRIX_SOLARGRAPH_VERSION=$2
9
+
10
+ if [[ ! -d $RVM_PATH ]]; then
11
+ # this fetches the develop version; using -s stable should fetch the latest stable, but has a gpg error:
12
+ curl -sSL https://get.rvm.io | bash -s
13
+ fi
14
+
15
+ # when running in github actions:
16
+ source /home/runner/.rvm/scripts/rvm
17
+ # when running locally in Act container:
18
+ #source /usr/local/rvm/scripts/rvm
19
+
20
+
21
+ #rvm package install openssl # hack because ubuntu won't give us openSSL
22
+ rvm install ruby $MATRIX_RUBY_VERSION
23
+ rvm use $MATRIX_RUBY_VERSION
24
+ gem install bundler
25
+
26
+ echo "s/gem 'solargraph'/gem 'solargraph', '${MATRIX_SOLARGRAPH_VERSION}'/" > command.sed
27
+
28
+ (cd spec/rails5; sed -i -f ../../command.sed Gemfile; cat Gemfile; bundle install; yard gems)
29
+ (cd spec/rails6; sed -i -f ../../command.sed Gemfile; cat Gemfile; bundle install; yard gems)
30
+ (cd spec/rails7; sed -i -f ../../command.sed Gemfile; cat Gemfile; bundle install; yard gems)
31
+
32
+ bundle install
33
+
34
+ bundle exec rspec
@@ -1,5 +1,5 @@
1
1
  module Solargraph
2
2
  module Rails
3
- VERSION = '1.0.1'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
@@ -27,6 +27,6 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency 'rake', '~> 12.3.3'
28
28
  spec.add_development_dependency 'rspec', '~> 3.0'
29
29
 
30
- spec.add_runtime_dependency 'solargraph', '~> 0.44.2'
30
+ spec.add_runtime_dependency 'solargraph'
31
31
  spec.add_runtime_dependency 'activesupport'
32
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solargraph-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fritz Meissner
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-15 00:00:00.000000000 Z
11
+ date: 2022-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: solargraph
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 0.44.2
61
+ version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 0.44.2
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activesupport
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -102,6 +102,7 @@ files:
102
102
  - Rakefile
103
103
  - bin/console
104
104
  - bin/setup
105
+ - ci.sh
105
106
  - lib/solargraph-rails.rb
106
107
  - lib/solargraph/rails/annotate.rb
107
108
  - lib/solargraph/rails/annotations.rb
@@ -138,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
139
  - !ruby/object:Gem::Version
139
140
  version: '0'
140
141
  requirements: []
141
- rubygems_version: 3.3.11
142
+ rubygems_version: 3.1.6
142
143
  signing_key:
143
144
  specification_version: 4
144
145
  summary: Solargraph plugin that adds Rails-specific code through a Convention