gpgme 2.0.6 → 2.0.7

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
  SHA1:
3
- metadata.gz: f4029d3a91ef53cbba61b60cadc0ae5a990de620
4
- data.tar.gz: d54ecce41c072bc922f50be17510f209ca0327c6
3
+ metadata.gz: ddad2098d7948b2270488e28182d4cb8caab2dcf
4
+ data.tar.gz: f7df6a6384be5d81de6695158a5cf1b858f9402d
5
5
  SHA512:
6
- metadata.gz: d6af9b82d68f349f8d774683f04740036d743c3c2801f49e9a53d3b94af26d8b045a31e4b23e737f6b21418bba26f7c038ea59bef8650125fbe7b160aa52c624
7
- data.tar.gz: c38ed6111d7ebb79e87276c81fac76bc5e38af4e61065a1042c3fa8d297040e9c796ad50f0b25a5b363a0801bf4d3fb9b904d5169663ee80e8b12906b586ee0c
6
+ metadata.gz: ddc16711b30e02461dbf3d570e88aa48b97993b7741baf5354ce79a7d1f17789cd430a68d25244e3b4f212f77c2b93a204385e26957f23c9413f4b6e6aae4629
7
+ data.tar.gz: 21112836148bf1a1f976c8b3890b27a38e69506e69b21dfd09b00c74bec3dae93f561c1ef4c70d71bbac381b3cd039cde9294e7ea95d40f6fb024f3b8d16f09a
data/ext/gpgme/extconf.rb CHANGED
@@ -79,7 +79,7 @@ EOS
79
79
  recipe.activate
80
80
  end
81
81
 
82
- libassuan_recipe = MiniPortile.new('libassuan', '2.1.1').tap do |recipe|
82
+ libassuan_recipe = MiniPortile.new('libassuan', '2.1.2').tap do |recipe|
83
83
  recipe.target = File.join(ROOT, "ports")
84
84
  recipe.files = ["ftp://ftp.gnupg.org/gcrypt/#{recipe.name}/#{recipe.name}-#{recipe.version}.tar.bz2"]
85
85
  recipe.configure_options = [
@@ -96,7 +96,7 @@ EOS
96
96
  recipe.activate
97
97
  end
98
98
 
99
- gpgme_recipe = MiniPortile.new('gpgme', '1.5.0').tap do |recipe|
99
+ gpgme_recipe = MiniPortile.new('gpgme', '1.5.1').tap do |recipe|
100
100
  recipe.target = File.join(ROOT, "ports")
101
101
  recipe.files = ["ftp://ftp.gnupg.org/gcrypt/#{recipe.name}/#{recipe.name}-#{recipe.version}.tar.bz2"]
102
102
  recipe.configure_options = [
@@ -133,8 +133,20 @@ EOS
133
133
  else
134
134
  $LIBPATH = $LIBPATH | [lpath]
135
135
  end
136
- when /\A-l./
137
- libs.push(arg)
136
+ when /\A-l(.+)\z/
137
+ # Resolve absolute paths of local static libraries to avoid
138
+ # linking with system libraries.
139
+ libname_to_recipe = {
140
+ 'gpgme' => gpgme_recipe,
141
+ 'assuan' => libassuan_recipe,
142
+ 'gpg-error' => libgpg_error_recipe
143
+ }
144
+ recipe = libname_to_recipe[$1]
145
+ if recipe
146
+ libs.push(File.join(recipe.path, 'lib', "lib#{$1}.#{$LIBEXT}"))
147
+ else
148
+ libs.push(arg)
149
+ end
138
150
  else
139
151
  $LDFLAGS << ' ' << arg.shellescape
140
152
  end
data/ext/gpgme/gpgme_n.c CHANGED
@@ -2816,6 +2816,11 @@ Init_gpgme_n (void)
2816
2816
  rb_define_const (mGPGME, "GPGME_KEYLIST_MODE_EPHEMERAL",
2817
2817
  INT2FIX(GPGME_KEYLIST_MODE_EPHEMERAL));
2818
2818
  #endif
2819
+ /* This flag was added in 1.5.1. */
2820
+ #ifdef GPGME_KEYLIST_MODE_WITH_SECRET
2821
+ rb_define_const (mGPGME, "GPGME_KEYLIST_MODE_WITH_SECRET",
2822
+ INT2FIX(GPGME_KEYLIST_MODE_WITH_SECRET));
2823
+ #endif
2819
2824
 
2820
2825
  /* The available flags for status field of gpgme_import_status_t. */
2821
2826
  rb_define_const (mGPGME, "GPGME_IMPORT_NEW", INT2FIX(GPGME_IMPORT_NEW));
@@ -54,6 +54,9 @@ module GPGME
54
54
  if defined?(GPGME_KEYLIST_MODE_EPHEMERAL)
55
55
  KEYLIST_MODE_EPHEMERAL = GPGME_KEYLIST_MODE_EPHEMERAL
56
56
  end
57
+ if defined?(GPGME_KEYLIST_MODE_WITH_SECRET)
58
+ KEYLIST_MODE_WITH_SECRET = GPGME_KEYLIST_MODE_WITH_SECRET
59
+ end
57
60
  MD_CRC24_RFC2440 = GPGME_MD_CRC24_RFC2440
58
61
  MD_CRC32 = GPGME_MD_CRC32
59
62
  MD_CRC32_RFC1510 = GPGME_MD_CRC32_RFC1510
Binary file
data/test/test_helper.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
+ require 'coveralls'
4
+ Coveralls.wear!
5
+
3
6
  # include compiled gpgme_n.bundle
4
7
  tmp_dir = File.join(File.dirname(__FILE__), '..', 'tmp')
5
8
  $:.unshift(tmp_dir) if File.directory?(tmp_dir)
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.6
4
+ version: 2.0.7
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: 2014-06-26 00:00:00.000000000 Z
12
+ date: 2014-09-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mini_portile
@@ -74,19 +74,19 @@ dependencies:
74
74
  - !ruby/object:Gem::Version
75
75
  version: 0.6.7
76
76
  - !ruby/object:Gem::Dependency
77
- name: rcov
77
+ name: coveralls
78
78
  requirement: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
- version: 0.9.9
82
+ version: '0'
83
83
  type: :development
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.9.9
89
+ version: '0'
90
90
  - !ruby/object:Gem::Dependency
91
91
  name: debugger
92
92
  requirement: !ruby/object:Gem::Requirement
@@ -148,9 +148,11 @@ files:
148
148
  - examples/genkey.rb
149
149
  - examples/keylist.rb
150
150
  - examples/edit.rb
151
+ - ports/archives/libassuan-2.1.2.tar.bz2.sig
151
152
  - ports/archives/libgpg-error-1.13.tar.bz2
152
- - ports/archives/gpgme-1.5.0.tar.bz2
153
- - ports/archives/libassuan-2.1.1.tar.bz2
153
+ - ports/archives/gpgme-1.5.1.tar.bz2
154
+ - ports/archives/libassuan-2.1.2.tar.bz2
155
+ - ports/archives/gpgme-1.5.1.tar.bz2.sig
154
156
  homepage: http://github.com/ueno/ruby-gpgme
155
157
  licenses:
156
158
  - LGPL-2.1+
Binary file
Binary file