ostatus2 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ostatus2/salmon.rb +2 -2
- data/lib/ostatus2/subscription.rb +1 -1
- data/lib/ostatus2/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b10dcbd38df486eac9b8bb7a362ff9be8ae8bf9
|
4
|
+
data.tar.gz: 4f44adbb73150983a99b3b00a381e800623fea20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fed4ccc8d261898df3ae2769c08024e596727097ef1940eb86918e8f1c52a2c19ee521e9173a26aa43e07ea6d6d0111923c5c5e312946ce6760db40298d50c57
|
7
|
+
data.tar.gz: b26357250a0283f4f57a4cb087b7a81ec29c22dfd2d1cf3e7ff6d53ca6f8c961d96cc94951429a72395971af28bc379e68c7ef715975dfc1e3b1c8c56354b1ad
|
data/lib/ostatus2/salmon.rb
CHANGED
@@ -70,9 +70,9 @@ module OStatus2
|
|
70
70
|
|
71
71
|
data = xml.at_xpath('//me:data', me: XMLNS)
|
72
72
|
type = data.attribute('type').value
|
73
|
-
body = decode_base64(data.content)
|
73
|
+
body = decode_base64(data.content.gsub(/\s+/, ''))
|
74
74
|
sig = xml.at_xpath('//me:sig', me: XMLNS)
|
75
|
-
signature = decode_base64(sig.content)
|
75
|
+
signature = decode_base64(sig.content.gsub(/\s+/, ''))
|
76
76
|
encoding = xml.at_xpath('//me:encoding', me: XMLNS).content
|
77
77
|
alg = xml.at_xpath('//me:alg', me: XMLNS).content
|
78
78
|
plaintext = plaintext_signature(body, type, encoding, alg)
|
data/lib/ostatus2/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ostatus2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugen Rochko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: openssl
|