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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd695a02ded035bf7206b5fe507a4335fd0c6503
4
- data.tar.gz: 573de6b54479582bbc7bed360248947803c407c5
3
+ metadata.gz: 134189e93db8131de1acf2540494830cc3b0b9f7
4
+ data.tar.gz: 84091c342802e334d3607af0791286315a01d4eb
5
5
  SHA512:
6
- metadata.gz: 96e1fa4a7d7069511d9dc4d5fe9c2e72f3d2dc78e635e484494150f38401971aa88db31470053f3714f7703d61e5dc12e9bea82c8da65e0a7b973e971b61b746
7
- data.tar.gz: 7906e0649966a645d92f5f10df437978bd15912592e32ee7c65bbd9d5c9a6cf40ec6e95bdb1938a8b7060150f947dd5126b9a563def607475f699d53d057aeca
6
+ metadata.gz: cbd9646dccf41f97984ad4dbe537ff649e3ff2ac3d3a85f61524039796e5b72b9da4857282854238a7b9584051788d4863376f6cf926c948de065ecb7fc1d1ae
7
+ data.tar.gz: 03de1727bfecddebb66092507e5a265757bfc97bca2723ef534eafe8ac7c8526cdbe8f0dfddb6bfd8e186062512d9c8d4346867872875bf9858f8d998ade15d2
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module OStatus2
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
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.1
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-09-27 00:00:00.000000000 Z
11
+ date: 2016-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http