vim_printer 0.1.5 → 0.1.6

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: 3a75ff67ccc6b202fd6587fadac534be086941ad
4
- data.tar.gz: 58fbbc9b941c6537f53e6d2616e25673591354b8
3
+ metadata.gz: a89755ab69369539a72004c7e5c938d65761267b
4
+ data.tar.gz: 97534e524e5964ca043747732a76e49ef02d458a
5
5
  SHA512:
6
- metadata.gz: 067b0aedbd412da782ec5956ec20224532d8ad4bef8f46f8650a6cf416083874cbee841390b3dc34601c979260ed5b5652d313ad4856ec3e6a76449b14c5d67f
7
- data.tar.gz: 640003a5420b48306f6d497069c655e5ec5a45652f696a19c7b214087eb98a7cc29353ea996bbb3cec15b49afa335d284a6fc832805ac8045f1b644f1b668eb3
6
+ metadata.gz: 60859f71c65d803652f0660815630dd4bd6670b804c2a98b8998914b58915a60e2f384f14fed6039f03a61224074aafba37a7d69e498b36d5a61a8d2ba43702d
7
+ data.tar.gz: 83b60ab57d0b53fbff45f0a7ad4ad0031997879d6abf351c01e5e7a9200027d505a6b6573329738d00a3f0fce865b559b55c3c258c3ab56c279035c97ebecd02
data/.rubocop.yml CHANGED
@@ -49,9 +49,9 @@ Documentation:
49
49
  HashSyntax:
50
50
  Enabled: true
51
51
 
52
- # No spaces inside hash literals
52
+ # Spaces inside hash literals
53
53
  SpaceInsideHashLiteralBraces:
54
- EnforcedStyle: no_space
54
+ EnforcedStyle: space
55
55
 
56
56
  # Allow dots at the end of lines
57
57
  DotPosition:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ### Changelog
2
2
 
3
+ #### 0.1.6
4
+
5
+ - Update rubocop to 0.23.x
6
+ - Minor code cleanup
7
+
3
8
  #### 0.1.5
4
9
 
5
10
  - Add option '--index' to make it possible to skip the cration of 'index.html'
data/README.md CHANGED
@@ -131,7 +131,7 @@ vim_printer -e ruby -f Gemfile Rakefile -r
131
131
 
132
132
  ```
133
133
  Usage:
134
- vim_printer print
134
+ vim_printer
135
135
 
136
136
  Options:
137
137
  -b, [--base-dir=BASE_DIR] # Base directory
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ Rake::TestTask.new do |t|
5
5
  t.test_files = FileList["test/lib/vim_printer/test_*.rb"]
6
6
  t.verbose = true
7
7
  end
8
- task default: :test
8
+ task default: [:test, :rubocop]
9
9
  task :pry do
10
10
  require "pry"
11
11
  require "awesome_print"
@@ -14,3 +14,13 @@ task :pry do
14
14
  ARGV.clear
15
15
  Pry.start
16
16
  end
17
+
18
+ require "rubocop/rake_task"
19
+ desc "Run RuboCop on the lib directory"
20
+ RuboCop::RakeTask.new(:rubocop) do |task|
21
+ task.patterns = ["lib/**/*.rb"]
22
+ # only show the files with failures
23
+ task.formatters = ["files"]
24
+ # don't abort rake on failure
25
+ task.fail_on_error = false
26
+ end
@@ -6,6 +6,7 @@ require_relative "../vim_printer"
6
6
  module VimPrinter
7
7
  include AgileUtils
8
8
  class CLI < Thor
9
+ # rubocop:disable AmbiguousOperator, MethodLength
9
10
  desc "print", "Print files to (x)html using Vim"
10
11
  method_option *AgileUtils::Options::BASE_DIR
11
12
  method_option *AgileUtils::Options::EXTS
@@ -37,7 +38,7 @@ module VimPrinter
37
38
  def usage
38
39
  puts <<-EOS
39
40
  Usage:
40
- vim_printer print
41
+ vim_printer
41
42
 
42
43
  Options:
43
44
  -b, [--base-dir=BASE_DIR] # Base directory
@@ -59,6 +60,7 @@ Options:
59
60
  Print files to (x)html using Vim
60
61
  EOS
61
62
  end
63
+ # rubocop:enable All
62
64
 
63
65
  default_task :usage
64
66
 
@@ -1,3 +1,3 @@
1
1
  module VimPrinter
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
data/vim_printer.gemspec CHANGED
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
35
35
  spec.add_development_dependency "minitest", "~> 5.3"
36
36
  spec.add_development_dependency "guard", "~> 2.6"
37
37
  spec.add_development_dependency "pry", "~> 0.9"
38
- spec.add_development_dependency "rubocop", "~> 0.20"
38
+ spec.add_development_dependency "rubocop", "~> 0.23"
39
39
  spec.add_development_dependency "gem-ctags", "~> 1.0"
40
40
  spec.add_development_dependency "yard", "~> 0.8"
41
41
  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.1.5
4
+ version: 0.1.6
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-01 00:00:00.000000000 Z
11
+ date: 2014-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '0.20'
187
+ version: '0.23'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '0.20'
194
+ version: '0.23'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: gem-ctags
197
197
  requirement: !ruby/object:Gem::Requirement