Skip to content
Snippets Groups Projects
Verified Commit 9c2ac44d authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Fixup CI actions and examples

parent 4ac20623
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,6 @@ jobs:
- name: Install rubocop
run: gem install -N rubocop
- name: Rubocop
run: rubocop bin/ lib/
run: rubocop examples/ lib/
- name: Run tests
run: bundle exec rake
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'matrix_sdk'
......
......@@ -42,7 +42,6 @@ ROOM_STATE_FILTER = {
}
}.freeze
class SimpleClient < MatrixSdk::Client
def initialize(hs_url)
super hs_url, sync_filter_limit: 10
......@@ -106,9 +105,9 @@ if $PROGRAM_NAME == __FILE__
ARGV.shift
print 'Username: '
user = STDIN.gets.strip
user = $stdin.gets.strip
puts 'Password: '
password = STDIN.noecho(&:gets).strip
password = $stdin.noecho(&:gets).strip
puts 'Logging in...'
client.login(user, password, no_sync: true)
......@@ -133,7 +132,7 @@ if $PROGRAM_NAME == __FILE__
puts 'Entering main loop'
loop do
print '> '
msg = STDIN.gets.strip
msg = $stdin.gets.strip
break if msg.start_with? '/quit'
if msg.start_with? '/me'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment