watson-ruby 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +24 -1
- data/lib/watson/command.rb +6 -3
- data/lib/watson/parser.rb +2 -1
- data/lib/watson/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c13ba5881255f027628ecb4d0c2b89c001e4940e
|
4
|
+
data.tar.gz: 406069b4a52de7d481b5907a59bb35c8dd6abe6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74bcaa0ac025a657062122bc02df3146cc3189b6ae579eb6ca4f52f3a5a4782076be2c30d206c308f288b2986671db0c81cd89c97b7364da761d9e20faf94af2
|
7
|
+
data.tar.gz: 6098f8440287d51898970381aa1583e8186ae88fed76fd6fa0568c589d146279b835c1f6708ec427b186b999fe066c7248cb33c37c3e8ba65c7cd2606306e9f5
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -25,6 +25,14 @@ bundle install
|
|
25
25
|
bundle exec rake
|
26
26
|
```
|
27
27
|
|
28
|
+
|
29
|
+
## Recent Updates
|
30
|
+
- [vim-unite-watson.vim](https://github.com/alpaca-tc/vim-unite-watson.vim) integrates watson right into vim!
|
31
|
+
- watson now supports multiple export modes
|
32
|
+
- JSON output allows you to integrate watson parse data into your own apps
|
33
|
+
- Silent output allows you to use watson without a printout; tie it to git hooks for streamlined issue posting
|
34
|
+
|
35
|
+
|
28
36
|
## Usage
|
29
37
|
For a quick idea of how to use watson, check out the [app demo](http://goosecode.com/watson)! ([mirror](http://nhmood.github.io/watson-ruby))
|
30
38
|
See below for a description of what all the command line arguments do.
|
@@ -103,7 +111,8 @@ If passed with `json`, the output will be in the form of JSON, and will be store
|
|
103
111
|
|
104
112
|
- This particular option is useful if attempting to intergrate watson into other tools / platforms.
|
105
113
|
|
106
|
-
If passed with `unite`, the output will be compatible with the vim
|
114
|
+
If passed with `unite`, the output will be compatible with the unite.vim plugin
|
115
|
+
(see the **Unite** section below or visit [alpaca-tc/vim-unite-watson](https://github.com/alpaca-tc/vim-unite-watson.vim)
|
107
116
|
|
108
117
|
If passed with `silent`, watson will have no output.
|
109
118
|
|
@@ -179,6 +188,20 @@ Currently, OAuth has yet to be implemented for Bitbucket so the Bitbucket userna
|
|
179
188
|
|
180
189
|
The remote related .watsonrc options shouldn't need to be edited manually, as they are automatically populated when the -r, --remote setup is called.
|
181
190
|
|
191
|
+
## unite.vim
|
192
|
+
### [vim-unite-watson.vim](https://github.com/alpaca-tc/vim-unite-watson.vim) by [alpaca-tc](http://github.com/alpaca-tc)
|
193
|
+
**alpaca-tc** was kind enough to create a [unite.vim](https://github.com/Shougo/unite.vim) plugin to integrate with watson!
|
194
|
+
**unite.vim** allows you to create user interfaces within vim and lets you search and display any kind of information.
|
195
|
+
The **unite-vim-watson.vim** plugin allows you to:
|
196
|
+
|
197
|
+
- Generate a list of issues directly inside vim
|
198
|
+
- Search and select files displayed in the watson output
|
199
|
+
- Jump directly to the line where the issue is located (!!)
|
200
|
+
|
201
|
+
If you use vim I ***definitely*** recommend using **vim-unite-watson.vim**, it works wonders for productivity!
|
202
|
+
|
203
|
+
### See it in action [here (GIF demo)](https://github.com/alpaca-tc/vim-unite-watson.vim)
|
204
|
+
|
182
205
|
## Special Thanks
|
183
206
|
Special thanks to [@samirahmed](http://github.com/samirahmed) for his super Ruby help and encouraging the Ruby port!
|
184
207
|
Special thanks to [@eugenekolo](http://twitter.com/eugenekolo) [[email](eugenek@bu.edu)] for his super Perl help!
|
data/lib/watson/command.rb
CHANGED
@@ -177,14 +177,17 @@ module Watson
|
|
177
177
|
Running watson with no arguments will parse with settings in RC file
|
178
178
|
If no RC file exists, default RC file will be created
|
179
179
|
|
180
|
-
-c, --context-depth
|
180
|
+
-c, --context-depth lines of context to provide with posted issue
|
181
181
|
-d, --dirs list of directories to search in
|
182
182
|
-f, --files list of files to search in
|
183
|
-
--format set output format for watson
|
183
|
+
--format set output format for watson
|
184
|
+
[print, json, unite, silent]
|
184
185
|
-h, --help print help
|
185
186
|
-i, --ignore list of files, directories, or types to ignore
|
186
187
|
-p, --parse-depth depth to recursively parse directories
|
187
188
|
-r, --remote list / create tokens for Bitbucket/GitHub
|
189
|
+
-s, --show filter results (files listed) based on issue status
|
190
|
+
[all, clean, dirty]
|
188
191
|
-t, --tags list of tags to search for
|
189
192
|
-u, --update update remote repos with current issues
|
190
193
|
-v, --version print watson version and info
|
@@ -194,7 +197,7 @@ module Watson
|
|
194
197
|
To use *.filetype identifier, encapsulate in \"\" to avoid shell substitutions
|
195
198
|
|
196
199
|
Report bugs to: watson\@goosecode.com
|
197
|
-
watson home page: <http://goosecode.com/
|
200
|
+
watson home page: <http://goosecode.com/watson>
|
198
201
|
[goosecode] labs | 2012-2013#{RESET}
|
199
202
|
HELP
|
200
203
|
|
data/lib/watson/parser.rb
CHANGED
@@ -262,7 +262,8 @@ module Watson
|
|
262
262
|
# Make sure that the tag that was found is something we accept
|
263
263
|
# If not, skip it but tell user about an unrecognized tag
|
264
264
|
unless @config.tag_list.include?(_tag)
|
265
|
-
Printer.
|
265
|
+
formatter = Printer.new(@config).build_formatter
|
266
|
+
formatter.print_status "+", GREEN
|
266
267
|
print "Unknown tag [#{ _tag }] found, ignoring\n"
|
267
268
|
print " You might want to include it in your RC or with the -t/--tags flag\n"
|
268
269
|
next
|
data/lib/watson/version.rb
CHANGED