Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10486

Remove deprecated Enumeration type

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • PUP 7.0.0
    • None
    • Deprecation
    • Hide
      The Enumeration class was deprecated in PUP-5648 and will be removed in Puppet 7 since its functionality has been moved to Iterable.
      Show
      The Enumeration class was deprecated in PUP-5648 and will be removed in Puppet 7 since its functionality has been moved to Iterable.
    • Needs Assessment

    Description

      locales/puppet.pot:msgid "Enumeration.enumerator is deprecated. Use Iterable.on instead"
      spec/unit/pops/types/enumeration_spec.rb:  expect(Enumeration.enumerator([1,2,3]).respond_to?(:next)).to eql(true)
      spec/unit/pops/types/enumeration_spec.rb:    expect(Enumeration.enumerator({:a=>1}).respond_to?(:next)).to eql(true)
      spec/unit/pops/types/enumeration_spec.rb:    enum = Enumeration.enumerator("abc")
      spec/unit/pops/types/enumeration_spec.rb:    enum = Enumeration.enumerator(2)
      spec/unit/pops/types/enumeration_spec.rb:    enum = Enumeration.enumerator(range)
      spec/unit/pops/types/enumeration_spec.rb:    enum = Enumeration.enumerator(range)
      spec/unit/pops/types/enumeration_spec.rb:    enum = Enumeration.enumerator(range)
      spec/unit/pops/types/enumeration_spec.rb:      enum = Enumeration.enumerator(x)
      lib/puppet/pops/types/enumeration.rb:# The Enumeration class provides default Enumerable::Enumerator creation for Puppet Programming Language
      lib/puppet/pops/types/enumeration.rb:  class Enumeration
      lib/puppet/pops/types/enumeration.rb:      Puppet.deprecation_warning(_('Enumeration.enumerator is deprecated. Use Iterable.on instead'))
      lib/puppet/pops/types/enumeration.rb:      Puppet.deprecation_warning(_('Enumeration.enumerator is deprecated. Use Iterable.on instead'))
      

      Attachments

        Activity

          People

            dorin.pleava Dorin Pleava
            gheorghe.popescu Gheorghe Popescu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support