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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 473101441a21cdb99583187dbf13b0239375eae3
4
- data.tar.gz: 3c497ec52e6914061136c10786c12c5b17463296
3
+ metadata.gz: dcc50ebfc08e56fee125cdb6059b3a0a764340bd
4
+ data.tar.gz: e0c53af8e59b43a2049a3d45c5ea6bc640be5c54
5
5
  SHA512:
6
- metadata.gz: cb35de07fb0f54d599c9cfe2873f463515a39a3bf85b98bfca74f054155fff85588c97b72363e31e86cbe18a8e86e1e926390f7711694438fd2d60b61f6f64b8
7
- data.tar.gz: 91cdf4828952cfa27cc0478b85dc202237d483e035a5d462f41651a4205fd93709b7a92ca13941e5cc78a093dd47f98373ad4a2188f02a5f0123f00f9869163a
6
+ metadata.gz: a349c2aeed3d100931a38f1a3730ce31281454d14c38ff1547d1ab716656352a259bc431cc8bc0f6eaedeb3afab866117f6e285f798be2015884c1f2eb860a7f
7
+ data.tar.gz: 0d14ce065466310abc6dd790048845f279011dd1608f943790aab55ed5c1380b5c55ef31cf0e20f15ab762a9ba1a8b4f0e0cc7122d3baf6c1aff90f38483ce11
@@ -1,3 +1,8 @@
1
+ #### v0.3.1
2
+ * Fixing bug with default so its only used in non-interactive
3
+
4
+ > Brian Bergstrom: Elliot Hursh: https://github.com/sportngin/soyuz/pull/19
5
+
1
6
  #### v0.3.0
2
7
  * Adding support for environment argument
3
8
 
@@ -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
- @default_choice = default_choice_number
10
- raise ArgumentError, "Default choice required for non interactive mode." if @default_choice.nil? && $non_interactive
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
@@ -1,3 +1,3 @@
1
1
  module Soyuz
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-02 00:00:00.000000000 Z
11
+ date: 2015-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli