vim_printer 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6ae99c514338632b1d9465e98a19fa21251fd4a
4
- data.tar.gz: b873f41010687e53a17b443573ce4ce84645395e
3
+ metadata.gz: d42de356e6e83acf3e63f846165fe28b2e6289b6
4
+ data.tar.gz: 911cc031942cadadc2f494b7bd2271beb802aec8
5
5
  SHA512:
6
- metadata.gz: 2a2dfbfd01bac1faeaf826b6ab33e2515814216a0a75754c06fb56f250a88eb1bc43b2775639e1b1fa314ab0ed2bc50c5ba1389fb1b74ea0fca571888b0d1d24
7
- data.tar.gz: 7d814db7d5066843569b47e8b303e6c97ae12aaa910eaf2e2873471b201880799d27047bfb7aad28b4d83ed43d8f5fc97f391e5c06d2fc41d4f1e3eec01e22b1
6
+ metadata.gz: 127858721945d9b86b565c655e397e55b94a949ed809296675c77f13b783172f06b538d56c2c145951c4d50627660e07cd8a206fc43c0960919e3219566394fb
7
+ data.tar.gz: 397e4e486bc89868a939b33f11a76c2c87fda172ef3a733972665f98bfc047f92f6834c4a3f3153216a96e169515d03c39ab97430c221d22b6f45f5596885d9e
data/.rubocop.yml ADDED
@@ -0,0 +1 @@
1
+ inherit_from: rubocop-todo.yml
@@ -1,5 +1,12 @@
1
1
  ### Changelog
2
2
 
3
+ #### 0.0.8 (planned)
4
+
5
+ - Update gemspec
6
+ - Update dependency to the latest version
7
+ - Make the `--base-dir .` the default behavior (make output better)
8
+ - Add rubocop gem
9
+
3
10
  #### 0.0.7
4
11
 
5
12
  - Update dependency gems to the latest version
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 Burin Choomnuan
1
+ Copyright (c) 2014 Burin Choomnuan
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -3,8 +3,9 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/vim_printer.svg)](http://badge.fury.io/rb/vim_printer)
4
4
  [![Dependency Status](https://gemnasium.com/agilecreativity/vim_printer.png)](https://gemnasium.com/agilecreativity/vim_printer)
5
5
  [![Code Climate](https://codeclimate.com/github/agilecreativity/vim_printer.png)](https://codeclimate.com/github/agilecreativity/vim_printer)
6
+ [![Endorse](https://api.coderwall.com/agilecreativity/endorsecount.png)](https://coderwall.com/agilecreativity)
6
7
 
7
- Print any files to html using the power of Vim. Output will be saved to `output.tar.gz` and ready for
8
+ Print any files to html using the power of Vim. Output will be saved to `vim_printer_output.tar.gz` and ready for
8
9
  extract and viewing in your favourite browser.
9
10
 
10
11
  - Unlimited support for [vim colorschemes][] if enabled, or `default` colorscheme that comes with Vim.
@@ -86,14 +86,14 @@ Print the list of files
86
86
  # Add the missing index file
87
87
  generated_files << index_file
88
88
 
89
- AgileUtils::FileUtil.tar_gzip_files(generated_files, 'output.tar.gz')
89
+ AgileUtils::FileUtil.tar_gzip_files(generated_files, 'vim_printer_output.tar.gz')
90
90
 
91
91
  AgileUtils::FileUtil.delete(generated_files)
92
92
 
93
93
  # Remove the extra index.html file
94
94
  FileUtils.rm_rf(index_file)
95
95
 
96
- puts "Your output file is #{File.absolute_path('output.tar.gz')}"
96
+ puts "Your output file is #{File.absolute_path('vim_printer_output.tar.gz')}"
97
97
  end
98
98
 
99
99
  # convert multiple files to 'html'
@@ -1,3 +1,3 @@
1
1
  module VimPrinter
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
data/rubocop-todo.yml ADDED
@@ -0,0 +1,84 @@
1
+ # This configuration was generated by `rubocop --auto-gen-config`
2
+ # on 2014-04-23 20:34:48 +1000 using RuboCop version 0.20.1.
3
+ # The point is for the user to remove these configuration records
4
+ # one by one as the offenses are removed from the code base.
5
+ # Note that changes in the inspected code, or installation of new
6
+ # versions of RuboCop, may require this file to be generated again.
7
+
8
+ # Offense count: 9
9
+ AmbiguousOperator:
10
+ Enabled: false
11
+
12
+ # Offense count: 1
13
+ # Cop supports --auto-correct.
14
+ # Configuration parameters: PreferredMethods.
15
+ CollectionMethods:
16
+ Enabled: false
17
+
18
+ # Offense count: 1
19
+ CyclomaticComplexity:
20
+ Max: 7
21
+
22
+ # Offense count: 5
23
+ Documentation:
24
+ Enabled: false
25
+
26
+ # Offense count: 1
27
+ # Cop supports --auto-correct.
28
+ EmptyLinesAroundBody:
29
+ Enabled: true
30
+
31
+ # Offense count: 1
32
+ # Cop supports --auto-correct.
33
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
34
+ HashSyntax:
35
+ Enabled: true
36
+
37
+ # Offense count: 4
38
+ # Cop supports --auto-correct.
39
+ LeadingCommentSpace:
40
+ Enabled: true
41
+
42
+ # Offense count: 18
43
+ LineLength:
44
+ Max: 108
45
+
46
+ # Offense count: 8
47
+ # Configuration parameters: CountComments.
48
+ MethodLength:
49
+ Max: 30
50
+
51
+ # Offense count: 1
52
+ # Cop supports --auto-correct.
53
+ SpaceAfterComma:
54
+ Enabled: true
55
+
56
+ # Offense count: 1
57
+ # Cop supports --auto-correct.
58
+ # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
59
+ SpaceInsideBlockBraces:
60
+ Enabled: true
61
+
62
+ # Offense count: 1
63
+ # Cop supports --auto-correct.
64
+ SpecialGlobalVars:
65
+ Enabled: true
66
+
67
+ # Offense count: 16
68
+ # Cop supports --auto-correct.
69
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
70
+ StringLiterals:
71
+ Enabled: false
72
+
73
+ # Offense count: 1
74
+ UnreachableCode:
75
+ Enabled: true
76
+
77
+ # Offense count: 1
78
+ UselessAssignment:
79
+ Enabled: false
80
+
81
+ # Offense count: 1
82
+ # Cop supports --auto-correct.
83
+ WordArray:
84
+ MinSize: 2
data/test/test_helper.rb CHANGED
@@ -1,4 +1,3 @@
1
- # standard include
2
1
  require 'minitest/autorun'
3
2
  require 'minitest/pride'
4
3
  require 'minitest-spec-context'
data/vim_printer.gemspec CHANGED
@@ -8,15 +8,23 @@ Gem::Specification.new do |spec|
8
8
  spec.version = VimPrinter::VERSION
9
9
  spec.authors = ['Burin Choomnuan']
10
10
  spec.email = ['agilecreativity@gmail.com']
11
- spec.description = %q{Print/export files to html using the power of Vim editor}
12
- spec.summary = %q{Print/export files to html using the power of Vim}
11
+ spec.description = %q{Batch convert multiple non-binary files to htmls using the power of Vim editor}
12
+ spec.summary = %q{Batch convert multiple non-binary files to htmls using the power of Vim}
13
13
  spec.homepage = 'https://github.com/agilecreativity/vim_printer'
14
14
  spec.license = 'MIT'
15
- spec.files = `git ls-files`.split($/)
15
+ spec.files = Dir.glob('{bin,lib}/**/*') + %w(Gemfile
16
+ Rakefile
17
+ vim_printer.gemspec
18
+ README.md
19
+ CHANGELOGS.md
20
+ LICENSE
21
+ .rubocop.yml
22
+ .gitignore
23
+ rubocop-todo.yml)
16
24
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
25
+ spec.test_files = Dir.glob('{test}/**/*')
18
26
  spec.require_paths = ['lib']
19
- spec.add_runtime_dependency 'thor', '~> 0.18'
27
+ spec.add_runtime_dependency 'thor', '~> 0.19'
20
28
  spec.add_runtime_dependency 'code_lister', '~> 0.0.8'
21
29
  spec.add_runtime_dependency 'index_html', '~> 0.1.0'
22
30
  spec.add_runtime_dependency 'agile_utils', '~> 0.0.9'
@@ -28,6 +36,7 @@ Gem::Specification.new do |spec|
28
36
  spec.add_development_dependency 'minitest', '~> 5.3'
29
37
  spec.add_development_dependency 'guard', '~> 2.6'
30
38
  spec.add_development_dependency 'pry', '~> 0.9'
39
+ spec.add_development_dependency 'rubocop', '~> 0.21'
31
40
  spec.add_development_dependency 'gem-ctags', '~> 1.0'
32
41
  spec.add_development_dependency 'yard', '~> 0.8'
33
42
  end
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.0.7
4
+ version: 0.0.8
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-05-03 00:00:00.000000000 Z
11
+ date: 2014-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.18'
19
+ version: '0.19'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.18'
26
+ version: '0.19'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: code_lister
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -178,6 +178,20 @@ dependencies:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0.9'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rubocop
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '0.21'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '0.21'
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: gem-ctags
183
197
  requirement: !ruby/object:Gem::Requirement
@@ -206,7 +220,8 @@ dependencies:
206
220
  - - "~>"
207
221
  - !ruby/object:Gem::Version
208
222
  version: '0.8'
209
- description: Print/export files to html using the power of Vim editor
223
+ description: Batch convert multiple non-binary files to htmls using the power of Vim
224
+ editor
210
225
  email:
211
226
  - agilecreativity@gmail.com
212
227
  executables:
@@ -215,16 +230,9 @@ extensions: []
215
230
  extra_rdoc_files: []
216
231
  files:
217
232
  - ".gitignore"
218
- - ".ruby-version"
219
- - ".travis.yml"
220
- - ".yardopts"
221
- - 01-seoul256-input.png
222
- - 01-seoul256-output.png
223
- - 02-Tomorrow-Night-input.png
224
- - 02-Tomorrow-Night-output.png
225
- - Changelogs.md
233
+ - ".rubocop.yml"
234
+ - CHANGELOGS.md
226
235
  - Gemfile
227
- - Guardfile
228
236
  - LICENSE
229
237
  - README.md
230
238
  - Rakefile
@@ -233,6 +241,7 @@ files:
233
241
  - lib/vim_printer/cli.rb
234
242
  - lib/vim_printer/logger.rb
235
243
  - lib/vim_printer/version.rb
244
+ - rubocop-todo.yml
236
245
  - test/fixtures/inputs/demo1.xxx.rb
237
246
  - test/fixtures/inputs/demo1.yyy.rb
238
247
  - test/fixtures/inputs/demo2.xxx.rb
@@ -277,26 +286,26 @@ rubyforge_project:
277
286
  rubygems_version: 2.2.2
278
287
  signing_key:
279
288
  specification_version: 4
280
- summary: Print/export files to html using the power of Vim
289
+ summary: Batch convert multiple non-binary files to htmls using the power of Vim
281
290
  test_files:
282
- - test/fixtures/inputs/demo1.xxx.rb
283
- - test/fixtures/inputs/demo1.yyy.rb
284
- - test/fixtures/inputs/demo2.xxx.rb
285
- - test/fixtures/inputs/demo2.yyy.rb
286
- - test/fixtures/inputs/java/demo3.xxx.java
287
- - test/fixtures/inputs/java/demo3.yyy.java
288
- - test/fixtures/inputs/java/demo4.xxx.java
289
- - test/fixtures/inputs/java/demo4.yyy.java
290
- - test/fixtures/inputs/noexts1_zzz
291
- - test/fixtures/inputs/noexts2_zzz
291
+ - test/lib/vim_printer/test_cli.rb
292
+ - test/test_helper.rb
292
293
  - test/fixtures/outputs/demo1.xxx.rb.xhtml
293
- - test/fixtures/outputs/demo1.yyy.rb.xhtml
294
- - test/fixtures/outputs/demo2.xxx.rb.xhtml
295
- - test/fixtures/outputs/demo2.yyy.rb.xhtml
296
294
  - test/fixtures/outputs/java/demo3.xxx.java.xhtml
295
+ - test/fixtures/outputs/java/demo4.yyy.java.xhtml
297
296
  - test/fixtures/outputs/java/demo3.yyy.java.xhtml
298
297
  - test/fixtures/outputs/java/demo4.xxx.java.xhtml
299
- - test/fixtures/outputs/java/demo4.yyy.java.xhtml
300
- - test/lib/vim_printer/test_cli.rb
301
- - test/test_helper.rb
298
+ - test/fixtures/outputs/demo2.xxx.rb.xhtml
299
+ - test/fixtures/outputs/demo1.yyy.rb.xhtml
300
+ - test/fixtures/outputs/demo2.yyy.rb.xhtml
301
+ - test/fixtures/inputs/noexts2_zzz
302
+ - test/fixtures/inputs/java/demo3.xxx.java
303
+ - test/fixtures/inputs/java/demo4.xxx.java
304
+ - test/fixtures/inputs/java/demo3.yyy.java
305
+ - test/fixtures/inputs/java/demo4.yyy.java
306
+ - test/fixtures/inputs/demo2.yyy.rb
307
+ - test/fixtures/inputs/demo1.yyy.rb
308
+ - test/fixtures/inputs/demo2.xxx.rb
309
+ - test/fixtures/inputs/noexts1_zzz
310
+ - test/fixtures/inputs/demo1.xxx.rb
302
311
  has_rdoc:
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.1.1
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - 2.1.1
data/.yardopts DELETED
@@ -1,2 +0,0 @@
1
- # see: http://rubydoc.info/gems/yard/file/README.md
2
- --no-private --protected lib/**/*.rb - README.md LICENSE
Binary file
Binary file
Binary file
Binary file
data/Guardfile DELETED
@@ -1,15 +0,0 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
- guard 'minitest' do
4
-
5
- # with Minitest::Unit
6
- watch(%r|^test/(.*)\/?test_(.*)\.rb|)
7
- watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
8
- watch(%r|^test/test_helper\.rb|) { "test" }
9
-
10
- # with Minitest::Spec
11
- # watch(%r|^spec/(.*)_spec\.rb|)
12
- # watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
13
- # watch(%r|^spec/spec_helper\.rb|) { "spec" }
14
-
15
- end