ostatus2 0.3.1 → 0.3.2
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/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: 134189e93db8131de1acf2540494830cc3b0b9f7
|
4
|
+
data.tar.gz: 84091c342802e334d3607af0791286315a01d4eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbd9646dccf41f97984ad4dbe537ff649e3ff2ac3d3a85f61524039796e5b72b9da4857282854238a7b9584051788d4863376f6cf926c948de065ecb7fc1d1ae
|
7
|
+
data.tar.gz: 03de1727bfecddebb66092507e5a265757bfc97bca2723ef534eafe8ac7c8526cdbe8f0dfddb6bfd8e186062512d9c8d4346867872875bf9858f8d998ade15d2
|
data/lib/ostatus2/salmon.rb
CHANGED
@@ -68,9 +68,9 @@ module OStatus2
|
|
68
68
|
|
69
69
|
data = xml.at_xpath('//me:data')
|
70
70
|
type = data.attribute('type').value
|
71
|
-
body = Base64::urlsafe_decode64(data.content)
|
71
|
+
body = Base64::urlsafe_decode64(data.content) rescue ''
|
72
72
|
sig = xml.at_xpath('//me:sig')
|
73
|
-
signature = Base64::urlsafe_decode64(sig.content)
|
73
|
+
signature = Base64::urlsafe_decode64(sig.content) rescue ''
|
74
74
|
encoding = xml.at_xpath('//me:encoding').content
|
75
75
|
alg = xml.at_xpath('//me:alg').content
|
76
76
|
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: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugen Rochko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|