-
Notifications
You must be signed in to change notification settings - Fork 60
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
New release for Ruby 2.7.1 #49
Comments
I second this - doing a
... whereas I get an exception with Ruby 2.7, calling
(oddly, I still receive the status, even though there is an exception... 🤷 ) I'm relatively new to Ruby (but I'm familiar with JS/PHP dev workflows), so feel free to correct me if I'm wrong with any of this info! |
I really gotta sit down and go over this gem again and make sure all the APIs that Mastodon has are properly represented in it then push a new release out 😬 |
Hopefully this is of some use, and I apologise if this is a wall of text/Markdown, but here is a list of all the API endpoints not currently implemented: Missing endpoints:
Other notes
I went through the documentation currently available on JoinMastodon, so hopefully this covers it all. However, it was all done by hand, so there may be some issues with it. And, feel free to copy it etc. so that you can format it however you please! 👍 |
I can confirm that I am using |
…cing http 3.3.0, which doesn't work in ruby 2.7 ( mastodon/mastodon-api#49 )
Same issue here
|
…cing http 3.3.0, which doesn't work in ruby 2.7 ( mastodon/mastodon-api#49 )
Bumping. This seems to have been broken for some time. Similar errors under Ruby 3.x.
|
I stopped using this gem some time ago. It's possible to post to Mastodon with the HTTP gem and a Mastodon bearer token. I remember seeing a tutorial on doing this in Python, and somehow I figured it out in Ruby. I can't find where I did that, and now that Mastodon has all of this newfound popularity maybe I should write up how I did it. If I or someone else can find a tutorial on how to do this, hopefully you (or I) can post it. |
This PR resolves the FrozenError, but hasn't been shipped yet. You can fork from that repo source and install from the branch for now, if nothing else. |
@passthejoe Your comment here was really helpful. I only need to write statuses, and it was proving to be a big hassle to get this gem working given all the ancient dependencies. I looked at your repo and saw how you're using the http gem: https://github.com/passthejoe/blogPoster/blob/d2cfa6815f995b4e81ee548f51e35b0225994eb8/blogPoster.rb#L631
Works great - very simple! |
It was a nice discovery. I think I saw somebody do it in Python and then
just hacked it into Ruby.
…On Sun, Mar 19, 2023 at 6:37 PM Ryan TG ***@***.***> wrote:
@passthejoe <https://github.com/passthejoe> Your comment here was really
helpful. I only need to write statuses, and it was proving to be a big
hassle to get this gem working given all the ancient dependencies. I looked
at your repo and saw how you're using the http gem:
https://github.com/passthejoe/blogPoster/blob/d2cfa6815f995b4e81ee548f51e35b0225994eb8/blogPoster.rb#L631
HTTP.auth("Bearer " + @mastodon_bearer_token)
.***@***.***_base_url + "/api/v1/statuses", :params => {:status => @YourText + " " + @yourURL})
Works great - very simple!
—
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAX2TB445PGEIEBZCIIW6X3W46YFRANCNFSM4OQNRL5A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The following code doesn't run on the latest release (2.0.0) with Ruby 2.7.1, but works fine on the master branch.
Maybe a new release is required?
The text was updated successfully, but these errors were encountered: