Skip to content

Commit

Permalink
Merge pull request #71 from southbridgeio/feature/fixed-new-configura…
Browse files Browse the repository at this point in the history
…ble-syntax

Feature/fixed new configurable syntax
  • Loading branch information
reshetov authored Dec 1, 2024
2 parents e962280 + decb0f3 commit 7a3086d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions lib/tdlib-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ def root_path
setting :encryption_key

setting :client do
setting :api_id, &:to_i
setting :api_id, constructor: ->(id) { id&.to_i }
setting :api_hash
setting :use_test_dc, false
setting :database_directory, "#{Dir.home}/.tdlib-ruby/db"
setting :files_directory, "#{Dir.home}/.tdlib-ruby/data"
setting :use_file_database, true
setting :use_chat_info_database, true
setting :use_secret_chats, true
setting :use_message_database, true
setting :system_language_code, 'en'
setting :device_model, 'Ruby TD client'
setting :system_version, 'Unknown'
setting :application_version, '1.0'
setting :use_test_dc, default: false
setting :database_directory, default: "#{Dir.home}/.tdlib-ruby/db"
setting :files_directory, default: "#{Dir.home}/.tdlib-ruby/data"
setting :use_file_database, default: true
setting :use_chat_info_database, default: true
setting :use_secret_chats, default: true
setting :use_message_database, default: true
setting :system_language_code, default: 'en'
setting :device_model, default: 'Ruby TD client'
setting :system_version, default: 'Unknown'
setting :application_version, default: '1.0'
end
end

Expand Down
2 changes: 1 addition & 1 deletion tdlib-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ['lib']

gem.add_runtime_dependency 'dry-configurable', '~> 0.9'
gem.add_runtime_dependency 'dry-configurable', '~> 0.13'
gem.add_runtime_dependency 'concurrent-ruby', '~> 1.1'
gem.add_runtime_dependency 'ffi', '~> 1.15.0'
gem.add_runtime_dependency 'tdlib-schema'
Expand Down

0 comments on commit 7a3086d

Please sign in to comment.