Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
- existing tests pass
-
Puppet Developer Experience
-
2
-
PDE 2017-02-08, PDE 2017-02-22, PDE 2017-03-08
-
Bug Fix
-
-
No Action
-
covered by existing tests
Description
Ruby 2.4 introduces a couple of subtle differences that breaks puppet.
1. It unifies the Fixnum and Bignum into Integer. This causes problems in several places.
2. Prior to 2.4.0, the following code would raise an exception "couldn't find HOME" but in 2.4.0, the resolution works even when HOME is nil.
ENV['HOME'] = nil |
path = File.expand_path('~/tmp') |
3. The handling of DateTime.to_time has changed. Prior to 2.4:
x = DateTime.httpdate('Sat, 03 Feb 2001 04:05:06 GMT').to_time.to_s |
would produce a local time such as "2001-02-03 05:05:06 +0100". In 2.4.0, it retains its timezone and produces "2001-02-03 04:05:06 +0000".
Attachments
Issue Links
- relates to
-
PA-476 Update puppet-agent to use Ruby 2.4
-
- Closed
-