ostatus2 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/ostatus2/magic_key.rb +2 -4
- data/lib/ostatus2/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18dc56ea9ff324180e2e9affcf6bf11f11683ea7
|
4
|
+
data.tar.gz: afb7271a4ef3e3f2e055cdbe40b5c66dfedb9c92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82c9d569c44779bbae951dcc29a7984aec733fec1444972bb9344128517993c80fc6a1d8711d34c3ba3617d4e364353dc52529236db5af127d70e53e32e49607
|
7
|
+
data.tar.gz: 4cdc243b0d69f63c49287e8cbd47262958d6ebd91157d9324fe97fe9f55a84b8601d8f020ecd822fe65e1e0704b3915fb4306ade50c6ce9e20128443a632b384
|
data/README.md
CHANGED
@@ -2,12 +2,12 @@ OStatus2
|
|
2
2
|
==========
|
3
3
|
|
4
4
|
[![Gem Version](http://img.shields.io/gem/v/ostatus2.svg)][gem]
|
5
|
-
[![Build Status](http://img.shields.io/travis/
|
6
|
-
[![Dependency Status](http://img.shields.io/gemnasium/
|
5
|
+
[![Build Status](http://img.shields.io/travis/tootsuite/ostatus2.svg)][travis]
|
6
|
+
[![Dependency Status](http://img.shields.io/gemnasium/tootsuite/ostatus2.svg)][gemnasium]
|
7
7
|
|
8
8
|
[gem]: https://rubygems.org/gems/ostatus2
|
9
|
-
[travis]: https://travis-ci.org/
|
10
|
-
[gemnasium]: https://gemnasium.com/
|
9
|
+
[travis]: https://travis-ci.org/tootsuite/ostatus2
|
10
|
+
[gemnasium]: https://gemnasium.com/tootsuite/ostatus2
|
11
11
|
|
12
12
|
A Ruby toolset for interacting with the OStatus suite of protocols:
|
13
13
|
|
data/lib/ostatus2/magic_key.rb
CHANGED
@@ -4,10 +4,8 @@ module OStatus2
|
|
4
4
|
_, modulus, exponent = magic_key.split('.')
|
5
5
|
modulus, exponent = [modulus, exponent].map { |n| decode_base64(n).bytes.inject(0) { |a, e| (a << 8) | e } }
|
6
6
|
|
7
|
-
key
|
8
|
-
key.
|
9
|
-
key.e = exponent
|
10
|
-
|
7
|
+
key = OpenSSL::PKey::RSA.new
|
8
|
+
key.set_key(modulus, exponent, nil)
|
11
9
|
key.to_pem
|
12
10
|
end
|
13
11
|
|
data/lib/ostatus2/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ostatus2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugen Rochko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: openssl
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: http
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|