annotated 0.0.2 → 0.0.3

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: ea4ef76844ac894dd5f2e1c7b8da271b11895a9a12c52463c0e3c8dce030b52f
4
- data.tar.gz: 8b05151069ef5c88b6d3d39d08ab2010eebfc4a58075572ba3b6468b9d014088
3
+ metadata.gz: 234cffd4332e9173022d1c644686205b444f88a6526cc7770ba25d4ca7d2bb0a
4
+ data.tar.gz: 80e0347ce4b6ed394fa7a3768844f39e3f831b215dbfb638cd44855b1547295d
5
5
  SHA512:
6
- metadata.gz: 6f428b49d763c6958f54ad635e90b667844899845121741a9609e7f47efc752d0ea2eaa3cf283402762e5413eae215cc2d88477a621dadcb846f0553620f2e13
7
- data.tar.gz: 25c0ce76f86c2580e58c13221161de979bbbd73dc50fbe89dfd01fa76f58514d5b40c181bb1c34688f12b8fb14e37f82eacf6dd9126f699588b8ca1346865c5d
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
- AnnotatedModels.send(options_result[:target_action], options) if Annotated::Helpers.include_models?
32
- AnnotatedRoutes.send(options_result[:target_action], options) if Annotated::Helpers.include_routes?
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?
@@ -1,5 +1,5 @@
1
1
  module Annotated
2
2
  def self.version
3
- "0.0.2"
3
+ "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: annotated
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Froelich