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
Branches
No related tags found
No related merge requests found
...@@ -28,6 +28,6 @@ jobs: ...@@ -28,6 +28,6 @@ jobs:
- name: Install rubocop - name: Install rubocop
run: gem install -N rubocop run: gem install -N rubocop
- name: Rubocop - name: Rubocop
run: rubocop bin/ lib/ run: rubocop examples/ lib/
- name: Run tests - name: Run tests
run: bundle exec rake run: bundle exec rake
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require 'matrix_sdk' require 'matrix_sdk'
......
...@@ -42,7 +42,6 @@ ROOM_STATE_FILTER = { ...@@ -42,7 +42,6 @@ ROOM_STATE_FILTER = {
} }
}.freeze }.freeze
class SimpleClient < MatrixSdk::Client class SimpleClient < MatrixSdk::Client
def initialize(hs_url) def initialize(hs_url)
super hs_url, sync_filter_limit: 10 super hs_url, sync_filter_limit: 10
...@@ -106,9 +105,9 @@ if $PROGRAM_NAME == __FILE__ ...@@ -106,9 +105,9 @@ if $PROGRAM_NAME == __FILE__
ARGV.shift ARGV.shift
print 'Username: ' print 'Username: '
user = STDIN.gets.strip user = $stdin.gets.strip
puts 'Password: ' puts 'Password: '
password = STDIN.noecho(&:gets).strip password = $stdin.noecho(&:gets).strip
puts 'Logging in...' puts 'Logging in...'
client.login(user, password, no_sync: true) client.login(user, password, no_sync: true)
...@@ -133,7 +132,7 @@ if $PROGRAM_NAME == __FILE__ ...@@ -133,7 +132,7 @@ if $PROGRAM_NAME == __FILE__
puts 'Entering main loop' puts 'Entering main loop'
loop do loop do
print '> ' print '> '
msg = STDIN.gets.strip msg = $stdin.gets.strip
break if msg.start_with? '/quit' break if msg.start_with? '/quit'
if msg.start_with? '/me' 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