Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(maint) Switch AppVeyor to Ruby 2.4 from 2.3 #5975

Merged
merged 1 commit into from
Jun 14, 2017

Conversation

Iristyle
Copy link
Contributor

  • Now that RubyInstaller has produced an installer for Ruby 2.4.1 on
    Windows and AppVeyor has integrated it into their workflow per
    Ruby 2.4.1-1 appveyor/ci#1350 we can move from 2.3 to
    2.4 given Puppet 5 will be shipping against 2.4

Copy link
Contributor

@Magisus Magisus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent

@MosesMendoza
Copy link
Contributor

These appveyor failures don't look like the ones we've been seeing against the other PRs. Are they legit failures?

@Iristyle
Copy link
Contributor Author

@MosesMendoza yeah I'm looking at them.

@Iristyle Iristyle force-pushed the maint/add-Ruby-241-AppVeyor branch from 5b42dbf to 32c21ff Compare June 14, 2017 01:03
@Iristyle
Copy link
Contributor Author

Iristyle commented Jun 14, 2017

Relates to some of the work done in #5653

Possible now thanks to appveyor/ci#1350

 - Now that RubyInstaller has produced an installer for Ruby 2.4.1 on
   Windows and AppVeyor has integrated it into their workflow per
   appveyor/ci#1350 we can move from 2.3 to
   2.4 given Puppet 5 will be shipping against 2.4

 - Update tests that behave differently under Ruby 2.4:

   * Ruby has changed how ~ resolves when no HOME, HOMEDRIVE or
     USERPROFILE has set. It no longer fails to resolve / causes an
     exception thanks to https://bugs.ruby-lang.org/issues/12695

     puppetlabs#5653 was the first pass
     in f4f5ccb but was incomplete.

   * Ruby has changed the implementation of sort_by! so that items
     already in order will not be returned in the same order. For
     instance, compare the behaviors between Ruby 2.3 and 2.4:

     [[1.0, 'a'], [1.0, 'b'], [1.0, 'c']].sort_by! { |i| i[0] }
       Ruby 2.3:
       [[1.0, "a"], [1.0, "b"], [1.0, "c"]]
       Ruby 2.4:
       [[1.0, "b"], [1.0, "c"], [1.0, "a"]]

     [[1.0, 'c'], [1.0, 'b'], [1.0, 'a']].sort_by! { |i| i[0] }
       Ruby 2.3:
       [[1.0, "c"], [1.0, "b"], [1.0, "a"]]
       Ruby 2.4:
       [[1.0, "b"], [1.0, "a"], [1.0, "c"]]
@Iristyle Iristyle force-pushed the maint/add-Ruby-241-AppVeyor branch from 32c21ff to b7311d9 Compare June 14, 2017 01:13
@branan branan merged commit ed61eaa into puppetlabs:master Jun 14, 2017
@Iristyle Iristyle deleted the maint/add-Ruby-241-AppVeyor branch June 14, 2017 21:21
@puppetcla
Copy link

CLA signed by all contributors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants