pgp-rb 0.1.0-x86_64-linux → 0.1.1-x86_64-linux

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: 93e0f7ca670f1c6a6b91c7bcd248c8efa3788ad84c00cc32c02868edff2feb34
4
- data.tar.gz: 86cdf53fe9835ec56e08bb28706be0db484c40f16961dd28d12dab8e3c729d06
3
+ metadata.gz: af5e792befdae49af2845efbf03e77cb0b66293e14459b33c279c24e0dd1cc39
4
+ data.tar.gz: 1a7f9a5d084d0080ad29fa3f18cf96c290c5d5cc9db5869c693308b9fb30b196
5
5
  SHA512:
6
- metadata.gz: f7872e15ffc3f8d852f9fe9857c040b93c9bc5b3aba84293fd36fd644087b02cf72491f9316a590a105191d2feed4eebe2bb8d4f91d4087537b10e4f519736e5
7
- data.tar.gz: d0014beb0bdb8774e077d901232f79bdb3a1922d4fe4453fffc1283ab491b197b9d3d04cf5504737f9e262d4027a0e155a368dbbe87dd034a196d845ef0aa451
6
+ metadata.gz: 3e54a317c7747dd462551af7298dd19134edd63c98d0d9ecfd856128b55bff61d1305f06e7c2ad6bd9dde94e9c64f1f37f6b58ef97b991dbcd3a97b9a4475bdd
7
+ data.tar.gz: 40719cc3f56b8e81b79d5ad07e7f43fbdb43d26e6bcbc2711f01d1f7df1378ab95426185ff698c01b1bb79d4c9e4679a531337067d4b3ff032fb0b34463dfcdb
@@ -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-linux
6
6
  authors:
7
7
  - Kirill Zaitsev