As part of the assignment, we write a console utility that determines the popularity of Ruby gems. The launch is performed by the following command:
ruby top_gems.rbFor each gem in this list, we find it Github repo, from the page of this repo we get the following data: Used by, Watch, Star, Fork, Contributors, Issues.
We can pass additional arguments:
- The
--topparameter, shows the number of gems according to the rating:
ruby top_gems.rb --top=2- The
--nameparameter, displays all Gems according to the rating whose name includes the given word:
ruby top_gems.rb --name=active- The
--fileparameter, which is the path to the yml file containing the list of gem names:
ruby top_gems.rb --file=gems.ymlAfter registration, he will be able to “accept the shift” - /checkin and “hand over the shift” - /checkout.
Registration starts after the “/ start” command and prompts you to enter a number. If such a number already exists or the number does not match any of the list of all numbers (which are in the file in the data folder of your project), then an error is displayed to the user. Otherwise, registration is successful and the user number along with his telegram_id is stored in the database.
On the main page, a list of places with a name, description and coordinates.
Leave feedback can only registered and logged in users.
For this assignment, used [Sinatra] (http://sinatrarb.com/). The database is sqlite.


