gpgme 2.0.22 → 2.0.23

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: c4dc4765cd73bfd27c0ebdfff8749106341f2dd7a6c0118a4e3307798b753e84
4
- data.tar.gz: 6b929a3f84144a4fdcc40382129bd6ad409e9a819c956f33941a8d650000c70c
3
+ metadata.gz: 4d6acceab7f41eb6f3921f566fc2bf394658cd2a0a42e84024e3dda8ce19c9a6
4
+ data.tar.gz: a2e3adb3405cecfa249173693a12a552ed5b13eaeb09c5b4ef45c7fca8af2699
5
5
  SHA512:
6
- metadata.gz: 387806727ae8b6d8da14fc23ce7c9a24c58373b52f79b4bce8ca1f7de2337e715c488c7af65e30ac8e6e73a18c8d31589b00f80c682f0dcbcce1f4d234cc58a3
7
- data.tar.gz: bbfa653feac228f87c430fa61524625d373ff6dd0a33d5c824c50d94db59233ab6161d8ac1b6e475db21ce9908f22b45bce17fff5c6cba92f9bb959b49b297b8
6
+ metadata.gz: 7ec1990d20648deeaed5c10d1eff1737b96a3b8f9d7dbb7001c21efb8f78ead507429d7e34d1219db2556f0f2fd584bb18362a42fadeaca47fc340153a304261
7
+ data.tar.gz: ccd721826ffe1077351628f083ece7894fe03c4a754f53eddab814dc4c1642a314dddfeb7157fc0117d9b5ea8f1fc2aad7aba447d377eb755201c625825f92a8
data/ext/gpgme/extconf.rb CHANGED
@@ -37,13 +37,16 @@ if arg_config('--clean')
37
37
  end
38
38
 
39
39
  if arg_config('--use-system-libraries', ENV['RUBY_GPGME_USE_SYSTEM_LIBRARIES'])
40
- unless find_executable('pkg-config')
41
- $stderr.puts("pkg-config not found")
40
+ if find_executable('pkg-config') && system('pkg-config gpgme --exists')
41
+ $CFLAGS += ' ' << `pkg-config --cflags gpgme`.chomp
42
+ $libs += ' ' << `pkg-config --libs gpgme`.chomp
43
+ elsif find_executable('gpgme-config')
44
+ $CFLAGS += ' ' << `gpgme-config --cflags`.chomp
45
+ $libs += ' ' << `gpgme-config --libs`.chomp
46
+ else
47
+ $stderr.puts("pkg-config with gpgme.pc and gpgme-config not found")
42
48
  exit(1)
43
49
  end
44
-
45
- $CFLAGS += ' ' << `pkg-config --cflags gpgme`.chomp
46
- $libs += ' ' << `pkg-config --libs gpgme`.chomp
47
50
  else
48
51
  message <<-'EOS'
49
52
  ************************************************************************
@@ -62,11 +65,11 @@ EOS
62
65
  require 'rubygems'
63
66
  require 'mini_portile2'
64
67
 
65
- libgpg_error_recipe = MiniPortile.new('libgpg-error', '1.46').tap do |recipe|
68
+ libgpg_error_recipe = MiniPortile.new('libgpg-error', '1.47').tap do |recipe|
66
69
  recipe.target = File.join(ROOT, "ports")
67
70
  recipe.files = [{
68
71
  :url => "https://www.gnupg.org/ftp/gcrypt/#{recipe.name}/#{recipe.name}-#{recipe.version}.tar.bz2",
69
- :sha256 => 'b7e11a64246bbe5ef37748de43b245abd72cfcd53c9ae5e7fc5ca59f1c81268d'
72
+ :sha256 => '9e3c670966b96ecc746c28c2c419541e3bcb787d1a73930f5e5f5e1bcbbb9bdb'
70
73
  }]
71
74
  recipe.configure_options = [
72
75
  '--enable-install-gpg-error-config',
@@ -83,11 +86,11 @@ EOS
83
86
  recipe.activate
84
87
  end
85
88
 
86
- libassuan_recipe = MiniPortile.new('libassuan', '2.5.5').tap do |recipe|
89
+ libassuan_recipe = MiniPortile.new('libassuan', '2.5.6').tap do |recipe|
87
90
  recipe.target = File.join(ROOT, "ports")
88
91
  recipe.files = [{
89
92
  :url => "https://www.gnupg.org/ftp/gcrypt/#{recipe.name}/#{recipe.name}-#{recipe.version}.tar.bz2",
90
- :sha256 => '8e8c2fcc982f9ca67dcbb1d95e2dc746b1739a4668bc20b3a3c5be632edb34e4'
93
+ :sha256 => 'e9fd27218d5394904e4e39788f9b1742711c3e6b41689a31aa3380bd5aa4f426'
91
94
  }]
92
95
  recipe.configure_options = [
93
96
  '--disable-shared',
@@ -103,11 +106,11 @@ EOS
103
106
  recipe.activate
104
107
  end
105
108
 
106
- gpgme_recipe = MiniPortile.new('gpgme', '1.18.0').tap do |recipe|
109
+ gpgme_recipe = MiniPortile.new('gpgme', '1.21.0').tap do |recipe|
107
110
  recipe.target = File.join(ROOT, "ports")
108
111
  recipe.files = [{
109
112
  :url => "https://www.gnupg.org/ftp/gcrypt/#{recipe.name}/#{recipe.name}-#{recipe.version}.tar.bz2",
110
- :sha256 => '361d4eae47ce925dba0ea569af40e7b52c645c4ae2e65e5621bf1b6cdd8b0e9e'
113
+ :sha256 => '416e174e165734d84806253f8c96bda2993fd07f258c3aad5f053a6efd463e88'
111
114
  }]
112
115
  recipe.configure_options = [
113
116
  '--disable-shared',
data/ext/gpgme/gpgme_n.c CHANGED
@@ -876,6 +876,7 @@ rb_s_gpgme_op_keylist_start (VALUE dummy, VALUE vctx, VALUE vpattern,
876
876
  return LONG2NUM(err);
877
877
  }
878
878
 
879
+ // https://github.com/rwinlib/gpgme/blob/v1.16.0/include/gpgme.h#L2013-L2015
879
880
  static VALUE
880
881
  rb_s_gpgme_op_keylist_ext_start (VALUE dummy, VALUE vctx, VALUE vpattern,
881
882
  VALUE vsecret_only)
@@ -2423,7 +2424,7 @@ Init_gpgme_n (void)
2423
2424
  rb_define_module_function (mGPGME, "gpgme_op_keylist_start",
2424
2425
  rb_s_gpgme_op_keylist_start, 3);
2425
2426
  rb_define_module_function (mGPGME, "gpgme_op_keylist_ext_start",
2426
- rb_s_gpgme_op_keylist_ext_start, 4);
2427
+ rb_s_gpgme_op_keylist_ext_start, 3);
2427
2428
  rb_define_module_function (mGPGME, "gpgme_op_keylist_next",
2428
2429
  rb_s_gpgme_op_keylist_next, 2);
2429
2430
  rb_define_module_function (mGPGME, "gpgme_op_keylist_end",
data/lib/gpgme/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module GPGME
2
2
  # The version of GPGME ruby binding you are using
3
- VERSION = "2.0.22"
3
+ VERSION = "2.0.23"
4
4
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gpgme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.22
4
+ version: 2.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daiki Ueno
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-11-25 00:00:00.000000000 Z
12
+ date: 2023-08-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mini_portile2
@@ -131,9 +131,9 @@ files:
131
131
  - lib/gpgme/sub_key.rb
132
132
  - lib/gpgme/user_id.rb
133
133
  - lib/gpgme/version.rb
134
- - ports/archives/gpgme-1.18.0.tar.bz2
135
- - ports/archives/libassuan-2.5.5.tar.bz2
136
- - ports/archives/libgpg-error-1.46.tar.bz2
134
+ - ports/archives/gpgme-1.21.0.tar.bz2
135
+ - ports/archives/libassuan-2.5.6.tar.bz2
136
+ - ports/archives/libgpg-error-1.47.tar.bz2
137
137
  - test/crypto_test.rb
138
138
  - test/ctx_test.rb
139
139
  - test/data_test.rb
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubygems_version: 3.3.7
170
+ rubygems_version: 3.4.10
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Ruby binding of GPGME.
Binary file
Binary file