tagenv 0.1.6 → 0.1.7

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: b2d465b884fb4d957745478fc7340573f24a11ea
4
- data.tar.gz: 6f27ff5950f110304786e441bc8658c4c874f263
3
+ metadata.gz: 408cae279643c079cb4eb8a0c161c683b5876010
4
+ data.tar.gz: b0daeb6e9f669ef6b3d64edd0538367efbc334fc
5
5
  SHA512:
6
- metadata.gz: a4529aa843e5045e037feb491291d59d24aaba945334078ab9c67d8ce23a6c680f2ec29cf37701d5567f2364b2b9e26c5329e8280d34dbb90f7fe70b8bcd0a77
7
- data.tar.gz: aff9f05edab553aa601020c0b5b0f77507e510dfb316b673992abbc7f6a7906233464e35ba946a11c92ae21a6a89fabd5a46e2756cd8935ab272122e90d0cc4b
6
+ metadata.gz: 73e5b19d9729721d8ce315f98773a148bae0e9e531aadcffa04fc6dca1b9c6c819d224b4e0d44c2b61e102462e01ce1e3d7815a0518e3cc8e45f4edfefb9b689
7
+ data.tar.gz: 43ec2e1f67be672f72d8050261ef1bb35cda7573f5ae4e84d232c47fd3d997678b36c038d9d49e7f4eb9ce708e09b9e1b066bf34348693800afc993a46ea0522
@@ -14,7 +14,7 @@ module Tagenv
14
14
  raise "Unsupport provider [#{provider}]"
15
15
  end
16
16
  tag_hash.each do |k, v|
17
- ENV[prefix + k] = v
17
+ ENV[k] = v
18
18
  end
19
19
  end
20
20
  end
@@ -1,4 +1,4 @@
1
1
  module Tagenv
2
2
  # tagenv version
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
@@ -23,6 +23,15 @@ describe Tagenv::Ec2::Tag do
23
23
  expect(Ec2::TagUtil.convert_tag_hash('', aws_tag_format)).to(eq(expect_value))
24
24
  end
25
25
 
26
+ it "convert_tag_hash_prefix" do
27
+ aws_tag_format = [
28
+ { 'key' => 'Name', 'value' => 'app01' },
29
+ { 'key' => 'Stages', 'value' => 'production' }
30
+ ]
31
+ expect_value = { 'EC2TAG_Name' => 'app01', 'EC2TAG_Stages' => 'production' }
32
+ expect(Ec2::TagUtil.convert_tag_hash('EC2TAG_', aws_tag_format)).to(eq(expect_value))
33
+ end
34
+
26
35
  after do
27
36
  end
28
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tagenv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - toyama0919