hoc 0.7.3 → 0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/hoc +15 -18
  3. data/hoc.gemspec +1 -1
  4. data/lib/hoc/version.rb +1 -1
  5. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7f453bb7a18c9a5ea05d66bdfc8b8e78f99a8be
4
- data.tar.gz: 4e96a836604b93fde4f37b27508cd21cb9db6886
3
+ metadata.gz: 59817ec1af4e198e3781968afd7fceaefa0dd849
4
+ data.tar.gz: ee87b4d697449b09a1f8c90d7edecc0d317ccde1
5
5
  SHA512:
6
- metadata.gz: e0d7ce0e48e8d06a4c009bc6ca31caa7927fd6cb625ee24d78d392d9bc83101c13919287ea8596d56c3bf30ee2025d7ccf94771d592983ae71c77331c08b8cdc
7
- data.tar.gz: 309d1839139e510064774216fac674bb562fbaccb68f52bdac521c4eda32f85964e5380097a34c24524380b1c5a570b17e30e8c79404d1bd4a4fabd6601d8431
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
- on(
38
- 'f',
39
- 'format',
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
- on(
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
- on(
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
 
@@ -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', '3.6.0'
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'
@@ -26,5 +26,5 @@
26
26
  # Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
27
27
  # License:: MIT
28
28
  module HOC
29
- VERSION = '0.7.3'.freeze
29
+ VERSION = '0.8'.freeze
30
30
  end
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.7.3
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: 3.6.0
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: 3.6.0
26
+ version: 4.4.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement