annotaterb 4.2.0 → 4.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/VERSION +1 -1
- data/lib/generators/annotate_rb/install/templates/annotate_rb.rake +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6600bd03fb521f6d86e1f9dc7e86e2c2020b54cd666ccf21bb23dd7fcc18bdc5
|
4
|
+
data.tar.gz: bf68866b5ed4cbc5c52464464cc239bb8d9f22f642492400aaf88ca3296aee29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1e0c299850467b29e7fb2a7fecb83464e4eb0a5d1325b688591d0ca03dc98ffcc691d4d1262861bc03aa2648249b54401020a6dbbf11600d7991b54d149be90
|
7
|
+
data.tar.gz: a85ea32f4acb1cbd189d501c41d8fffa18ba8ce930e871fb804686803e94474273aa7617f33229ff397840f7055e0f06222b8e2095e1617e9b1e660a54865d4b
|
data/README.md
CHANGED
@@ -59,6 +59,12 @@ $ bin/rails g annotate_rb:install
|
|
59
59
|
|
60
60
|
This will copy a rake task into your Rails project's `lib/tasks` directory that will hook into the Rails project rake tasks, automatically running AnnotateRb after database migration rake tasks.
|
61
61
|
|
62
|
+
To skip the automatic annotation that happens after a db task, pass the environment variable `ANNOTATERB_SKIP_ON_DB_TASKS=1` before your command.
|
63
|
+
|
64
|
+
```sh
|
65
|
+
$ ANNOTATERB_SKIP_ON_DB_TASKS=1 bin/rails db:migrate
|
66
|
+
```
|
67
|
+
|
62
68
|
## Migrating from the annotate gem
|
63
69
|
Refer to the [migration guide](MIGRATION_GUIDE.md).
|
64
70
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.
|
1
|
+
4.3.0
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# This rake task was added by annotate_rb gem.
|
2
2
|
|
3
|
-
|
3
|
+
# Can set `ANNOTATERB_SKIP_ON_DB_TASKS` to be anything to skip this
|
4
|
+
if Rails.env.development? && ENV["ANNOTATERB_SKIP_ON_DB_TASKS"].nil?
|
4
5
|
require "annotate_rb"
|
5
6
|
|
6
7
|
AnnotateRb::Core.load_rake_tasks
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: annotaterb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew W. Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Annotates Rails/ActiveRecord Models, routes, fixtures, and others based
|
14
14
|
on the database schema.
|