atipugin / telegram-bot-ruby

Ruby wrapper for Telegram's Bot API
https://core.telegram.org/bots/api
Do What The F*ck You Want To Public License
1.35k stars 217 forks source link

Release v1 version #265

Closed atipugin closed 1 year ago

atipugin commented 1 year ago

This is PR with code changes I've been planning to add for a long time. Because amount of changes is significant, I decided to bump major version number and release v1.

Two key changes:

1) Use zeitwerk for code loading. Easy lazy/eager loading, no need to write tons of require statements, keep their order etc. 2) Replace virtus with dry-struct. While virtus was nice, it's not maintained anymore and dry-struct looks like a good replacement here.

For the end user I don't see any breaking changes, old code should work as well.