app_manifest 0.3.0 → 0.4.0

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: 98e7fd7a9df5650e85261c7075ba606fee8577a3
4
- data.tar.gz: d05a3fc7de5170ee6382f374bf11bbe00cc7d23d
3
+ metadata.gz: 1d9334534391c19ae6512f0e846455a89c0c39f5
4
+ data.tar.gz: 1aebc1cea08efdaabefa137a7b8c9562b79b1ad3
5
5
  SHA512:
6
- metadata.gz: 52af724010c244dfa20b5f17ce50f109089acc3e0189ce268ce3391ba781a39a0ece6639aa224ebb6936a801e07ab02fa6538c3097426996f01a1e20fc1a542e
7
- data.tar.gz: 695439ffdb68a4a023ed50e8ce522a87275f37cc41bb834e647d4151995d49c021c1746aefee6a52a2a0ec0fb317d4380655800a7adb0d5c450a40d4911c5065
6
+ metadata.gz: 7d23f721193c7c8b5bec68e4153d34dbe2f36f93621a345918f3871480accfa97026e2b36cbab21d65e311256cd74cf556ca5fa1e661ada40936db10b5679371
7
+ data.tar.gz: 87138fbbc3ebaf2da49b170494b164f0dc7dc450af70318146b532663a4de2b4dd7b1eae257d19523f0f46af816b2446d49d26165f593b7bc416e7d6e36650ca
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## [0.4.0] - 2017-11-28
11
+
12
+ ### Fixed
13
+ - Support canonicalization for env shorthands with numeric values(for example: `{ "env": { "FOO": 5 } }`).
14
+
10
15
  ## [0.3.0] - 2017-06-18
11
16
 
12
17
  ### Added
@@ -45,12 +45,14 @@ module AppManifest
45
45
  canonicalize_key(manifest, :env) do |env|
46
46
  Hash[
47
47
  env.map do |key, value|
48
- if value.is_a?(String) || [true, false].include?(value)
49
- value = {
50
- value: value,
51
- }
48
+ case value
49
+ when Hash
50
+ [key.to_s, value]
51
+ when String, TrueClass, FalseClass, Integer, Float
52
+ [key.to_s, { value: value }]
53
+ else
54
+ [key.to_s, value.to_s]
52
55
  end
53
- [key.to_s, value]
54
56
  end
55
57
  ]
56
58
  end
@@ -1,3 +1,3 @@
1
1
  module AppManifest
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.4.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_manifest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owen Jacobson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-07-18 00:00:00.000000000 Z
12
+ date: 2017-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  requirements: []
131
131
  rubyforge_project:
132
- rubygems_version: 2.5.2
132
+ rubygems_version: 2.6.13
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: A library for parsing Heroku app manifests