Skip to content

Update and change a lot of things #6

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

Merged
merged 9 commits into from
Aug 14, 2023

Conversation

AlexWayfer
Copy link
Contributor

@AlexWayfer AlexWayfer commented Mar 27, 2020

  • Improve logic of connection:
    replace :connect with :authenticated and :join.
  • Actualize and improve many callbacks, especially for room modes.
  • Add :followers_mode.
  • Add :bits message type.
  • Replace stale eventmachine with simple TCPSocket and Thread.
  • Reconnect (socket) on connection errors.
  • Remove activesupport dependency (replace with keyword arguments).
  • Remove :host, :port, :nickname and other accessors.
    Its usage can trigger undefined behavior, and here is no need for it.
  • Remove deprecated TWITCHCLIENT 3 command.
  • Set UTF-8 encoding for socket.
  • Add Message#id` (for deleting).
  • Add Message#sent_at (for logging).
  • Remove Message#target: seems useless.
  • Add additional_info for Message (with badges, chat states, etc.).
  • Add User class with information from additional_info of message.
  • Replace $LOAD_PATH.unshift with require_relative.
  • Re-raise trapped TERM and INT process signals after actions.
  • Remove RSpec config code, use default.
  • Add spec Rake task (for RSpec).
  • Add rubocop (and its config), resolve many offenses.
  • Add pry-byebug for handful debug (in specs).
  • Add simplecov for indicating tests coverage.
  • Update dependencies and improve their versions locks.
  • Add EditorConfig file (more info here).
  • Fix typos in README.

@AlexWayfer AlexWayfer changed the title Update and change a lot of things WIP: Update and change a lot of things Apr 22, 2020
@AlexWayfer
Copy link
Contributor Author

I've added Work In Progress status because I'm testing it in real project and still changing (in better way).

@AlexWayfer AlexWayfer changed the title WIP: Update and change a lot of things Update and change a lot of things Apr 25, 2020
@AlexWayfer
Copy link
Contributor Author

Now it works in the real-life project.

* Improve logic of connection:
  replace `:connect` with `:authenticated` and `:join`.
* Actualize and improve many callbacks, especially for room modes.
* Add `:followers_mode`.
* Add `:bits` message type.
* Replace stale `eventmachine` with simple `TCPSocket` and `Thread`.
* Reconnect (socket) on connection errors.
* Remove `activesupport` dependency (replace with keyword arguments).
* Remove `:host`, `:port`, `:nickname` and other accessors.
  Its usage can trigger undefined behavior, and here is no need for it.
* Remove deprecated `TWITCHCLIENT 3` command.
* Set `UTF-8` encoding for socket.
* Add Message#id` (for deleting).
* Add `Message#sent_at` (for logging).
* Remove `Message#target`: seems useless.
* Add `additional_info` for `Message` (with badges, chat states, etc.).
* Add `User` class with information from `additional_info` of message.
* Replace `$LOAD_PATH.unshift` with `require_relative`.
* Re-raise trapped `TERM` and `INT` process signals after actions.
* Remove RSpec config code, use default.
* Add `spec` Rake task (for RSpec).
* Add `rubocop` (and its config), resolve many offenses.
* Add `pry-byebug` for handful debug (in specs).
* Add `simplecov` for indicating tests coverage.
* Update dependencies and improve their versions locks.
* Add EditorConfig file (more info [here](https://editorconfig.org/)).
* Fix typos in README.
It can hang on 15+ minutes, but we have to respond Twitch `PING` requests.
Without connection there will be errors on socket initialization,
but I think we should check it and watch in real-life project.
It's more flexible, for example for non-default logging level.
@EnotPoloskun EnotPoloskun merged commit 6eff012 into EnotPoloskun:master Aug 14, 2023
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.

2 participants