clasp-ruby 0.20.1.1 → 0.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,7 +51,7 @@
51
51
  module CLASP
52
52
 
53
53
  # Current version of the CLASP.Ruby library
54
- VERSION = '0.20.1.1'
54
+ VERSION = '0.20.2'
55
55
 
56
56
  private
57
57
  # @!visibility private
@@ -2,6 +2,8 @@
2
2
 
3
3
  $:.unshift File.join(File.dirname(__FILE__), '../..', 'lib')
4
4
 
5
+ if RUBY_VERSION >= '2'
6
+
5
7
  require 'clasp'
6
8
 
7
9
  require 'test/unit'
@@ -20,3 +22,5 @@ class Test_CLI < Test::Unit::TestCase
20
22
  end
21
23
  end
22
24
 
25
+ end # RUBY_VERSION
26
+
@@ -6,8 +6,6 @@ require 'clasp'
6
6
 
7
7
  require 'test/unit'
8
8
 
9
- require 'xqsr3/extensions/test/unit'
10
-
11
9
  class Test_DefaultValue < Test::Unit::TestCase
12
10
 
13
11
  def test_long_form_without_default
@@ -17,7 +17,7 @@ class Test_Option_required < Test::Unit::TestCase
17
17
  assert_equal [], o.values_range
18
18
  assert_equal nil, o.default_value
19
19
  assert_equal ({}), o.extras
20
- assert_false o.required?
20
+ assert !o.required?
21
21
  assert_equal "'--verbose' not specified; use --help for usage", o.required_message
22
22
  end
23
23
 
@@ -30,7 +30,7 @@ class Test_Option_required < Test::Unit::TestCase
30
30
  assert_equal [], o.values_range
31
31
  assert_equal nil, o.default_value
32
32
  assert_equal ({}), o.extras
33
- assert_false o.required?
33
+ assert !o.required?
34
34
  assert_equal "Verbosity not specified; use --help for usage", o.required_message
35
35
  end
36
36
 
@@ -43,7 +43,7 @@ class Test_Option_required < Test::Unit::TestCase
43
43
  assert_equal [], o.values_range
44
44
  assert_equal nil, o.default_value
45
45
  assert_equal ({}), o.extras
46
- assert_true o.required?
46
+ assert o.required?
47
47
  assert_equal "Verbosity not given", o.required_message
48
48
  end
49
49
  end
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clasp-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.1.1
4
+ version: 0.20.2
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Matt Wilson
@@ -13,35 +14,40 @@ dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: xqsr3
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - "~>"
19
+ - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0.30'
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - "~>"
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0.30'
27
- description: |
28
- Command-Line Argument Sorting and Parsing library that provides a powerful
29
- abstraction of command-line interpretation facilities. CLASP.Ruby is a Ruby port of the popular CLASP (C/C++) library, and provides declarative specification of command-line flags and options, aliasing, flag combination, UNIX de-facto standard flag processing, and a number of utility functions for expressing usage and version information.
30
+ description: ! 'Command-Line Argument Sorting and Parsing library that provides a
31
+ powerful
32
+
33
+ abstraction of command-line interpretation facilities. CLASP.Ruby is a Ruby port
34
+ of the popular CLASP (C/C++) library, and provides declarative specification of
35
+ command-line flags and options, aliasing, flag combination, UNIX de-facto standard
36
+ flag processing, and a number of utility functions for expressing usage and version
37
+ information.
38
+
39
+ '
30
40
  email: matthew@synesis.com.au
31
41
  executables: []
32
42
  extensions: []
33
43
  extra_rdoc_files: []
34
44
  files:
35
- - LICENSE
36
- - README.md
37
45
  - examples/cr-example.rb
38
46
  - examples/flag_and_option_specifications.md
39
47
  - examples/flag_and_option_specifications.rb
40
48
  - examples/show_usage_and_version.md
41
49
  - examples/show_usage_and_version.rb
42
50
  - examples/simple_command_line_no_specifications.rb
43
- - lib/clasp-ruby.rb
44
- - lib/clasp.rb
45
51
  - lib/clasp/arguments.rb
46
52
  - lib/clasp/clasp.rb
47
53
  - lib/clasp/cli.rb
@@ -49,16 +55,18 @@ files:
49
55
  - lib/clasp/old_module.rb
50
56
  - lib/clasp/specifications.rb
51
57
  - lib/clasp/version.rb
58
+ - lib/clasp-ruby.rb
59
+ - lib/clasp.rb
52
60
  - test/scratch/test_list_command_line.rb
53
61
  - test/scratch/test_specifications.rb
54
62
  - test/scratch/test_usage.rb
55
63
  - test/scratch/test_usage_from_DATA.rb
56
64
  - test/scratch/test_usage_with_duplicate_specifications.rb
57
- - test/unit/tc_ARGV_rewrite.rb
58
65
  - test/unit/tc_arguments_1.rb
59
66
  - test/unit/tc_arguments_2.rb
60
67
  - test/unit/tc_arguments_3.rb
61
68
  - test/unit/tc_arguments_inspect.rb
69
+ - test/unit/tc_ARGV_rewrite.rb
62
70
  - test/unit/tc_cli.rb
63
71
  - test/unit/tc_default_value.rb
64
72
  - test/unit/tc_defaults_1.rb
@@ -69,27 +77,31 @@ files:
69
77
  - test/unit/tc_specifications.rb
70
78
  - test/unit/tc_usage.rb
71
79
  - test/unit/ts_all.rb
80
+ - README.md
81
+ - LICENSE
72
82
  homepage: http://github.com/synesissoftware/CLASP.Ruby
73
83
  licenses:
74
84
  - BSD-3-Clause
75
- metadata: {}
76
85
  post_install_message:
77
86
  rdoc_options: []
78
87
  require_paths:
79
88
  - lib
80
89
  required_ruby_version: !ruby/object:Gem::Requirement
90
+ none: false
81
91
  requirements:
82
- - - ">="
92
+ - - ! '>='
83
93
  - !ruby/object:Gem::Version
84
94
  version: 1.9.3
85
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
+ none: false
86
97
  requirements:
87
- - - ">="
98
+ - - ! '>='
88
99
  - !ruby/object:Gem::Version
89
100
  version: '0'
90
101
  requirements: []
91
- rubygems_version: 3.0.1
102
+ rubyforge_project:
103
+ rubygems_version: 1.8.23.2
92
104
  signing_key:
93
- specification_version: 4
105
+ specification_version: 3
94
106
  summary: CLASP.Ruby
95
107
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA256:
3
- metadata.gz: 536cef517b15463ee8e70a23999f84f12bf33f86d84d0716c6ff91ff15d5d381
4
- data.tar.gz: 17e40ea9e97540bc3c22e223cb5b65a8948cc6e029ecbc20fd53dba425d9ad3e
5
- SHA512:
6
- metadata.gz: 4399f95bdbd8aa8a1d70548b5d5e19fb621eff79b38cb45424f2829eaa5502aee307b84d588aa2d3c41054e3f97d2fae7d2cc19ac8ff7d74e64a061e772a4ff8
7
- data.tar.gz: e4c439d34030cd044ea9368aad3a923ac3aeb2d8e2c5e4f51effb9edbfdfa130dd4ad9b5175d79269095b849bd307ed6d4873dc8782c230d220b8819e9ce4389