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 +4 -4
- data/.rubocop.yml +2 -2
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/Rakefile +11 -1
- data/lib/vim_printer/cli.rb +3 -1
- data/lib/vim_printer/version.rb +1 -1
- data/vim_printer.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a89755ab69369539a72004c7e5c938d65761267b
|
4
|
+
data.tar.gz: 97534e524e5964ca043747732a76e49ef02d458a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
52
|
+
# Spaces inside hash literals
|
53
53
|
SpaceInsideHashLiteralBraces:
|
54
|
-
EnforcedStyle:
|
54
|
+
EnforcedStyle: space
|
55
55
|
|
56
56
|
# Allow dots at the end of lines
|
57
57
|
DotPosition:
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
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
|
data/lib/vim_printer/cli.rb
CHANGED
@@ -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
|
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
|
|
data/lib/vim_printer/version.rb
CHANGED
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.
|
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.
|
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-
|
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.
|
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.
|
194
|
+
version: '0.23'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: gem-ctags
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|