openssl-additions 0.3.0 → 0.4.0

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: 7c4f3a73e293460574c4664cfc46ec88225f98b56af7cb815f1c8884edac28b6
4
- data.tar.gz: f12ee14c668926658e218b6f8607e1eb77237df4e0ed6e3fac2f4037051b67b6
3
+ metadata.gz: c002f0205350fca421c6edb69f29e96cb17691b2878211542ead695aeb59fe8f
4
+ data.tar.gz: ecdbaf9fc58ab1d58a04df73ebdd14c59e4ed3efe72e86fee3bad7d00d18cbdd
5
5
  SHA512:
6
- metadata.gz: 1af236619dc0e4afb0453327afbddb5b0f814bc0d5ec68e713b2f0b85a638720ec2884002c9e8285d07328c760553f4bcdfffcaebf41f3f166b1c23b99884b06
7
- data.tar.gz: 676caa68cf512bd522175302b7ea6576ac87411ee3b69e9935a1b3dde396fd3ddac660648c29f1d355429dc7bb1e095674b47892f7f1b954ceae15d57c379b02
6
+ metadata.gz: 6fba57730fb6e4967ab67b97c94a7c82fd907b2b0dfbcbdbbeb059f79e3d745eb16e40ce6e90c71b3ffdf12234f13335e237ccd5386581cdefe338751f46f4d0
7
+ data.tar.gz: 2ba9996f6dcdc468d8bff817d5a8c8ebc6e8b97eb5146c11ded5fdacd2081f5a9223d0598638879879e42ba2b7fc6c92a6c20501d69d734f5e12cdf40b261182
@@ -1,22 +1,17 @@
1
1
  require "openssl"
2
2
 
3
- class OpenSSL::X509::Certificate
4
- def encode_with(coder)
5
- coder['der'] = self.to_der
6
- end
7
-
8
- def init_with(coder)
9
- self.__send__(:initialize, coder['der'])
10
- end
11
- end
12
-
13
- class OpenSSL::PKey::PKey
14
- def encode_with(coder)
15
- coder['der'] = self.to_der
16
- end
3
+ module OpenSSL::YamlSerialization
4
+ module DER
5
+ def encode_with(coder)
6
+ coder['der'] = self.to_der
7
+ end
17
8
 
18
- def init_with(coder)
19
- self.__send__(:initialize, coder['der'])
9
+ def init_with(coder)
10
+ self.__send__(:initialize, coder['der'])
11
+ end
20
12
  end
21
13
  end
22
14
 
15
+ OpenSSL::X509::Certificate.prepend(OpenSSL::YamlSerialization::DER)
16
+ OpenSSL::X509::Name.prepend(OpenSSL::YamlSerialization::DER)
17
+ OpenSSL::PKey::PKey.prepend(OpenSSL::YamlSerialization::DER)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openssl-additions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Palmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-29 00:00:00.000000000 Z
11
+ date: 2020-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  - !ruby/object:Gem::Version
192
192
  version: '0'
193
193
  requirements: []
194
- rubygems_version: 3.0.1
194
+ rubygems_version: 3.0.3
195
195
  signing_key:
196
196
  specification_version: 4
197
197
  summary: Quality-of-life improvements to the core openssl ruby library