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

API: Fix a faulty include of the S2S protocol

parent 1f02fe66
No related branches found
No related tags found
No related merge requests found
Pipeline #3642 passed
## *Unreleased*
- Fixes a faulty include which broke the single implemented S2S endpoint
## v1.1.0 - 2019-06-04 ## v1.1.0 - 2019-06-04
- The create_room method in the client abstraction now automatically stores the created room - The create_room method in the client abstraction now automatically stores the created room
......
...@@ -13,7 +13,7 @@ module MatrixSdk ...@@ -13,7 +13,7 @@ module MatrixSdk
include MatrixSdk::Protocols::AS include MatrixSdk::Protocols::AS
include MatrixSdk::Protocols::CS include MatrixSdk::Protocols::CS
include MatrixSdk::Protocols::IS include MatrixSdk::Protocols::IS
include MatrixSdk::Protocols::CS include MatrixSdk::Protocols::SS
USER_AGENT = "Ruby Matrix SDK v#{MatrixSdk::VERSION}" USER_AGENT = "Ruby Matrix SDK v#{MatrixSdk::VERSION}"
DEFAULT_HEADERS = { DEFAULT_HEADERS = {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module MatrixSdk::Protocols::SS module MatrixSdk::Protocols::SS
# Gets the server version # Gets the server version
def server_version def server_version
Response.new(self, request(:get, :federation_v1, '/version').server).tap do |resp| MatrixSdk::Response.new(self, request(:get, :federation_v1, '/version').server).tap do |resp|
resp.instance_eval <<-'CODE', __FILE__, __LINE__ + 1 resp.instance_eval <<-'CODE', __FILE__, __LINE__ + 1
def to_s def to_s
"#{name} #{version}" "#{name} #{version}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment