annotaterb 4.2.0 → 4.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5864a6030a7b4cfbf7751761c07136690ebafe15393d67147789f70319036205
4
- data.tar.gz: a1dc2b99206b342bbd0dbc66795db4156abddfee307acecf6c2c383e8dbe89b1
3
+ metadata.gz: 6600bd03fb521f6d86e1f9dc7e86e2c2020b54cd666ccf21bb23dd7fcc18bdc5
4
+ data.tar.gz: bf68866b5ed4cbc5c52464464cc239bb8d9f22f642492400aaf88ca3296aee29
5
5
  SHA512:
6
- metadata.gz: b7cbd03e31fdc24f27d23d700773c157eca461078cddcd87739605980d6f5f07887b59f345ef41d91994547d8efbc2b82595e454f9e4619a5fe4e0fb506d29cd
7
- data.tar.gz: f162544608cce0746a92250287ca4a5c7d25d151fe5bfe8bf4d18075834e98ce68939dc8b176dbe97d16f1f039a1a001cbb71066b26280f9fb5e83df763ba158
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.2.0
1
+ 4.3.0
@@ -1,6 +1,7 @@
1
1
  # This rake task was added by annotate_rb gem.
2
2
 
3
- if Rails.env.development?
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.2.0
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-02 00:00:00.000000000 Z
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.