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

Features/shoes4 #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Features/shoes4 #7

wants to merge 3 commits into from

Conversation

mpapis
Copy link
Collaborator

@mpapis mpapis commented Sep 13, 2014

does start but does not authorize, do not merge yet

@PragTob
Copy link
Owner

PragTob commented Sep 13, 2014

Wow thanks I wanted to do this some time :-)

But the good old oob authentication is kind of hard... :-/ Will see if I can find the time to dig in. feedzirra has a C dependency, we might need to get a different library to do the RSS/atom parsing :-)

source 'https://rubygems.org'

gem 'twitter'
gem 'oauth', '<0.4.0'
Copy link
Owner

Choose a reason for hiding this comment

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

Shouldn't we go for a newer version of oauth? Might require a rewrite or so, but hey... :-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

newer version depends on curb which in turn depends on cext - and new jruby does not have that by default ... maybe we do not need it at all?

Copy link
Owner

Choose a reason for hiding this comment

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

maybe the new twitter gem supports out of band authentication. I dunno. There should be some JRuby replacement for oauth if that doesn't work nonetheless :-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I will try to look into it later on today, maybe after lunch ;)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

doing some research now, in worst case I will implement this manually => https://dev.twitter.com/oauth/overview/authorizing-requests

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

and found something that will not require re-implementing the wheel, with little effort I should get it working here, or in a gem ;) => https://github.com/lfcipriani/sign_in_with_twitter_sample/blob/master/lib/twitter_sign_in.rb

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@mpapis
Copy link
Collaborator Author

mpapis commented Sep 15, 2014

still not working, but oauth is fine now ... at least the part with passing pincode works, did not tested what happens after that

@PragTob
Copy link
Owner

PragTob commented Sep 15, 2014

Just a question, why don't we use the oauth2 ? It's tested against JRuby as fara s I can see.

@mpapis
Copy link
Collaborator Author

mpapis commented Sep 15, 2014

Oauth2 implements protocol v2, it is not backwards compatible and twitter
does not support it.

@PragTob
Copy link
Owner

PragTob commented Sep 15, 2014

ugh. Bummer. Thanks Michal.

@mpapis
Copy link
Collaborator Author

mpapis commented Sep 15, 2014

btw, the tabs are totally broken in shoes4

@PragTob
Copy link
Owner

PragTob commented Sep 16, 2014

That sounds bad, will take a look. Have a working tab implementation for the pomodoro tracker - will gem that and port it over.

@PragTob
Copy link
Owner

PragTob commented Oct 3, 2014

Interesting, it seems like hide is broken... I thought I also used that in my pomdoro tracker. Investigating.

@PragTob
Copy link
Owner

PragTob commented Oct 3, 2014

Comparing the code of my slot_manager and the slot_manager used here I see no notable difference. I'm investigating where this difference comes from as it might as well be a shoes4 bug...

@PragTob
Copy link
Owner

PragTob commented Oct 3, 2014

tab hiding is fixed in shoes/shoes4#906 and another recent error on master I noticed in shoes/shoes4#907

edit: they should be merged soon

@mpapis
Copy link
Collaborator Author

mpapis commented Oct 3, 2014

ah this fixes are branches, I was wondering why there was no difference in behavior

@PragTob
Copy link
Owner

PragTob commented Oct 3, 2014

Yeah sorry - will probably get merged soon. Waiting a couple of days (or one or so) for a little review by one of my fellow contributors if they manage to find the time :-)

@mpapis
Copy link
Collaborator Author

mpapis commented Oct 3, 2014

git checkout -b PragTob
git pull git@github.com:shoes/shoes4.git slot-hide
git pull git@github.com:shoes/shoes4.git input-box-string-arguments

and tabs work now as expected, even some exception is gone from General...

@PragTob
Copy link
Owner

PragTob commented Oct 3, 2014

Yeah found that exception through running infoes/pomdoro tracker. It was a regression introduced through recent searches (was on a very old master before because apparently did all my shoes work from my laptop not my rig)

Will land on master soon!

@PragTob
Copy link
Owner

PragTob commented Oct 5, 2014

Fixes on master now and soon in the pre2 gem release depending on whether I find problems now or not ;-)

@PragTob PragTob changed the base branch from master to main July 5, 2020 09:31
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

2 participants