hako 0.27.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6906160a207eb30f5c0ff86ef988ddbc59a4aece
4
- data.tar.gz: 5a1752cec62def8da19ae5ac50ec8ffdeda4aa24
3
+ metadata.gz: 938f0e65da32f6929d48b4eb36de870402f95459
4
+ data.tar.gz: c80c5b03b852a7f8c7d6f4d9a87c4fb7d06e676b
5
5
  SHA512:
6
- metadata.gz: 3398ec1cc7f6e7e21e429b191f0199963b195945716c7d51307a124ecf048506041a5e7f566c3efb7632b523a38f0e5e8668f8c62d0f99a83705ab470f0e287b
7
- data.tar.gz: f43a1787cd95c2a5f15365bcfa070c92b67efca060d9458bba33281e4e9c127703b64ae24b9b96ce993eeb48f14c37eb04e7db58b1fa2e8370d2ade0dd91a5de
6
+ metadata.gz: 1bf2dacf9340751b1c699273e3fe5ac75d44dda64aa2e0869c15ba21f65ddd67b2933f3f3cd79687cf6fd2f4a53b98b2b394f6eee06f05c87bc02236b52d9d96
7
+ data.tar.gz: 873fe2dd11e42b725a9df3094187d592d7644984e8e9bc9845eac6f0b1a467f5f2b380b49e803cd3c5c7a24904cabcf92de8d2070cdae90a51ee34c54edf9cab
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ # 1.0.0 (2017-03-06)
2
+ ## Incompatibility
3
+ - Raise error when env value is not String (#31)
data/README.md CHANGED
@@ -4,9 +4,6 @@
4
4
 
5
5
  Deploy Docker container.
6
6
 
7
- ## Status
8
- Under development. Any incompatible change will happen without notice.
9
-
10
7
  ## Installation
11
8
 
12
9
  Add this line to your application's Gemfile:
@@ -9,6 +9,6 @@ app:
9
9
  memory: 128
10
10
  cpu: 256
11
11
  env:
12
- PORT: 3000
12
+ PORT: '3000'
13
13
  MESSAGE: 'hello'
14
14
  command: ['echo', 'heavy offline job']
@@ -40,7 +40,7 @@ app:
40
40
  $providers:
41
41
  - type: file
42
42
  path: hello.env
43
- PORT: 3000
43
+ PORT: '3000'
44
44
  MESSAGE: '#{username}-san'
45
45
  additional_containers:
46
46
  front:
@@ -30,7 +30,7 @@ app:
30
30
  $providers:
31
31
  - type: file
32
32
  path: hello.env
33
- PORT: 3000
33
+ PORT: '3000'
34
34
  MESSAGE: '#{username}-san'
35
35
  additional_containers:
36
36
  front:
@@ -22,7 +22,7 @@ app:
22
22
  $providers:
23
23
  - type: file
24
24
  path: hello.env
25
- PORT: 3000
25
+ PORT: '3000'
26
26
  MESSAGE: '#{username}-san'
27
27
  additional_containers:
28
28
  front:
data/examples/hello.yml CHANGED
@@ -19,7 +19,7 @@ app:
19
19
  $providers:
20
20
  - type: file
21
21
  path: hello.env
22
- PORT: 3000
22
+ PORT: '3000'
23
23
  MESSAGE: '#{username}-san'
24
24
  additional_containers:
25
25
  front:
@@ -90,7 +90,10 @@ module Hako
90
90
  def parse_env(env)
91
91
  parsed_env = {}
92
92
  env.each do |key, val|
93
- parsed_env[key] = parse(val.to_s)
93
+ unless val.is_a?(String)
94
+ raise ExpansionError.new("#{key} must be a String but got #{val.class}: #{val.inspect}")
95
+ end
96
+ parsed_env[key] = parse(val)
94
97
  end
95
98
  parsed_env
96
99
  end
data/lib/hako/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hako
3
- VERSION = '0.27.0'
3
+ VERSION = '1.0.0'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hako
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kohei Suzuki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-01 00:00:00.000000000 Z
11
+ date: 2017-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -108,6 +108,7 @@ files:
108
108
  - ".rubocop_todo.yml"
109
109
  - ".travis.yml"
110
110
  - ".yardopts"
111
+ - CHANGELOG.md
111
112
  - Gemfile
112
113
  - README.md
113
114
  - Rakefile