autostacker24 1.0.27 → 1.0.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/autostacker24/template_preprocessor.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c10740421896ea5800f9243a58a3c4e494873824
|
4
|
+
data.tar.gz: 9089c7d964850502a8ab3597348c7ff3a84b046d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dbc059ee7dd518c025f282f2304248364f24cdb8b912bcb484a231001a7ed4ec89554ce8e3481c73743136d7b951c0df752f5df341b9bfc65cd2f5ca0530fd1
|
7
|
+
data.tar.gz: f594d5b49e2bc8f2a045ed01eed06f3d27b6d6c9cdf0ec9c7a6976224b77212e671a7d4f8c4dd26d5e037f1443667fcc5ff7ee72e777fd1ff7dc9e232e6dc76e
|
@@ -6,8 +6,11 @@ module AutoStacker24
|
|
6
6
|
module Preprocessor
|
7
7
|
|
8
8
|
def self.preprocess(template)
|
9
|
-
template
|
10
|
-
|
9
|
+
if template =~ /^\s*\/\/\s*AutoStacker24/i
|
10
|
+
template = template.gsub(/(\s*\/\/.*$)|(".*")/) {|m| m[0] == '"' ? m : ''} # replace comments
|
11
|
+
template = preprocess_json(JSON(template)).to_s
|
12
|
+
end
|
13
|
+
template
|
11
14
|
end
|
12
15
|
|
13
16
|
def self.preprocess_json(json)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autostacker24
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johannes Mueller
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-02-
|
12
|
+
date: 2015-02-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk-core
|