rubycfn 0.4.6 → 0.4.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
- SHA1:
3
- metadata.gz: 54323e492522b3ea1a2d1052b07792fee27e2a95
4
- data.tar.gz: 106b5915d1354d4a4753bccf45eb54b4f2af6375
2
+ SHA256:
3
+ metadata.gz: 991c7f6083cf685620f309dd294daff91e062e0aee935bbb99a76c16171bbf12
4
+ data.tar.gz: 7d675c3435f36d11d83cbf9142575fbfb7968e77c570fb6f0fbfe452007db1b5
5
5
  SHA512:
6
- metadata.gz: 7b41fc96833ad3d852dd2092324bd8283a5e39e847860b9677c4c7ab7edaf5760bd940710ba38f6c1f2530fa17edab71a0992605b5cd87673534185864115dbe
7
- data.tar.gz: 7985ac469a239223734bb8f3a2e9c976f3f5af42c365de7fd439df7ecf78149c99d2d33391f42fd685d90d62f53a7f942b694afaef9432798596c38cab1cab82
6
+ metadata.gz: 55df9039f827a767442631aafd991cbbe1eb1fadfc496a7ffa91cd636ed66dbccfce0fb709905d564702d1e19fad694c5d8d7a8397655dec6a9951f2ac75bfb4
7
+ data.tar.gz: ddfe580f27fcf55e64702ad38869ebc0fd7127aa6f2dcc3e6ebb03c9ee584366448535817ff95ae957c65bbeaf5f27519e865ea2094754d7adacbb1dabc212b8
data/CHANGELOG.md CHANGED
@@ -2,7 +2,11 @@
2
2
  All notable changes to Rubycfn will be documented in this file.
3
3
  This project uses [Semantic Versioning](http://semver.org/).
4
4
 
5
- ## 0.4.7 (Next Release)
5
+ ## 0.4.8 (Next Release)
6
+
7
+ ## 0.4.7
8
+
9
+ * Added `fnsub` to Hash monkeypatch -- [@dennisvink][@dennisvink]
6
10
 
7
11
  ## 0.4.6
8
12
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubycfn (0.4.6)
4
+ rubycfn (0.4.7)
5
5
  activesupport (~> 5.1.5)
6
6
  dotenv (~> 2.4.0)
7
7
  json (~> 2.1.0)
@@ -43,7 +43,7 @@ GEM
43
43
  guard (~> 2.1)
44
44
  guard-compat (~> 1.1)
45
45
  rspec (>= 2.99.0, < 4.0)
46
- i18n (1.7.0)
46
+ i18n (1.7.1)
47
47
  concurrent-ruby (~> 1.0)
48
48
  json (2.1.0)
49
49
  launchy (2.4.3)
@@ -54,7 +54,7 @@ GEM
54
54
  ruby_dep (~> 1.2)
55
55
  lumberjack (1.0.13)
56
56
  method_source (0.9.2)
57
- minitest (5.12.2)
57
+ minitest (5.13.0)
58
58
  neatjson (0.8.4)
59
59
  necromancer (0.4.0)
60
60
  nenv (0.3.0)
@@ -117,7 +117,7 @@ GEM
117
117
  tty-screen (~> 0.6.4)
118
118
  wisper (~> 2.0.0)
119
119
  tty-screen (0.6.5)
120
- tzinfo (1.2.5)
120
+ tzinfo (1.2.6)
121
121
  thread_safe (~> 0.1)
122
122
  wisper (2.0.1)
123
123
 
data/README.md CHANGED
@@ -61,7 +61,7 @@ __________ ____ __________________.___._________ _____________________
61
61
  | _/ | /| | _// | |/ \ \/ | __) | | _/
62
62
  | | \ | / | | \\____ |\ \____| \ | | \
63
63
  |____|_ /______/ |______ // ______| \______ /\___ / |______ /
64
- \/ \/ \/ \/ \/ \/ [v0.4.6]
64
+ \/ \/ \/ \/ \/ \/ [v0.4.7]
65
65
  Project name? example
66
66
  Account ID? 1234567890
67
67
  Select region EU (Frankfurt)
data/lib/monkeypatch.rb CHANGED
@@ -221,4 +221,16 @@ class ::Hash
221
221
  ]
222
222
  }
223
223
  end
224
+
225
+ def fnsub(variable_map = nil)
226
+ unless variable_map
227
+ return { "Fn::Sub": self }
228
+ end
229
+ {
230
+ "Fn::Sub": [
231
+ self,
232
+ variable_map
233
+ ]
234
+ }
235
+ end
224
236
  end
@@ -1,4 +1,4 @@
1
1
  # Rubycfn version
2
2
  module Rubycfn
3
- VERSION = "0.4.6".freeze
3
+ VERSION = "0.4.7".freeze
4
4
  end
data/lib/rubycfn.rb CHANGED
@@ -6,18 +6,10 @@ require "neatjson"
6
6
  require "rubycfn/version"
7
7
  require_relative "monkeypatch"
8
8
 
9
- @description = ""
10
- @transform = ""
11
- @outputs = {}
12
- @parameters = {}
13
- @properties = {}
14
- @mappings = {}
15
- @conditions = {}
16
- @aws_resources = {}
9
+ # Initialize variables
10
+ @description = @transform = @resource_name = ""
11
+ @outputs = @parameters = @properties = @mappings = @conditions = @aws_resources = @variables = @global_variables = {}
17
12
  @imports = []
18
- @resource_name = ""
19
- @variables = {}
20
- @global_variables = {}
21
13
 
22
14
  @resource_specification = JSON.parse(File.open(File.join(File.dirname(__FILE__), "/../CloudFormationResourceSpecification.json")).read)
23
15
  if File.file?("CloudFormationResourceSpecification.json")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubycfn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Vink
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-30 00:00:00.000000000 Z
11
+ date: 2020-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: neatjson
@@ -329,7 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
329
329
  version: '0'
330
330
  requirements: []
331
331
  rubyforge_project:
332
- rubygems_version: 2.5.1
332
+ rubygems_version: 2.7.3
333
333
  signing_key:
334
334
  specification_version: 4
335
335
  summary: Rubycfn