stack_master 1.7.1-x64-mingw32 → 1.7.2-x64-mingw32

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: de8fa6e1667399a786ca49e1481a2aabb58b206a
4
- data.tar.gz: 5eb1d27cacb86f904a1bed35a822b3a4c6d3c465
3
+ metadata.gz: e23fe0b1ad02d826d9e845196960ec3eb056534e
4
+ data.tar.gz: 02b08ab848383b41d55ec9d628b574dfcde13563
5
5
  SHA512:
6
- metadata.gz: fea58827accf50e633fb3d9b9cf54fe79a0b379847f7e69fbe127e641de770af5291a416a4c25526520f0caa1066763f4d2f6eff05ebe77d191fb165ce1ef5d1
7
- data.tar.gz: b40240118ee022e42a2d32925d2320b29f3fd093a35ee8b7f4f014e6794380e565835db758612b1d9b6245cea9f195a7acc430898714f11e2ab6be1c954a3338
6
+ metadata.gz: 654de1b6c6e8baed17953896812d6f4562a870e8dcefcb672bd80e1d0f262f24872964368d134d1f8f54f8e92c6efc7fab2186bcddea923d941e03093f77fbf0
7
+ data.tar.gz: c15a3ff445d055540b662f11e1e385cff426908cfab675ae14134bfa3dde235028046291ad7365ed9d1c15224b814de4d158c2f495bbd4db6d6a48e8a684b5e6
@@ -3,11 +3,15 @@ require 'active_support/core_ext/object/deep_dup'
3
3
 
4
4
  module StackMaster
5
5
  class Config
6
+ ConfigParseError = Class.new(StandardError)
7
+
6
8
  def self.load!(config_file = 'stack_master.yml')
7
9
  resolved_config_file = search_up_and_chdir(config_file)
8
10
  config = YAML.load(File.read(resolved_config_file))
9
11
  base_dir = File.dirname(File.expand_path(resolved_config_file))
10
12
  new(config, base_dir)
13
+ rescue Psych::SyntaxError => error
14
+ raise ConfigParseError, "Unable to parse #{resolved_config_file}: #{error}"
11
15
  end
12
16
 
13
17
  attr_accessor :stacks,
@@ -1,3 +1,5 @@
1
+ require 'io/console'
2
+
1
3
  module StackMaster
2
4
  module Prompter
3
5
  def ask?(question)
@@ -1,3 +1,3 @@
1
1
  module StackMaster
2
- VERSION = "1.7.1"
2
+ VERSION = "1.7.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stack_master
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Steve Hodgkiss
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-06-08 00:00:00.000000000 Z
12
+ date: 2018-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler