lib/contentful/client.rb
def normalize_select!(query)
      return unless query.key?(:select)

      query[:select] = query[:select].split(',').map(&:strip) if query[:select].is_a? String
      query[:select] = query[:select].reject { |p| p.start_with?('sys.') }
      query[:select] << 'sys' unless query[:select].include?('sys')
    end
def normalize_select!(query)
      return unless query.key?(:select)

      query[:select] = query[:select].split(',').map(&:strip) if query[:select].is_a? String
      query[:select] = query[:select].reject { |p| p.start_with?('sys.') }
      query[:select] << 'sys' unless query[:select].include?('sys')
    end
def normalize_select! ( query ) return unless query . key? ( :select ) query [ :select ] = query [ :select ] . split ( ',' ) . map ( :strip ) if query [ :select ] . is_a? String query [ :select ] = query [ :select ] . reject { | p | p . start_with? ( 'sys.' ) } query [ :select ] << 'sys' unless query [ :select ] . include? ( 'sys' ) end
If the query contains the :select operator, we enforce :sys properties.
 The SDK requires sys.type to function properly, but as other of our SDKs
 require more parts of the :sys properties, we decided that every SDK should
 include the complete :sys block to provide consistency accross our SDKs.
If the query contains the : select operator we enforce : sys properties . The SDK requires sys . type to function properly but as other of our SDKs require more parts of the : sys properties we decided that every SDK should include the complete : sys block to provide consistency accross our SDKs .