What is the project about?
<p dir="auto">This project is a wrapper of Utopian APIs. It provides an easy way to use Utopian APIs for Ruby developers. I am very glad to see that this gem has got 497 downloads so far from <a href="https://rubygems.org/search?utf8=%E2%9C%93&query=utopian" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Rubygems.
<p dir="auto"><img src="https://images.hive.blog/768x0/https://steemitimages.com/DQmSEzNdf5yG2XMDXbjXzMcWcoRKxQRdMrYsgwX3pkHcFKN/image.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/DQmSEzNdf5yG2XMDXbjXzMcWcoRKxQRdMrYsgwX3pkHcFKN/image.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/DQmSEzNdf5yG2XMDXbjXzMcWcoRKxQRdMrYsgwX3pkHcFKN/image.png 2x" />
<p dir="auto">Here is a summary of work being done for this submission:
<ul>
<li>Add get_categories() method and rspec test
<li>Add a new helper class: UtopianRubyHelper
<li>Add get_posts_by_type() method (and rspec test) to return posts under a certain category
<li>Add get_posts_obj_by_type() method to return post objects under a certain category
<li>Add get_posts_obj_by_moderator() method (and rspec test) to return post objects reviewed by a certain moderator
<li>Add get_post_repository() method to return the github repository URL for a particular post
<h2>Technology Stack
<p dir="auto">Ruby V2.4<br />
Gem V2.6.11
<h2>Roadmap
<p dir="auto"><a href="/@yuxi/utopian-api-ruby-client">Utopian API Ruby Client V0.0.1<br />
<a href="/@yuxi/utopian-api-ruby-client-v0-0-2">Utopian API Ruby Client V0.0.2
<h2>Test
<p dir="auto">A set of rspec test has been written in:
<p dir="auto"><span><a href="https://github.com/yuxir/utopian-ruby/blob/master/spec/utopian_ruby_spec.rb" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/yuxir/utopian-ruby/blob/master/spec/utopian_ruby_spec.rb
<p dir="auto">and
<p dir="auto"><span><a href="https://github.com/yuxir/utopian-ruby/blob/master/spec/utopian_ruby_helper_spec.rb" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/yuxir/utopian-ruby/blob/master/spec/utopian_ruby_helper_spec.rb
<h2>How to contribute?
<p dir="auto">Just fork this project, create your feature branch, commit your changes and send a pull request!
<p dir="auto"><span><a href="https://github.com/yuxir/utopian-ruby" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/yuxir/utopian-ruby
<h2>Installation
<p dir="auto">Assuming you already have Ruby development configured, then run:
<pre><code>gem install utopian_ruby_api
<h2>How to use it? (New features only)
<h3>Get categories
<pre><code>require 'utopian_ruby_api'
UtopianRuby::UtopianRubyAPI.get_categories()
<h3>Get posts by category
<pre><code>UtopianRuby::UtopianRubyHelper.get_posts_by_type("development",{"limit":5})
<h3>Get post objects by category
<pre><code>UtopianRuby::UtopianRubyHelper.get_posts_obj_by_type("development",{"limit":5})
<h3>Get post objects by moderator
<pre><code>UtopianRuby::UtopianRubyHelper.get_posts_obj_by_moderator("helo",{"limit":10,"type":"development"})
<h3>Get post repository
<pre><code>UtopianRuby::UtopianRubyHelper.get_post_repository('yuxi','utopian-api-ruby-client')
<h2>Proof of work
<p dir="auto">I have added my Steemit account link in the README:
<p dir="auto"><img src="https://images.hive.blog/768x0/https://steemitimages.com/DQmYHuPHtsM39xDnHYYpj8B89dJ2PFzAhaSTPht19zwnLik/image.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/DQmYHuPHtsM39xDnHYYpj8B89dJ2PFzAhaSTPht19zwnLik/image.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/DQmYHuPHtsM39xDnHYYpj8B89dJ2PFzAhaSTPht19zwnLik/image.png 2x" />
<p dir="auto"><br /><hr /><em>Posted on <a href="https://utopian.io/utopian-io/@yuxi/utopian-api-ruby-client-v0-0-3" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Utopian.io - Rewarding Open Source Contributors<hr /><p>
Thank you for the contribution. It has been approved.
Please put more work in your future contributions.
You can contact us on Discord.
[utopian-moderator]
Thanks, will do.
Hey @ms10398, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!
Hey @yuxi I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
Great introduction to API.