test_changes 0.3.1 → 0.3.2

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: e9ef838574a98a739528cd52b809d44956e22f65
4
- data.tar.gz: df530bd9d8909a0e05f3b60cf713ffc633e55844
3
+ metadata.gz: 45f34376073449d0e1e873a447325ae01a7bcc89
4
+ data.tar.gz: be4de5306d82adf9d86f2e45ea10680b03c251db
5
5
  SHA512:
6
- metadata.gz: 2b187b1faa1752ceb55430667c561a78ecf035e40952cf0930b6920a5cfeb75dbecdfb285df81cb6b9162190018f15237277b9edf86b82b3522b0b34ebfc7ce6
7
- data.tar.gz: 9e8d0b1a5d3bd2b66c5bc813dd5e352af7e1aaa20f4c440a34c61828a7377f8c561502d46f07af01cc890f8c3183f50ea3f04cf79ec2331a3155bd8ff791b8e5
6
+ metadata.gz: 82cc8f4c90f0948dd10736f8e1522ff5454cc4bf8db607a5d71762530cea42d79ca9360999abe31d79771bea701352a4a85bdac828018b93b10b51709e011f8d
7
+ data.tar.gz: 61a67650966c7e4267e17f07007cf145e8bb913924340ae0aee5d733d18a7c730674ecd1f1b6ea09954a024fcc269c3eedcf2efe514e8335193056586901141c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## master
2
2
 
3
+ ## 0.3.2
4
+
5
+ * Update slop to 4.2.
6
+ * Add version option.
7
+
3
8
  ## 0.3.1
4
9
 
5
10
  ### Bug fixes
@@ -30,15 +30,28 @@ module TestChanges
30
30
 
31
31
  private
32
32
 
33
+ # rubocop:disable Metrics/MethodLength
33
34
  def slop_options
34
- Slop.parse(argv, help: true, strict: true, banner: banner) do
35
- on 'c', 'commit=', 'Git commit. Default: HEAD.', default: 'HEAD'
36
- on 'q', 'quiet', 'Do not print output. Default: false.', default: false
35
+ Slop.parse(argv) do |o|
36
+ o.banner = banner
37
+ o.string '-c', '--commit', 'Git commit. Default: HEAD.', default: 'HEAD'
38
+ o.boolean '-q', '--quiet', 'Do not print output. Default: false.', default: false
37
39
 
38
- on 'r', 'runner=',
40
+ o.string '-r', '--runner',
39
41
  'The test tool to run. Default: the first runner of the config file.'
42
+
43
+ o.on '-h', '--help', 'Display this help message.' do
44
+ puts o
45
+ exit
46
+ end
47
+
48
+ o.on '-v', '--version', 'Display the version.' do
49
+ puts VERSION
50
+ exit
51
+ end
40
52
  end
41
53
  end
54
+ # rubocop:enable Metrics/MethodLength
42
55
 
43
56
  def banner
44
57
  "Usage: test-changes [options] -- [test tool arguments]"
@@ -1,3 +1,3 @@
1
1
  module TestChanges
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
data/test_changes.gemspec CHANGED
@@ -23,9 +23,8 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
24
  spec.require_paths = ["lib"]
25
25
 
26
- spec.add_dependency "slop", '~> 3.4.0'
26
+ spec.add_dependency "slop", '~> 4.2.0'
27
27
 
28
- spec.add_development_dependency "pry", '~> 0.10.1'
29
28
  spec.add_development_dependency "rake", "~> 10.0"
30
29
  spec.add_development_dependency "rspec"
31
30
  spec.add_development_dependency "rubocop"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_changes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Mendoza
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-11 00:00:00.000000000 Z
11
+ date: 2015-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop
@@ -16,28 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.4.0
19
+ version: 4.2.0
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.4.0
27
- - !ruby/object:Gem::Dependency
28
- name: pry
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 0.10.1
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 0.10.1
26
+ version: 4.2.0
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rake
43
29
  requirement: !ruby/object:Gem::Requirement