documinty 0.3.2 → 0.3.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +35 -3
  3. data/lib/documinty/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e847137dcc7a46903f7339d096678c5a07c32413e8877830ba496c6e1325e9e7
4
- data.tar.gz: 5672e3ce3188e413bbc292bfe457deb90af10ba22a3ec8b8a9dbeb28635b2aba
3
+ metadata.gz: 9cdaaaa7ee632437dcc089dff1519f0ed89d221455ec410e5774d4b5f065e33d
4
+ data.tar.gz: 2b59162f6da06d1ab50a2065096a96588343c13481e2cf0f8ea14ed0666145e8
5
5
  SHA512:
6
- metadata.gz: '0859bd3be39d71225c6a04577062a93b5d3411fb237a6c1de93467e78dc74b8b27fefba48908914a52d92385efbc11086479580ed9c2de51a7e23e1579264c83'
7
- data.tar.gz: 4f55d997b8b3a5a1261985830c169b7fb0bf8bdf9c42346c3f5482c492bde72ac0ccc3c7ad6f6deff1b5ea5a0a6cf819b61776db2ed0a68a8aa7f31b21f4623f
6
+ metadata.gz: 6b88c14ac88e558f2e70d345a48a0c2870052857def3e9de9ba18c44f1b0d58c03bf56add9761fd02d6d81fbd7e59e1a3684fc499cb30976f65d362aee374c40
7
+ data.tar.gz: a9999e6a85bba70df3388e5d4f37e522ab7d67f24113f5ba33cda215bea161941940d54c3c922db4470346251b4c93dfdc863c02eedf5275c7fc9c8a2bac0deb
data/README.md CHANGED
@@ -22,7 +22,7 @@ Everything you record lives under a `.documinty/` folder in your project. You ca
22
22
 
23
23
  ### From RubyGems
24
24
 
25
- ```bash
25
+ ```
26
26
  gem install documinty
27
27
  # or, if you prefer the short alias:
28
28
  # gem install dty
@@ -74,23 +74,55 @@ dty doc app/controllers/sessions_controller.rb -f user-auth -n controller
74
74
  ```
75
75
  dty show app/controllers/sessions_controller.rb
76
76
  ```
77
+
78
+ Show documentation under a specific feature
79
+ ```
80
+ dty show app/controllers/sessions_controller.rb -f user-auth
81
+ ```
77
82
  ### 6. List all defined features
78
83
  ```
79
84
  dty features
80
85
  ```
81
86
  ### 7. Show all files under "user-auth"
82
87
  ```
83
- dty list_f user-auth
88
+ dty show_feature user-auth
84
89
  ```
85
90
  ### 8. Show file structure under "user-auth"
86
91
  ```
87
- dty involved_f user-auth
92
+ dty involved user-auth
88
93
  ```
89
94
  ### 9. Search for features that contain "user"
90
95
  ```
91
96
  dty search_f user
92
97
  ```
98
+ ### 10. Add or remove methods for a documented file
99
+ To add:
100
+ ```
101
+ dty methods path/to/file -f user-auth -a add
102
+ ```
103
+
104
+ To add:
105
+ ```
106
+ dty methods path/to/file -f user-auth -a remove
107
+ ```
108
+ you will be prompted to add the comma separated methods that you want to add or remove
109
+ ### 11. Display description of a documented file
110
+ ```
111
+ dty describe path/to/file
112
+ ```
113
+ This will display all the descriptions that a file has undear each of the features
114
+
115
+ Optionally, the feature flag can be passed to specify the description for a feature
116
+ ```
117
+ dty describe path/to/file -f user-auth
118
+ ```
119
+ ### 12. Update the description for a file
120
+ ```
121
+ dty update_description path/to/file -f user-auth
122
+ ```
123
+ NOTE: you must pass the feature when updating the description
93
124
 
125
+ You will be prompted to enter the new description for the file under the feature
94
126
  ### Project layout
95
127
  ```
96
128
  .
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Documinty
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: documinty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcel Carrero Pedre