solargraph-rails 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +20 -13
- data/CHANGELOG.md +4 -0
- data/ci.sh +34 -0
- data/lib/solargraph/rails/version.rb +1 -1
- data/solargraph-rails.gemspec +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8535143a29b76e1a9800e728bbc2c6d8d996dde200a162c4ad7b2747c859f3cb
|
4
|
+
data.tar.gz: 8fb9ee00b1486f63489b788bbc49db1301027ae47928f0aec1c686bdd0f0b6d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 013c47d9b9b382bb11da4f8463aeb5bdf94afe71bdcac2c8bce2609d1d81cc3a7f9857bc2003665615d2538a2ca6be43550b3ba14a21144315011c2d607a8475
|
7
|
+
data.tar.gz: 280e6f1520de2562a725da745d4d2295150660403c2eb02177cdbfbe3784e0c048d34363cbd431d59891226716c836517d0f197435cd01d5248252db56a9246c
|
data/.github/workflows/ruby.yml
CHANGED
@@ -14,25 +14,32 @@ on:
|
|
14
14
|
|
15
15
|
jobs:
|
16
16
|
test:
|
17
|
-
|
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
|
-
|
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
|
-
-
|
33
|
+
- name: Cache RVM
|
34
|
+
uses: actions/cache@v3
|
35
|
+
id: rvm
|
28
36
|
with:
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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
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
|
data/solargraph-rails.gemspec
CHANGED
@@ -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'
|
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
|
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-
|
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
|
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
|
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.
|
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
|