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

Improve behavior of cfpropertylist extension #11506

Merged
merged 3 commits into from
Apr 5, 2018
Merged

Improve behavior of cfpropertylist extension #11506

merged 3 commits into from
Apr 5, 2018

Conversation

jdee
Copy link
Collaborator

@jdee jdee commented Jan 9, 2018

Checklist

  • I've run bundle exec rspec from the root directory to see all new and existing tests pass
  • I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary.

Motivation and Context

This extension sometimes causes problems when used with RVM gemsets.

Description

Be careful about removing the #to_plist method in case it was already removed.

@jdee
Copy link
Collaborator Author

jdee commented Jan 9, 2018

@milch @KrauseFx @snatchev Lost my Slack. I think this might help.

@milch
Copy link
Collaborator

milch commented Jan 9, 2018

Yeah Slack is dead I think. Looks like you're checking whether :remove_method exists rather than :to_plist though?

Copy link
Member

@KrauseFx KrauseFx left a comment

Choose a reason for hiding this comment

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

🚀

@KrauseFx
Copy link
Member

KrauseFx commented Jan 9, 2018

Do we also need the begin rescue blocks here?

@KrauseFx
Copy link
Member

KrauseFx commented Jan 9, 2018

Similar to a879476 I mean

@jdee
Copy link
Collaborator Author

jdee commented Jan 9, 2018

Even that doesn't actually fix the problem, which I can still produce. It raises at line 17, despite the check for the existence of the method.

@jdee
Copy link
Collaborator Author

jdee commented Jan 9, 2018

That works when rescuing NameError. But I really have no idea why it's happening.

I also still see this:

[⠋] 🚀 /Users/jdee/.rvm/rubies/ruby-2.4.2/lib/ruby/gems/2.4.0/gems/tty-screen-0.6.4/lib/tty/version.rb:3: warning: already initialized constant TTY::Screen::VERSION
/Users/jdee/.rvm/gems/ruby-2.4.2@global/gems/tty-screen-0.6.4/lib/tty/version.rb:3: warning: previous definition of VERSION was here
[⠦] 🚀 /Users/jdee/.rvm/gems/ruby-2.4.2@global/gems/fastlane-2.75.1/spaceship/lib/spaceship/test_flight/build.rb:87: warning: already initialized constant Spaceship::TestFlight::Build::BUILD_STATES
/Users/jdee/.rvm/rubies/ruby-2.4.2/lib/ruby/gems/2.4.0/gems/fastlane-2.75.1/spaceship/lib/spaceship/test_flight/build.rb:87: warning: previous definition of BUILD_STATES was here
[✔] 🚀 

But this seems to fix the crash.

@janpio
Copy link
Member

janpio commented Feb 16, 2018

@jdee Is this good to merge in your opinion?

@bguest
Copy link

bguest commented Mar 28, 2018

Can we get this merged in, I'm sick of copying this code into my local gem everytime it brakes, seems like a no brainer...

@joshdholtz joshdholtz merged commit 0fbf90f into fastlane:master Apr 5, 2018
@fastlane-bot
Copy link

Hey @jdee 👋

Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉
The code change now lives in the master branch, however it wasn't released to RubyGems yet.
We usually ship about once a week, and your PR will be included in the next one.

Please let us know if this change requires an immediate release by adding a comment here 👍
We'll notify you once we shipped a new release with your changes 🚀

@fastlane-bot
Copy link

Congratulations! 🎉 This was released as part of fastlane 2.90.0 🚀

@fastlane fastlane locked and limited conversation to collaborators Jun 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants