cose-key 0.0.1 → 0.0.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
  SHA256:
3
- metadata.gz: 532189539f48e03f8810ec39391ad0a4a3fc35e5db0240ec9db240c6f6d61298
4
- data.tar.gz: 265f27619c0033f462ae072e88a6d3c392cdfe6275f9cde35b1ad7979d43785d
3
+ metadata.gz: c399bef4e84efa44f1dd0dd9b9b66880e21d96cbd5bf0e30e7cc8442024584b0
4
+ data.tar.gz: 940db110f7cf0aa53e80144055cd37bf588c49c2265185a95daab724cf73cbbb
5
5
  SHA512:
6
- metadata.gz: 64817196e896c16d36175848afe1bb962cf38dcdd69937e68dc87cfd66c9c44b4d3dc6dbb0d3a6877f3f1eeecc4e516fe80be7520805cc0f14d88b4e2e0162eb
7
- data.tar.gz: f50a720110310f8ef9dc9ed33e7dd0c56cf70d6c7914dce12787035e75691c930ddf2b67863219082d95cd4d6110c4f7d888672718af713a92e3fad63ae407bf
6
+ metadata.gz: cb61d465aed76f23ef27476acecb3f11a6ff58cff29519a31edb093437eb25aec46f849cb9fd760d40503e06218bff982dfc8f58a16d189775238fc8d6f17bd7
7
+ data.tar.gz: 36f7f72d396fd73fee8cc8f5e2c291d4ccca4ee9b57e348a2f07252203c0fda03d9d80be9954470cbf53d23ff204e076ca40cbd7399d7c2ab5144aaf69e8e935
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/lib/cose/key.rb CHANGED
@@ -32,6 +32,14 @@ module COSE
32
32
  raise 'Implement me'
33
33
  end
34
34
 
35
+ def to_pem
36
+ to_key.to_pem
37
+ end
38
+
39
+ def to_text
40
+ to_key.to_text
41
+ end
42
+
35
43
  class << self
36
44
  def decode(cbor)
37
45
  detect CBOR.decode(cbor)
@@ -10,10 +10,10 @@ RSpec.describe COSE::Key do
10
10
  -----END PUBLIC KEY-----
11
11
  PEM
12
12
  end
13
+ let(:decoded) { COSE::Key.decode cbor }
13
14
 
14
15
  context 'for EC keys' do
15
16
  let(:cbor) { ec2_cbor }
16
- let(:decoded) { COSE::Key.decode cbor }
17
17
 
18
18
  describe '.decode' do
19
19
  subject { decoded }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cose-key
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake