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

Add support for Ventura and M1 | osx_keychain to ruby-keychain #235

Merged
merged 4 commits into from Dec 6, 2022

Conversation

tritter
Copy link
Contributor

@tritter tritter commented Dec 5, 2022

I rewrote the keychain.rb file to use the ruby keychain plugin, which works also on m1 machines. And removes the broken dependency on ruby_inline.

What has been done:
• Updated dependencies (and ruby to 2.7.4 native m1 supported)
• Updated rubocop
• Moved keychain.rb logic from osx_keychain to ruby_keychain
• Updated tests

@orta
Copy link
Owner

orta commented Dec 5, 2022

Looks pretty solid to me, there's no tests on this repo so maybe just give it a run in your own app a bit to verify 👍🏻

@tritter
Copy link
Contributor Author

tritter commented Dec 5, 2022

@orta yes that's why its in draft I still need to test on some intel machines and m1 machines with keychains generated with the osx_keychain.

@tritter tritter marked this pull request as ready for review December 5, 2022 18:44
@tritter
Copy link
Contributor Author

tritter commented Dec 5, 2022

Just tested with intel. Clean install and on an older cocoapods version. Working perfectly so also with existing secrets! :) I just had a tiny dependency issue before.

Who wants to test this can install this into your project's Gemfile:
gem 'cocoapods-keys', git: 'https://github.com/tritter/cocoapods-keys.git'

@orta
Copy link
Owner

orta commented Dec 6, 2022

Greeat!

@orta orta merged commit e3ebd28 into orta:master Dec 6, 2022
@orta
Copy link
Owner

orta commented Dec 6, 2022

Thanks, this is deployed as 2.3.0!

item.password = value
item.save!
else
keychain_has_keykeychain.create(service: self.class.keychain_prefix + name, password: value, account: key)

Choose a reason for hiding this comment

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

I get error here on adding new key-value pair:
NameError - undefined local variable or method keychain_has_keykeychain

Fix looks simple:
keychain_has_keykeychain.create -> keychain.create

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@RomanDashchakivskyi-TomTom please checkout: #236 is fixed there :)

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

4 participants