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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb33f6ccb4d9c081991bde6bb12c79283672f8e6
4
- data.tar.gz: 4f166b6956bde0bc0dcee63f29b988062874db8f
3
+ metadata.gz: c10740421896ea5800f9243a58a3c4e494873824
4
+ data.tar.gz: 9089c7d964850502a8ab3597348c7ff3a84b046d
5
5
  SHA512:
6
- metadata.gz: 292dd8f06c404a9dd2173f2cec11cc350e026b5e6ede4bc9756cb38b0e6d962cde2e25837bdd0b75283ca22b7ad7636da09639116e668fc1940d8dac6a61a37e
7
- data.tar.gz: da2e04310f05e1c8e3fd1fd9d6c13597fa593c655e320cc09179ed8c99029f5519674beff3a8a745c4c78f2238a9ab390da40408ca588a0389967a8a2ee975b9
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 = template.gsub(/(\s*\/\/.*$)|(".*")/) {|m| m[0] == '"' ? m : ''} # replace comments
10
- preprocess_json(JSON(template)).to_s
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.27
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-03 00:00:00.000000000 Z
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