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

Ruby 2.7.0 Deprecations #15856

Closed
4 tasks done
jshier opened this issue Jan 6, 2020 · 9 comments · Fixed by #16399
Closed
4 tasks done

Ruby 2.7.0 Deprecations #15856

jshier opened this issue Jan 6, 2020 · 9 comments · Fixed by #16399

Comments

@jshier
Copy link

jshier commented Jan 6, 2020

New Issue Checklist

Issue Description

Fastlane produces two deprecation warnings when running on Ruby 2.7.0.

  • gems/faraday_middleware-0.13.1/lib/faraday_middleware/response_middleware.rb:14: warning: Capturing the given block using Proc.new is deprecated; use &block instead
    • This can be fixed by updating the faraday_middleware dependency, as 0.16 doesn't have this issue, AFAICT.
  • gems/fastlane-2.139.0/fastlane/lib/fastlane/plugins/plugin_manager.rb:162: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
@fastlane-bot
Copy link

It seems like you have not included the output of fastlane env
To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env 👍

@ykws
Copy link

ykws commented Jan 27, 2020

@fastlane-bot Hi, I'm in a similar situation. Attached my fastlane env.

$ fastlane --version
fastlane installation at path:
/Users/ykws/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.140.0/bin/fastlane
-----------------------------
[⠙] 🚀 /Users/ykws/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/faraday_middleware-0.13.1/lib/faraday_middleware/response_middleware.rb:14: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead
[✔] 🚀 
/Users/ykws/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/highline-1.7.10/lib/highline.rb:624: warning: Using the last argument as keyword parameters is deprecated
fastlane 2.140.0
🚫 fastlane environment 🚫

Stack

Key Value
OS 10.15.2
Ruby 2.7.0
Bundler? false
Git git version 2.23.0
Installation Source ~/.rbenv/versions/2.7.0/bin/fastlane
Host Mac OS X 10.15.2 (19C57)
Ruby Lib Dir ~/.rbenv/versions/2.7.0/lib
OpenSSL Version OpenSSL 1.1.1d 10 Sep 2019
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 11.3.1

System Locale

Error
No Locale with UTF8 found 🚫

fastlane files:

No Fastfile found

No Appfile found

fastlane gems

Gem Version Update-Status
fastlane 2.140.0 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.4.0
slack-notifier 2.3.2
atomos 0.1.3
CFPropertyList 3.0.2
claide 1.0.3
colored2 3.1.2
nanaimo 0.2.6
xcodeproj 1.14.0
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 2.0.0
unicode-display_width 1.6.1
terminal-table 1.8.0
plist 3.5.0
public_suffix 2.0.5
addressable 2.7.0
multipart-post 2.0.0
word_wrap 1.0.0
tty-screen 0.7.0
tty-cursor 0.7.1
tty-spinner 0.9.2
babosa 1.0.3
colored 1.2
highline 1.7.10
commander-fastlane 4.4.6
excon 0.71.1
faraday 0.17.3
unf_ext 0.0.7.6
unf 0.1.4
domain_name 0.5.20190701
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
faraday_middleware 0.13.1
fastimage 2.1.7
gh_inspector 1.1.3
json 2.3.0
mini_magick 4.10.1
multi_xml 0.6.0
rubyzip 1.3.0
security 0.1.3
xcpretty-travis-formatter 1.0.0
dotenv 2.7.5
bundler 2.1.2
naturally 2.2.0
simctl 1.6.7
jwt 2.1.0
uber 0.1.0
declarative 0.0.10
declarative-option 0.1.0
representable 3.0.4
retriable 3.1.2
mini_mime 1.0.2
multi_json 1.14.1
signet 0.12.0
memoist 0.16.2
os 1.0.1
googleauth 0.10.0
httpclient 2.8.3
google-api-client 0.36.4
google-cloud-env 1.3.0
google-cloud-errors 1.0.0
google-cloud-core 1.5.0
digest-crc 0.4.1
google-cloud-storage 1.25.1
emoji_regex 1.0.1
uri 0.10.0
forwardable 1.3.1
logger 1.4.2
cgi 0.1.0
timeout 0.1.0
stringio 0.1.0
ipaddr 1.2.2
openssl 2.1.2
ostruct 0.2.0
strscan 1.0.3
date 3.0.0
delegate 0.1.0
fileutils 1.4.1
io-console 0.5.3
zlib 1.1.0
singleton 0.1.0
rexml 3.2.3
open3 0.1.0
yaml 0.1.0
psych 3.1.0
mutex_m 0.1.0

generated on: 2020-01-27

@al-cheb
Copy link

al-cheb commented Feb 19, 2020

We have had the same issue with:

  1. xcversion /usr/local/lib/ruby/gems/2.7.0/gems/faraday_middleware-0.13.1/lib/faraday_middleware/response_middleware.rb:14: warning: Capturing the given block using Proc.new is deprecated; use &block instead 2.6.3

  2. fastlane 2.141.0

@ch4053n61n3
Copy link

You should change to Ruby 2.6 (by using rbenv) and (re)install fastlane and its dependencies.

Block capturing has been changed in 2.7 compared to 2.6.
https://rubyreferences.github.io/rubychanges/2.7.html
https://sourcediving.com/less-known-changes-in-ruby-2-7-8d5db660370f

Probably the fastlane doesn't handle it yet.

@fastlane-bot
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest fastlane version and check if that solves the issue. Let us know if that works for you by adding a comment 👍

Friendly reminder: contributions are always welcome! Check out CONTRIBUTING.md for more information on how to help with fastlane and feel free to tackle this issue yourself 💪

@jshier
Copy link
Author

jshier commented Mar 28, 2020

This is still an issue, it's rather annoying. Fastlane works fine, just prints a bunch of deprecation warnings you can't turn off (though that's Ruby's fault).

@nick3389
Copy link

nick3389 commented Apr 1, 2020

@jshier same issue here. a bunch of deprecation messages. Fastlane version is 2.144.0.

@pedro380085
Copy link

Still an issue here too.

@joshdholtz
Copy link
Member

👋 Hello, everyone! Just wanted to chime in here. I got a few other big fastlane projects that are on my list at the moment but I will be working on getting everything working better in Ruby 2.7 here soon after those 😇

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
9 participants