vendor/bundle/ruby/2.1.0/gems/org-ruby-0.9.12/lib/org-ruby/parser.rb
def check_include_file(file_path)
      can_be_included = File.exists? file_path

      if not ENV['ORG_RUBY_INCLUDE_ROOT'].nil?
        # Ensure we have full paths
        root_path = File.expand_path ENV['ORG_RUBY_INCLUDE_ROOT']
        file_path = File.expand_path file_path

        # Check if file is in the defined root path and really exists
        if file_path.slice(0, root_path.length) != root_path
          can_be_included = false
        end
      end

      can_be_included
    end
# Check include file availability and permissions
Check include file availability and permissions
Check include file availability and permissions
def check_include_file(file_path)
      can_be_included = File.exists? file_path
      if not ENV['ORG_RUBY_INCLUDE_ROOT'].nil?
        root_path = File.expand_path ENV['ORG_RUBY_INCLUDE_ROOT']
        file_path = File.expand_path file_path
        if file_path.slice(0, root_path.length) != root_path
          can_be_included = false
        end
      end
      can_be_included
    end
def check_include_file ( file_path ) can_be_included = File . exists? file_path if not ENV [ 'ORG_RUBY_INCLUDE_ROOT' ] . nil? root_path = File . expand_path ENV [ 'ORG_RUBY_INCLUDE_ROOT' ] file_path = File . expand_path file_path if file_path . slice ( 0 , root_path . length ) != root_path can_be_included = false end end can_be_included end
Check include file availability and permissions
Check include file availability and permissions
# Ensure we have full paths # Check if file is in the defined root path and really exists
file_path