aws-cfn-compiler 0.9.21 → 0.9.22
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 +4 -4
 - data/aws-cfn-compiler.iml +34 -2
 - data/lib/aws/cfn/compiler/base.rb +18 -1
 - data/lib/aws/cfn/compiler/version.rb +1 -1
 - 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: 7fa3c96290d1ffca3eef7df6d9dba6fabf3178c8
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 48222cedb2b18df50bc8e98dbc3c77f278699ca0
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 3a139d4ff5b2a7dc7419f1213ffa15e2d20f76bcf295dfaf39aa9e7658a72a3b07cc85d94d376c9ec30926510c4b0c0af4b833dcfb5742698593c227220e6217
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 1712e005e9f442fccbe9e85aeb12cdcdfa0f33aa53b0fe5d1b0e6df25375a6ba02d3c3a67a7818cfaac95100173b08018eed5b8d7e91b1c7c77365e8263a9631
         
     | 
    
        data/aws-cfn-compiler.iml
    CHANGED
    
    | 
         @@ -8,8 +8,40 @@ 
     | 
|
| 
       8 
8 
     | 
    
         
             
                <content url="file://$MODULE_DIR$" />
         
     | 
| 
       9 
9 
     | 
    
         
             
                <orderEntry type="jdk" jdkName="RVM: ruby-1.9.3-p547 [aws-cfn-compile]" jdkType="RUBY_SDK" />
         
     | 
| 
       10 
10 
     | 
    
         
             
                <orderEntry type="sourceFolder" forTests="false" />
         
     | 
| 
       11 
     | 
    
         
            -
                <orderEntry type="module 
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
      
 11 
     | 
    
         
            +
                <orderEntry type="module-library">
         
     | 
| 
      
 12 
     | 
    
         
            +
                  <library name="aws-cfn-dsl (v0.9.6, /Users/cdelange/Dropbox/DLDInternet/ws/gems-ws/aws-cfn-dsl) [path][gem]">
         
     | 
| 
      
 13 
     | 
    
         
            +
                    <CLASSES>
         
     | 
| 
      
 14 
     | 
    
         
            +
                      <root url="file://$MODULE_DIR$/../aws-cfn-dsl/bin" />
         
     | 
| 
      
 15 
     | 
    
         
            +
                      <root url="file://$MODULE_DIR$/../aws-cfn-dsl/lib" />
         
     | 
| 
      
 16 
     | 
    
         
            +
                      <root url="file://$MODULE_DIR$/../aws-cfn-dsl/pkg" />
         
     | 
| 
      
 17 
     | 
    
         
            +
                      <root url="file://$MODULE_DIR$/../aws-cfn-dsl/.idea" />
         
     | 
| 
      
 18 
     | 
    
         
            +
                    </CLASSES>
         
     | 
| 
      
 19 
     | 
    
         
            +
                    <JAVADOC />
         
     | 
| 
      
 20 
     | 
    
         
            +
                    <SOURCES>
         
     | 
| 
      
 21 
     | 
    
         
            +
                      <root url="file://$MODULE_DIR$/../aws-cfn-dsl/bin" />
         
     | 
| 
      
 22 
     | 
    
         
            +
                      <root url="file://$MODULE_DIR$/../aws-cfn-dsl/lib" />
         
     | 
| 
      
 23 
     | 
    
         
            +
                      <root url="file://$MODULE_DIR$/../aws-cfn-dsl/pkg" />
         
     | 
| 
      
 24 
     | 
    
         
            +
                      <root url="file://$MODULE_DIR$/../aws-cfn-dsl/.idea" />
         
     | 
| 
      
 25 
     | 
    
         
            +
                    </SOURCES>
         
     | 
| 
      
 26 
     | 
    
         
            +
                  </library>
         
     | 
| 
      
 27 
     | 
    
         
            +
                </orderEntry>
         
     | 
| 
      
 28 
     | 
    
         
            +
                <orderEntry type="module-library">
         
     | 
| 
      
 29 
     | 
    
         
            +
                  <library name="cloudformation-ruby-dsl (v[path], /Users/cdelange/Dropbox/DLDInternet/ws/gems-ws/cloudformation-ruby-dsl) [path][gem]">
         
     | 
| 
      
 30 
     | 
    
         
            +
                    <CLASSES>
         
     | 
| 
      
 31 
     | 
    
         
            +
                      <root url="file://$MODULE_DIR$/../cloudformation-ruby-dsl/bin" />
         
     | 
| 
      
 32 
     | 
    
         
            +
                      <root url="file://$MODULE_DIR$/../cloudformation-ruby-dsl/lib" />
         
     | 
| 
      
 33 
     | 
    
         
            +
                      <root url="file://$MODULE_DIR$/../cloudformation-ruby-dsl/.idea" />
         
     | 
| 
      
 34 
     | 
    
         
            +
                      <root url="file://$MODULE_DIR$/../cloudformation-ruby-dsl/vendor" />
         
     | 
| 
      
 35 
     | 
    
         
            +
                    </CLASSES>
         
     | 
| 
      
 36 
     | 
    
         
            +
                    <JAVADOC />
         
     | 
| 
      
 37 
     | 
    
         
            +
                    <SOURCES>
         
     | 
| 
      
 38 
     | 
    
         
            +
                      <root url="file://$MODULE_DIR$/../cloudformation-ruby-dsl/bin" />
         
     | 
| 
      
 39 
     | 
    
         
            +
                      <root url="file://$MODULE_DIR$/../cloudformation-ruby-dsl/lib" />
         
     | 
| 
      
 40 
     | 
    
         
            +
                      <root url="file://$MODULE_DIR$/../cloudformation-ruby-dsl/.idea" />
         
     | 
| 
      
 41 
     | 
    
         
            +
                      <root url="file://$MODULE_DIR$/../cloudformation-ruby-dsl/vendor" />
         
     | 
| 
      
 42 
     | 
    
         
            +
                    </SOURCES>
         
     | 
| 
      
 43 
     | 
    
         
            +
                  </library>
         
     | 
| 
      
 44 
     | 
    
         
            +
                </orderEntry>
         
     | 
| 
       13 
45 
     | 
    
         
             
                <orderEntry type="module-library">
         
     | 
| 
       14 
46 
     | 
    
         
             
                  <library name="dldinternet-mixlib-cli (v0.2.0, /Users/cdelange/Dropbox/DLDInternet/ws/gems-ws/dldinternet-mixlib-cli) [path][gem]">
         
     | 
| 
       15 
47 
     | 
    
         
             
                    <CLASSES>
         
     | 
| 
         @@ -22,6 +22,7 @@ module Aws 
     | 
|
| 
       22 
22 
     | 
    
         
             
                      @all_sections.each do |section|
         
     | 
| 
       23 
23 
     | 
    
         
             
                        @dynamic_items[section]      ||= {}
         
     | 
| 
       24 
24 
     | 
    
         
             
                        @dynamic_references[section] ||= []
         
     | 
| 
      
 25 
     | 
    
         
            +
                        @dynamic_reference_locations ||= {}
         
     | 
| 
       25 
26 
     | 
    
         
             
                      end
         
     | 
| 
       26 
27 
     | 
    
         
             
                    end
         
     | 
| 
       27 
28 
     | 
    
         | 
| 
         @@ -32,7 +33,19 @@ module Aws 
     | 
|
| 
       32 
33 
     | 
    
         | 
| 
       33 
34 
     | 
    
         
             
                    def dynamic_reference(section,resource)
         
     | 
| 
       34 
35 
     | 
    
         
             
                      abort! "Invalid section '#{section}'\nValid sections are: #{@all_sections.join(',')}" unless @all_sections.include?(section)
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
      
 37 
     | 
    
         
            +
                      caller_rgxp = %r/([-\.\/\(\)\w]+):(\d+)(?::in `(\w+)')?/o
         
     | 
| 
      
 38 
     | 
    
         
            +
                      stack = caller()[0]
         
     | 
| 
      
 39 
     | 
    
         
            +
                      match = caller_rgxp.match(stack)
         
     | 
| 
      
 40 
     | 
    
         
            +
                      f = File.basename(match[1])
         
     | 
| 
      
 41 
     | 
    
         
            +
                      l = Integer(match[2])
         
     | 
| 
      
 42 
     | 
    
         
            +
                      # m = match[3] unless match[3].nil?
         
     | 
| 
      
 43 
     | 
    
         
            +
             
     | 
| 
      
 44 
     | 
    
         
            +
                      # logger.warn("Referenced resource '#{resource}' does not (yet) exist in the section '#{section}' (From #{f} line #{l})") unless (@items.has_key?(section) and @items[section].has_key?(resource))
         
     | 
| 
      
 45 
     | 
    
         
            +
                      #
         
     | 
| 
       35 
46 
     | 
    
         
             
                      @dynamic_references[section] << resource
         
     | 
| 
      
 47 
     | 
    
         
            +
                      @dynamic_reference_locations[resource] ||= {}
         
     | 
| 
      
 48 
     | 
    
         
            +
                      @dynamic_reference_locations[resource][section] = [f,l]
         
     | 
| 
       36 
49 
     | 
    
         
             
                    end
         
     | 
| 
       37 
50 
     | 
    
         | 
| 
       38 
51 
     | 
    
         
             
                    def _uniq_names(arr)
         
     | 
| 
         @@ -135,7 +148,11 @@ module Aws 
     | 
|
| 
       135 
148 
     | 
    
         
             
                      unless net.empty?
         
     | 
| 
       136 
149 
     | 
    
         
             
                        @logger.error '!!! Unknown references !!!'
         
     | 
| 
       137 
150 
     | 
    
         
             
                        net.each do |name|
         
     | 
| 
       138 
     | 
    
         
            -
                           
     | 
| 
      
 151 
     | 
    
         
            +
                          if refs.include?(name)
         
     | 
| 
      
 152 
     | 
    
         
            +
                            @logger.error "  #{name} from #{refs[name][0]}:#{refs[name][1]}"
         
     | 
| 
      
 153 
     | 
    
         
            +
                          else
         
     | 
| 
      
 154 
     | 
    
         
            +
                            @logger.error "  #{name} from #{@dynamic_reference_locations[name].map{ |s,a| "#{s}:#{a[0]} line #{a[1]}" }.join(',')}"
         
     | 
| 
      
 155 
     | 
    
         
            +
                          end
         
     | 
| 
       139 
156 
     | 
    
         
             
                        end
         
     | 
| 
       140 
157 
     | 
    
         
             
                        abort!
         
     | 
| 
       141 
158 
     | 
    
         
             
                      end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: aws-cfn-compiler
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.9. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.9.22
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - PKinney
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2014- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2014-10-16 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: awesome_print
         
     |