soyuz 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +5 -0
- data/lib/soyuz/command_choice.rb +5 -2
- data/lib/soyuz/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcc50ebfc08e56fee125cdb6059b3a0a764340bd
|
4
|
+
data.tar.gz: e0c53af8e59b43a2049a3d45c5ea6bc640be5c54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a349c2aeed3d100931a38f1a3730ce31281454d14c38ff1547d1ab716656352a259bc431cc8bc0f6eaedeb3afab866117f6e285f798be2015884c1f2eb860a7f
|
7
|
+
data.tar.gz: 0d14ce065466310abc6dd790048845f279011dd1608f943790aab55ed5c1380b5c55ef31cf0e20f15ab762a9ba1a8b4f0e0cc7122d3baf6c1aff90f38483ce11
|
data/CHANGELOG.markdown
CHANGED
data/lib/soyuz/command_choice.rb
CHANGED
@@ -6,8 +6,11 @@ module Soyuz
|
|
6
6
|
def initialize(choices)
|
7
7
|
raise ArgumentError, "Choices must be an array" unless choices.is_a?(Array)
|
8
8
|
@choices = choices
|
9
|
-
|
10
|
-
|
9
|
+
|
10
|
+
if $non_interactive
|
11
|
+
@default_choice = default_choice_number
|
12
|
+
raise ArgumentError, "Default choice required for non interactive mode." if @default_choice.nil?
|
13
|
+
end
|
11
14
|
end
|
12
15
|
|
13
16
|
def default_choice_number
|
data/lib/soyuz/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soyuz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Fleener
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|