Skip to content

Commit

Permalink
Merge pull request #64 from southbridgeio/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
haukot authored Apr 6, 2022
2 parents fc727a5 + e6805e6 commit 44b1e37
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.5.1

* Fix problem with telegram_id exceeding int.

# 0.5.0

* Use supergroup chats
Expand Down
5 changes: 5 additions & 0 deletions db/migrate/004_change_telegram_id_to_decimal.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class ChangeTelegramIdToDecimal < Rails.version < '5.0' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
def change
change_column :telegram_accounts, :telegram_id, :decimal
end
end
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
name 'Redmine Bots'
url 'https://github.com/southbridgeio/redmine_bots'
description 'This is a platform for building Redmine bots'
version '0.5.0'
version '0.5.1'
author 'Southbridge'
author_url 'https://github.com/southbridgeio'

Expand Down
2 changes: 1 addition & 1 deletion test/unit/redmine_bots/account_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class TelegramAccountTest < ActiveSupport::TestCase
def setup
@telegram_account = TelegramAccount.new first_name: 'John', last_name: 'Smith'
@telegram_account = TelegramAccount.new first_name: 'John', last_name: 'Smith', telegram_id: 999_999_999_999
end

def test_name_without_username
Expand Down

0 comments on commit 44b1e37

Please sign in to comment.