hoc 0.7.3 → 0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/hoc +15 -18
- data/hoc.gemspec +1 -1
- data/lib/hoc/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59817ec1af4e198e3781968afd7fceaefa0dd849
|
4
|
+
data.tar.gz: ee87b4d697449b09a1f8c90d7edecc0d317ccde1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4a18fc8b6492e4dd86f97e2054e13dde5431a14b2ea1e621236f908444f4d690f79715ea8261243e0b5fe272de2fdc506b0e9af1e80a421e19798f6db9eef45
|
7
|
+
data.tar.gz: 79f1efd22363e32ed47055cd0e47dd710d3e44af75dc532ebbd18c80d5ffa6c1fe72f3c93f383e58148fd56a2de3327c6f95d92751f370c7306f56ee351ae3ce
|
data/bin/hoc
CHANGED
@@ -32,28 +32,25 @@ args = []
|
|
32
32
|
args.concat(File.read('.hoc').split(/\s+/).map(&:strip)) if File.exist?('.hoc')
|
33
33
|
args.concat(ARGV)
|
34
34
|
|
35
|
-
opts = Slop.parse(args, strict: true, help: true) do
|
36
|
-
banner "Usage (#{HOC::VERSION}): hoc [options]"
|
37
|
-
|
38
|
-
|
39
|
-
'
|
35
|
+
opts = Slop.parse(args, strict: true, help: true) do |o|
|
36
|
+
o.banner = "Usage (#{HOC::VERSION}): hoc [options]"
|
37
|
+
o.bool '-h', '--help', 'Show brief intro'
|
38
|
+
o.string(
|
39
|
+
'-f',
|
40
|
+
'--format',
|
40
41
|
'Output format (text|xml|json|int)',
|
41
|
-
default: 'int'
|
42
|
-
argument: :required
|
42
|
+
default: 'int'
|
43
43
|
)
|
44
|
-
|
45
|
-
'e',
|
46
|
-
'exclude',
|
47
|
-
'Glob pattern to exclude files/dirs, e.g. "vendor/**"'
|
48
|
-
as: Array,
|
49
|
-
argument: :required
|
44
|
+
o.array(
|
45
|
+
'-e',
|
46
|
+
'--exclude',
|
47
|
+
'Glob pattern to exclude files/dirs, e.g. "vendor/**"'
|
50
48
|
)
|
51
|
-
|
52
|
-
'd',
|
53
|
-
'dir',
|
49
|
+
o.string(
|
50
|
+
'-d',
|
51
|
+
'--dir',
|
54
52
|
'Directory to scan',
|
55
|
-
default: '.'
|
56
|
-
argument: :required
|
53
|
+
default: '.'
|
57
54
|
)
|
58
55
|
end
|
59
56
|
|
data/hoc.gemspec
CHANGED
@@ -45,7 +45,7 @@ Gem::Specification.new do |s|
|
|
45
45
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
46
46
|
s.rdoc_options = ['--charset=UTF-8']
|
47
47
|
s.extra_rdoc_files = %w(README.md LICENSE.txt)
|
48
|
-
s.add_runtime_dependency 'slop', '
|
48
|
+
s.add_runtime_dependency 'slop', '~>4.4.1'
|
49
49
|
s.add_development_dependency 'rake', '12.0.0'
|
50
50
|
s.add_development_dependency 'coveralls', '0.7'
|
51
51
|
s.add_development_dependency 'rdoc', '3.11'
|
data/lib/hoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.8'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
@@ -14,16 +14,16 @@ dependencies:
|
|
14
14
|
name: slop
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.4.1
|
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:
|
26
|
+
version: 4.4.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|