hotdog 0.9.1 → 0.9.2

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: c443fb84cc5099a3392dea6f932e79c27b5b5610
4
- data.tar.gz: c784d5bcb03e81dbd1f0216fc4c50b990b74bf12
3
+ metadata.gz: 3a3c16d26c86f2acfa512dbe269fca33fd347de1
4
+ data.tar.gz: 65c61ead6106d761cf32988bfedd80cd4b9db8f4
5
5
  SHA512:
6
- metadata.gz: 9b1807bad3b5b7cb16899cf5ec7b5772b62756d1edafe2a626761a0a9bbde061da288ab41f92c0d4afd6812985907f22c43c958a8fd6b864821657d8c56aa3f3
7
- data.tar.gz: 5cf5137ef2215c81dda324286a7c9b56fc780f330e8bb6f537bad3496843c114adac343277a65eaef776276741a0e4cb1ec1b34b6468349e4444584cb86c2e2f
6
+ metadata.gz: 16af49f02a2eb754e8f0966efa8af1ef9392cb3945ac14819587f5b5912582f84e66ce04760c818480e8e2fcadda359477fe15614c3b5c59c8cd73eac69cc6dd
7
+ data.tar.gz: 8aac2b1202e35c118dc774e6bbce2c8f818cf3cf08701b5ae0fd164629cd244b6a8e8b0513d3096c6e2ca1b1da2b597e63d69149e7632efffaf855fce846e7fc
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ require "erb"
3
4
  require "logger"
4
5
  require "optparse"
5
6
  require "yaml"
@@ -45,7 +46,7 @@ module Hotdog
45
46
  def main(argv=[])
46
47
  config = File.join(options[:confdir], "config.yml")
47
48
  if File.file?(config)
48
- loaded = YAML.load(File.read(config))
49
+ loaded = YAML.load(ERB.new(File.read(config)).result)
49
50
  if Hash === loaded
50
51
  @options = @options.merge(Hash[loaded.map { |key, value| [Symbol === key ? key : key.to_s.to_sym, value] }])
51
52
  end
@@ -1,3 +1,3 @@
1
1
  module Hotdog
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hotdog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yamashita Yuu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-05 00:00:00.000000000 Z
11
+ date: 2016-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler