Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix Ruby SDK
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Olofsson
Matrix Ruby SDK
Commits
d0c36007
Verified
Commit
d0c36007
authored
6 years ago
by
Alexander Olofsson
Browse files
Options
Downloads
Patches
Plain Diff
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
6 years ago
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
lib/matrix_sdk/api.rb
+1
-1
1 addition, 1 deletion
lib/matrix_sdk/api.rb
lib/matrix_sdk/protocols/ss.rb
+1
-1
1 addition, 1 deletion
lib/matrix_sdk/protocols/ss.rb
with
6 additions
and
2 deletions
CHANGELOG.md
+
4
−
0
View file @
d0c36007
## *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
...
...
This diff is collapsed.
Click to expand it.
lib/matrix_sdk/api.rb
+
1
−
1
View file @
d0c36007
...
@@ -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
::
C
S
include
MatrixSdk
::
Protocols
::
S
S
USER_AGENT
=
"Ruby Matrix SDK v
#{
MatrixSdk
::
VERSION
}
"
USER_AGENT
=
"Ruby Matrix SDK v
#{
MatrixSdk
::
VERSION
}
"
DEFAULT_HEADERS
=
{
DEFAULT_HEADERS
=
{
...
...
This diff is collapsed.
Click to expand it.
lib/matrix_sdk/protocols/ss.rb
+
1
−
1
View file @
d0c36007
...
@@ -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
}
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment