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.
- checksums.yaml +4 -4
- data/README.md +35 -3
- data/lib/documinty/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: 9cdaaaa7ee632437dcc089dff1519f0ed89d221455ec410e5774d4b5f065e33d
|
|
4
|
+
data.tar.gz: 2b59162f6da06d1ab50a2065096a96588343c13481e2cf0f8ea14ed0666145e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
```
|
|
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
|
|
88
|
+
dty show_feature user-auth
|
|
84
89
|
```
|
|
85
90
|
### 8. Show file structure under "user-auth"
|
|
86
91
|
```
|
|
87
|
-
dty
|
|
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
|
.
|
data/lib/documinty/version.rb
CHANGED