samovar 1.3.2 → 1.4.0

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: 56d509ee1dea894df84d6608f53cca96e041ab70
4
- data.tar.gz: 124f5d28a3803f1761fdfc95cef1b0937d540d44
3
+ metadata.gz: 343975ca25f272846c446b919686023b2bd183e8
4
+ data.tar.gz: cf5359e5f8bfdf04fbfcc8c32cc7c01ed960026b
5
5
  SHA512:
6
- metadata.gz: d4bf6dcd11d85548541414474527260d7bcbb00beb09eecba2b5b3c1ac16570a57d67f9bb89bdb4f9d39cd08b3417e04c07224aedc8bf63136a424552b65c89f
7
- data.tar.gz: 97cd3bb02b891588dfce1f5e61b62f8604190d5b780238ef1b822afe8772bc155530bd4192a7d859c8c9d10fb45f07f75d01c2ea984b91cb6165639c5fc131a2
6
+ metadata.gz: d4b5a2dc7283dcf158f9e15aa2e9adeaff7e521cf37e16d89c68b307b884663e7d56c9ad001ae6b2e8150323a1c00703196bedeb21fe1c0959d6d4b003fedb47
7
+ data.tar.gz: 7a3e4f272e3421b108d26542960dc1a6103e28447b6a10585d2a32627bbf5ed863fed536adabc89b8977412a01a644ccc6ba49b2fbc1fed3aac06403e8ab4912
@@ -43,6 +43,10 @@ module Samovar
43
43
  return command
44
44
  end
45
45
 
46
+ def self.[](*input)
47
+ self.parse(input)
48
+ end
49
+
46
50
  def initialize(input = nil)
47
51
  self.class.table.parse(input) do |key, value|
48
52
  self.send("#{key}=", value)
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Samovar
22
- VERSION = "1.3.2"
22
+ VERSION = "1.4.0"
23
23
  end
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.3.2
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-24 00:00:00.000000000 Z
11
+ date: 2017-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mapping
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  requirements: []
134
134
  rubyforge_project:
135
- rubygems_version: 2.6.10
135
+ rubygems_version: 2.6.12
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: Samovar is a flexible option parser excellent support for sub-commands and