pgp-rb 0.1.0-x86_64-darwin → 0.1.1-x86_64-darwin

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pgp-rb/version.rb +1 -1
  3. data/lib/pgp.rb +6 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50e8cc4e114c6f9b6a4a77db53111bda35d4928d6003dcb1305fd6404108852c
4
- data.tar.gz: 3d1afd539bae41980aaf6f3a7e4122ee22adc110436b6980929f07bc114eca24
3
+ metadata.gz: 11bd8109b2ce2b4883d3c1263a614d7ed093fe7a62ee63a2a646eccb268288ec
4
+ data.tar.gz: 6b3b08685e3478944e88ec39e15d0b7352b149301dce477986279bd41abc69e1
5
5
  SHA512:
6
- metadata.gz: ae454535576785da17bd2d6f7d4a169a9e48e3fa283b6f7b9e77bcccfbfab9ee0d913740a77a29b854c781b8a2b4913b095cedae6c78bbb033f05ae071bcc79a
7
- data.tar.gz: 0db0b8b9111784c09172b4423a399e758e35782a68ac25438e50afc5ad5ce9fe3286f54e38debb0a7c5b1daca16dac76f2336f486e61c46aeb5a0e4ed7704d94
6
+ metadata.gz: 894f24d42c49b08d2f3b3d0925e2f065264cb239d9985b8d693f19d89ec1c42be25f64013f0eaa5ea474cf91240575b1fbe1f394a847818a71b64d5974074e37
7
+ data.tar.gz: 4d8a11eb00a5657ebbf121f27979bb49d447ae3fa0c176dc50e18b095e07084dc6c76cca90bb57d4710f9074d942b69dabfd29101f3fe34c4326cd25f9983c6b
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PGP
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
data/lib/pgp.rb CHANGED
@@ -1,6 +1,10 @@
1
1
  # frozen_string_literal: true
2
-
3
- require_relative 'pgp-rb/pgp_rb'
2
+ begin
3
+ /(?<ruby_version>\d+\.\d+)/ =~ RUBY_VERSION
4
+ require_relative "pgp-rb/#{ruby_version}/pgp_rb"
5
+ rescue LoadError
6
+ require_relative 'pgp-rb/pgp_rb'
7
+ end
4
8
 
5
9
  module PGP
6
10
  KEY_ALGORITHM_RSA = 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgp-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Kirill Zaitsev