samovar 1.9.1 → 1.9.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
  SHA256:
3
- metadata.gz: 16554b4372d703af123d9c8334f23db5b1fb65e9b68672b5d77482483ce87f3f
4
- data.tar.gz: 7da0075d49c798f3d07d64f58983ce642603b831871bae6095da529596e4bf57
3
+ metadata.gz: 9c0bd9487cfc9b45d64ca2f1e807ce0e89b6b4408ef9ed812eb6fd3f04b376c6
4
+ data.tar.gz: 7145b36d633509be0f83db27f2f875109ac0623f9d46fac397933e3ac0196a6d
5
5
  SHA512:
6
- metadata.gz: 962fac0964cb6ad08c6139353c8b40a6c07eb59fb352edf000480f7ff26c2ffc693fc86387b698e0d560b0b8b26e32cb06aa490d070fdb1db766cedeec8820ad
7
- data.tar.gz: f17d59ccecf4a2851d4d190beca9e0ca5f02e9a0fc74354ddfaeee174c8430c2f156370a15b0b5a7460ef2f533186a912df565d3e60d2c75d1b22a59b3b34b4b
6
+ metadata.gz: fcf6d2a20f71d11d82855526be7f9e888ec332cdf80bb8999fa4467f5030e4ba8ee18cd9fa710f0e3c2083be4222ea4dd2db44b3b7a435bb41cd8e10692371a9
7
+ data.tar.gz: f75f223d7e5db75dc352f18f384b53e4935937353ef213b77949b963305ba717c7054d38c036e1f6c43a6bea448093154d7a90a8926670fd0c5109387bd66fc8
data/.travis.yml CHANGED
@@ -1,17 +1,20 @@
1
1
  language: ruby
2
- sudo: false
3
- rvm:
4
- - 2.1.8
5
- - 2.2.4
6
- - 2.3.0
7
- - 2.4.0
8
- - ruby-head
9
- - jruby-head
10
- - rbx-2
11
- env: COVERAGE=true
2
+ dist: xenial
3
+ cache: bundler
4
+
12
5
  matrix:
13
- fast_finish: true
14
- allow_failures:
6
+ include:
7
+ - rvm: 2.3
8
+ - rvm: 2.4
9
+ - rvm: 2.5
10
+ - rvm: 2.6
11
+ - rvm: 2.6
12
+ env: COVERAGE=BriefSummary,Coveralls
13
+ - rvm: truffleruby
15
14
  - rvm: jruby-head
15
+ env: JRUBY_OPTS="--debug -X+O"
16
+ - rvm: ruby-head
17
+ allow_failures:
16
18
  - rvm: ruby-head
17
- - rvm: "rbx-2"
19
+ - rvm: truffleruby
20
+ - rvm: jruby-head
data/lib/samovar/flags.rb CHANGED
@@ -67,6 +67,7 @@ module Samovar
67
67
  @value = $2
68
68
  else
69
69
  @prefix = @text
70
+ @value = nil
70
71
  end
71
72
 
72
73
  *@alternatives, @prefix = @prefix.split('/')
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Samovar
22
- VERSION = "1.9.1"
22
+ VERSION = "1.9.2"
23
23
  end
data/samovar.gemspec CHANGED
@@ -21,7 +21,8 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency "mapping", "~> 1.0"
22
22
  spec.add_dependency "rainbow", ">= 2.0", "< 4.0"
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.11"
24
+ spec.add_development_dependency "covered"
25
+ spec.add_development_dependency "bundler"
25
26
  spec.add_development_dependency "rake", "~> 10.0"
26
27
  spec.add_development_dependency "rspec", "~> 3.6"
27
28
  end
@@ -22,8 +22,9 @@ module Samovar::CommandSpec
22
22
  option '-v/--version', "Print out the application version."
23
23
  end
24
24
 
25
- nested '<command>',
25
+ nested '<command>', {
26
26
  'bottom' => Bottom
27
+ }
27
28
  end
28
29
 
29
30
  RSpec.describe Samovar::Command do
@@ -17,10 +17,10 @@ module Samovar::NestedSpec
17
17
  option '--help'
18
18
  end
19
19
 
20
- nested '<command>',
20
+ nested '<command>', {
21
21
  'inner-a' => InnerA,
22
22
  'inner-b' => InnerB,
23
- default: 'inner-b'
23
+ }, default: 'inner-b'
24
24
  end
25
25
 
26
26
  RSpec.describe Samovar::Nested do
@@ -28,4 +28,4 @@ RSpec.describe Samovar::Options do
28
28
  values = options.parse(['--symbol', 'thing'], {})
29
29
  expect(values[:symbol]).to eq :thing
30
30
  end
31
- end
31
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,25 +1,10 @@
1
1
 
2
- if ENV['COVERAGE'] || ENV['TRAVIS']
3
- begin
4
- require 'simplecov'
5
-
6
- SimpleCov.start do
7
- add_filter "/spec/"
8
- end
9
-
10
- if ENV['TRAVIS']
11
- require 'coveralls'
12
- Coveralls.wear!
13
- end
14
- rescue LoadError
15
- warn "Could not load simplecov: #{$!}"
16
- end
17
- end
18
-
19
- require "bundler/setup"
2
+ require 'covered/rspec'
20
3
  require "samovar"
21
4
 
22
5
  RSpec.configure do |config|
6
+ config.disable_monkey_patching!
7
+
23
8
  # Enable flags like --only-failures and --next-failure
24
9
  config.example_status_persistence_file_path = ".rspec_status"
25
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: samovar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-24 00:00:00.000000000 Z
11
+ date: 2019-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mapping
@@ -44,20 +44,34 @@ dependencies:
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '4.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: covered
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
47
61
  - !ruby/object:Gem::Dependency
48
62
  name: bundler
49
63
  requirement: !ruby/object:Gem::Requirement
50
64
  requirements:
51
- - - "~>"
65
+ - - ">="
52
66
  - !ruby/object:Gem::Version
53
- version: '1.11'
67
+ version: '0'
54
68
  type: :development
55
69
  prerelease: false
56
70
  version_requirements: !ruby/object:Gem::Requirement
57
71
  requirements:
58
- - - "~>"
72
+ - - ">="
59
73
  - !ruby/object:Gem::Version
60
- version: '1.11'
74
+ version: '0'
61
75
  - !ruby/object:Gem::Dependency
62
76
  name: rake
63
77
  requirement: !ruby/object:Gem::Requirement
@@ -140,8 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
154
  - !ruby/object:Gem::Version
141
155
  version: '0'
142
156
  requirements: []
143
- rubyforge_project:
144
- rubygems_version: 2.7.7
157
+ rubygems_version: 3.0.2
145
158
  signing_key:
146
159
  specification_version: 4
147
160
  summary: Samovar is a flexible option parser excellent support for sub-commands and