rbs_rails 0.10.1 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -5
- data/lib/generators/rbs_rails/install_generator.rb +26 -0
- data/lib/rbs_rails/version.rb +1 -1
- data/sig/{activerecord.rbs → _internal/activerecord.rbs} +0 -0
- data/sig/{fileutils.rbs → _internal/fileutils.rbs} +0 -0
- data/sig/_internal/thor.rbs +5 -0
- data/sig/install_generator.rbs +5 -0
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66770df53a677c589c39cfd828149a60b4ef261979e11cc7dc823a1df475495f
|
4
|
+
data.tar.gz: 88de9ae8cc7597b4e28978f9a72a696742a5ece83b4d401fed92061fdd2b1590
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e76c5de12b626f50db6f7e032dc323de1c79067a3cb9f8e0c4e3ba5ebd71d30d4e1679144573b3eec2788d75edd33b4ff084c5ffb7ccb8839f2293e5f061595e
|
7
|
+
data.tar.gz: b259952abf7664a8335a8cebda843e869a1b38c27fa010d0a927134aa56d11d63e4df20ce3850c9c2d12f62228593bd14f75ff95b7f782d00dc90d19610e71c1
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
## master (unreleased)
|
4
4
|
|
5
|
+
## 0.11.0 (2022-03-24)
|
6
|
+
|
7
|
+
### New Features
|
8
|
+
|
9
|
+
* Add rails generator to generate rbs.rake. [#217](https://github.com/pocke/rbs_rails/pull/217)
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* Do not expose polyfil RBSs. [#218](https://github.com/pocke/rbs_rails/pull/218)
|
14
|
+
|
5
15
|
## 0.10.1 (2022-03-23)
|
6
16
|
|
7
17
|
### Bug Fixes
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -20,12 +20,10 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
Run the following command. It generates `lib/tasks/rbs.rake`.
|
24
24
|
|
25
|
-
```
|
26
|
-
|
27
|
-
|
28
|
-
RbsRails::RakeTask.new
|
25
|
+
```console
|
26
|
+
$ bin/rails g rbs_rails:install
|
29
27
|
```
|
30
28
|
|
31
29
|
Then, the following three tasks are available.
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'rails'
|
2
|
+
|
3
|
+
module RbsRails
|
4
|
+
class InstallGenerator < Rails::Generators::Base
|
5
|
+
def create_raketask
|
6
|
+
create_file "lib/tasks/rbs.rake", <<~RUBY
|
7
|
+
require 'rbs_rails/rake_task'
|
8
|
+
|
9
|
+
RbsRails::RakeTask.new do |task|
|
10
|
+
# If you want to avoid generating RBS for some classes, comment in it.
|
11
|
+
# default: nil
|
12
|
+
#
|
13
|
+
# task.ignore_model_if = -> (klass) { klass == MyClass }
|
14
|
+
|
15
|
+
# If you want to change the rake task namespace, comment in it.
|
16
|
+
# default: :rbs_rails
|
17
|
+
# task.name = :cool_rbs_rails
|
18
|
+
|
19
|
+
# If you want to change where RBS Rails writes RBSs into, comment in it.
|
20
|
+
# default: Rails.root / 'sig/rbs_rails'
|
21
|
+
# task.signature_root_dir = Rails.root / 'my_sig/rbs_rails'
|
22
|
+
end
|
23
|
+
RUBY
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/lib/rbs_rails/version.rb
CHANGED
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbs_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masataka Pocke Kuwabara
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- bin/rbs-prototype-rb.rb
|
64
64
|
- bin/setup
|
65
65
|
- bin/to-ascii.rb
|
66
|
+
- lib/generators/rbs_rails/install_generator.rb
|
66
67
|
- lib/rbs_rails.rb
|
67
68
|
- lib/rbs_rails/active_record.rb
|
68
69
|
- lib/rbs_rails/dependency_builder.rb
|
@@ -73,8 +74,10 @@ files:
|
|
73
74
|
- rbs_collection.lock.yaml
|
74
75
|
- rbs_collection.yaml
|
75
76
|
- rbs_rails.gemspec
|
76
|
-
- sig/activerecord.rbs
|
77
|
-
- sig/fileutils.rbs
|
77
|
+
- sig/_internal/activerecord.rbs
|
78
|
+
- sig/_internal/fileutils.rbs
|
79
|
+
- sig/_internal/thor.rbs
|
80
|
+
- sig/install_generator.rbs
|
78
81
|
- sig/parser.rbs
|
79
82
|
- sig/rake.rbs
|
80
83
|
- sig/rbs_rails.rbs
|