clasp-ruby 0.20.1 → 0.20.1.1

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: f92b789f37af02b75b9644ff0d68c2f8dc1fb37bed7372f85a2e3076bda3318c
4
- data.tar.gz: 915b038fa26a675ff5adef533286ed89dd1637cab521d9d187eb2cc28eb60405
3
+ metadata.gz: 536cef517b15463ee8e70a23999f84f12bf33f86d84d0716c6ff91ff15d5d381
4
+ data.tar.gz: 17e40ea9e97540bc3c22e223cb5b65a8948cc6e029ecbc20fd53dba425d9ad3e
5
5
  SHA512:
6
- metadata.gz: 14b4ed81618a5564af21068ed04f8443cb0e699763f3489d91deae285bf3e7b2e5a8b77e0331185cec751659772ddd6d54a3a93ac1ee98aaf05f0a11c12d78b4
7
- data.tar.gz: 90b82b5a6b1553c540f8904dbc4c2b3fe7257a0c177fbb4cacc4004af9e46470f5f0af8e119a635cf25062ab1b41a7bee54c9c4a512e74a48807b9cda4da4779
6
+ metadata.gz: 4399f95bdbd8aa8a1d70548b5d5e19fb621eff79b38cb45424f2829eaa5502aee307b84d588aa2d3c41054e3f97d2fae7d2cc19ac8ff7d74e64a061e772a4ff8
7
+ data.tar.gz: e4c439d34030cd044ea9368aad3a923ac3aeb2d8e2c5e4f51effb9edbfdfa130dd4ad9b5175d79269095b849bd307ed6d4873dc8782c230d220b8819e9ce4389
@@ -6,7 +6,7 @@
6
6
  # CLASP.Ruby
7
7
  #
8
8
  # Created: 14th February 2014
9
- # Updated: 19th April 2019
9
+ # Updated: 20th April 2019
10
10
  #
11
11
  # Home: http://github.com/synesissoftware/CLASP.Ruby
12
12
  #
@@ -104,6 +104,7 @@ class Arguments
104
104
  @name
105
105
  end
106
106
 
107
+ # @!visibility private
107
108
  def eql?(rhs) # :nodoc:
108
109
 
109
110
  return false if rhs.nil?
@@ -114,6 +115,7 @@ class Arguments
114
115
  false
115
116
  end
116
117
 
118
+ # @!visibility private
117
119
  def ==(rhs) # :nodoc:
118
120
 
119
121
  return false if rhs.nil?
@@ -178,6 +180,7 @@ class Arguments
178
180
  # [DEPRECATED] Use +argument_specification+
179
181
  def argument_alias; @argument_specification; end
180
182
 
183
+ # @!visibility private
181
184
  def eql?(rhs) # :nodoc:
182
185
 
183
186
  return false if rhs.nil?
@@ -188,6 +191,7 @@ class Arguments
188
191
  false
189
192
  end
190
193
 
194
+ # @!visibility private
191
195
  def ==(rhs) # :nodoc:
192
196
 
193
197
  return false if rhs.nil?
@@ -60,45 +60,49 @@ module CLASP
60
60
  =end
61
61
 
62
62
  # :stopdoc:
63
- module CLI_helpers_
64
63
 
65
- module Constants
64
+ # @!visibility private
65
+ module CLI_helpers_ # :nodoc: all
66
66
 
67
+ # @!visibility private
68
+ module Constants # :nodoc: all
69
+
70
+ # @!visibility private
67
71
  VALID_ALIAS_TYPES = [ FlagSpecification, OptionSpecification, AliasSpecification ]
72
+ # @!visibility private
68
73
  VALID_ALIAS_TYPES_STRING = VALID_ALIAS_TYPES[0...-1].join(', ') + ', or ' + VALID_ALIAS_TYPES[-1].to_s
69
74
  end # module Constants
70
75
 
71
- # :nodoc:
72
- def self.generate_version_string_ options
76
+ # @!visibility private
77
+ def self.generate_version_string_ options # :nodoc:
73
78
 
74
- program_name = options[:program_name] || File.basename($0)
79
+ program_name = options[:program_name] || File.basename($0)
75
80
 
76
- version_prefix = options[:version_prefix]
81
+ version_prefix = options[:version_prefix]
77
82
 
78
- if options[:version]
83
+ if options[:version]
79
84
 
80
- case options[:version]
81
- when ::Array
82
- version = options[:version].join('.')
85
+ case options[:version]
86
+ when ::Array
87
+ version = options[:version].join('.')
88
+ else
89
+ version = options[:version]
90
+ end
83
91
  else
84
- version = options[:version]
85
- end
86
- else
87
92
 
88
- version_major = options[:version_major] or raise ArgumentError, "options must specify :version or :version_major [ + :version_minor [ + :version_revision [ + :version_build ]]]"
89
- version_minor = options[:version_minor]
90
- version_rev = options[:version_revision]
91
- version_build = options[:version_build]
93
+ version_major = options[:version_major] or raise ArgumentError, "options must specify :version or :version_major [ + :version_minor [ + :version_revision [ + :version_build ]]]"
94
+ version_minor = options[:version_minor]
95
+ version_rev = options[:version_revision]
96
+ version_build = options[:version_build]
92
97
 
93
- version = version_major.to_s
94
- version += ".#{version_minor}" if version_minor
95
- version += ".#{version_rev}" if version_rev
96
- version += ".#{version_build}" if version_build
97
- end
98
-
99
- "#{program_name} #{version_prefix}#{version}"
100
- end
98
+ version = version_major.to_s
99
+ version += ".#{version_minor}" if version_minor
100
+ version += ".#{version_rev}" if version_rev
101
+ version += ".#{version_build}" if version_build
102
+ end
101
103
 
104
+ "#{program_name} #{version_prefix}#{version}"
105
+ end
102
106
  end # module CLI_helpers_
103
107
 
104
108
  # ######################################################################## #
@@ -5,7 +5,7 @@
5
5
  # Purpose: Argument specification classes
6
6
  #
7
7
  # Created: 25th October 2014
8
- # Updated: 19th April 2019
8
+ # Updated: 20th April 2019
9
9
  #
10
10
  # Home: http://github.com/synesissoftware/CLASP.Ruby
11
11
  #
@@ -92,6 +92,7 @@ class FlagSpecification
92
92
  "{#{name}; aliases=#{aliases.join(', ')}; help='#{help}'; extras=#{extras}}"
93
93
  end
94
94
 
95
+ # @!visibility private
95
96
  def eql? rhs # :nodoc:
96
97
 
97
98
  case rhs
@@ -225,6 +226,7 @@ class OptionSpecification
225
226
  "{#{name}; aliases=#{aliases.join(', ')}; values_range=[ #{values_range.join(', ')} ]; default_value='#{default_value}'; help='#{help}'; required?=#{required?}; extras=#{extras}}"
226
227
  end
227
228
 
229
+ # @!visibility private
228
230
  def eql? rhs # :nodoc:
229
231
 
230
232
  case rhs
@@ -5,7 +5,7 @@
5
5
  # Purpose: Version for CLASP.Ruby library
6
6
  #
7
7
  # Created: 16th November 2014
8
- # Updated: 19th April 2019
8
+ # Updated: 20th April 2019
9
9
  #
10
10
  # Home: http://github.com/synesissoftware/CLASP.Ruby
11
11
  #
@@ -51,9 +51,10 @@
51
51
  module CLASP
52
52
 
53
53
  # Current version of the CLASP.Ruby library
54
- VERSION = '0.20.1'
54
+ VERSION = '0.20.1.1'
55
55
 
56
56
  private
57
+ # @!visibility private
57
58
  VERSION_PARTS_ = VERSION.split(/[.]/).collect { |n| n.to_i } # :nodoc:
58
59
  public
59
60
  # Major version of the CLASP.Ruby library
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clasp-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.1
4
+ version: 0.20.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Wilson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-19 00:00:00.000000000 Z
11
+ date: 2019-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xqsr3