annotated 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -12
- data/bin/annotate +2 -2
- data/lib/annotated/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 234cffd4332e9173022d1c644686205b444f88a6526cc7770ba25d4ca7d2bb0a
|
4
|
+
data.tar.gz: 80e0347ce4b6ed394fa7a3768844f39e3f831b215dbfb638cd44855b1547295d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a50b1e0aa1e41c55ce7a95d8d97a00c621861f06130c8342269960913317cd1dbf456e9224507b79e0c78062bb0b398c936b7e45f7870060ca4bb1db46feb056
|
7
|
+
data.tar.gz: cd129ad31470998d38d7973ae67364eeec25c1441562660d9762be36452baf2456c4c0eba6c0ac99eb5a5131b80263f8f27bea2f448d76165ce2a4a416262d52
|
data/README.md
CHANGED
@@ -111,29 +111,35 @@ Into environment gems from rubygems.org:
|
|
111
111
|
### Usage in Rails
|
112
112
|
|
113
113
|
To annotate all your models, tests, fixtures, and factories:
|
114
|
-
|
114
|
+
```bash
|
115
115
|
cd /path/to/app
|
116
|
-
annotate
|
116
|
+
bundle exec annotate
|
117
|
+
```
|
117
118
|
|
118
119
|
To annotate just your models, tests, and factories:
|
119
|
-
|
120
|
-
annotate --models --exclude fixtures
|
120
|
+
```bash
|
121
|
+
bundle exec annotate --models --exclude fixtures
|
122
|
+
```
|
121
123
|
|
122
124
|
To annotate just your models:
|
123
|
-
|
124
|
-
annotate --models
|
125
|
+
```bash
|
126
|
+
bundle exec annotate --models
|
127
|
+
```
|
125
128
|
|
126
129
|
To annotate routes.rb:
|
127
|
-
|
128
|
-
annotate --routes
|
130
|
+
```bash
|
131
|
+
bundle exec annotate --routes
|
132
|
+
```
|
129
133
|
|
130
134
|
To remove model/test/fixture/factory/serializer annotations:
|
131
|
-
|
132
|
-
annotate --delete
|
135
|
+
```bash
|
136
|
+
bundle exec annotate --delete
|
137
|
+
```
|
133
138
|
|
134
139
|
To remove routes.rb annotations:
|
135
|
-
|
136
|
-
annotate --routes --delete
|
140
|
+
```bash
|
141
|
+
bundle exec annotate --routes --delete
|
142
|
+
```
|
137
143
|
|
138
144
|
To automatically annotate every time you run `db:migrate`,
|
139
145
|
either run `rails g annotated:install`
|
data/bin/annotate
CHANGED
@@ -28,5 +28,5 @@ options = Annotated.setup_options(
|
|
28
28
|
)
|
29
29
|
Annotated.eager_load(options) if Annotated::Helpers.include_models?
|
30
30
|
|
31
|
-
|
32
|
-
|
31
|
+
AnnotateModels.send(options_result[:target_action], options) if Annotated::Helpers.include_models?
|
32
|
+
AnnotateRoutes.send(options_result[:target_action], options) if Annotated::Helpers.include_routes?
|
data/lib/annotated/version.rb
CHANGED