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

Get 5-0-stable happy with Ruby 2.4.0 #27458

Merged
merged 12 commits into from
Dec 26, 2016
Merged

Conversation

matthewd
Copy link
Member

No description provided.

matthewd and others added 12 commits December 26, 2016 23:27
Use built-in #transform_values when available.
…act-from-ruby-24

Use Hash#compact and Hash#compact! from Ruby 2.4
…rm_values

Ensure `#transform_values` of HWIDA to return HWIDA
2.3: sprintf('%0.1f', 5.55)  #=> "5.5"
2.4: sprintf('%0.1f', 5.55)  #=> "5.6"

see: ruby/ruby@6ed8c79 and
ruby/ruby@295f60b
Remove warning from Bignum constant access
BigDecimal('an invalid string') has changed its behavior to raise an ArgumentError since 1.3.0
https://bugs.ruby-lang.org/issues/10286
change return value of `duplicable?` with Ruby 2.4+
Fix Fixnum deprecated warning in Ruby 2.4+
Very similar to PR rails#25758, see more in depth reasoning there.
@rails-bot
Copy link

warning Warning warning

  • Pull requests are usually filed against the master branch for this repo, but this one is against 5-0-stable. Please double check that you specified the right target!

@morgoth
Copy link
Member

morgoth commented Feb 24, 2017

Since 5.1.0 beta is released, will there be 5.0.2 with full Ruby 2.4 support?

@matthewd matthewd deleted the 5-0-2-4 branch June 12, 2017 15:40
huzichunjohn pushed a commit to huzichunjohn/gitaly that referenced this pull request Feb 9, 2018
When starting Gitaly as part of the GDK and the user is using Ruby
with version 2.4 or later, it would log a few warnings like:

```log
time="2018-02-05T11:58:00+01:00" level=info msg="/Users/zegerjan/.rvm/gems/ruby-2.4.2/gems/activesupport-5.0.0.1/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is deprecated" supervisor.args="[bundle exec bin/ruby-cd /Users/zegerjan/Development/gitlab-development-kit /Users/zegerjan/Development/gitlab-development-kit/gitaly/ruby/bin/gitaly-ruby 18254 /var/folders/xj/tqv1lcpn7fb5b9xmrs55lxz00000gn/T/gitaly-ruby281462536/socket.0]" supervisor.name=gitaly-ruby.0
```

This deprecation warning has been fixed upstream and the fix was
included in 5.0.2: rails/rails#27458
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.

None yet

8 participants