Fix deprecation of Enumeration::new
Merge pull request #185 from rakoo/fix-deprecation

Fix deprecation of Enumeration::new