solargraph-rails 0.2.0.pre → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Gemfile.lock +94 -0
- data/README.md +8 -16
- 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: df10b3b2f00a486c79433fbb7038ffbee966d3420022b3789a5fd00965769524
|
4
|
+
data.tar.gz: b1fb1d828e84a1f74d0f4ab644050fef127e3a019be3f5ef3592d0cb9893b0ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31be19170418090a2f09e207b9c7a3c421ce74c17138730ce1670bddefbeffdbe0775158598aefd1630346a43beba6d5f4128705a236cf89765845b7b9170976
|
7
|
+
data.tar.gz: 2bfd1f0f082d1f52686ec6342ffc30fe84f374a5fe52dc5e8cad3a5995b28e7f0a9f99bf854a06b92e8926cbd5a4d3f3f5adbe498e95f726f49ee28fe74ac63d
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
solargraph-rails (0.2.0.pre)
|
5
|
+
solargraph (~> 0.40.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
ast (2.4.2)
|
11
|
+
backport (1.1.2)
|
12
|
+
benchmark (0.1.1)
|
13
|
+
bundler-audit (0.8.0)
|
14
|
+
bundler (>= 1.2.0, < 3)
|
15
|
+
thor (~> 1.0)
|
16
|
+
byebug (11.1.3)
|
17
|
+
diff-lcs (1.4.4)
|
18
|
+
e2mmap (0.1.0)
|
19
|
+
jaro_winkler (1.5.4)
|
20
|
+
kramdown (2.3.1)
|
21
|
+
rexml
|
22
|
+
kramdown-parser-gfm (1.1.0)
|
23
|
+
kramdown (~> 2.0)
|
24
|
+
mini_portile2 (2.5.1)
|
25
|
+
nokogiri (1.11.6)
|
26
|
+
mini_portile2 (~> 2.5.0)
|
27
|
+
racc (~> 1.4)
|
28
|
+
parallel (1.20.1)
|
29
|
+
parser (3.0.1.1)
|
30
|
+
ast (~> 2.4.1)
|
31
|
+
racc (1.5.2)
|
32
|
+
rainbow (3.0.0)
|
33
|
+
rake (12.3.3)
|
34
|
+
regexp_parser (2.1.1)
|
35
|
+
reverse_markdown (2.0.0)
|
36
|
+
nokogiri
|
37
|
+
rexml (3.2.5)
|
38
|
+
rspec (3.10.0)
|
39
|
+
rspec-core (~> 3.10.0)
|
40
|
+
rspec-expectations (~> 3.10.0)
|
41
|
+
rspec-mocks (~> 3.10.0)
|
42
|
+
rspec-core (3.10.0)
|
43
|
+
rspec-support (~> 3.10.0)
|
44
|
+
rspec-expectations (3.10.0)
|
45
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
46
|
+
rspec-support (~> 3.10.0)
|
47
|
+
rspec-mocks (3.10.0)
|
48
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
49
|
+
rspec-support (~> 3.10.0)
|
50
|
+
rspec-support (3.10.0)
|
51
|
+
rubocop (1.15.0)
|
52
|
+
parallel (~> 1.10)
|
53
|
+
parser (>= 3.0.0.0)
|
54
|
+
rainbow (>= 2.2.2, < 4.0)
|
55
|
+
regexp_parser (>= 1.8, < 3.0)
|
56
|
+
rexml
|
57
|
+
rubocop-ast (>= 1.5.0, < 2.0)
|
58
|
+
ruby-progressbar (~> 1.7)
|
59
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
60
|
+
rubocop-ast (1.7.0)
|
61
|
+
parser (>= 3.0.1.1)
|
62
|
+
ruby-progressbar (1.11.0)
|
63
|
+
solargraph (0.40.4)
|
64
|
+
backport (~> 1.1)
|
65
|
+
benchmark
|
66
|
+
bundler (>= 1.17.2)
|
67
|
+
e2mmap
|
68
|
+
jaro_winkler (~> 1.5)
|
69
|
+
kramdown (~> 2.3)
|
70
|
+
kramdown-parser-gfm (~> 1.1)
|
71
|
+
parser (~> 3.0)
|
72
|
+
reverse_markdown (>= 1.0.5, < 3)
|
73
|
+
rubocop (>= 0.52)
|
74
|
+
thor (~> 1.0)
|
75
|
+
tilt (~> 2.0)
|
76
|
+
yard (~> 0.9, >= 0.9.24)
|
77
|
+
thor (1.1.0)
|
78
|
+
tilt (2.0.10)
|
79
|
+
unicode-display_width (2.0.0)
|
80
|
+
yard (0.9.26)
|
81
|
+
|
82
|
+
PLATFORMS
|
83
|
+
ruby
|
84
|
+
|
85
|
+
DEPENDENCIES
|
86
|
+
bundler (~> 2.2.10)
|
87
|
+
bundler-audit
|
88
|
+
byebug
|
89
|
+
rake (~> 12.3.3)
|
90
|
+
rspec (~> 3.0)
|
91
|
+
solargraph-rails!
|
92
|
+
|
93
|
+
BUNDLED WITH
|
94
|
+
2.2.16
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Solargraph::Rails - Help solargraph with Rails
|
2
2
|
|
3
3
|
## Work in progress - here be dragons
|
4
|
-
There are significant rough edges to this gem still.
|
4
|
+
There are significant rough edges to this gem still. You won't be able to use it if you're not willing to install a gem using `--pre`. See `Installation` below for more info.
|
5
5
|
|
6
6
|
## Models
|
7
7
|
Given a typical Rails model like this:
|
@@ -61,26 +61,18 @@ This project is being used to write production code by the maintainer, but it is
|
|
61
61
|
|
62
62
|
### Install `solargraph` v0.40+ and `solargraph_rails` locally
|
63
63
|
|
64
|
-
|
64
|
+
Typically gems like these are not installed via the Gemfile, because most projects have more than one contributor and other contributors might have different setups for their editors in mind. Instead you need to use `gem install`.
|
65
65
|
|
66
|
-
|
67
|
-
2. Run `gem build` in the root of your clone to create `solargraph-0.40.0.gem`
|
68
|
-
3. Clone solargraph_rails
|
69
|
-
4. Run `gem build` in the root of your clone to create `solargraph_rails-0.1.1.gem`
|
70
|
-
5. From the root of your Rails app, install solargraph locally: `gem install --local /path/to/solargraph-0.40.0.gem`
|
71
|
-
6. From the root of your Rails app, install solargraph_rails locally: `gem install --local /path/to/solargraph_rails-0.1.1.gem`
|
72
|
-
|
73
|
-
### Install gems outside of bundler
|
74
|
-
This is the path described above. typically gems like these are not installed via the Gemfile, because most projects have more than one contributor and other contributors might have different setups for their editors in mind. Instead you need to use `gem install`.
|
66
|
+
`gem install solargraph-rails --pre`
|
75
67
|
|
76
68
|
#### Alternative: using bundler
|
77
|
-
If you do want to use bundler, add `gem
|
69
|
+
If you do want to use bundler, add `gem 'solargraph-rails', '0.2.0.pre'`
|
78
70
|
|
79
|
-
### Add `
|
71
|
+
### Add `solargraph-rails` to your `.solargraph.yml`
|
80
72
|
|
81
73
|
```
|
82
74
|
plugins:
|
83
|
-
-
|
75
|
+
- solargraph-rails
|
84
76
|
```
|
85
77
|
|
86
78
|
### Add annotate
|
@@ -92,9 +84,9 @@ Fork the project, start hacking, put up a PR :).
|
|
92
84
|
|
93
85
|
When you make changes, you probably need to shut down solargraph and restart it (maybe that requires you to shut down your whole editor?). You can speed up the feedback loop by running
|
94
86
|
|
95
|
-
`api_map = Solargraph::ApiMap.load(Rails.root)`
|
87
|
+
`api_map = Solargraph::ApiMap.load(Rails.root.to_s)`
|
96
88
|
|
97
|
-
in the console of the Rails project where
|
89
|
+
in the console of the Rails project where solargraph-rails is installed. This may require restarting the rails console each time, and possibly killing Spring.
|
98
90
|
|
99
91
|
Once you have an instance of `Solargraph::ApiMap`, you can interrogate it with Solargraph code like:
|
100
92
|
|
data/solargraph-rails.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_development_dependency "bundler", "~> 2.
|
24
|
+
spec.add_development_dependency "bundler", "~> 2.2.10"
|
25
25
|
spec.add_development_dependency "rake", "~> 12.3.3"
|
26
26
|
spec.add_development_dependency "rspec", "~> 3.0"
|
27
27
|
|
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: 0.2.0
|
4
|
+
version: 0.2.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: 2021-
|
11
|
+
date: 2021-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.2.10
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.2.10
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,6 +78,7 @@ files:
|
|
78
78
|
- ".rspec"
|
79
79
|
- ".travis.yml"
|
80
80
|
- Gemfile
|
81
|
+
- Gemfile.lock
|
81
82
|
- LICENSE.txt
|
82
83
|
- README.md
|
83
84
|
- Rakefile
|
@@ -107,11 +108,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
108
|
version: '0'
|
108
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
110
|
requirements:
|
110
|
-
- - "
|
111
|
+
- - ">="
|
111
112
|
- !ruby/object:Gem::Version
|
112
|
-
version:
|
113
|
+
version: '0'
|
113
114
|
requirements: []
|
114
|
-
rubygems_version: 3.
|
115
|
+
rubygems_version: 3.2.3
|
115
116
|
signing_key:
|
116
117
|
specification_version: 4
|
117
118
|
summary: Solargraph plugin that adds Rails-specific code through a Convention
|