vim_printer 0.1.10 → 0.1.11

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
  SHA1:
3
- metadata.gz: 8e112f2fc25ae31c97cc8df1dc09168fa5934bd5
4
- data.tar.gz: fb5772428a7b8868cf0ce7adce87c4c1107a3496
3
+ metadata.gz: 96b09b5c56c8c87e0ecaadb6f64186659952394d
4
+ data.tar.gz: 939eb5a82b71caa4d43dff9822f4f69d8c5d5ac3
5
5
  SHA512:
6
- metadata.gz: 6e8cdd0bfa89eba6960496219de7831f0c3bab4b418e3e6cbee24f631b40e255a35ae98766cba5f949cfba38c0655fbcdd700e299638ffac3874d84d915f05a0
7
- data.tar.gz: bbb3ad595c2b44e1ed902c008450a9d707293fe9a7d06b0fe6271eaf96dd061ebc9ac924eb55649dd71a76b1f34d3f18263cb948a00c394d9538145858abc0e7
6
+ metadata.gz: c0aa5c388cfaf2328f98b25376811674cb413e0231b78b3d929cf576f7ccca2b162951e51511761ebf2269f8ffddefcd0e9c4e23c215c9b3ed75b7da5ac3e371
7
+ data.tar.gz: 1c29412e679b899cf7d06bd08a2d426a1ad689f0040fc4e69b4ea40f43cab5726b96e02561416be3bbf4c1978001c36c2b1853723f1aaa500b12b3a2abd9b903
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ### Changelog
2
2
 
3
+ #### 0.1.11
4
+
5
+ - Use lastest version of `code_lister` (0.1.4)
6
+
3
7
  #### 0.1.10
4
8
 
5
9
  - Rename `--shell-command` to `--command` [Improvement]
data/README.md CHANGED
@@ -8,12 +8,13 @@
8
8
  [gemnasium]: https://gemnasium.com/agilecreativity/vim_printer
9
9
  [codeclimate]: https://codeclimate.com/github/agilecreativity/vim_printer
10
10
 
11
- Batch print/export files to htmls using the power of Vim. Output will be saved to `vim_printer_output.tar.gz` and ready for
12
- extract and viewing in your favourite browser.
11
+ Batch print/export files to htmls using the power of Vim. Output will be saved to `vim_printer_#{project_name}.tar.gz` and ready for
12
+ extract and view in your favourite browser.
13
13
 
14
14
  - Unlimited support for [vim colorschemes][] if enabled, or `default` colorscheme that comes with Vim.
15
15
  - Can print any files in any languages that you can open with Vim.
16
16
  - Use the power of [Vim][] to print the code without any other tools.
17
+ - Skip any binary files automatically
17
18
 
18
19
  ### Example Outputs:
19
20
 
@@ -126,8 +127,38 @@ vim_printer --base-dir ./test/fixtures \
126
127
  # To print all ruby files as well as 'Gemfile' or 'Rakefile'
127
128
  vim_printer -e ruby -f Gemfile Rakefile -r
128
129
  ```
130
+ ### Advanced Usage
129
131
 
130
- - For help in using the gem just type `vim_printer` without any parameter
132
+ The new `--command` or `-s` flag can be used to get the input from the list of file.
133
+ Any unix command that can produce the result in the list of file can be used to
134
+ generate the input for printing.
135
+
136
+ My personal use-cases:
137
+
138
+ - Print out any files that we changed in the last N git commit
139
+ (Note any binary files or deleted files will skipped automatically)
140
+
141
+ e.g. Print out any files that were changed in the last 2 commit
142
+
143
+ ```shell
144
+ vim_printer --command 'git diff --name-only'
145
+ ```
146
+
147
+ - Use list of file from the result of `find` with `grep` command
148
+
149
+ ```shell
150
+ vim_printer --command 'find . -type f -iname "*.rb" | grep -v _spec'
151
+ ```
152
+
153
+ - Use the list of file from a pre-defined list in a text file
154
+
155
+ ```
156
+ vim_printer --command 'cat my-input-file-list.txt'
157
+ ```
158
+
159
+ ### Usage/Synopsys
160
+
161
+ For help in using the gem just type `vim_printer` without any parameter
131
162
 
132
163
  ```
133
164
  Usage:
@@ -1,3 +1,3 @@
1
1
  module VimPrinter
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
data/vim_printer.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.test_files = Dir.glob("{test}/**/*")
25
25
  spec.require_paths = ["lib"]
26
26
  spec.add_runtime_dependency "thor", "~> 0.19"
27
- spec.add_runtime_dependency "code_lister", "~> 0.1.3"
27
+ spec.add_runtime_dependency "code_lister", "~> 0.1.4"
28
28
  spec.add_runtime_dependency "index_html", "~> 0.1"
29
29
  spec.add_runtime_dependency "agile_utils", "~> 0.1"
30
30
  spec.add_development_dependency "bundler", "~> 1.3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vim_printer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burin Choomnuan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-14 00:00:00.000000000 Z
11
+ date: 2014-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.3
33
+ version: 0.1.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.3
40
+ version: 0.1.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: index_html
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -253,7 +253,6 @@ files:
253
253
  - test/fixtures/inputs/java/demo4.yyy.java
254
254
  - test/fixtures/inputs/noexts1_zzz
255
255
  - test/fixtures/inputs/noexts2_zzz
256
- - test/fixtures/inputs/vim_printer_output.tar.gz
257
256
  - test/fixtures/outputs/demo1.xxx.rb.xhtml
258
257
  - test/fixtures/outputs/demo1.yyy.rb.xhtml
259
258
  - test/fixtures/outputs/demo2.xxx.rb.xhtml
@@ -291,25 +290,24 @@ specification_version: 4
291
290
  summary: Batch convert multiple files to htmls using the power of Vim. Work will any
292
291
  languages that can be open with Vim e.g. any non-binary files.
293
292
  test_files:
294
- - test/fixtures/inputs/demo1.xxx.rb
295
- - test/fixtures/inputs/demo1.yyy.rb
296
- - test/fixtures/inputs/demo2.xxx.rb
297
- - test/fixtures/inputs/demo2.yyy.rb
298
- - test/fixtures/inputs/java/demo3.xxx.java
299
- - test/fixtures/inputs/java/demo3.yyy.java
300
- - test/fixtures/inputs/java/demo4.xxx.java
301
- - test/fixtures/inputs/java/demo4.yyy.java
302
- - test/fixtures/inputs/noexts1_zzz
303
- - test/fixtures/inputs/noexts2_zzz
304
- - test/fixtures/inputs/vim_printer_output.tar.gz
293
+ - test/lib/vim_printer/test_cli.rb
294
+ - test/test_helper.rb
305
295
  - test/fixtures/outputs/demo1.xxx.rb.xhtml
306
- - test/fixtures/outputs/demo1.yyy.rb.xhtml
307
- - test/fixtures/outputs/demo2.xxx.rb.xhtml
308
- - test/fixtures/outputs/demo2.yyy.rb.xhtml
309
296
  - test/fixtures/outputs/java/demo3.xxx.java.xhtml
297
+ - test/fixtures/outputs/java/demo4.yyy.java.xhtml
310
298
  - test/fixtures/outputs/java/demo3.yyy.java.xhtml
311
299
  - test/fixtures/outputs/java/demo4.xxx.java.xhtml
312
- - test/fixtures/outputs/java/demo4.yyy.java.xhtml
313
- - test/lib/vim_printer/test_cli.rb
314
- - test/test_helper.rb
300
+ - test/fixtures/outputs/demo2.xxx.rb.xhtml
301
+ - test/fixtures/outputs/demo1.yyy.rb.xhtml
302
+ - test/fixtures/outputs/demo2.yyy.rb.xhtml
303
+ - test/fixtures/inputs/noexts2_zzz
304
+ - test/fixtures/inputs/java/demo3.xxx.java
305
+ - test/fixtures/inputs/java/demo4.xxx.java
306
+ - test/fixtures/inputs/java/demo3.yyy.java
307
+ - test/fixtures/inputs/java/demo4.yyy.java
308
+ - test/fixtures/inputs/demo2.yyy.rb
309
+ - test/fixtures/inputs/demo1.yyy.rb
310
+ - test/fixtures/inputs/demo2.xxx.rb
311
+ - test/fixtures/inputs/noexts1_zzz
312
+ - test/fixtures/inputs/demo1.xxx.rb
315
313
  has_rdoc: